/srv/irclogs.ubuntu.com/2014/01/28/#ubuntu-quality.txt

=== Guest72010 is now known as balloons
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
pittiGood morning07:17
elfypitti: you staying long enough for a good morning :p07:27
pittielfy: heh; sorry, saw a kswapd complaint on my server this morning, so I had to reboot it (sigh, 200 days uptime gone :) )07:28
elfy:)07:28
pittiand then the fsck kicked in, so it took a while07:28
elfyha ha ha07:28
pittirbasak: wrt. bug 1266811, I want to take a look at this now; but I'm still stunned how you can run lxc as user on system-wide images08:38
ubot5bug 1266811 in autopkgtest (Ubuntu) "--unbuilt-tree fails with adt-virt-lxc" [Undecided,New] https://launchpad.net/bugs/126681108:38
pittirbasak: do you have some ~/.lxcwhatever that defines lxc.lxcpath to the system one (/var/lib/lxc) or something?08:38
pittirbasak: and adt-virt-lxc doesn't allow me to specify a -P option to propagate to lxc-start08:41
jibelpitti, you can specify lxcpath in ~/.config/lxc.conf08:56
jibelactually ~/.config/lxc/lxc.conf08:56
pittiI haven't yet tried per-user containers, that seems to be something new in trusty09:00
pittibut I didn't have the impression that rbasak was even using them09:00
rbasakpitti: I'm not doing anything special. On a fresh VM, apt-get install lxc. Then use sudo for everything. That's all.09:03
rbasakUnless something changed I didn't notice, that still works. The only thing I had to do for adt-virt-lxc is "chmod 755 /var/lib/lxc" recently in Trusty since that changed.09:03
pittirbasak: right, but if you run "lxc-start" as user (not root), then it wants to use containers in ~, not in /var/lib/lxc/09:04
rbasakpitti: I use sudo for everything lxc. Including lxc-start. adt-virt-lxc does this too.09:04
pittirbasak: right, I asked stgraber about the permissions, he said it was deliberate for security reasons09:04
pittirbasak: you don't in e. g. bug 126681109:04
ubot5bug 1266811 in autopkgtest (Ubuntu) "--unbuilt-tree fails with adt-virt-lxc" [Undecided,New] https://launchpad.net/bugs/126681109:04
rbasakWhen I wrote adt-virt-lxc, I understood lxc to not handle not running as root yet, but that it would in the future.09:05
pittirbasak: and last week you said something about using "--gain-root=sudo" to run adt-itself as user09:05
rbasakSo I had it run sudo for everything, thinking that we could just drop that later.09:05
pittirbasak: ok, then I apparently misunderstood that then09:05
rbasak--gain-root=sudo is something completely different.09:05
rbasakIt's about what's happening *inside* the container.09:05
rbasakThe other bits are about outside the container, in the host.09:05
pittirbasak: ok, thanks09:05
rbasakbug 1266811 is I think an issue inside the container, so I don't think it has anything to do with whether lxc runs as root or not.09:06
ubot5bug 1266811 in autopkgtest (Ubuntu) "--unbuilt-tree fails with adt-virt-lxc" [Undecided,New] https://launchpad.net/bugs/126681109:06
rbasakMy steps to reproduce bug 1266811 should work in a fresh VM.09:07
rbasakWith no other settings.09:07
pittirbasak: ack, I'll try and reproduce it; I was just still wondering about how you run adt-run as user09:07
pittithis actually ought to work in trusty somehow now (I didn't play around with per-user containers yet)09:07
rbasakYeah. Perhaps the sudo can be dropped from inside adt-virt-lxc now.09:07
rbasak(but --gain-root=sudo would still remain for the guest)09:08
davmor2Morning all09:08
elfygood morning davmor209:10
=== vrruiz_ is now known as rvr
pittirbasak: hm, I tried with various different combinations now, and it always works (i. e. all combinations except the "run adt-run as user" that you have in the report, and it might be that this is the crucial difference)09:39
pittirbasak: do you still get this with current apache2 and autopkgtest?09:39
pittirbasak: also, why the "(cd apache-2.4.6 && quilt push -a)"? pull-lp-source unpacks the source and applies the quilt patches, as dpkg-source does that09:39
* pitti tries with an older autopkgtest09:41
slickymastermorning all09:55
rbasakTrying now10:03
rbasakpitti: re: quilt, you're right. In my actual problem case I had popped the patches, and so needed to push them back. The reduced test case doesn't need it. Also, there was a minor typo in reproduction steps (apache -> apache2). I've amended these.10:14
pittirbasak: yeah, I figured out the apache[2] thing, that was quite obvious10:14
rbasakpitti: I've also found a bug in the code that calls lxc-info - it should be called with sudo, like everything else, to be consistent with the other lxc calls10:14
pittirbasak: ah, that would do the trick for running adt-run as user10:15
rbasakpitti: with that change, it seems that adt-virt-lxc works again in the way I use it (with the chmod 755 workaround in the bug description too)10:15
rbasakTrying to reproduce now.10:15
rbasak(waiting for apache2 build)10:16
pittirbasak: you mean lxc-config; indeed, I'll fix that10:16
rbasakAh, yes. Thanks!10:16
pittihardcoding sudo there is quite a bummer (won't work for Debian at all), but for now it's fairly Ubuntu specific anyway10:17
rbasakYeah all of the sudo lxc calls are bad. The next time I can sit down to properly work on this, I hope to understand the non-root lxc stuff, and get rid of all of them.10:17
pittiyay adt-run as user, much nicer10:18
pitti(but FWIW, apache2 still works; at least way past the point of failure that you had)10:18
pittirbasak: http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=commitdiff;h=d18bc110:19
pittirbasak: sorry about breaking that10:20
rbasakNo problem. Looks good - thanks.10:20
rbasakI failed to reproduce the original problem on 2.6. Trying 2.5.5 now.10:20
pittirbasak: likely got fixed with http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=commitdiff;h=95524d8529810:23
rbasakThat looks likely10:23
pittioh, hang on, that was in 2.5.2 already10:25
pittithere were no tree ownership fixes since 2.5.510:25
rbasakI can't reproduce in 2.5.5 now.10:26
rbasakI'll try 2.5.5 from scratch one more time. If I still can't do it, I'll mark the bug Invalid.10:27
pittiis it theoretically possible you had < 2.5.2 at that time?10:27
rbasakIt's possible, but I can't think how, given that I noted the version when I filed the report.10:28
pittion 2014-01-07, autopkgtest 2.5.4 was in trusty10:28
rbasakUnless I picked the version up from the wrong instance or something10:28
pittiah no, 2.5.5; I misread +publishinghistory10:28
pittiexcept that 2.5.5 got terribly broken by the new base-passwd, which required http://launchpadlibrarian.net/162062420/autopkgtest_2.5.5_2.5.6.diff.gz10:29
pittiand that landed on Jan 07 (and broke pretty much eveyrthing in autopkgtest and other places)10:30
pittialthough the pastebin output doesn't support that theory10:31
rbasakpitti: got it. It reproduces if apache2-2.4.6 is 700. I guess that was the case when I did it (because of my workflow).10:39
rbasakpitti: reproduced on both 2.5.5 and 2.6. I'll amend the bug.10:40
pittirbasak: thanks, that's it then10:41
rbasakpitti: sorry about that. Next time I'll reproduce on a fresh VM before filing.10:42
pittirbasak: no worries; thanks for your efforts!10:43
pittirbasak: yep, perfectly reproducible10:58
pittirbasak: FWIW, I still don't know what the --gain-root=sudo is for; for building packages, fakeroot ought to suffice?11:00
rbasakpitti: fakeroot would be fine, except that it isn't installed in cloud images by default.11:00
pittirbasak: right, but autopkgtest installs it when building packages11:01
rbasakpitti: also, fakeroot shouldn't even be necessary, given that adt-run gets root in the container anyway11:01
pittiyes, but it builds packages as user (if it has a suggested user)11:01
rbasakpitti: "autopkgtest installs it when building packages" is that a newer thing? When I wrote adt-virt-lxc, I had to use --gain-root=sudo since it tried and failed to use fakeroot by default11:01
pitti        if (opts.user or11:02
pitti                'root-on-testbed' not in testbed.caps):11:02
pitti            opts.gainroot = 'fakeroot'11:02
pitti            build_essential += ['fakeroot']11:02
pittirbasak: let me git blame, but it's been around for fairly long11:02
rbasakpitti: "yes, but it builds packages as user (if it has a suggested user)" - it should only run "debian/rules build" as the suggested user. It should not run "debian/rules binary" with a fakerooted suggested user if it has root already.11:03
pittirbasak: it's in 2.2.2 already, i. e. < quantal11:03
pitti(and presumably much earlier)11:03
rbasakpitti: root-on-testbed is in testbed.caps in the case of adt-virt-lxc. Not sure about the default of opts.user, but I started to need --gain-root when I added suggested-user=ubuntu.11:03
pittirbasak: hm, it does though:11:04
pitti            opts.user_wrap(opts.gainroot + ' debian/rules binary'),11:04
rbasakpitti: yeah, but that's backwards.11:05
rbasakpitti: it's dropping root that it already has, and then tries to get it back with opts.gainroot.11:05
rbasakpitti: instead it should just use the root is has in the first place.11:05
rbasak(if it does)11:05
pittiperhaps11:05
rbasakThat would bring the build closer to buildds, right?11:05
pittibut with fakechroot it's still using less privileges11:05
pittiand packages must build with that anyway11:05
pittirbasak: I'm not sure how the buildds handle that11:06
pittirbasak: anyway, it's a side issue, I was mostly curious why you use that option; it's unrelated to that permission bug11:06
rbasakAIUI, policy says that "debian/rules binary" *must* have root. fakeroot is a non-policy compliant hack that happens to work. That's my understanding. I could be wrong.11:06
pittiah, perhaps; it seems to be pretty much the standard practice these days, though11:06
rbasakYeah, it's just an aside. The short answer is that without --gain-root=sudo (or installing fakeroot in the container), adt-virt-lxc didn't work at all at the time I submitted it.11:06
rbasakIt certainly is standard practice, and works well enough. But for edge case bugs, it would be nice if we could build closer to policy.11:07
rbasakIf we can get uvtool working with raw stdio serial channels, then it would be great to be able to easily reproduce a precise policy-compliant environment.11:08
=== _salem is now known as salem_
rbasakpitti: incidentally, I find the manpage very confusing and ambiguous whenever I'm trying to understand what the different --built-tree, --unbuilt-tree, --source and --binary options will actually do in terms of build or no build, where the build dependencies will come from, and what test dependencies will be fulfilled and where they will come from.11:10
rbasakI'm not sure how to make that better, since I don't really understand what the options do.11:10
pittirbasak: yeah, same with me; I was just beginning to experiment what they actually do, I'll think about how to write that in the manpage11:11
rbasakI'm sure there's some logic to it - I just haven't managed to understand.11:11
pittirbasak: hm, it does though:117555711:11
pittiWTF11:11
pittiI did an initial followup to bug 117555711:11
ubot5bug 1175557 in autopkgtest (Ubuntu) "adt-run fulfills dependencies with --built-tree contrary to the manpage" [High,New] https://launchpad.net/bugs/117555711:11
pittisometimes pressing the middle mouse button in weechat to paste a bug number has some very weird effect11:12
=== chihchun is now known as chihchun_afk
pittirbasak: OMGhack :( http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=commitdiff;h=e271f77012:37
rbasakpitti: ah, great. Thank you!12:37
pittirbasak: OOI, what's insufficient about lxc-wait -s RUNNING ?12:40
pittidoes that already flip to RUNNING while the early boot is still going on?12:40
rbasakRight12:40
pittii. e. that doesn't check the runlevel?12:40
rbasakMy early attempts with adt-virt-lxc were unreliable because the /tmp cleaner started work after adt-run had copied stuff to /tmp12:41
rbasakbug 1266808 if you're not looking at it already12:41
ubot5bug 1266808 in lxc (Ubuntu) "No mechanism to wait until a started container is ready and has finished booting" [Wishlist,Triaged] https://launchpad.net/bugs/126680812:41
rbasakAlso bug 1258113 is relevant here12:42
ubot5bug 1258113 in cloud-init "Cannot determine boot-finished state reliably" [Medium,Triaged] https://launchpad.net/bugs/125811312:42
rbasakBut in the case of the ubuntu-cloud lxc template, I think arranging for cloud-init to write to /dev/lxc via userdata would be fine.12:42
rbasakOr, adt-virt-lxc could be configured to be able to use either mechanism. boot-finished for cloud-init containers, and plain lxc-wait (with /dev/lxc support added) for all containers generically.12:43
rbasakThat way the use case of the user overriding userdata would still work.12:43
pittiright, I was just thinking about a mechanism which doesn't depend on cloud-init/upstart/etc., so that this doesn't get limited to Ubuntu containers12:44
pittiLXC works with just about anything, and it's useful to have e. g. a Debian or Fedora container for testing12:44
rbasak/dev/lxc then12:44
rbasakThe LXC template will have to arrange that12:44
pittiyes, that part is fine12:44
rbasakActually, thinking about it, no need to use boot-finished in the LXC case at all.12:45
pittiI was wondering when to signal the "ready", whether that should look at the runlevel, or just try upstart/systemd/sysv in succession,e tc.12:45
rbasakThe LXC template could arrange a /dev/lxc write outside of cloud-init12:45
rbasakI don't think a runlevel is sufficient.12:45
rbasakI think it should happen right at the end. Ie. the equivalent of /etc/rc2.d/99signal-lxc12:46
rbasakThe LXC template could arrange that. upstart for Ubuntu; rc.d for Debian.12:46
balloonsgood morning all13:52
DanChapmangood morning balloons13:53
elopiohello everybody!14:44
davmor2morning elopio14:48
davmor2belated morning balloons14:49
balloonsdavmor2, it's afternoon for yourself ;p14:49
davmor2balloons: it's always morning on the t'interwebz14:50
balloonsjust follow the sun14:50
davmor2balloons: that's what the clouds for right?14:50
balloons¿cómo estás elopio?14:50
balloonsdavmor2, clouds are so UK'ers don't have to see the sun in winter14:51
balloonswretched yellow ball14:51
davmor2balloons: there was me thinking it just meant we had more storage than the rest of the world14:51
balloonswell.. there might be that too..14:52
elopioballoons: pura vida. ¿vos?14:53
elopiomorning davmor2.14:54
elopiohey davmor2, you are doing exploratory testing for every new phone image, right?14:54
davmor2elopio: not every but most yes14:54
davmor2elopio: currently I get a ping saying x image will hopefully be promoted please dogfood it14:55
balloonselopio, bueno. "pura vida" es interesante14:55
davmor2elopio: they are currently not promoting any so I am just testing 15014:55
elopiodavmor2: that's what I was wondering :) And do they tell you what's new? or you just try it to burst into flames?14:55
davmor2elopio: we have a set of tests here https://docs.google.com/a/canonical.com/spreadsheet/ccc?key=0Ai33BkOcORLLdE4xLTFtSE80ZkpITXZ3aV85cWtPX2c#gid=0 that we run through on every image we test and then some random tests at the end to try and find faults14:57
elopiodavmor2: got it. But, lets say we want you to do some exploratory on a specific part of the next image. Can I just ping you and tell you what's new?14:59
elopioYou shouldn't explore that section every time because it will have autopilot tests. It's just a one time exploratory to catch what we and the developers couldn't catch during the reviews.14:59
davmor2elopio: what you after breaking15:00
davmor2testing I meant testing honest15:00
elopiodavmor2: just thinking for now...15:00
elopiodavmor2: for example, some big changes on edge gestures are coming soon.15:00
elopiosome big changes on app headers15:01
davmor2elopio: yes people do, the other thing we do is test things that have been fixed to ensure they are and haven't broken anything new15:01
elopiopurchasing apps from the click scope.15:01
davmor2elopio: yeah so any thing like that and can poke with a cattle prod and see what happens15:01
elopiodavmor2: awesome.15:02
davmor2popey: is aware of them too so I'm sure we the maniacs will be testing when it lands anyway and maybe adding tests to the spreadsheet for things that break for future reference15:04
davmor2elopio: ^ popey is aware even15:04
balloonsaways blame popey.. rule #115:08
popey\o/15:08
davmor2balloons: you fool rule 1 of the blame popey club is you don't talk about the blame popey club15:10
balloonstrue15:10
=== bfiller is now known as bfiller_afk
* elopio goes to real life for a while.19:02
elopioThey have natural light.19:02
balloonsthe sunshine is a lie!19:03
=== bfiller_afk is now known as bfiller
Letozaf_balloons, hi20:14
balloonsLetozaf_, hello20:14
Letozaf_balloons, saw you guys found a solution to the locales problem on calendar app20:15
Letozaf_balloons, you unset the current locale20:15
balloonsLetozaf_, that was all Olivier, but yes he did :-)20:15
Letozaf_balloons, ok so I should just test the autopilot tests on my box to see if this works right ?20:16
Letozaf_balloons, all the changes I had done have no sense now20:16
balloonsyea, give them a whirl on your box20:17
balloonsand yes, I think he did what we wanted/tried to do in a simpler way, lol20:17
Letozaf_balloons, :D yes20:17
elopioballoons: it's real! http://i.huffpost.com/gen/1568770/original.jpg21:14
elopioI could feel the heat when getting closer.21:14
balloonselopio, ;-)21:14
balloonsSuddenly living at a lower latitude isn't so bad is it?21:14
=== salem_ is now known as _salem

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!