/srv/irclogs.ubuntu.com/2015/06/19/#snappy.txt

dholbachgood morning06:42
fgimenezgood morning07:06
elopiohey fgimenez: I think I've tried it all to get this working: https://code.launchpad.net/~elopio/snappy/go-tests5/+merge/26241807:14
elopiono luck.07:14
fgimenezelopio, hey still around? np, i'll take a look07:14
fgimenezelopio, the first time i tried i was getting http://paste.ubuntu.com/11739031/ did you get something like that?07:22
fgimenezelopio, i'll merge your changes and we can work from there07:31
elopiofgimenez: yes, I can't sleep when I get stuck.07:38
elopioand yes, that's what I get when I try to sbuild.07:38
fgimenezelopio, nw, i'll give it another try, go and get some sleep! :)07:56
=== mvo_ is now known as mvo
JamesTaitGood morning all; happy Friday, and happy Sauntering Day! 😃08:34
* Chipaca saunters off to get coffee08:42
elopiofgimenez: yes, I'm going to sleep now.08:57
elopioI got adt-run working on my beagle. The tests don't pass, but they run.08:57
fgimenezelopio, awesome!! thx a lot, we'll talk later09:03
* Chipaca now in wily \o/09:30
ogra_crazy09:30
mvoChipaca: yay!09:33
mvoChipaca: its much more fun this way, isn't it :-D09:33
Chipacawell, awesome changed its configuration in incompatible ways (new lua, i guess), so that was fun09:36
Chipacabut at least it wasn't xmonad :)09:36
Chipacaogra_: not at all crazy; if i didn't do this, how could i be condescending to people running old software?09:39
Chipacain bad faith, that's how09:39
ogra_lol09:39
zygahmm09:40
zygaso how does snappy work09:40
zygahow do you build the os snap09:40
zygais it based on debootstrap09:40
zygafollowed by rm -rf /var/lib/dpkg09:40
zygaor is it something entirely different09:40
ogra_live-build builds it09:41
zygaI'm trying to understand if contributions to ubuntu archive have an impact on spappy09:41
ogra_based on config and extra scripts that live in livecd-rootfs09:41
zygaahh09:41
zygaoffspring lives forever, it seems ;-)09:41
zygais that stable or constantly evolving?09:42
ogra_http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/09:42
zygalike the scripts that do magic after the base packages are installed09:42
ogra_no, luckily it isnt offspring or anyhow related09:42
ogra_sadly though to make parts of it offspring compatible we had to re-write the whole infra around it in python ... since then it got really hard to maintain09:42
* ogra_ is still grumpy about that after years ... makes life so much harder ... 09:43
zygaogra_: is there a high-level description of what goes into the os snap?09:43
* ogra_ shakes his fist at cody-sommerville in absence09:43
zygaogra_: (what was it written in originally?)09:43
zyga;D09:43
* zyga still has that memory of cody 09:44
zygadriking only after you are 21 and all that ;-)09:44
zygafun days09:44
ogra_yeah, he was nagfging about the re-write for two years or so ... then the rewrite itself took about 6 months ... and just as it was done he left !09:44
zygaogra_: I'm trying to picture this against debootstrap09:44
ogra_live-build uses debootstrap09:45
zygaogra_: to understand where my assumptions are wrong, etc,09:45
ogra_for the initial chroot ...09:45
zygaogra_: is there any input to the whole process other then the packages?09:45
ogra_and then installs/removes and modifys packages as needed09:45
zyga"modifies"?09:45
ogra_yes, there are chroot hooks that get run09:45
ogra_sure09:46
ogra_(it doesnt modify anything for the deb based images indeed, only for stuff that doesnt use dpkg at the enduser)09:46
zygaogra_: thanks09:48
zygaogra_: so the os snap is a preinstalled chroot09:48
zygaogra_: with some cherries on top09:48
Chipacazyga: also keep in mind the split between os, kernel and device snap09:50
Chipacaso not the whole chroot09:50
ogra_zyga, apt-get source livecd-rootfs ... live-build/auto/build and live-build/auto/config have the generic build parts ... live-build/ubuntu-core/hooks has the extra scripts09:51
mvofor some value of "generic"09:51
mvo(SCNR)09:51
* Chipaca always thinks of french trains when he reads SCNR09:52
ogra_zyga, and built in a special way (i think we use --buildd-minimal or some such for deboostrap, the apt policy doesnt install recommends and so on)09:53
zygaChipaca: s/device/gadget/ right09:55
Chipacazyga: yes indeed09:55
zygaright09:56
* ogra_ wonders if bug 1466672 isnt actually a feature :)09:58
ubottubug 1466672 in Snappy "webdm failed to start / Failed to listen 224.0.0.251:5353" [Undecided,New] https://launchpad.net/bugs/146667209:58
ogra_though i guess it should print some meaningful error message in the log09:59
ogra_"cant run network service with no network attached" or some such09:59
=== devil is now known as Guest90150
zygaogra_: hmm, why should webm not start?10:03
ogra_zyga, it runs an avahi daemon ... what should that attach to with no network up ?10:03
zygaogra_: nothing, but then the avahi daemon will attach to each network as it shows up10:21
zygaogra_: one of the bad things about many linux gizmos is that they misbehave if you boot without network and plug network later10:22
ogra_yep10:34
mvoChipaca: quick brainstorm - what additional meta/meta.yaml do we need that is not part of the package.yaml. I have "origin" (mvo, sideloaded) on my list right now, what else will we want to store here?11:41
=== dholbach_ is now known as dholbach
ollisnap masters, do we have some documentation how to "debug" in snappy... tools but also "strategies", i.e. how to check whether it's an app vs system issue etc11:45
mvoolli: unfortunately not, its complicated by the fact that we do not have snaps for many of the useful tools (like strace) :/ - do you have a specific example where you need debugging help? maybe that could be the start of such a doc :)11:47
ollimvo, mterry & kgunn were holding my hand when creating a qmlscene snap11:48
olligot issues loading a lib at runtime11:48
olliwhich is there, suppose the preloader doesn't catch it11:48
mvoolli: anything in the usual places (dmesg, syslog) - might be somethin with appamror/seccomp11:49
ollialrighty11:49
ollimvo, are there any existing pointers / docs how to deal with confinement issues, i.e. I see a apparmor denial, what's next?11:52
mvoolli: could you pastebinit11:59
=== erkules_ is now known as erkules
mvoolli: maybe jdstrand has pointeres to the security wiki11:59
ogra_olli, syslog is your best bet12:00
olliogra_, I see the issue, just don't know what to do with it ;)12:00
ollimvo,  http://paste.ubuntu.com/11739849/12:01
ogra_olli, you could indee dship things like strace and such in a special version of your snap ... i.e. $app-debug.snap ... so that you could have these tools apply to the startup wrappers12:01
ollithat's the runtime err12:01
olliand that's dmesg | tail -n 10 http://paste.ubuntu.com/11739855/12:02
ogra_olli, well, your app should ship its own /usr/share/applications ... or wait until that setup can be provided by some framework12:04
ogra_(wrt the DENIED messages there)12:04
olliogra_, don't even know what it's trying to access there12:04
olliwhat's the best strategy to figure out what it's trying to access so I can bundle that stuff?12:04
ogra_well, you likely want to look at the code of your app then :)12:05
ogra_it might just want to read the .desktop file12:05
ogra_(which usually live in that dir)12:05
olliyou are suggesting I read all of Qt?12:07
Chipacamvo: i'm afraid i didn't pay too much attention, but (or because) sergio did :)12:07
ogra_all of qmlscene code i guess12:07
sergiusensChipaca: what did I do again?12:08
Chipacashould kvm be bringing up an eth0?12:08
Chipacasergiusens: what additional meta/meta.yaml do we need that is not part of the package.yaml. I have "origin" (mvo, sideloaded) on my list right now, what else will we want to store here?12:08
mvoChipaca: I had this problem with latest wily too, no eth012:08
Chipacasergiusens: ^^ that was mvo asking, earlier today12:08
mvoChipaca: rollback to a previous version worked12:08
sergiusensChipaca: part of meta/package.yaml?12:08
mvoChipaca, sergiusens: maybe its not relevant anymore my question, I'm drafting the FHS12:09
Chipacasergiusens: i think he's asking about _$version12:09
* Chipaca translates12:09
sergiusensmvo: if Chipaca's idea flies wrt dynamic creation f manifest.yaml from store data we need...12:09
sergiusensChipaca: mvo video and screenshot url (and maybe even the shots), release is rather important (to deal with upgrades), icon downloaded, binary_filesize (which is the download size), developer name, company name, website, price, publish date, download sha12:11
sergiusensmvo: Chipaca and reviews would be one of those on demand queries12:11
sergiusensdownload sha is of little sense if we explode the package and expose hashes.yaml12:12
sergiusensoh, and changelog12:12
sergiusensand one of the bigger things coming our way, the translations entry12:13
mvosergiusens: indeed12:13
* sergiusens feels he just made too much words to just say everything12:13
sergiusensmvo: Chipaca I think we will be putting this in _$versions initially and then move over to the dynamically created manifest.yaml12:14
sergiusenswe can have a hangout to go over it and get the big picture12:15
sergiusensI just need to cut off 30' after standup today though and then I'll be back by your bed/beer o clock ;-)12:15
Chipacawho's working on translations? i'd like to add my 2¢ to that work12:16
sergiusensChipaca: the store already has that option12:16
Chipacaon the client12:16
Chipacai don't mind if the store loads all translations in memory12:17
sergiusensChipaca: and then you get a translations entry in the json12:17
Chipacabecause it's the store :)12:17
sergiusensChipaca: no one is yet12:17
sergiusensChipaca: there's only mvo's branches which I'll look at again now12:17
seb128sergiusens, mvo, hey, maybe you know, but how/when is the "cdimage build" to "channel image" conversion done? is that a cron job? or does it trigger when need cdimage build are done?12:17
sergiusensseb128: all of Ubuntu's infra is poll based :)12:17
mvoseb128: system-image.u.c is doing that, its a cron job that runs every 5min12:17
sergiusensthat was a snarky smiley12:18
mvoseb128: but it can run for a long time12:18
mvoseb128: so the 5min is not accurate12:18
mvoChipaca: what specifically do you have in mind? other than adding gettext ? how to requested the languages from the store?12:18
seb128mvo, it's like the publisher, 5 minutes if there are not previous job overunning right?12:18
seb128sergiusens, mvo, thanks12:18
ogra_seb128, see the crontab on nusakan12:18
sergiusensseb128: btw, I still get reboot loops with amd64 and i386 just stalls during boot12:18
ogra_seb128, last line ...12:19
sergiusensseb128: and the personal branch made it to trunk btw12:19
seb128ogra_, thanks12:19
ogra_(well, the crontab of the cdimage user that is)12:19
seb128sergiusens, \o/ for personal to trunk12:19
Chipacamvo: translations of snappy itself i'm less worried about; gettext already uses one-file-per-language and is (or was when i looked at it) fairly smart wrt not using more memory than it had to to hold unused translations12:19
seb128sergiusens, amd64 boots since yesterday for me, it just loops on lightdm12:19
seb128sergiusens, oh, you need to pick the "ubuntu" entry in grub12:19
Chipacamvo: my fear is if we dump app-side translations into a single json or yaml or what have you, we'll load it all in memory all the time always12:20
seb128not the snappy system-a one12:20
seb128sergiusens, unsure why there are those different ones12:20
seb128sergiusens, I hope that with this morning fixes and the new image build we get lightdm to work12:20
* ogra_ glares at jonos last blog post ...12:20
ogra_... insane12:20
ogra_(he suggests we rebase ubuntu on android)12:21
sergiusensseb128: we are working on getting rid of update-grub fwiw and have very fine tuned grub.cfg's12:21
Chipacaogra_: oh no! the person we were taking technical leadership from has lost their mind! what can we do?!?12:21
Chipacaogra_: oh, wait12:21
ogra_haha12:21
ogra_well, we'd finally get all the great android security !12:21
ogra_and their battery life too ...12:22
Chipacaand their juicy, juicy init system12:22
ogra_oh, yeah !12:22
sergiusensChipaca: I prefer manifest_en-ES.yaml or something like that12:22
sergiusensor dir separated12:22
ogra_bright the future would be12:22
mvoChipaca: yeah, good point12:22
ogra_:)12:22
sergiusenswhatever makes sense12:22
* sergiusens wants the init system12:22
ogra_uuuh12:23
sergiusensand the on disk initrd12:23
ogra_thats the only one thing i like in android12:23
ogra_(though there is prior art to that in the terminal server area)12:23
seb128sergiusens, so for your reboot loop, what grub item do you select?12:23
sergiusensseb128: I just let the first one to go and go and go, didn't do any manual selection12:23
seb128sergiusens, btw I keep hitting the loop partition error, unsure why, I need to reboot and retry, it works like 1 every 10 tries, same on my 2 machines :-/12:24
seb128sergiusens, k, you need to pick "ubuntu" in the list, that's not the top one12:24
sergiusensseb128: did you try the losetup -d command?12:24
seb128yes12:25
seb128but I had deleted the .img when I tried12:25
seb128and losetup -d didn't seem to work12:25
seb128loop0 was still listing the deleted image12:25
ogra_kpartx ;)12:25
ogra_and dmsetup ...12:26
seb128and users should have to do that12:26
ogra_it defaults to a device-manager setup iirc12:26
seb128the tools should do it for them if that's needed12:26
sergiusensogra_: yeah dmsetup clear /dev/mapper/loop0p* ; kpartx -ds /dev/loop0; losetup -d /dev/loop012:26
ogra_right12:26
sergiusensseb128: the dmsetup and kpartx parts are done12:26
ogra_seb128, yeah, it is a bug that the tool does stop before being able to cleanup12:27
sergiusensseb128: the losetup isn't, which is why I asked if it helped12:27
* ogra_ hugs the trap function in shell 12:27
sergiusensogra_: it is being run, if it was mapped, the unmapping always runs12:27
sergiusensseb128 try trunk12:27
ogra_well, it didnt for me when we had the issue recently12:28
seb128sergiusens, k, going to try in a bit12:28
seb128sergiusens, but no, losetup didn't help when I tried12:28
ogra_i had to use dmsetup each time after the error12:28
seb128but typically I used the tools, hit the error, rm-ed the .img12:28
sergiusensogra_: hmm, sometimes dmsetup doesn't work for me either12:28
seb128in which point loop0 is blocked on the deleted img and losetup seems to do nothing12:28
seb128ogra_, the same invalid partition count loop error?12:29
sergiusensogra_: and I indeed need to reboot and there is no way out of it that I know of12:29
seb128k, so I'm not alone in the situation ;-)12:29
ogra_for me dmsetup always worked after making sure i loosely unmounted12:29
seb128loosely unmounted what?12:29
seb128how?12:29
ogra_umount -l12:30
ogra_(the image)12:30
seb128k, I guess my error was to delete the buggy img12:30
seb128to run the command again12:30
seb128then reboot is needed12:30
ogra_ah, yeah, but umount -l should still work, ebven with the image gone12:30
seb128I'm going to try next time12:30
seb128but why are we hitting those issues in the first place?12:31
seb128was is flacky?12:31
ogra_(it will just alter mtab and /proc/mounts ... )12:31
Chipacaogra_: you know how the latest wily things aren't bringing up network in kvm?12:52
Chipacaogra_: it's because eth0 is now ens312:52
ogra_Chipaca, nope, havent heard of that12:52
ogra_ah, blame pitti !12:52
Chipacayep yep12:52
Chipacai already do12:52
Chipacaalways12:52
Chipacaogra_: i'm not sure why i pinged you, but i thought maybe you'd have ideas as to how to fix it :)12:53
Chipacathe problem is, of course, that we ship an eth0 interfaces file12:53
Chipacawhen it should be ... something else, i presume12:53
Chipacamvo: the good news is, there's an easy workaround to get your kvm wily image working again wrt network12:53
Chipacaelopio: ^ et vous12:54
ogra_Chipaca, well, if i knew where that file comes from ...12:54
Chipacasergiusens: /etc/network/interfaces.d/eth0 is written by u-d-f12:55
Chipacaogra_: ^ i mean you12:55
Chipacano way for u-d-f to know the name of the device though12:55
sergiusensChipaca: huh?12:58
sergiusensChipaca: are you not reading code used by the ubuntu-emulator by any chance?12:58
Chipacasergiusens: goget-ubuntu-touch/diskimage/customization.go12:58
sergiusensChipaca: yeah, that's ubuntu-emulator12:59
Chipacaah12:59
Chipacasorry then :)12:59
Chipacawhere does that eth0 file come from then?12:59
sergiusensChipaca: on a kvm image?13:00
Chipacasergiusens: yes13:00
ogra_i would suspect something like ubuntu-core-config13:00
ogra_or a systemd unit thats shipped somewhere13:00
sergiusensogra_: Chipaca doesn't look lke ucc http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/ubuntu-core-config/wily/files/head:/etc/13:01
sergiusensChipaca: ogra_ dpkg -S says no one owns it13:02
mvosergiusens, Chipaca: so gdoc looks mostly sane? I'm a bit torn on /data for system data vs /home/system/data13:02
ogra_live-build/ubuntu-core/hooks/04-configure_network.chroot13:02
ogra_there is is i think13:03
ogra_http://paste.ubuntu.com/11740076/13:03
sergiusensmvo: I don't like either; it seems /writable/data works better and rids us of a bind mount13:03
* sergiusens wants to just move all refs to /writable13:04
mvosergiusens: hm, we would still need the bind mount, unless we move /home/* to /writable/user-data/* (which is probably a good idea in itself)13:05
ogra_Chipaca, hmm, i fear we need to move that to the boot somehow to detect the actual interface names now13:06
* Chipaca wonders why /writable isn't /var13:06
sergiusensmvo: I don't mind /writable/home either ;-)13:06
sergiusensChipaca: because /var has a lot of read only stuff :-P13:06
sergiusensmaybe /therealvar works bettwe13:07
sergiusens*better even13:07
Chipacasergiusens: it doesn't have that much read only stuff that we don't want to get rid of13:07
ogra_Chipaca, hyterical raisins ... on android we have /userdata and needed to use that due to not being able to change partitioning on some devices13:08
Chipacait's 14M, of which 12M is dpkg/info13:08
mvoChipaca: that can be killed, we could do that right now via livecd-rootfs13:09
ogra_(and we need to share the writable bits with the android container since many bits need to be accessibe by both OSes)13:09
Chipacaanyway, in the sense that /writable is /var without the things that shouldn't be in /var anyway, we wouldn't be the first unix-like people to put homes in var anyway13:09
ogra_s/neede/need/13:09
* ogra_ always has home in var on his servers13:09
ogra_since over a decade :)13:09
=== Guest90150 is now known as devil__
=== devil__ is now known as devil_
sergiusensChipaca: ogra_ fwiw, latest images left me without networking on kvm as well13:10
Chipacaogra_: i don't know if that should be seen as encouragement or a sign of trouble13:10
ogra_but that wouldnt help the HW requirements android puts upon us on personal13:10
Chipacasergiusens: yes, because of the above13:10
Chipacasergiusens: you do have networking, you just don't know it :-p13:10
ogra_or rather the setup reqs. not the HW reqs13:10
ogra_we cant change paths of binary blobs13:10
Chipacasudo sed -i -e "s/eth0/$(ls /sys/class/net/ | grep -vx lo | head -n1)/g" /etc/network/interfaces.d/eth013:10
Chipacasergiusens: ^13:10
Chipacasergiusens: and reboot13:10
sergiusensmvo: Chipaca let's do that now (remove /var/lib/dpkg) before more people exploit it and then becomes a req to have13:11
Chipacasergiusens: or restart networking, but reboot is quicker without ocmpletion :-p13:11
Chipacasergiusens: +1.3313:11
ogra_sergiusens, yes, we hardcode the interface name in livecd-rootfs (pretty bad idea)13:11
* Chipaca is going to run out of .33's if people carry on having good ideas13:11
sergiusensChipaca: oh, the iface name change reached us13:11
ogra_cant we remove dpkg altogether ?13:11
ogra_even the binary13:12
Chipacathe whole thing, afaik13:12
sergiusensogra_: yes we CAN!13:12
Chipacaalthough elopio will be sad13:12
ogra_JUST DOIT !13:12
Chipacawe can even remove dpkg-deb13:12
ogra_JUST DOIT !13:12
ogra_:)13:12
Chipacafuck yeah! break things on fridays!13:12
sergiusensChipaca: right,  but the reason we can't remove it on the phone is beacuase QA became entrenched with it13:12
Chipacaand it isn't even beer o'clock13:12
ogra_on edge ...13:12
Chipacaremove it yesterday, then13:13
ogra_living on the edge you can fall at times :)13:13
* Chipaca puts on a bit of aerosmith13:13
sergiusensthere https://www.youtube.com/watch?v=7nqcL0mjMjw13:13
* ogra_ headbangs 13:13
Chipacapitti: you around? wondering if you have bright ideas wrt figuring out the name of the first network device now that it's not static13:15
Chipacapitti: currently we have a (now non-functional) static file that brought up eth0 with dhcp13:15
mvoChipaca: dmesg|grep eth13:16
Chipacamvo: see above for sed that works :)13:16
mvoChipaca: oh, sorry13:16
pittiChipaca: what is "static" in this context?13:17
Chipacamvo: asking because we can't be the first ones, so maybe there's already a known-good soltion13:17
Chipacamvo: otherwise we can cook :)13:17
* mvo nods13:17
ogra_mvo, livecd-rootfs http://paste.ubuntu.com/11740076/ ...13:17
ogra_but interface names are dynamic now ... on boot ...13:17
Chipacapitti: livecd-rootfs writes /etc/network/interfaces.d/eth0 with allow-hotplug eth0\niface eth0 inet dhcp13:17
Chipacapitti: see ogra's pastebin for the code that writes it out13:18
mvoChipaca: I think apparmor may break without dpkg, the aa-clickhook was iirc calling dpkg for something13:18
ogra_so we need to move the file cration somewhere into the boto process13:18
ogra_*boot13:18
ogra_after we know the name13:18
Chipacaogra_: no, no boto! jdstrand will get upset13:18
pittiChipaca: and what is "first"?13:18
ogra_haha13:18
pittiChipaca: for ethernet, pick any match in /sys/class/net/en*13:18
pittiChipaca: I guess in many cases there will be just one, but as the old persistant-net-generator just randomly picked one to become eth0, you can also just pick the asciibetically first one13:18
pittii. e. ls /sys/class/net | head -n113:18
pitti?13:18
Chipacapitti: good to know they're en*13:19
ogra_pitti, is that generator gone ?13:19
mvojust out of curiosity, why is it erenamd in the first place?13:19
mvodmesg tells me it was eth0 before and then got renamed13:20
* ogra_ wonders if we could abuse it to create an alias name for the moment ... as quick fix)13:20
pittiChipaca: yes, and wlan is wl*13:20
Chipacamvo: i assume, because it's fake anyways, and at least this way it's consistent and you can find it in /sys/ and elsewhere, but i don't know :)13:20
Chipacai think there are three different names for the device? or something like that13:20
mvobut only one that works with ifconfig it seems13:20
seb128sergiusens, mvo, so we had a new build on https://launchpadlibrarian.net/209509553/buildlog_ubuntu_wily_amd64_ubuntu-desktop-next_BUILDING.txt.gz a bit over an hours ago13:21
pittiogra_: yes, see https://lists.ubuntu.com/archives/ubuntu-devel/2015-June/038786.html13:21
seb128I just created a personal image using udf, but that seems to have given me an outdated version13:21
seb128like ubuntu-core-config was not at 0.22 which it is in this log ^13:21
seb128is that normal?13:21
Chipacamvo: i mean, the same device is called (potentially) different things in different parts of the system13:21
ogra_pitti, "this wont affect upgrades" ... also on readonly system-image installs ? :)13:21
seb128is there a way to check if there a channel image update ongoing and what's the status?13:22
pittiChipaca: your sed will also catch wlan, wwan, vlan, and other devices -- I suppose you don't want that, or do you? (I said en* as you had eth0 before)13:22
ogra_(where the upgrade is actually replacing bits of the system instead of using dpkg)13:22
Chipacapitti: the sed was strictly just for our images, running in kvm13:22
Chipacapitti: not a general solution13:22
pittiogra_: well, upgrades in the apt sense :)13:22
ogra_pitti, right13:22
sergiusensseb128: there are logs on nusakan, but I don't recall where to find them13:22
ogra_so it will break phones and snappy13:22
pittiwe can't have maintscripts on s-i upgrades13:22
ogra_we need to take that into account i guess13:22
jdstrandmvo: fyi, click-apparmor doesn't care about anything dpkg-y per se. we have this (rather crappy) mechanism for system-image based systems to discover when click-apparmor (and apparmor and ubuntu-core-snappy-apparmor and apparmor-easyprof-ubuntu) is updated that looks at the dpkg debsums13:22
seb128ogra_, you might know (logs on nusakan)13:23
pittiogra_: how so? there we wouldn't have a writable /etc/ anyway, do we? i. e. we couldn't write the persistant rules?13:23
ogra_seb128, rootfs build ?13:23
pittior firewall rules and stuff which refer to the names?13:23
ogra_pitti, well, on phones it might not be an issue ... NM cares for the interfaces13:24
seb128ogra_, no, wondering how to know when the image from https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/wily/ubuntu-desktop-next is going to make it into the personal channel13:24
jdstrandmvo: the idea is that goes away when snappy stops using aa-clickhook, but we need to figure out another mechanism for detecting these things13:24
ogra_seb128, /srv/cdimage.ubuntu.com/log/13:24
seb128ogra_, it built over an hour ago and I just use udf to build and image but get the old content13:24
pittiogra_: right, and NM doesn't care about the name13:24
seb128ogra_, in fact I don't have ssh access to that box so nevermind, I can't look there13:24
ogra_seb128, there is no logging for system-image13:24
ogra_(at all)13:25
seb128I guess I just have to wait and retry?13:25
ogra_only for cdimage and livefs builds13:25
seb128version is at 10, I guess I need a 11...13:26
seb128sergiusens, mvo, you are sure channel images are autoupdated?13:26
sergiusensseb128: well, slangasek said he added it to the list13:26
sergiusensseb128: once it's in the list for consumption, it's automatic; only reason it failed could be due to an error13:27
seb128slangasek, hey13:27
mvoseb128: import-image is still running13:27
seb128mvo, how long does that take?13:27
seb128mvo, is there some UI where I can see the status?13:27
mvoseb128: TMPDIR=/srv/system-image.ubuntu.com/tmp /srv/system-image.ubuntu.com/bin/import-images -vvvv13:27
mvo2015-06-19 13:27:14,522 INFO Something else holds the global lock. exiting.13:27
sergiusensseb128: from http://system-image.ubuntu.com/ubuntu-personal/rolling/edge/generic_amd64/index.json it seems it was last updated today13:27
seb128sergiusens, today this morning or today an hour ago?13:27
mvoseb128: lsof -p 4196 tells me there is no log13:27
sergiusensseb128: very early Fri Jun 19 06:02:00 UTC 201513:28
seb128sergiusens, k, so likely the daily build, no the retry with the fixes from this morning13:28
sergiusensmaybe the phone guys are fooling around with s-i?13:28
seb128mvo, is that lock warning something I should be concerned about? ;-)13:28
mvoseb128: no, it means its working13:28
seb128k13:29
mvoseb128: ls -lh /srv/system-image.ubuntu.com/tmp/tmpSW4IWr/13:29
mvototal 3.2G13:29
mvo-rw-rw-r-- 1 cdimage cdimage 1.8G Jun 19 13:20 source.tar13:29
mvo-rw-rw-r-- 1 cdimage cdimage 1.4G Jun 19 13:28 target.tar13:29
* seb128 waits then13:29
mvoseb128: that might help13:29
sergiusensbig images with s-i :)13:29
seb128mvo, thanks13:29
* seb128 would like to see an image booting before eow!13:29
mvoseb128: but I share your pain, +1 for logs13:29
sergiusensand super tight xz compression levels13:29
mvoseb128: you have 2.5 more days ;)13:29
seb128mvo, lol13:30
ogra_ 4196 ?        R     28:56 /usr/bin/python /srv/system-image.ubuntu.com/bin/import-images13:31
ogra_runs since 30min13:31
ogra_(or rather "had 30min f CPU cycles)13:32
ogra_*of13:32
Chipacaf works too13:33
Chipacashort for the same thing as it was in fvwm13:34
sergiusensmvo:  golang-gettext-dev is not in the archives yet13:35
mvosergiusens: I guess some archive admin needs to get active13:36
mvosergiusens: like seb128 …13:36
sergiusensheh :-P13:36
seb128lol13:36
seb128I own you some... sure I can do that ;-)13:36
* mvo hugs seb12813:36
* seb128 hugs mvo back13:37
ogra_huggers13:37
sergiusensmvo: another reason to use http://getgb.io/ ;-)13:38
mvosergiusens: haha, indeed, it would make all the packaging irrelevant13:38
sergiusensmvo: I might try and switch webdm given it's not even a debian package :-P13:39
seb128sergiusens, mvo, NEWed, I'm going to watch for the build and NEW the binaries then13:41
sergiusensty13:41
seb128yw13:42
mvo\o/13:42
mterrymvo, golang-gettext landed in wily13:46
ogra_seb128, oh man, adding your gigantic image makes the system-image importer run forever ...13:49
ogra_(still busy ... that used to be 10-15min max ... )13:49
* ogra_ thinks we'll need separate s-i servers soon ... image build times wont be bearable anymore at some point13:51
seb128mvo, read backlog :p13:52
seb128ups13:52
seb128mterry, read backlog :p13:52
seb128ogra_, yeah, sorry about that ...13:52
mvoogra_: once we move the os into a snap it will be a different system doing the imports13:52
ogra_seb128, not your fault, our infra sucks on that level13:52
ogra_mvo, sure ... but til then every new image and arch adds up13:52
mterryseb128, thanks!  :)13:53
seb128mterry, yw ;-)13:53
seb128mterry, miiiike13:53
seb128https://launchpad.net/ubuntu/+source/golang-gettext/0~git20130221-0ubuntu113:53
ogra_mvo, and phone kind of needs more rapid turnaround time than waiting 3h for an image build13:53
seb128ftbfs13:53
seb128mvo, ^ fail to build13:53
mterryseb128, haha13:54
mterryseb128, guh those stupid tests13:54
sergiusensmterry: lol, funny how tests are always stupid when they fail :-)13:54
sergiusensespecially on a Friday!13:55
longsleepHey folks, is there a way to run my own image-server and have my images use that one?13:55
sergiusenslongsleep: yes there is13:55
mterrysergiusens, it's not that they are stupid tests, they are just *being* stupid  :)13:55
longsleepsergiusens: Ok great - then i have a project for the weekend :(13:55
longsleepwrong smily - meant :)13:56
sergiusenslongsleep: https://wiki.ubuntu.com/ImageBasedUpgrades/ServerSetup13:56
longsleepsergiusens: awesome - thanks!13:56
longsleepcurrently my images pull generic_armhf - is there a way to make it pull say odroidc_armhf ?13:58
longsleepi mean i saw that config somewhere in /etc/system.. but can it be set from the oem snap or something?13:59
sergiusenslongsleep: that's the leaf node in system image /etc/system-image/channel.ini14:09
longsleepsergiusens: Right, but how can it be changed automatically - like when building the image file?14:10
sergiusenslongsleep: that's all part of the server setup, is it not there? if not it is described one level up14:11
longsleeplongsleep: didn't see it - let me look again14:12
ogra_it will stop working once we switch to snap only upgrades14:12
ogra_(and away from s-i )14:12
ogra_no idea whats the ETA on this though14:12
elopiogood morning.14:12
longsleepogra_: right - but the base system still needs to come from some place?14:14
ogra_longsleep, from a snap package ...14:15
ogra_(in the future scenario)14:15
longsleepogra_: mhm i fail to see how this is going to work - then that snap package is not mutch different from a tar.xz14:16
ogra_it comes from a different place14:17
longsleepright now i am looking into possibilities how i can let people upgrade their ODROIDC's if i roll a new kernel without flashing14:17
ogra_right, running your own s-i server is the solution then14:17
sergiusenselopio: u-d-f should test this combination release_used_to_build release_built release_built_revision $target_device14:17
ogra_but it wont presist14:17
ogra_*persist14:17
longsleepogra_: right - i understand that - but how long would that actually be? Weeks, months?14:18
ogra_at one point all three image parts are snaps ... and u-d-f will assemble the image from the store14:18
ogra_see above: <ogra_> no idea whats the ETA on this though14:18
ogra_it is on the roadmap ... but i dont know for when14:19
ogra_(surely before april ... no idea if before october)14:19
longsleepogra_: ok :) i see what i can do then with my own system-image-server and it becomes obsolete once its obsolete - i am fine with that14:19
longsleepthe interesting question is if there will be a upgrade path from current system-image installs to store only installs14:20
elopiofgimenez: I'm joining the talky.14:21
ogra_that i cant tell14:21
* sergiusens takes a short break14:21
jdstrandolli: re docs> https://developer.ubuntu.com/en/snappy/guides/security-policy/ (has Debugging at the end), https://wiki.ubuntu.com/SecurityTeam/Specifications/SnappyConfinement#Debugging, https://developer.ubuntu.com/en/snappy/guides/frameworks/ (discusses framework-policy), https://wiki.ubuntu.com/SecurityTeam/Specifications/SnappyConfinement/DevelopingFrameworkPolicy (tips for framework authors)14:21
fgimenezelopio, ok, i'm already there14:22
ogra_seb128, the importer seems to be done now14:23
seb128ogra_, indeed, 11 on http://system-image.ubuntu.com/ubuntu-personal/rolling/edge/generic_amd64/14:23
seb128ogra_, thanks!14:23
* seb128 starts udf build14:23
ollijdstrand, thx!14:30
elopioChipaca: I won't be sad if we can build the image with the ubuntu-snappy-tests deb.14:45
Chipacaelopio: i have no idea what a deb is. you're talking nonsense.14:45
Chipacaelopio: there has never been dpkg14:46
elopioChipaca: http://bazaar.launchpad.net/~snappy-dev/snappy/snappy/view/head:/integration-tests/selftest#L5014:47
elopiothat's the ugly workaround we need to solve in a clever way.14:48
elopiosergiusens: can we pass the ~/.ssh/id_rsa.pub to the image from ubuntu-device-flash ?14:51
elopiooh, that's --developer-mode.14:52
rickspencer3jdstrand, I have a much smaller reproducer for the net_admin issue I hit14:56
rickspencer3I think it might be from reading a yaml file locally14:56
elopiofgimenez: I was just saying that maybe we need to return to hangouts for the time being.14:59
Chipacarickspencer3: i don't know if you saw, but tyhicks narrowed it down quite a lot more15:00
rickspencer3I saw that15:00
rickspencer3thanks Chipaca15:00
Chipacarickspencer3: to the point there's a kernel patch and all15:00
Chipacaah, k15:00
rickspencer3I put my smaller listing in for good measure, though15:00
Chipacarickspencer3: also, stop breaking the kernel :-p15:00
rickspencer3if by that you mean, "stop using snappy"15:01
rickspencer3no chance15:01
rickspencer3I love this stuff15:01
rickspencer3it's like developing for the phone, but on steroids15:01
Chipacaoooh, that's nice, kernel dumps on usb unplugs15:03
seb128sergiusens, mvo, k, new personal build boots to a working unity-greeter ;-)15:03
seb128with a guest session button15:04
ogra_seb128, yay15:04
seb128now I need to try out of a vm for the session because unity8 doesn't work in kvm15:04
ogra_why didnt you copy the autologin logic from touch ?15:04
seb128because we started from ubuntu-core15:05
ogra_(i mean, i know you wont use that in the final thing ... but its likely helpful during porting)15:05
seb128I should review the diff with touch now15:05
ogra_yeah, you kind of do a three way merge15:05
jdstrandrickspencer3: thanks for the extra info15:07
mvoseb128: \o/15:08
Chipacawhy does eth0 say it's eating 14W when i'm not using it15:09
* Chipaca 's seeing 40W drain on his laptop15:09
* Chipaca would recommend wily to people in colder seasons15:09
* longsleep 's laptop is currently using less power than Chipaca's eth015:09
Chipaca:'(15:10
longsleep:) sorry15:10
Chipacawell, 18W of that is my hd webcam15:10
sergiusensseb128: yay15:13
mvo_sergiusens: there will be conflicts with the noUpdate branc hand the snappy-improved-developer-mode branches - if the that could land I can help with the resolving of conflicts15:17
sergiusensmvo_: no worries15:18
Chipacasergiusens: you're leaving for 5h really?15:27
sergiusensChipaca: yes, doctor and errands15:28
Chipacasigh15:28
Chipacaalso, damn15:28
ogra_stop being sick !15:28
sergiusensChipaca: 5hr is a stretch15:28
Chipacasergiusens: i'll poke mvo, and then poke you15:28
Chipacano worries15:28
ogra_doctors earn enough without you supporting them ...15:28
sergiusensChipaca: we can meet after standup15:28
seb128is there a -v mode to "snappy"?15:31
seb128"snappy internal-run-hooks" fails on personnal15:32
mvo_seb128: on wily? that should provide the output of the failed hooks15:32
seb128"hook command /usr/lib/ubuntu-push-client/click-hook failed with exit status 1 (output: "")"15:32
seb128mvo_, ^15:32
bschaeferhello is there a way to make the snappy core system writable to test some packages and doing session stuff? (such as touch /userdata/.writeable?)15:32
seb128bschaefer, mount -o remount,rw /15:33
bschaeferseb128, cool thanks!15:33
seb128yw15:33
seb128if you want to use apt just rm /usr/local/bin/apt*15:33
seb128that's handy for local debug15:33
seb128I used that to install things on personal15:33
bschaefero cool sweet!15:34
Chipacaseb128: bschaefer: but do know that's even less supported than on touch15:37
seb128Chipaca, "supported"? it helped me to understand why lightdm doesn't start, then I threw away the image and uploaded the ubuntu-core-config fixes neded15:38
seb128Chipaca, which is just what I needed15:38
bschaeferits mainly for debuging and to figure out if its possible or not15:38
bschaeferto do what im trying :)15:38
Chipacaseb128: yes. I'm wondering how much we learned from people breaking their phones because we publicized things like this.15:38
seb128Chipaca, discussion development here is not really publicizing to users...15:39
seb128discussing*15:39
seb128Chipaca, btw, do you have any idea how to figure out why /usr/lib/ubuntu-push-client/click-hook fails on snappy personal/how to debug?15:39
seb128it returns "1"15:40
seb128but without any error/output15:40
ogra_writability is sadly essential for porting ... on phones at least ...15:41
ogra_but i agree, we should have never documented it at all15:41
seb128right15:42
seb128well, we are discussing on a dev channel15:42
seb128it's not really documenting15:42
ogra_well, mount -o remount,rw / is everywhere in phone blogs and docs15:42
seb128that command existed before ubuntu ...15:43
ogra_and it isnt hard to adapt that concept to snappy if you look close enough15:43
ogra_heh, indeed15:43
elopioChipaca: so, for when you have some time: http://paste.ubuntu.com/11740844/15:56
Chipacaelopio: in a hangout right now, but on this right after (will ping you)15:59
sergiusenselopio: try making it a multi target16:09
elopiosergiusens: I need a for-dummies explanation of that.16:09
elopiowhat should be multi target? the chroot, or the deb, or the command?16:10
mvo_mterry: is something like https://code.launchpad.net/~mvo/snappy/snappy-binary-ld-library-path-wrapper/+merge/252560 part of snapcraft now? or we just go ahead with that on the snappy side?16:14
fgimeneznice weekend everyone o/16:17
mterrymvo_, we envisioned that as something snapcraft did16:19
mterrymvo_, and especially since we would probably have multiple, namespaced lib dirs16:20
mterrymvo_, I am also leery as sergiusens of hardcoding layout of a snap16:20
mvo_mterry: thanks, thats great, if its on your radar thats good enough for me :)16:20
sergiusenselopio: Multi-Arch: same iirc16:27
sergiusenselopio: https://wiki.ubuntu.com/MultiarchCross16:27
slangasekseb128: I'm off today, but if you have a question ask and I'll try to answer :)16:30
seb128slangasek, no, it's fine, enjoy your day off ... I was wondering if the s-i server would pick new tarballs from cdimage builds, it does16:31
slangasekseb128: yep, sure does :)16:31
seb128slangasek, it just took ages16:31
slangasekah, it should only take 5 minutes to pick it up, and sometime longer than that to process them16:31
seb128where ages is like 3 hours16:31
seb128right16:32
slangasekso maybe the importer was disabled at the time because of something happening for the phone16:32
seb128seems like the s-i server mangling is having lot to chew with the personal image ;-)16:32
seb128slangasek, <ogra_>  4196 ?        R     28:56 /usr/bin/python /srv/system-image.ubuntu.com/bin/import-images16:33
ogra_slangasek, when i last checked the process it had 48 min on the counter ...16:33
seb128slangasek, well, maybe 3 hours is exagerated but it was easy > 1.5 hours, seems the imported was eating cpu for over half an hour16:33
ogra_before it finished16:33
slangasekok16:33
slangasekmay not have been just because of the personal images, there may have been other images to import at the same time16:33
ogra_i was wondering before if we could split phone and snappy imports somehow16:34
seb128I guess adding the personal images doesn't help, they are not small16:34
ogra_when we started it was under 10min16:34
seb128slangasek, also I was unsure what was going on, there is no place to see if an import is ongoing and what's the status afaik16:34
seb128slangasek, anyway, we eventually got the image out of it and it's booting to a working lightdm, so all good ;-)16:35
ogra_and it grew by ~5 min for each phone arch we added, i imagine thats similar on the snappy side now16:35
seb128next step is to test the session, but mir doesn't like my vm so need to switch to real hwd for that, it's for next week16:35
slangasekWell, yes.  The server where this happens contains sensitive keys; not something that we'd be keen to add a webservice to to let people publically track the importer status16:35
ogra_right, "ps ax|grep import" on nusakan is the best you can do ...16:36
ogra_would eb nice to have a constant log from the importer though ... that sets a stamp or some such when itz starts and finishes a run16:36
slangasekhowever, any of sil2100, rsalveti, mvo, ogra, myself etc can check the status for you16:36
ogra_hmm, i guess that would be easy to achieve by just adding -v >>$logfile to the crontab line16:38
seb128slangasek, yeah, well now I know that it's reacting to new builds and that it takes some time, so it's fine16:39
seb128slangasek, thanks for the reply, enjoy your day off work ;-)16:39
elopionot much luck using same. But with python3:any on the dependencies I got a little further.16:41
elopiohttp://paste.ubuntu.com/11741070/16:41
Chipacaelopio: that looks like a bug in python3.4's packaging16:51
Chipacaelopio: maybe barry can confirm?16:51
Chipaca/var/lib/dpkg/info/python3.4-minimal.postinst: 46: /var/lib/dpkg/info/python3.4-minimal.postinst: python3.4: not found16:51
Chipacabarry: ^16:51
Chipacathat's in wily16:51
* longsleep wants to see Snappy to ship only a single Python and does not care if it is 2 or 317:05
ollisnappy gods... I am seeing the following issue - http://paste.ubuntu.com/11739849/17:06
olliwith that n dmesg17:06
ollihttp://paste.ubuntu.com/11739855/17:06
ollimterry says access denial to /usr/share/applications might be a red herring however17:07
ogra_olli, LD_LIBRARY_PATH not set ?17:07
ogra_(for the first line in the first post)17:08
ollihttp://paste.ubuntu.com/11741043/ - line 5083 shows successful access to the library17:08
olliand the lib exists in the fs17:08
ogra_/usr/lib/x86_64-linux-gnu/ is definitelky nothing you can ship in a snap17:08
ogra_not without $SNAPP_APP_PATH prefix17:08
olliah17:09
olliit's deb2snap where it's coming from17:09
ollibut...17:09
ogra_ah ... mterry terrytory then :)17:09
olliseems like qt assumes access to the lib in the standard path17:09
ogra_yeah, while yu would want /apps/mir/snap1/debs/usr/lib/x86_64-linux-gnu17:10
ollithe strace shows successful access due to deb2snap LDpreload magic17:10
olliogra check the last pastebin17:10
olliline 508317:10
ollijust seems that Qt is printing the err msg17:10
olliand the printf doesn't know about LDPRELOAD17:11
ogra_yeah, butu i wonder what else internally doesnt :)17:12
ogra_*but17:12
olliogra_, all access to libdeclarative_multimedia is successful according to the lib17:12
ollis/lib/strace17:12
ogra_i think for the /usr/share/application issue there is actually some XDG_* variable you can set to point to the prefixed versin of the dir ...17:14
ogra_(if qmlscene accepts freedesktop standards :) )17:15
olliright, not worried about that17:15
mterryolli, still no luck?17:42
ollimterry, I got the strace17:42
=== dpm is now known as dpm-afk
ollishows access to the right .so17:42
olliso I am rtfc17:42
ollimterry, for the ldpreload redirections, shouldn't I be able to run that locally on my regular system18:06
olliassuming I am setting the Snappy env vars accordingly?18:06
mterryolli, I think so?18:07
ollithen I could at least pretend to debug outside of the confined core system18:07
mterryshould work..18:07
olliwill try18:07
barryChipaca: i noticed some problems w/ py3.4 in armhf just earlier today and sent an email to doko18:12
ollidoes snappy allow me to install snaps outside of "core", eg into a chroot?18:22
elopiobarry: thanks. Please keep me on posted if you get news so I can retry this.19:05
barryelopio: will do19:09
skayI think I flashed a beagleboneblack with snappy, and I'm wondering if I should see a new network interface show up when it's plugged in to my computer19:45
=== retrack is now known as Guest92142
NissyenHi, I filed a bug report, but I am not sure if I just rediscovered bug #1460152 .22:34
nothalBug #1460152: apparmor cache not updated when apparmor.d rules change (breaks 15.04/stable -> 15.04/edge updates) <Snappy:Fix Committed> <apparmor (Ubuntu):New> <http://launchpad.net/bugs/1460152>22:34
ubottubug 1460152 in apparmor (Ubuntu) "apparmor cache not updated when apparmor.d rules change (breaks 15.04/stable -> 15.04/edge updates)" [Undecided,New] https://launchpad.net/bugs/146015222:34
NissyenThe bug I filed was #146668222:34
NissyenDoes anyone know if a unix socket permission issue would be another manifestation of apparmor not rebuilding the cache?22:37
jjohansenNissyen: maybe, is apparmor denying access to the socket22:40
jjohansenNissyen: if the cache is out of date and you are using old policy it is possible22:40
NissyenYeah, the dmesg is: [   72.230872] audit: type=1400 audit(1434397079.776:12): apparmor="DENIED" operation="connect" info="Failed name lookup - disconnected path" error=-13 profile="docker_docker_1.6.1.002" name="run/docker.sock" pid=1025 comm="docker.x86_64" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=022:40
jjohansenNissyen: you can always just delete the cache and force a policy reload22:41
NissyenI reloaded the framework in question, but actually let me try updating ubuntu-core from 2 to 3 on a VM and then rebuilding the cache and see if that fixes it.22:41
jjohansenNissyen: I would have to see the policy, but my guess if this requires a policy update22:41
NissyenIt's the docker policy… I am unfortunately not that familiar with it.22:42
jjohansenNissyen, I am not really familiar with the docker policy either22:42
jjohansenthat being said, since this is failing with "Failed name lookup" the policy requires, flags=(attach_disconnected) in it22:43
jjohansenthat would look something like22:43
jjohansenprofile X flags=(attach_disconnected) { ... }22:43
Nissyenok, I am setting up a new Vagrant snappy VM, let try to find the policy.22:44
Nissyenir has a line "/eun/@{APP_PKGNAME}.sock rw,22:46
Nissyensorry, The line is as follows:22:47
Nissyen /run/@{APP_PKGNAME}.sock rw,22:47
Nissyenlet me try rebuilding and see what happens, I did a core update to cause the permission issue.22:48
Nissyensudo apparmor_parser --skip-cache -r /etc/apparmor.d/usr.bin.ubuntu-core-launcher did not resolve the issue. Maybe this is a new apparmor related bug22:54
NissyenAha! I found that running the command "sudo aa-clickhook -f" worked23:06

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