/srv/irclogs.ubuntu.com/2015/07/28/#snappy.txt

=== c74d3 is now known as c74d
biezpalguys, we need to create additional users to Snappy Ubuntu. How we should do this in proper way?04:37
dholbachgood morning07:00
fgimenezgood morning dholbach and all07:01
dholbachhey fgimenez07:02
=== chihchun_afk is now known as chihchun
=== erkules_ is now known as erkules
ogra_grumble ... ubuntu-fan ... grumble08:43
JamesTaitGood morning all; happy Milk Chocolate Day! 😃08:54
davmor2ogra_: You know when you add the grumbles you sound less of a fan and more of a stalker right ;)09:10
ogra_heh09:10
=== kickinz1|afk is now known as kickinz1
ogra_hmpf ... i dont et it11:46
ogra_*get11:46
Chipacaogra_: ?11:47
ogra_buildin an armhf rootstock rootfs always fails with dependency issues11:47
ogra_and its the same missing deps no matter what release i use11:47
ogra_amd64 vivid is up to now the only one i manaed to get to build11:48
ogra_wily fails there too11:48
ogra_(though not dep issues)11:48
Chipacaogra_: is it bad that i don't know what rootstock is in this context? (i assume you're not building a social investment society)11:52
ogra_http://paste.ubuntu.com/11953230/ i really dont know what to make out of that ... it is using the stable archive11:52
ogra_oh11:52
ogra_perhaps it should also use -updates11:52
ogra_Chipaca, a rootfs builder tool ... project-rootstock-ng on launchpad11:53
Chipacaogra_: otherwise, check with barry maybe? he's usually ontop of python weirdness :)11:53
ogra_well, this is vivid ... we build regular snappy imaes from it :)11:53
ogra_*images11:53
ogra_rootstock uses exactly the same setup as the livefs builders so theoretically there is no reason for it to fail if the official images build11:55
* ogra_ tries adding -updates to the sources.list11:57
=== chihchun is now known as chihchun_afk
ogra_OOOOH !11:59
* ogra_ slaps forehead11:59
ogra_the snappy livecd-rootfs comes from the PPA11:59
ogra_so indeed i'm missing all the hacks12:00
ogra_hmpf, adding -updates doesnt change a thing12:08
longsleepogra_: hey - any news about getting a stable snappy 15.04 with the uboot.env changes?12:16
ogra_longsleep, rsalveti wanted to release it last night, seems that didnt happen12:17
ogra_not sure why12:17
longsleepogra_: ok thanks - i will keep monitoring then :)12:17
jdstrandsergiusens: /var/lib/apparmor/clicks and /var/lib/snappy/apparmor are different. basically, /var/lib/snappy/... is where we want to go and I started to go there with seccomp. /var/lib/apparmor/... is where we want to move from and we'll do that when click-apparmor is gone12:29
ogra_jdstrand, is anyone from the security team looking into the libstagefright issue on the phone (sorry for the echan)12:30
ogra_sounds pretty serious even for us12:30
Chipacaelopio: you around?12:30
elopioChipaca: o/12:30
elopiohow can I help you?12:31
Chipacaelopio: integrations test asplode nicely in wily12:31
Chipacaelopio: here i was all excited because they should finally work again (because networking is working \o/)12:31
Chipacavery disappointed; i thought i'd be able to convert "made integration tests work again on wily" into "get bottle of aged rum from elopio"12:32
elopioChipaca: I'm not sure if I should be happy or sad.12:32
elopioChipaca: throw the log at us. fgimenez is using wily, so he should be able to tell what's going on.12:32
Chipacahttp://pastebin.ubuntu.com/11953399/12:32
elopioI'm just running in vivid, and it works.12:32
elopioChipaca: your udf failed12:33
rsalvetiogra_: waiting to see if we could get any update from utlemming12:34
rsalvetibut will release it later today12:34
utlemmingrsalveti: huh?12:34
Chipacaelopio: yep12:34
elopioChipaca: this would increase your chances of getting aged rum: https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/147333312:34
ubottuLaunchpad bug 1473333 in goget-ubuntu-touch (Ubuntu) "exits with zero on error" [Undecided,Confirmed]12:34
rsalvetiutlemming: hey :-), what I asked you yesterday:12:35
Chipacautlemming: it's all your fault, see?12:35
rsalveti<rsalveti> utlemming: we're just finishing the testing phase for our current alpha image (image 9), and that will be migrated to stable12:35
rsalveti<rsalveti> or latest edge (132)12:35
jdstrandogra_: not to my knowledge. tyhicks, do you know? ^12:35
Chipaca:-p12:35
rsalveti<rsalveti> utlemming: can you run your usual testing scenarios over it and see if there is any issue with the cloud targets?12:35
utlemmingrsalveti: ah, okay12:35
utlemmingrsalveti: sorry, I didn't see the request, doing it now12:35
rsalvetiutlemming: no worries, thanks12:35
Chipacaelopio: maybe i should just rerun it :)12:36
elopioChipaca: the same udf command works for me. fgimenez: ^ can you give it a try?12:36
Chipacaelopio: fgimenez: the re-run has gotten further12:37
fgimenezelopio: Chipaca yep on it, anyway that error may disappear eventually12:37
fgimenezChipaca yep here it's working fine12:38
elopioso blame sergiusens, that's good B-)12:38
Chipaca\o/ then12:38
Chipacabut it's not being able to ssh in12:38
fgimenezChipaca: that's probably because ens3 is down12:39
Chipacafgimenez: that's what i fixed :)12:39
fgimenezChipaca: then it must be something else :)12:39
fgimenezChip12:40
fgimenezChipaca: you can try to create the image, launch it with kvm and run the tests passing ip and port12:41
elopioChipaca: you fixed it, but udf is deploying yesterday's rolling edge12:41
elopioChipaca: go run _integration-test/main.go --ip localhost --port 8022.12:41
elopioand we will know if rolling edge works until later. :(12:42
Chipacaelopio: um12:42
Chipacaah12:43
Chipacaelopio: i'm guessing it copies in snappy after ?12:43
elopioChipaca: yes. Some discussion in here: https://trello.com/c/VUKDVa97/106-generate-an-image-with-snappy-from-a-branch12:44
utlemmingrsalveti: I'm seeing an image with a serial of 13212:45
rsalvetiutlemming: right, that's the one we're going to promote to stable12:45
rsalvetiunless we find yet another bug12:45
elopioChipaca: and note that there's one failover test that regressed, so the suite will fail.12:46
elopiohttps://bugs.launchpad.net/snappy/+bug/147612912:47
ubottuLaunchpad bug 1476129 in Snappy "automatic reboot fails with rc.local crash" [Undecided,New]12:47
elopiofgimenez: all my refactor branches are updated. What's missing I think is to give a better name to common.go like basetest.go, but I'm not sure if go test would try to run it.12:50
fgimenezelopio: ok i'll take a look, there are more failover tests that are not working because of the new location of the kernel files, i'll put hands on that too12:52
elopiofgimenez: oh, that's sad.12:52
elopiowe are so close to be in-sync, but things keep falling appart. Thanks fgimenez.12:52
ogra_rsalveti, so latest rootstock should theoretically be able to build core for vivid and wily ... but .... bug 145098012:53
Chipacapitti: you around?12:53
ubottubug 1450980 in debootstrap (Ubuntu) "Python 3.4.3 package fails to install with deboostrap on armhf" [High,Confirmed] https://launchpad.net/bugs/145098012:53
* elopio goes offline now. Telegram if you need me.12:53
Chipacaelopio: i *think* you meant to thanks fgimenez for keeping things in sync, but it reads like you're blaming him for things falling apart :)12:53
rsalvetiogra_: =\12:53
ogra_there is a workaround mentioned, trying that now12:54
elopioChipaca: ok, to be clearer, I blame everybody except fgimenez ;)12:55
fgimenezelopio: i want my part of blame too! :)12:55
ogra_oooh, that looks a lot better !12:58
pittihey Chipaca; yes, back from holidays12:59
Chipacapitti: welcome back!13:00
pittithanks!13:00
Chipacapitti: i'm fighting with network-online.target; a service has it as a requires: and after: dependency, and it's still started before a network interface comes up13:00
Chipacapitti: i'm starting to suspect either i'm misunderstanding something deeper, or something's broken in snappy wrt systemd & networking13:01
Chipaca(btw, dunno if you remember but udevadm failed to bring up the network after adding a hotplug file to interfaces.d; had to systemctl restart networking)13:02
pittiChipaca: do you have a journalctl from the full boot? that shows the sequence of ifup-wait-all-auto.service, network-online.target, and your service13:02
ogra_onions ... so tiring ...13:02
* ogra_ yawns13:02
pittiogra_: ?13:02
Chipacapitti: how do i get that?13:02
ogra_pitti, rootstock uses three chroots wrapped into each other to fake a real livefs builder ... ultra boring to watch it :)13:03
pittiChipaca: "sudo journalctl > /tmp/journal.txt", and scp/pastebin that13:03
ogra_onion model :)13:03
pittior just "sudo journalctl | pastebin -" if you have something like that installed13:03
Chipacapitti: http://paste.ubuntu.com/11953525/13:06
utlemmingrsalveti: things look good for all the clouds13:07
rsalvetiutlemming: great13:07
pittiChipaca: so ifup-wait-all-auto.service is done at line 676, network-online.target is done at 73513:07
pittiChipaca: what's your service?13:07
ogra_can clouds roll back ?13:07
Chipacapitti: webdm13:07
Chipacapitti: how is network-online done, if the network is not online?13:08
pittiChipaca: erk, cloud-init runs afterwards, and calls ifupdown stuff13:08
ogra_yeah, we should realyl get rid of it13:08
ogra_the three to fix things it does for use all have equivalents in the distro we could use instead13:09
pittiChipaca: may it be that there isn't actually an /etc/network/interfaces at boot, or cloud-init creates that?13:09
ogra_s/fix/five/13:09
Chipacapitti: just to be clear, there is no configured network; it should not start at all :)13:09
pittiin general, I really recommend not running cloud-init on every boot, unless you have a very good reason to13:09
pittiChipaca: aah13:09
pittiChipaca: well, our ifup-wait-all-auto.service only waits until all configured interfaces are up13:09
pittiand as there are none, it succeeds immediately then13:10
Chipacaoh13:10
Chipacadaaaaamn13:10
Chipacaok, let's see if i tell it there's a fake one13:10
pittiso you need some other service that hooks into network-online.target and waits until you configure your network13:10
Chipacathat might be a good option still13:10
pittiwe can't make the default distro ifup-wait-all-auto.service not fire at all in this case13:11
Chipacaunderstood13:11
pittias you can also use NetworkManager, connman, networkd, or something else13:11
Chipacapitti: the "no network configured" thing is me trying to fake bug 146667213:11
ubottubug 1466672 in Snappy trunk "webdm failed to start / Failed to listen 224.0.0.251:5353" [Undecided,New] https://launchpad.net/bugs/146667213:11
pittiChipaca:if cloud-init brings up the network, then perhaps it could order itself before network-online.target?13:12
pittiChipaca: also:13:12
pittidhclient[895]: can't create /var/lib/dhcp/dhclient.leases: Permission denied13:12
Chipacapitti: that was me running dhclient by hand13:12
ogra_wow13:12
pittiah, ok13:12
Chipacawithout sudo13:12
Chipaca:)13:12
pittiok, I ignore this then :)13:12
Chipacaogra_: de-panic :)13:12
ogra_not panicing :)13:13
* ogra_ is just bored ... watching rootstock ... waiting 13:13
pittiChipaca: it looks like cloud-init also calls ifup -a13:13
Chipacapitti: thank you; i have plenty of things to poke for now then :) i'll pester you again if i run out again13:13
pittiwith some errors, but did that actually work?13:13
pittii. e. after it's done, do you have network?13:13
Chipacapitti: i have no idea :)13:13
pittiChipaca: well, wait until cloud-init is done, and check "ip a" and "ip route"?13:14
Chipacapitti: sorry, to be clear, in this case no it did not do anything13:14
pittiChipaca: and of course if it wrote something sensible into /etc/network/interfaces13:14
Chipacapitti: because i manually disabled networking by moving a file away from interfaces.d13:14
Chipacapitti: but i think your general question is whether that is the thing that actually brings up the network13:14
Chipacapitti: i will know shortly :)13:14
pittiChipaca: ok, so it's not cloud-init then; I guess you have something else that writes /e/n/i then?13:15
pittior is supposed to13:15
Chipacapitti: snappy firstboot writes a file to interfaces.d13:15
pittiChipaca: that finishes on line 742, so indeed after network-online.target13:16
pittiChipaca: so if you order that Before=network.target, that might help13:16
pittiChipaca: i. e. it should write /e/n/i.d/ early, and then the ifup-wait-all-auto.service magic should kick in13:17
ogra_update-initramfs: Generating /boot/initrd.img-3.19.0-25-generic13:17
ogra_/bin/df: Warning: cannot read table of mounted file systems: No such file or directory13:17
ogra_Warning: root device  does not exist13:17
ogra_Unable to abort; system will probably be broken!13:17
ogra_GEEZ !"13:17
* pitti tosses a /proc mount to ogra13:17
ogra_could we make update-initramfs warnings a little less scary13:17
ogra_pitti, thats expected, it is run by live-build in that context13:17
Chipacapitti: i tried ordering firstboot before network-pre, but it didn't work13:18
ogra_but update-initramfs is full of such warnings about trivial bits that sound like the end of the world13:18
Chipacapitti: however you weren't here to pester :) so maybe i should retest that later13:18
Chipacapitti: this is with the same config as just now, but with a (fake) entry in interfaces.d: http://paste.ubuntu.com/11953575/13:21
Chipacapitti: interesting things are, for a start, a "sh segmentation fault"13:22
Chipacaand that ifup-wait-all-auto failed, but network-online succeeded13:22
pittiChipaca: right, that times out after 2 mins; I did that to do the same as what we did under upstart, i. e. block the boot for at most 2 mins on ifup13:22
pittiifquery[535]: segfault at 1 ip 0000000000403187 sp 00007ffd59263e90 error 4 in ifup[400000+d000]13:23
pittigo, ifupdown!13:23
ogra_lol13:23
ogra_that might explain the 30sec delay during boot :)13:24
Chipacapitti: to be fair, i did just tell it to try to bring up ens4213:24
ogra_pitti, seems to not be 2min in the new world13:24
pitti13:16:29 localhost.localdomain systemd[1]: Starting Wait for all "auto" /etc/network/interfaces to be up for network-online.target...13:25
pitti13:18:29 localhost.localdomain systemd[1]: Failed to start Wait for all "auto" /etc/network/interfaces to be up for network-online.target.13:25
pittilooks like 2 mins to me :)13:25
ogra_well, my BBB sits for 30-40sec13:25
Chipacaogra_: this is so big a mess, i suggest we take a look at some point13:26
ogra_+113:26
Chipacanot right now tho :)13:26
ogra_haha13:26
ogra_ogra@anubis:~/Devel/branches/project-rootstock-ng$ ls -l out-2015072813:26
ogra_insgesamt 21836813:26
ogra_-rw-r--r-- 1 root root    188192 Jul 28 15:26 build-20150728-armhf.log13:26
ogra_-rw-r--r-- 1 root root 163712102 Jul 28 15:26 ubuntu-core.device.tar.gz13:26
ogra_-rw-r--r-- 1 root root      8217 Jul 28 15:26 ubuntu-core.manifest13:26
ogra_-rw-r--r-- 1 root root  59685713 Jul 28 15:26 ubuntu-core.rootfs-armhf.tar.gz13:26
ogra_HOORAY !!!!13:27
* ogra_ dances13:27
Chipacapitti: so, um, what do i do if i want to start a service after the network is up? so it works in the "network device is there but cable not plugged in" case13:27
* pitti hugs ogra13:27
* ogra_ hugs pitti 13:27
ogra_so now on to a wily build ... if that works too i'll declare rootstock ready for usage :)13:28
pittiChipaca: can you please clarify? if there's no cable, you're technically never online13:28
Chipacapitti: in that case, the service shouldn't start. It should start after a cable is plugged in (stopping if unplugged would be a bonus)13:28
pittiChipaca: right now we delay network-online.target for up to 2 mins on /e/n/i coming up (mimicking what we did in upstart); apparently that was the right thing for desktop/server, but maybe not for snappy13:29
pittiChipaca: so I guess we need a different "implementation" of n-o for that, i. e. not ifup-wait-all-auto.service13:29
Chipacapitti: i'm not so sure; i'd like to be able to getty in even if the network is disconnected, for example13:30
pittifor a start, an infinite timeout13:30
pittiChipaca: yes, getty doesn't need n-o, so that's always possible; ideally very few services are requires/after n-o13:30
pittin-o.target is really mostly a hack for legacy software which doesn't know how to listen to networking changes itself13:30
Chipacaah, ok13:30
Chipacahey, i could just say "bug in webdm" and see what rsalveti says :)13:31
pittibut we can certainly write an implementation that makes n-o go up an down while some ifupdown interface is up13:31
rsalvetiChipaca: I'd probably say just fix webdm then :P13:31
Chipacarsalveti: wfm, but i can see many other, lesser, app developers blaming snappy and not their code :)13:32
rsalvetisorry, need to read the entire backlog for context13:32
Chipacarsalveti: bottom line is: my sneaky plan of making it work by hanging off of network-online.target will not work unless we rewrite stuff (and depart from what works for the rest of ubuntu)13:33
* ogra_ thinks we should just go back to upstart :P13:34
Chipacaor forwards to systemd-networkd!13:34
kgunnJul 28 13:34:08 localhost kernel: [  228.622474] audit: type=1400 audit(1438090448.373:13): apparmor="STATUS" operation="profile_load" profile="unconfined" name="mir_system-compositor_snap1.1" pid=1068 comm="apparmor_parser"13:35
kgunnjdstrand: so got to the point of final testing....13:35
pittiChipaca: yeah, for use cases like that it'd certainly be more practical to "eternally" delay n-o; we can't do that on desktop/server where networks can be brought up by other means, but if ifupdown/snappy-firstboot is the only thing that configures it we can be stricter13:36
kgunnand just happened to lock at the syslog, i don't have any "unconfined" in my profiles so why does it say that ^13:36
pittiogra_: FWIW, upstart has exactly the same behaviour :)13:36
kgunnjdstrand: could it be that at one point, an unconfined template was used ? e.g. it's not specified by keyword "unconfined"13:36
kgunnbut the structure ?13:37
ogra_pitti, yeah, but i know from the top of my head how to work around it in upstart :P13:37
Chipacaso, another thing i could do, is add a wait to the service itself13:37
ogra_systemd isnt injected enouh in my cortical system yet :)13:37
ogra_Chipaca, sleep 3013:38
ogra_:P13:38
ChipacaExecStartPre=wait4tehnetworz13:38
Chipacapitti: would that work?13:38
pittiogra_: don't let it -- it's not designed for human brains :)13:39
pittiChipaca: sure; although, that's conceptually a bit broken13:39
Chipacapitti: tell me more13:39
ogra_pitti, but it fits into lennarts !13:39
pittiChipaca: I'd suggest, if you have a thing like this, rather stick it in ifup-wait-all-auto.service13:39
pittiogra_: obviously :)13:40
pittiChipaca: well, you can eternally wait in ExecStartPre= if you also disable the unit timeout13:40
Chipacaah. forgot about that pesky timeout thing :)13:40
pittiChipaca: but it's still not very elegant; for such long (potentially indefinite) waits it's better to put that waiting logic into a separate unit (ifup-wait-all-auto.service *cough*), and order yourself after it13:40
pittiChipaca: well, TimeoutStartSec=0 :) (but then real hangs won't ever be detected)13:41
Chipacapitti: i'm reticent to modifying ifup-wait-all-auto.service though13:41
pittiChipaca: it could also be a new one, like ifupdown-wait-online.service13:41
pittiChipaca: there's no harm in making network-online.target wait for both13:41
pittiChipaca: on a desktop it e. g. waits for ifup-wait-all-auto.service and NetworkManager-wait-online.service13:42
Chipacapitti: and how is that difference sorted?13:42
pittiChipaca: so, for experimentation: fine to put it into ExecStartPre=13:42
pittiChipaca: (and disable the timeout)13:42
pittithat might be simplest for iterating on the logic of wait4tehnetworz13:42
pittiChipaca: but once you do have a wait4tehnetworz, let's rather put that into a new ifupdown-wait-online.service which is Before=network-online.target13:43
pittiChipaca: difference?13:43
Chipacapitti: wait4tehnetworz is just “while [ "$(GET "http://start.ubuntu.com/connectivity-check.html" | md5sum | cut -d\  -f1)" != "4589f42e1546aa47ca181e5d949d310b" ]; do sleep 1; done”, for example13:46
Chipaca(possibly not *actually* in sh) :)13:46
jdstrandkgunn: that is not a denial, that is a profile load. That log entry is completely normal. it is saying an unconfined process (ie, apparmor_parser, snappy, whatever) loaded the profile13:46
Chipacapitti: difference == how to ship one config for desktop and a different one for server (and now a different one for snappy)13:46
Chipacai don't know how that part of the system is glued up13:46
pittiChipaca: ah, just ship it in the snappy package, together with a /lib/systemd/system/network-online.target.wants/ symlink13:47
pittiChipaca: I don't think you actually need to disable ifup-wait-all-auto.service -- your's should be stricter in all cases13:48
Chipacagotcha13:48
pittiChipaca: i. e. I don't see a case where ifup-wait-all-auto.service would still wait while your's would alreaydy succeed13:48
Chipacanow i understand what the symlinks are for :-D13:49
pittiChipaca: shipping the symlink is the same as adding an [Install] section and calling systemctl enable (teh latter just creates that symlink)13:49
* pitti needs to run to the grocery store, back in 3013:49
kgunnjdstrand: i realize that's not a denial, my point is...i'm going thru the process of making sure the mir snap and client are confined13:56
kgunnand wondering, if i've made it all confined why is it saying unconfined....so you say the process that started it is13:57
kgunnwhich i guess would be the launching script that's part of the snap ?13:57
beunokgunn, I think he's saying that by design, unconfined processes start apps and services13:59
beunoso it's an ignorable log entry14:00
kgunnbeuno: that was my other thot, thanks for confirmation14:00
jdstrandkgunn: what is saying unconfined exactly? the log entry you pointed to doesn't say anything about the mir process or the client process14:01
jdstrandkgunn: it is only saying that the profile was loaded by an unconfined process (ie, when you ran apparmor_parser, or when you installed the snap)14:01
jdstrandkgunn: like beuno said, you can ignore it14:02
kgunnjdstrand: got it, so pid 1068 was the unconfined thing14:02
jdstrandkgunn: if you want to know if the mir and client processes are confined, you can use 'sudo aa-status' or 'ps Z'14:02
kgunnta14:03
jdstrandkgunn: 1068 was ultimately apparmor_parser, yes14:03
kgunnjdstrand: thanks, i think i'm actually done with mods to aa and seccomp to get the mir svr and client app to run confined14:05
kgunnaltho i'm sure you or designate will need to take a look14:06
kgunnand tell me to "improve" potentially :)14:06
jdstrandkgunn: great! yeah, whenever you upload ping me and I'll look at it. at this point I imagine we are getting to the point of just filing bugs14:07
kgunncool14:07
kgunnjust doing some clean testing to make sure i'm all  good14:08
Chipacapitti: for the record, a delayed network-online results in no gettys for 2m14:38
pittiChipaca: hmm, that's bad; so we block user-sessions on that? /me checks14:39
pittiah, we had bug 1425376 earlier due to that14:40
ubottubug 1425376 in systemd (Ubuntu) "Ubuntu Core provides no console login prompt if network is unavailable" [Undecided,Fix released] https://launchpad.net/bugs/142537614:40
pittiah, so we block network.target, which is really bad14:40
Chipacapitti: it does give me a nice red ascii throbber to look at on console though :)14:41
Chipacapitti: this is bad news for my wait4networz service, which ... um ... waits for the networz14:44
* Chipaca should trademark that14:45
Chipacapitti: but that bug says it's fixed released; am i missing something?14:49
pittiChipaca: yes, it is, I just remembered that we had such a case before14:49
pittiso we need to find out why network.target is blocked on getting online14:49
pittiapparently something orders itself after network-online.target but before network.target, and we need to LART it14:50
davmor2Chipaca: yeap but no wonder your network is down.  I mean there are always casualties in worz14:50
* Chipaca deploys networz on davmor214:50
pittiah, could be /etc/init.d/networking14:51
* davmor2 plays c6 and sinks Chipaca's battle ship14:52
* Chipaca sneaks a spy into davmor2's capital and sets off a nuke14:52
Chipacapitti: fwiw ifup-wait-all-auto bailed as expected14:53
davmor2Chipaca: Thanks Wolverhampton really need a facelift14:53
Chipacawho says wars don't settle arguments14:54
ogra_Chipaca, that is because you dont use ifup-wait-all-auto-do-no-bail14:54
Chipacaogra_: --pretty-please14:55
davmor2No no worz alway settle arguments the issue is in war no one remembers the argument that triggered it so they keep resetting the argument ;)14:55
ogra_:)14:55
pittiChipaca: btw, in case it's any easier, you can run stuff from /etc/network/if-up.d/, which are called when (any) interface gets connected14:56
pittiChipaca: if you have a journalctl from that boot with the stalled getty, I'd be interested14:57
pittiChipaca: (also, stalled -- talking to other folks)14:57
Chipacapitti: how can i get journalctl from a stalled boot?14:57
Chipacagiven no network & no getty14:57
pittiChipaca: you could boot with systemd.debug-shell, and ctrl+alt+f914:58
Chipacathat was it14:58
Chipacayep14:58
pittiChipaca: or disable your new unit, and just let the standard stuff time out after 2 mins14:58
Chipacapitti: i don't know how do disable my new unit :)14:58
pittiChipaca: or just plug in ethernet after 2 mins :-) I'm merely interested what's (not) starting until the network comes up14:58
pittiChipaca: remove the symlink14:58
Chipacapitti: with no network and no getty14:59
pittiah14:59
Chipaca:)14:59
pittiwell, debug shell it is then, I figure :)14:59
pittiChipaca: but it does sound like bug 1425376 is back?14:59
ubottubug 1425376 in systemd (Ubuntu) "Ubuntu Core provides no console login prompt if network is unavailable" [Undecided,Fix released] https://launchpad.net/bugs/142537614:59
Chipacapitti: if it ever truly went away, yes15:00
Chipacai've seen this spinner before, didn't realise it was a bug15:00
kgunnjdstrand: so here's my "confined" attempt15:02
Chipacapitti: http://paste.ubuntu.com/11954006/15:02
kgunnhttps://code.launchpad.net/~kgunn72/mir/snappy-packaging-with-secprofile/+merge/26611115:02
kgunnjdstrand: so dunno if that's for you or tyler feel free to change15:02
kgunnalso do you want snaps built ?15:02
jdstrandkgunn: I don't need snaps built15:03
Chipacawhy are we running cloud init on *every* boot? isn't it a firstboot thing?15:03
pittiChipaca: oh, cloud-init15:03
Chipacasergiusens: do you know^?15:03
pittiChipaca: right, cloud-init is indeed blocking gettys, and it takes effing long15:03
kgunnjdstrand: ok, to test you can follow the "snappy gui anyone" blog15:03
Chipacapitti: cloud init depends on network-online afaik15:03
kgunnthe one step not to forget is the "export LC_ALL=C.UTF-8" ;)15:04
jdstrandkgunn: ok. I probably won't get to this immediately, but will soon15:04
pittiChipaca: right, and blocks user sessions15:04
jdstrandtyhicks: there is already a card for this. I'll assign it to me since I looked at the others15:04
Chipacayes, requires: network-online15:04
kgunnjdstrand: no worries, i just didn't want to drop our responsibility of following up :)15:04
pittiChipaca: so if there's no network, cloud-init will block15:04
Chipacalurvely15:04
tyhicksogra_: are you saying that we use stagefright on our phones?15:04
jdstrandtyhicks: see #phablet15:05
ogra_tyhicks, seems we dont use it but there are ~30 .so files in the android container under /system/lib15:05
pittiChipaca: OOI, what do you use cloud-init for?15:06
ogra_accordin to jhodapp they are not used by anything though15:06
pittiChipaca: with the r/o file system it can't actually do much, can it?15:06
tyhicksogra_: thanks15:06
Chipacapitti: I don't know what we use it for, exactly :-)15:06
Chipacapitti: i'm hoping sergiusens knows15:06
sergiusensChipaca: cloud-init runs on every boot15:08
ogra_yeah :/15:08
sergiusensChipaca: pitti that is the way of cloud-init, I was told it should be this way; maybe smoser or utlemming can expand15:08
tyhicksjdstrand: ack - thanks for taking the review15:08
sergiusenscloud-init does not run through the whole thing on every boot though15:08
sergiusensit has run-once's15:08
pittiright, but it blocks the boot on network-online.target, that's the main problem15:09
pittii. e. if you aren't online, it stalls the boot15:09
sergiusenspitti: Chipaca wrt what we use it for, it's used for the cloud and btw https://trello.com/c/W5WiZQM7/117-core-config-for-cloud-init15:10
Chipacasergiusens: any ideas as to where to put http://pastebin.ubuntu.com/11954094/ so we can ship it in the snappy package easily?15:26
kgunnChipaca: hey there, i've recently tried to confine the mir snap, i wanted to grab olli's qml app and run on top...see if i get any sec issues compared to my qt clock ref15:35
kgunnwhere would i find that snap ?15:35
Chipacakgunn: i think ted has a snap built with the qml snapcraft plugin15:36
Chipacakgunn: otherwise chinstrap.canonical.com/~ories/public_html/digital_sign_deb2snap_tree.tar.bz2 is ollie's (old) thing15:37
Chipacakgunn: but you probably meant the qml snapcraft route15:37
kgunnChipaca: yeah, preferably latest/greatest15:37
Chipacakgunn: um, s.public_html/..15:37
Chipacated might not be here though15:38
Chipaca1 sec15:38
Chipacakgunn: this is snapcraft with the qml plugin (not merged yet): https://code.launchpad.net/~ted/snapcraft/qml15:38
Chipacakgunn: this is a snapcract project that uses it: https://code.launchpad.net/~ted/+junk/photoviewer15:39
kgunnta15:39
Chipacakgunn: um. there's also the snapcraft ppa15:42
Chipacakgunn: because without a patched libxkbcommon some things will fail15:42
kgunnah-ha15:42
Chipacakgunn: if you're in wily, you already have the patch15:43
Chipacakgunn: which we successfully upstreamed, btw :) https://github.com/xkbcommon/libxkbcommon/pull/2515:44
Chipacawhere's golang-uboot-go-dev supposed to be at?15:46
Chipacasergiusens: ogra_: any idea? ^15:47
ogra_never heard of it15:47
Chipacaogra_: it's mvo's uboot-go, packaged15:47
Chipacait's a build dependency15:47
ogra_ah15:47
Chipacabut it doesn't exist15:47
ogra_well, he didnt want to include it anyway15:47
ogra_the binary is like 2MB or so15:48
ogra_so dont bother for now15:48
ogra_he can handle it when coming back15:48
Chipacaogra_: but i can't dpkg-buildpackage without it :-.15:48
ogra_hmm15:48
ogra_why would he include uboot-go after telling me it is to big for inclusion15:49
Chipacaogra_: i'm not sure what binary you mean, btw15:49
ogra_the uboot-go binary15:50
Chipacaogra_: we need it because bootloader_uboot uses uboot-go/uenv15:50
ogra_no, it doesnt15:50
Chipacayes it does :)15:50
ogra_it uses fw_setenv/fw_printenv15:50
ogra_mvo explicitly kept uboot-go out15:50
ogra_at least he told me so15:50
Chipacawell ... it's there on trunk15:51
ogra_hmm15:51
* Chipaca does a bzr pull just in case15:51
ogra_i only ever worked with the fw_* tools15:52
Chipacathere's no fw_ in snappy15:52
ogra_its seeded15:52
ogra_uboot-tools or some such15:52
Chipacaogra_: this uboot-go is the thing that mvo wrote that parses uenv.txt15:52
Chipacaogra_: and writes it out without causing reallocations15:53
ogra_ogra@anubis:~/datengrab/rpi/uboot/bbb/snappy/snappy-systems$ dpkg -S $(which fw_printenv)15:53
ogra_u-boot-tools: /usr/bin/fw_printenv15:53
Chipacaogra_: sure, but nowhere in snappy do we call out to fw_15:53
ogra_uboot-go is plain go to eventually replace the fw_ tools15:53
ogra_but today we definitely use fw_*15:53
Chipacano we don't -- not in trunk15:53
ogra_well, thats all i know15:54
Chipacanot from snappy15:54
Chipaca:-(15:54
ogra_http://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk/revision/118315:54
ogra_thats the only code i know ... beyond that mvo threw some revisions of a uboot-go binarry over the fence to me to test it for him ... but with the comment that this wont be used yet because it is to big15:55
ogra_(and afaik uboot-go doesnt use the config from that above merge at all)15:56
ogra_probably longsleep remembers more15:57
sergiusensChipaca: ogra_ https://launchpad.net/~snappy-dev/+archive/ubuntu/image/+packages?field.name_filter=uboot&field.status_filter=published&field.series_filter=15:58
ogra_ah, look15:58
sergiusensogra_: as a separate binary maybe, but it is used within snappy itself15:58
ogra_well, he told me it wouldnt be used15:58
sergiusensogra_: in summary, mvo was lazy to dput to the archive or maybe it's stuck in new15:59
ogra_(i actually thought he exec()s fw_*)15:59
sergiusensogra_: nope, he uses the lib, which is fine, doesn't make for a bigger binary15:59
ogra_yeah15:59
sergiusensogra_: btw, what is your g+ exit strategy?15:59
ogra_i have none yet16:00
ogra_lets see how it changes16:00
* ogra_ will react on the go ... they dont publish actual plans, do they ? 16:00
ogra_(apart from ... "we'll split everything out")16:00
longsleepogra_: what would i have to remember?16:03
longsleepogra_: reading backlog now16:03
Chipacaand now tests under dpkg-buildpackage fail in very weird ways16:03
Chipacasiiigh16:03
ogra_longsleep, seems all solved ... (what was up with uboot-go)16:03
longsleepogra_: all right16:03
longsleepogra_: so whats the result of your discussion, fw_* is used or the go tool?16:08
* longsleep has used both16:09
ogra_seems snappy internally doesnt use fw_*16:09
longsleepyeah that was what i had remember from last week as well - i think the fw_* tools were just for us to test stuff, but snappy internally was using the go library?16:10
longsleepseems that is the conclusion you reached as well?16:10
ogra_yeah, thats apparently the bit i missed16:11
longsleepwell i did not check the go code what it actually does16:11
ogra_itr is the conclusion Chipaca reached by reading the code :)16:11
longsleepah great - so the fw_* tools could go away in favor of the uboot-go commandline tool eventually16:12
Chipacalongsleep: i think they're still used to build the image though16:12
Chipacathat is, used from livecd or whatever it's called16:12
longsleepoh ok16:12
Chipacawhich might be where the confusion comes from16:12
longsleepwhat does the livecd builder do with it?16:12
Chipacasnappy uses a go lib, because it's more careful about some things that cause corruption16:12
Chipacabut livecd-rootfs uses the fw_ tools still, presumably because there's no benefit to using a (rather massive) binary at that point16:13
Chipacalongsleep: um. Dark magic, if you ask me. :-)16:13
ogra_no, nothing uses it16:13
ogra_we could unseed it16:13
longsleep+1 - what could it be used for16:14
ogra_we use mkenvimage or what it is called during oem snap creation from the u-boot upstream tree16:14
ogra_and then dont touch the env file anymore16:14
longsleepright thats what i do when building the oem snap as well16:15
ogra_ogra@anubis:~/datengrab/rpi/uboot/bbb/snappy/snappy-systems$ apt-cache show  u-boot-tools|grep ^Installed16:15
ogra_Installed-Size: 20316:15
ogra_its not like it takes any space though16:15
longsleepfw_* writes or reads env files, so why that would be required doring rootfs build i cannot see16:15
longsleepogra_: right16:15
longsleepogra_: problem is that people might use the tools and eventually corrupt their env file (remember the 4 vs 5 byte header?)16:16
ogra_otoh people might use them to debug stuff without trashing the file :)16:16
longsleepogra_: i mean the scary configuration file the fw_ tools needs is reason enough to get rid of them :)16:16
=== debian is now known as Guest79970
* ogra_ doesnt see an urgent reason to drop the tools16:17
Chipacasergiusens: poke (again) :)16:17
longsleepyeah they do not hurt16:17
ogra_they should be dropped once we do a general cleanup though ... one where every byte counts :)16:18
ogra_for the moment i'd leave them there16:18
Chipacapitti: in snappy we're using dh_systemd_enable; how do i add something to wants using that?16:41
Chipacapitti: never mind, thank you :)16:41
Chipacai should take a break16:41
RlyehHi17:20
RlyehGuys, where is "ubuntu-core" config file? I just can't find config file to change!17:20
RlyehSince "ubuntu-core" isn't a snap, ther is no any 'package.yaml '17:21
beunoRlyeh, what are you trying to change?17:21
RlyehTimezone :(17:22
beunoRlyeh, you change it through the command line17:22
ogra_you should be able to change that via the snappy config command17:22
Rlyeh"snappy config ubuntu-core" ? It just return vealues17:23
RlyehHow can I do that?17:24
ogra_bug 1472788 has some hints irc17:26
ubottubug 1472788 in Snappy "snappy config does not work from stdin" [Undecided,New] https://launchpad.net/bugs/147278817:26
RlyehThis means it's not possible to change "ubuntu-core" config file?17:28
beunoRlyeh, it's a read-only files system  :)17:28
beunoit takes config via a command line17:28
RlyehI knew that, but didn't thought "ubuntu-core" is read-only too!17:29
RlyehSo, I can't change the timezone? :(17:30
ogra_Rlyeh, did you read the bug ?17:30
ogra_it has an example how to change the timezone17:31
RlyehNo, in time, i'm using xchat on my BBB using debian, It's too slow to open a browser, but I'll check it on my PC17:32
RlyehThank you all :)17:32
longsleepWhat is wrong when my snappy just says 'Invalid package on system' ?17:34
longsleepa colleague of mine just has that problem17:35
ogra_good question17:35
ogra_Rlyeh, snappy config ubuntu-core - <(echo -e 'config:\n ubuntu-core:\n timezone: Europe/Berlin\n')17:35
ogra_Rlyeh, that sets it to berlin for me17:35
longsleepi cant even 'snappy list'17:35
ogra_wow17:35
longsleepHe was even using a pre built image Run vagrant init http://cloud-images.ubuntu.com/snappy/15.04/core/stable/current/core-stable-amd64-vagrant.box17:36
RlyehThank you ogra, very much :)17:37
ogra_longsleep, broken clock or something ?17:40
* ogra_ has seen weird behavior when the clock was massively off17:40
longsleepno that does not seem to be it17:40
longsleepi can reproduce17:40
longsleephold on17:40
longsleepmhm or not :/17:41
longsleepsomething is strange there17:42
longsleep(amd64)root@ubuntu-core-stable-3:~# date17:42
longsleep-su: /bin/date: Input/output error17:42
longsleepwtf?17:42
ogra_disk screwed up ?17:43
ogra_(dmesg ? )17:43
longsleepmhm he deleted and reinstalling already17:43
longsleeplets see if he breaks it again17:44
longsleepmhm looks like it works now - disk must have been broken17:48
elopioI'm back.19:55
elopiomterry: are you happy with this one? https://code.launchpad.net/~elopio/snapcraft/fix1476452-python_log/+merge/26535419:55
mterryelopio, ah nice, missed your comment19:57
mterryelopio, I'm in the middle of something now but will re-review19:57
elopiomterry: ok, thanks.19:57
=== blr_ is now known as blr
mterryelopio, looking at your branch -- now some things are bold that weren't before20:45
mterryelopio, look at the diff in LP and you can see some things were just print() lines before20:46
mterryelopio, specifically when we ran a subcommand, it would not be bold20:46
mterryelopio, and a couple tiny other places20:46
mterryelopio, what's the cleanest way to distinguish there?  Use another logger command than info?20:46
=== nyx_ is now known as moonwalk

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