/srv/irclogs.ubuntu.com/2015/05/26/#snappy.txt

=== erkules_ is now known as erkules
dholbachgood morning06:51
mvohey dholbach, good morning!06:53
mikenMorning mvo, dholbach o/06:53
dholbachhi mvo, hi miken06:56
mvohey miken07:04
=== erkules_ is now known as erkules
davidcalleMorning all07:43
D_Centhelp! my snappy won't let me install any snaps anymore - it always says "Warning: failed to remove /apps/<snap name>/<version>: '%s'". i don't know what that means but it doesn't install anything anymore :( any ideas on this=07:48
D_Cent* ?07:48
mvoD_Cent: uh, thats all its saying? no more information? thats bad. what snap is that that you try to install?07:51
mvoD_Cent: this sounds like the "garbage collect" feature is broken for some reason07:51
mvoD_Cent: and it happens for every snap you said?07:52
D_Centmvo: yeah, for everything - the exact message is e.g.:07:52
D_Cent(just a sec)07:52
mvoD_Cent: no rush, I'm here for at least 8 more hours :)07:53
D_Centgood :) the message is: "2015/05/26 07:53:17 Warning: failed to remove /apps/webdm/0.6.1: %!s(<nil>)"07:53
D_Centfollowed by: "webdm failed to install: exit status 1"07:54
mvoD_Cent: could you please pastebin "snappy list -v" ? is this a VM? if there is nothing "valuable" in it, could you make it available for download so that I can dig into it?07:57
mvo(it being the VM if it is one)07:57
D_Centmvo: sure, here it is: http://pastebin.com/VXATTzaH it's a raspberry pi 2. unfortunately, i can't make it public because the device and software belongs to the company i work for :/08:01
mvoD_Cent: sure, understood!08:02
mvoD_Cent: thanks, so now you install webdm (or anything else) and it fails with the above message, correct? let me dig into the source and I will come back with more questions08:03
D_Centmvo: correct - thank you very much :)08:04
mvoD_Cent: could you please edit /etc/system-image/channel.ini and set channel: to "ubuntu-core/15.04/edge" instead of the current "ubuntu-core/15.04/stable"? this should give you a updated version of the 15.04 image that has much improved error reporting. with a snappy update and a snappy reboot you could have the update version. its still based on 15.04 and is going to become a official update in some days08:11
D_Centmvo: the problem is that the raspberry pi 2 currently cannot update :/08:15
mvoD_Cent: uh, once sec, you will need to "mount -o remount,rw /" the system first of course and you will also need to do the same for /writable/system/cache which holds the "other" parition of the snappy dual-partition layout08:15
mvoD_Cent: meh, ok08:15
mvoD_Cent: well, then we need to just update snappy in isolation :)08:15
mvoD_Cent: please do "sudo mount -o remount,rw / ; sudo /usr/bin/apt update; sudo /usr/bin/apt install ubuntu-snappy ; sudo mount -o remount,ro /"08:16
mvoD_Cent: that should give you the new snappy with the better error reporting08:16
D_Centmvo: and i don't destroy anything with that?08:20
mvoD_Cent: no, but if you prefer a different approach, thats fine, one sec08:21
mvoD_Cent: do (cd /tmp ; wget https://launchpad.net/~snappy-dev/+archive/ubuntu/image/+build/7401399/+files/ubuntu-snappy-cli_1.0.1-1%2B439%7Eubuntu15.04.1_armhf.deb; dpkg-deb -x *.deb .)08:22
mvoD_Cent: this should give you /tmp/usr/bin/snappy that you can run and that hopefully gives the improved error messages and a clue what is wrong08:23
D_Centaah thank you :) trying that08:24
Chipacamo'in08:25
D_Centmvo: now it says (for webdm): "open /apps/webdm/0.6.1/www/public/images/app-placeholder.svg: permission denied" followed by "webdm failed to install: unpack /tmp/webdm918031435 to /apps/webdm/0.6.1 failed with exit status 1"08:26
ChipacaD_Cent: and if you install something that isn't webdm?08:29
D_CentChipaca: for my own package that i install locally, it says "/home/ubuntu/mdnsd_1.0_armhf.snap failed to install: hook command /usr/bin/aa-clickhook failed with exit status 1"08:29
ChipacaD_Cent: and if you install, say, xkcd-webserver?08:30
D_CentChipaca: also "xkcd-webserver failed to install: hook command /usr/bin/aa-clickhook failed with exit status 1"08:31
Chipacahmm08:32
ChipacaD_Cent: and “/usr/bin/aa-clickhook --help” works?08:33
ChipacaD_Cent: hold on, what's mdnsd? is that one from the store?08:36
mvomy theory is that there is a incorrect apparmor file08:36
Chipacamvo: yeah, my next step was --froce, to rebuild them all08:36
Chipacabut still waiting for --help08:37
mvowhat does "aa-clickhook --debug" yield?08:37
mvosure :)08:37
Chipacamvo: we should have a 'check' or somesuch that checks all files against hashes08:37
mvo(if --debug is helpful I wonder if thats what we should do when we run hooks and present the stdout/stderr as part of the error)08:37
Chipacato ketch broken sd cards08:37
mvoChipaca: yeah, very much so, I like that idea a lot08:38
D_Centsorry, i was in a meeting - "/usr/bin/aa-clickhook --help" gives me "Usage: aa-clickhook [options]... (etc) (options -f, -h, -d, --include)"08:42
D_CentChipaca: --debug outputs nothing08:43
ChipacaD_Cent: what about “sudo /usr/bin/aa-clickhook --force”08:43
D_CentChipaca: it finishes in a second, outputs nothing and exits with status 008:43
Chipacawell, that's fun :-(08:44
D_Cent:(08:44
Chipacamvo: ideas?08:45
mvomeh08:47
mvo so  /usr/bin/aa-clickhook --force && echo "all good" works? i.e. it also has a zero exitcode?08:47
D_Centmvo: exactly08:48
* mvo scratches head08:48
mvoChipaca: I think I will add some code to the hook runner that captures the output and presents it to us, maybe that gives us a clue08:49
mvoD_Cent, Chipaca: in 5min or so a new snappy build should be available for testing (waiting for my cross toolchain to finish installing)08:56
D_Centmvo: thank you! can you post me the link to the deb file again then?08:57
mvoD_Cent: http://people.canonical.com/~mvo/tmp/D_Cent/ contains the snappy binary and my gpg signature (if you want to verify the download)09:01
D_Centmvo: okay, this is the output now: http://pastebin.com/1sxzB6La09:03
D_Centmvo: the file "abstractions/mdns" really does not exist here09:04
mvoD_Cent: ha! that gives us some clue :)09:04
D_Centmvo: looks good :)09:04
Chipacamvo: ⁵!09:04
mvoD_Cent: I have that file in /etc/apparmor.d/abstractions/mdns - for you its not there you say?09:05
mvoChipaca: looks like I need to push a branch with that improvement :)09:05
mvoChipaca: and ^5 back !09:05
D_Centmvo: yeah, i don't know why - i didn't do anything, but it seems to be in the image i applied on my SD card a month ago09:05
ogra_did you manually edit any files in the webdm folder ?09:06
D_Centogra_: no :)09:06
* ogra_ has seen that error when files were root owned in an app folder09:06
D_Centmvo: can you pastebin me this file please? :)09:06
mvoD_Cent: good question what happend, maybe some sort of corruption :/ sd cards can be fragile09:07
mvoD_Cent: the other thing thats strange is the webdm error, but maybe that is a red-herring and it does away once the mdns file is back, I will make it availale for you09:08
mvoD_Cent: http://paste.ubuntu.com/11367079/09:08
D_Centmvo: thank you :)09:09
D_Centmvo: everything is working now :) webdm, xkcd-webserver, my own packages...09:10
D_Centmvo, Chipaca: thank you very, very much for your help! you saved me :)09:11
ChipacaD_Cent: you've got it backwards!09:11
ChipacaD_Cent: you helped us :)09:11
ChipacaD_Cent: snappy is better thanks to you09:12
ChipacaD_Cent: so thank *you* very much!09:12
* mvo hugs D_Cent09:12
D_CentChipaca: that's why i like this community ;)09:12
mvoChipaca: \o/ exactly right!09:12
D_Centeveryone is helping everyone :)09:13
Chipacanow, back to figuring out what to call a method that checks things are ok to install a package09:13
JamesTaitGood morning all; happy Tuesday, and happy Lindy Hop Day! 😃09:13
ChipacaInstallCheck sounds like you're installing checks. CheckInstall sounds like you're checking and existing install.09:13
ChipacaCheckForInstall?09:13
mvoInstallOK?09:14
ChipacaJamesTait: what ... what is a lindy hop?09:14
mvoCanInstall?09:14
Chipacamvo: wfm :)09:14
mvoCheckIfInstallIsOkOrNotOrMaybe09:14
ChipacaPleasePleaseMakeTheInstallPainGoAway09:15
ChipacaKThxBye09:15
mvoCheckIfInstallIsOkOrNotAndAlsoLogAndComputeSomeRaondomStuff09:15
mvo:)09:15
* mvo hugs Chipaca09:15
mvoI llike KThxBye, we should have this somewhere09:15
JamesTaitChipaca: energetic, jazzy, swing dance. I've never done it, but it looks quite fun.09:15
mvoJamesTait: you made me watch a yt video of a 1960 lindy hop competition now. its … interessting09:16
JamesTaitmvo, I may be mistake, but I think our very own Mr Westby participates.09:17
JamesTaits/mistake/mistaken09:17
mvoJamesTait: aha! I remembered it from somewhere and was wondering where I had heard it. fun!09:17
mvohe will have to do a demo on the next sprint :)09:17
beowulfChipaca: is it possible, or planned, in snappy/webdm to cancel an install at the download phase?09:18
mvowe have no support for this in the library yet I think but its a nice feature09:19
Chipacabeowulf: that is something that would be easy to implement, but is not implemented yet09:19
beowulfit seems like a thing webdm would like to have09:19
Chipacabeowulf: create a card for it?09:19
beowulfChipaca: will do09:20
Chipacata09:20
beowulfok, what's the difference between backlog and todo in the trello?09:22
mvobeowulf: backlog is the big heap and todo is (in theory) the things to work on next. but its a bit muddled as we also have must-do09:28
beowulfmvo: ack, i added ^ plus one other to backlog09:29
davidcalledholbach, I'm looking at your tools docs, can I start reviewing/integrating?09:37
dholbachdavidcalle, not quite yet09:39
davidcalledholbach, ok :)09:39
dholbachdavidcalle, for node-snapper I still have to talk to ogra_09:39
dholbachand for the python doc I'd like to summarise it some more09:40
dholbachdavidcalle, did you have any general feedback about it?09:40
ogra_i think node-snapper still needs some final SNAPP/SNAP changes09:40
dholbachogra_, is there a but about it or do you know what the issue is?09:41
ogra_no, no bug ... its just cosmetic ... SNAPP_ vars are still supported afaik ... but will go away09:42
dholbachoh ok... so just a case of renaming?09:42
ogra_right in the start-service.sh script that gets produced09:43
Chipacabeowulf: mvo: plus there's a whole another board of backlog i think09:46
Chipacabeowulf: mvo: but i'd ask rsalveti about that one09:46
beowulfsimple review, add prettified bytes to snap model in webdm https://code.launchpad.net/~stephen-stewart/webdm/show-download-or-installed-size/+merge/26012611:25
beowulf(no css!)11:25
Chipacabeowulf: are you intentionally dropping the “add change:message” thing?11:32
sergiusensmvo: Chipaca the webdm error is probably from changing from type app to type framework11:32
beowulfChipaca: yes, because i'm using parse rather than add... and sorry, i've just spotted a problem :(11:33
Chipacabeowulf: k11:34
* Chipaca -> lunch and such, bbiab11:52
* Chipaca uploads the current branch to https://code.launchpad.net/~chipaca/snappy/clickety for if people want to take a peek. Not ready yet though.11:53
beowulfChipaca: when you get back, https://code.launchpad.net/~stephen-stewart/webdm/show-download-or-installed-size/+merge/26012611:55
sergiusensChipaca: can you think of why this is like it is http://paste.ubuntu.com/11369583/ ?12:02
sergiusensChipaca: the 3 snaps there were installed with webdm12:03
Chipacasergiusens: interesting12:05
Chipacasergiusens: on the same version of snappy and webdm?12:05
Chipacasergiusens: webdm and hello-dbus-fwk are using a dbus launcher that's created a private /tmp for them12:06
Chipacasergiusens: pastebinit.mvo hasn't12:07
Chipacasergiusens: but pastebinit.mvo might be older12:07
Chipacasergiusens: do a find -ls instead of  ... whatever you did there :)12:07
Chipacaso i see the dates12:07
sergiusensChipaca: I did a find with -printf12:07
Chipacasergiusens: find -ls is less work :)12:08
sergiusensChipaca: http://paste.ubuntu.com/11369660/12:08
sergiusensChipaca: it seems anything launched by webdm inherits webdm's tmpdir12:09
sergiusensChipaca: is that the desired behavior?12:09
Chipacaah! i think i got it12:10
Chipaca/tmp/snaps/pastebinit.mvo/1.4.0.0.2/tmp is created by the bin wrapper12:10
Chipacathe the launcher launches12:11
Chipacaand creates the "right" /tmp/snap.1000_pastebinit.mvo_SFbTYJ as the tmpdir12:11
Chipacaand then sets that to the actual /tmp/ and all is well12:11
sergiusensmterry: in case you want to look at making the core go based http://npf.io/2015/05/pie/12:12
sergiusensChipaca: so what is at fault with these embedded tmp dirs? the service?12:12
Chipacasergiusens: /tmp/snap.0_webdm_KhJhaT/snaps/webdm/0.6.1/tmp is fine, it's webdm creating and using /tmp/snaps/webdm/0.6.1/tmp as its tmpdir when it's already got a private /tmp/12:13
Chipacasergiusens: we could drop the tmpdir from webdm as it's handled by the launcher, but we don't have to12:13
Chipacasergiusens: but also apparently webdm uses /tmp/snaps as the place to which to download things from the store?12:14
sergiusensChipaca: well, only in rolling, we still need to suport both12:14
sergiusensChipaca: it uses tmpdir as defined in launchpad.net/snappy/snappy12:14
Chipacasergiusens: which is why you have /tmp/snap.0_webdm_KhJhaT/snaps/docker031408365 (which webdm would see as /tmp/snaps) with what i presume is a docker package12:15
sergiusensChipaca: right!12:15
mterrysergiusens, I imagine we could use a "run an executable" interface vs "load a plugin" if we really wanted language independence too (I bet it would be nice to let each language plugin be written in the respective language if that would be easiest)12:15
* sergiusens nods12:16
mvo+1 for "run a executable"12:16
mvoan executable12:16
Chipacasergiusens: and /tmp/snap.0_webdm_KhJhaT/snaps/.gmx.808.0 is davecheney's mdns thing12:16
sergiusensChipaca: yes, I'm not worried about those ;)12:16
Chipacasergiusens: so, in answer to your question, things that webdm installed are not inheriting webdm's tmpdir, no12:17
sergiusensChipaca: just the embedded packages, but it is the actual packages, I didn't look at the file attribs carefuly12:17
Chipacasergiusens: otherwise you would have /tmp/snap.0_webdm_sarasa/snap.1000_pastebinit.mvo_sarasa/....12:17
Chipacasergiusens: note how it's the new private tmpdir, snap.$UID_appname_random, and the old tmpdir snaps/appname/version/tmp12:18
sergiusensbeowulf: one of your MPs setup for review depends on this one which is on hold https://code.launchpad.net/~stephen-stewart/webdm/icons-icons-icons/+merge/25980012:18
Chipacaand now, i think i'm going to go to get my lunch for real12:19
Chipacaotherwise it'll be high tea instead of lunch :)12:19
=== Odd_Blok1 is now known as Odd_Bloke
mvosergiusens: was there anything new about the "FAT-fs (mmcblk0p1): IO charset iso" error from last week? I'm look at this right now and wonder if I missed anything13:09
* Chipaca goes back to bashing installClick into submission13:09
rsalvetio/13:10
sergiusensmvo: I don't think so, I went MIA after the standup on Friday13:10
sergiusensbeowulf: I tested query again and it works fine (from a webdm PoV)13:10
mvosergiusens: :) ok, no worries, I have some theories and will have a look13:10
sergiusensbeowulf: for some reason Chipaca's package makes the store return more results (even though it's super specific)13:10
sergiusensnessita: any idea?13:11
* ogra_ thinks the charset error is just fallout of a corrupt partition13:11
mvoogra_: sergiusens had it as well13:11
sergiusensnessita: context: searching for 8nzc1x4iim2xj1g2ul64 returns some apps that don't feel should be part of it13:11
sergiusensogra_: I had it, yes13:11
Chipacamvo: did you or sergiusens fsck up the partition once it was throwing those errors?13:11
ogra_mvo, sure, but i dont think it is actually a charset thing13:11
beunosergiusens, can you pastebin what the request looks like?13:11
Chipacamvo: sergiusens: fsck -p, not fsck up. It was already fscked up.13:12
sergiusensbeuno: I fail to curl it up, but https://search.apps.ubuntu.com/api/v1/package/?q=8nzc1x4iim2xj1g2ul64 with all the headers13:12
Chipacamvo: sergiusens: both the mmcblk0p1, and the partition that would normally hold that .ko13:12
Chipacafsck ALL the things13:13
beunosergiusens, well, the headers is what will tell us what's going on  :)13:13
beowulfsergiusens: ack, sorry, i'm feeling unwell so going to lie down for a bit13:13
sergiusensChipaca: hmmm, so the .ko is on system-b13:13
ogra_Chipaca, why would a partition hold the .ko ...13:13
sergiusensbeuno: how do you set headers with curl, -H ?13:13
Chipacaogra_: well, something's got to hold it :)13:13
ogra_for necessary filesystems all modules need to be in the initrd13:13
beunosergiusens, -H13:14
beunosergiusens, curl -sH 'X-Ubuntu-Frameworks: ubuntu-core-15.04-dev1' https://search.apps.ubuntu.com/api/v1/search?q=hello13:14
beunofor example13:14
sergiusensbeuno: if that's the case, it should look like curl -H "X-Ubuntu-Frameworks: ubuntu-core-15.04-dev1" -H "X-Ubuntu-Release: 15.04-core" -H "X-Ubuntu-Architecture: amd64" 'https://search.apps.ubuntu.com/api/v1/package/?q=8nzc1x4iim2xj1g2ul64'13:14
nessitasergiusens, checking13:16
sergiusensnessita: beuno here's the right copy paste: curl -H "X-Ubuntu-Frameworks: ubuntu-core-15.04-dev1" -H "X-Ubuntu-Release: 15.04-core" -H "X-Ubuntu-Architecture: amd64" 'https://search.apps.ubuntu.com/api/v1/search?q=8nzc1x4iim2xj1g2ul64'13:17
nessitasergiusens, I was about to say that /packages/ was not a search endpoint :-)13:17
sergiusensnessita: yeah, it was the part where I was failing to curl :-P13:17
mvoogra_, sergiusens: fun! it appears like the initrd and kernel version went out of sync.13:17
nessitasergiusens, try this https://search.apps.ubuntu.com/api/v1/search?q=%228nzc1x4iim2xj1g2ul64%2213:18
mvosergiusens: if you could boot your system and tell me "uname -a" and "ls -l /lib/modules/" that would be cool13:18
nessitaie, with double quotes, I'll explain why13:18
mvosergiusens: your broken one13:18
ogra_mvo, ah !13:18
ogra_then the charset is indeed a valid complaint :)13:18
mvoyes13:18
sergiusensmvo: I need to recreate the env, but sure13:19
ogra_mvo, that brings up an ancient plan from me ... putting modules into a separate overlay img that we mount inside the initrd ...13:19
sergiusensmvo: but I was testing on 15.04, so being out of sync on 15.04 doesn't sound good13:19
ogra_because else your only option would be to regenerate the initrd on the fly to get the new modules inside on kernel upgrades13:20
mvosergiusens: well, yes, one more reason to get to the bottom of this13:20
mvo:)13:20
sergiusensnessita: nice catch, I'll update lp:snappy to add what I presume are quotes13:20
mvosergiusens: is it a lot of work for your to re-create? or do you still have the sd card?13:20
nessitasergiusens, our package index performs analysis for both the data being indexed, and the search term. The analysis, among other things, try to parse the given string to take out the most relevant part and also search for derivates13:21
sergiusensmvo: let me check, I need to move away from the couch though :-)13:21
nessitasergiusens, in this case I understand since the string is kind of "non sense" it searches some characters, such as the numbers13:21
mvosergiusens: haha13:21
jdstranddholbach, davidcalle: hey, a week or two back, I asked about updating https://developer.ubuntu.com/en/snappy/guides/frameworks/, https://developer.ubuntu.com/en/snappy/guides/package-metadata/ and https://developer.ubuntu.com/en/snappy/guides/security-policy/13:22
sergiusensnessita: well now I am confused, not sure we should add this or take advantage of the backend and just blame Chipaca! :-)13:22
nessitasergiusens, I would say the second :-)13:23
nessitasergiusens, using quotes all the time is a bad idea, quotes mean exact match13:23
sergiusensnessita: it's nice to blame Chipaca sometimes, but my troll hat has been off for a while :-P13:23
nessitaand I don't think you'd like that?13:23
mvois it just me or does "ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" look a bit excessive when it comes to "!" - I'm talking to you cloudinit13:23
jdstranddholbach, davidcalle: I think the security one may be ok... looking at the logs it seems I only card about the formatting and you fixed it. but the other two weren't updated13:24
sergiusensnessita: right, so then beowulf using the strange package name for searching is a bad idea13:24
sergiusensfor testing it at least13:24
davidcallejdstrand, we must have missed that. Checking.13:24
sergiusensas in eyeball testing13:24
sergiusensjdstrand: we agreed that for docs, the team would only update from the 15.04 series and that trunk would roll with what comes next though13:25
nessitasergiusens, indeed. Ideally, a user will search for keywords, such as "news" and we want to include results for "newspaper" for example13:25
* ogra_ hopes that eyeball testing doesnt involve needles, pins or fingers ...13:25
jdstrandsergiusens: I missed that point. where is the 15.04 series branch?13:25
dholbachthanks davidcalle13:26
sergiusensjdstrand: lp:snappy/15.0413:26
* jdstrand prepares an MP13:26
sergiusensjdstrand: it's basically to have stable docs; at least it's what I caught from the uos session, dholbach or dpm and confirm13:26
jdstrandthat's fine and makes sense. the stuff I have is all 15.04 anyway13:27
rsalvetiyeah, for trunk we want something more automated13:28
rsalvetistill need to think how to do that properly13:28
sergiusensmvo: do you see that error that utlemming mentioned on snappy-devel@? I see it too and I wonder if it's trusty thing13:31
sergiusensmvo: I'm also reconsidering going back to chroot [] snappy install (to alleviate the differences between 15.04 and rolling).13:32
davidcalledholbach, I'm reopening the snappy doc sprint trello to have a look at an old card, closing it back after that, don't freak out :D13:33
dholbachsure, don't worry :)13:34
mvosergiusens: looks a lot like a trusty thing, we need this "re-generate sc profiles on boot so that we can inhibit this just like we do for apparmor13:39
Chipacamvo: re-generate *all* the things13:45
mvosergiusens, ogra_: so it appears the issue I see with my broken boot on BBB is releated to the kernel update from -15 to -16. it boots with -15 but find only the modules for -16 in /lib/modules (because thats what the new system is using)13:46
Chipacamvo: sc, apparmor, scripts, systemd service whatsits13:46
Chipacas/scripts/wrappers/13:46
mvoChipaca: +10013:46
ogra_mvo, yeah, it would have to re-gen the initrd13:46
ogra_which we cant really do :/13:46
ogra_mvo, /lib/modules shouldnt matter in that case since youur issue is when mounting from the initrd13:47
mvosergiusens, ogra_: and for extra fun there is this bug that breaks fallover totally that the first reboot brings you to the good partition and the second boot to the bad one (fortunately sergiusens fixed this one)13:49
ogra_well, i would really like us to find a way to make the initrd actually arch agnostic ...13:50
ogra_well, perhaps not arch, but version ...13:50
mvoogra_: fwiw, we have the updated initrd it just does not get installed because of some brokenness in the snappy code that is responsible for this :(13:52
ogra_aha13:53
ogra_so we know the root cause even ...13:53
mvoI hope so, digging into it now13:53
rsalvetihow are we managing the kernel update regarding the 2 partitions we have?13:53
rsalvetiI'd imagine we would also want a fallback for kernel updates13:54
ogra_well, that is the a/b model13:54
mvorsalveti: there is code in snappy called "handleAssets and syncBootloaderFiles" that will check if there is a new kernel and copy that into the right place (unless it does not)13:54
ogra_and it apparently works ...13:54
* ogra_ remembers sergiusens' video13:54
rsalvetimvo: right, but will that reflect at both a and b?13:54
sergiusensrsalveti: we have a fallback, yes; but it's all one thing today (ubuntu + kernel)13:54
rsalvetior are we aligning the kernel snap with os?13:55
jdstranddholbach: fyi, https://code.launchpad.net/~jdstrand/snappy/15.04-docs/+merge/26016113:55
mvorsalveti: right now its aligned with the OS13:55
mvorsalveti: and in theory we have /boot/uboot/a that matches what OS-a needs and the same for b13:55
rsalvetiright, got it13:56
jdstranddholbach: that has the doc updates for the 3 files that correspond to the 3 pages that should be updated13:56
rsalvetimvo: would that also contain the modules?13:56
rsalvetias that can be quite big13:56
elopiogood morning.13:56
mvorsalveti: it contains the initrd, the modules are right now part of the system-{a,b} partitions, not part of system-boot13:56
rsalvetimorning elopio13:56
dholbachdavidcalle, did you see https://code.launchpad.net/~jdstrand/snappy/15.04-docs/+merge/260161 as well?13:57
mvohey elopio!13:57
jdstrandmvo: fyi, after I finish the hashes.yaml (which is almost done) I plan to move to the sc regen on boot stuff13:57
mvoelopio: sorry that I have not replied to your questions in the MP about merging the selftests yet13:57
mvojdstrand: \\o//13:57
dholbachdavidcalle, I'm currently busy finishing something else - let me know if you want me to take care of the above...13:57
mvojdstrand: great news, you ROCK13:57
jdstranddavidcalle: all we need is https://code.launchpad.net/~jdstrand/snappy/15.04-docs/+merge/260161. that contains everyhting I want updated on the website13:57
davidcalledholbach, I'm enhancing the small script we had to convert doc, I'll look at it in a short moment, thanks for the heads up!13:58
rsalvetimvo: right, need to play a bit more to better understand the ins and outs13:58
elopiomvo: no problem, mostly things for the future, and I have plenty of things to do around it as it is anyway. The only thing I would like to know before getting it into trunk is about signing the deb.13:58
* dholbach hugs davidcalle13:58
mvorsalveti: no worries, its all going to change anyway when we make os/kernel independent13:59
rsalvetijdstrand: nice, thanks for the doc updates13:59
mvoelopio: cool, I will look into this13:59
jdstrandnp13:59
rsalvetimvo: right, that's why I wanted to understand this better :-)13:59
ogra_i think we should have the modules in a separate overlay14:00
mvo:)14:00
ogra_one that even the initrd can see, so we dont need to ship them inside (deduplication at its best :) )14:01
mvoogra_, rsalveti: its a bit of a challenge when we make them indepedent as the kernel contains userland stuff as well (nvidia user-space libs potentially etc). so it needs to be merged and I don't really like this as I want it to be as simple as possible14:01
mvoogra_: interessting14:01
rsalvetimvo: right, that's indeed a concern (user space x kernel)14:02
rsalvetiand as a user, what would you expect from a rollback?14:03
mvowould be all much more tidy if it was really kernel only and OS only14:03
mvorsalveti: exactly!14:03
ogra_rsalveti, the exact same system i ran before the upgrade attempt14:03
mvothe current model is mentally much simpler14:03
mvo(maybe only because I'm lazy and haven't really thought through the new one of course :)14:04
ogra_but it doesnt keep kenerl and userspace distinct14:04
ogra_on the phone that would be fatal if we use a snappy base14:04
ogra_(we'd need one rootfs per device)14:05
* mvo nods14:06
Chipacamvo: question for you sir: what's the reasoning behind helpers.EnsureDir, as distinct from os.MkdirAll?14:26
Chipacamvo: AFAICT the only difference is helpers.EnsureDir does not fail with error if the path exists and is not a directory14:26
Chipacamvo: which I might argue is a bug, or an unfortunate name :)14:27
mvoChipaca: laalalalalalalalala14:27
Chipacamvo: noted.14:27
mvoChipaca: is that enough of a answer ;) ? please kill it, its from my early go days when I did not realize that its legal to call MkdirAll() on exsiting dirs14:27
* Chipaca aliases 'bzr laalalalalala' to 'bzr remove'14:27
mvolol14:28
Chipacamvo: so much pain in your early go days14:28
mvoChipaca: not at all, I was just even more ignorant about the $world than today14:29
mvoChipaca: fortunately I have people who clean up after me :)14:29
Chipacamvo: who *claim* to clean up after you14:30
mvo:P14:30
Chipacamvo: I would not have noticed, had it not being because in installClick we were using both helpers.EnsureDir and os.MkdirAll :)14:31
Chipacas/being/been/14:31
mvooh, both? meh, thats funny14:32
davidcallejdstrand, I don't get the sentence at l9 & 10 of https://code.launchpad.net/~jdstrand/snappy/15.04-docs/+merge/260161 , are you sure about it or is it just my english failing me?14:32
Chipacamvo: if that's funny, there's a lot of fun to be had :)14:33
jdstranddavidcalle: that could be rephrased better14:33
jdstranddavidcalle: let me do that14:33
jdstranddavidcalle: done14:35
davidcallejdstrand, oh right, in the meantime I've figured out what "origin" is in that context, makes sense, thanks :)14:37
Chipacamvo: is it legit that we're unpacking with dropped privileges, but then writing the click manifest with full privs?14:38
Chipacamvo: and, followup question, would it be of the same or better legit-ness :) to write the click manifest from unpack? thus it happening with dropped privs automatically14:39
* Chipaca thinking of moving writeCompatManifestJSON to clickdeb14:39
mvoChipaca: I think that is a good idea and would improve things, yes14:40
Chipacaok, i'll see if it works (i expect it to) :)14:40
mvoChipaca: \o/14:44
mvoChipaca: I envy you, I spend my day in recovery shells so far14:44
* mvo takes a short break before the meeting ot get some $tea14:44
* Chipaca ignores those pesky details such as "does it *actually* work, on a device" for now14:45
davidcallejdstrand, merge acked14:45
=== devil is now known as Guest76278
kyrofasergiusens, ping14:51
Chipacaok, so, no, moving the click manifest creation to clickdeb is not workable at this point14:55
Chipacareverting that (for now!)14:55
sergiusenskyrofa: pong14:57
sergiusensChipaca: yeah, it requires major rework14:57
Chipacasergiusens: i wouldn't say major, but as it's not the focus of this i'll postpone it for now14:58
kyrofasergiusens, I've run into something interesting with the webdm API14:58
kyrofasergiusens, I was hoping you could explain it?14:59
sergiusenskyrofa: sure; I bet it's just a bug :-P14:59
kyrofasergiusens, haha! Well, let's see . . .14:59
kyrofasergiusens, first of all, a question: The install API requires the package NAME as specified in the RFC, not the ID, right?15:00
sergiusenskyrofa: make me recall which one was the id and which one was the name15:01
kyrofasergiusens, I called INSTALL xkcd-webserver, which got accepted. I then QUERYd xkcd-webserver and got "uninstalled." But if I query xkcd-webserver.canonical (its ID), it's "installed"15:02
jdstranddavidcalle: thanks!15:02
sergiusenskyrofa: ah, yes, always the id15:02
kyrofaAh! Okay, for everything? (e.g. query, install, etc.)15:02
sergiusenskyrofa: it will allow installing but all refs would be lost; this is all due to legacy support in some sense15:02
sergiusenskyrofa: yes, always the id, the name is just for show15:03
kyrofasergiusens, very good, okay. I suggest updating the RFC when you're able15:03
kyrofasergiusens, thank you!15:03
sergiusenskyrofa: right, let me do that15:03
davidcallejdstrand, and d.u.c updated. I now have a script that does most of the conversion and formatting work, so things should be faster in the future15:04
jdstrandsounds great15:04
=== tvoss is now known as tvoss|test
=== tvoss|test is now known as tvoss
kyrofasergiusens, another difference between what I'm seeing and the RFC: calling INSTALL for a snap that's already installed still returns a 202, not a 20015:25
sergiusenskyrofa: yeah, we have that problem in snappy proper as well15:32
Chipacamvo_: when is snappy in GOPATH? sergiusens?15:54
Chipacai don't think it would ever be there, so i'm missing something15:55
Chipacai mean the binary, to exec it15:55
kyrofaChipaca, it doesn't need to be to exec it, right?16:02
beowulfmvo_: hey, thanks for the review, i don't have permission to top approve, would you mind also top approving? :) https://code.launchpad.net/~stephen-stewart/webdm/show-download-or-installed-size/+merge/26012616:02
Chipacakyrofa: we look for it in PATH and GOPATH, hence my question16:02
sergiusensChipaca: I think it's for snappy unpack and something mvo_ added to iterate faster16:04
* Chipaca waits for mvo_ then16:05
sergiusensChipaca: is it bothering you in some way?16:06
Chipacasergiusens: well, it reimplements exec.LookPath16:06
Chipacasergiusens: i was wondering whether we're doing that on purpose, or if it's code from early days :)16:06
Chipaca(the only difference between this and LookPath is GOPATH)16:07
Chipaca(and that LookPath is more careful with some error conditions)16:07
sergiusensChipaca: oh, I care less about looking in GOPATH16:10
sergiusensChipaca: ideas on this error? -> http://paste.ubuntu.com/11374504/17:39
sergiusensChipaca: aparently solved by passing --use-existing-dir17:51
sergiusensmvo_: https://code.launchpad.net/~sergiusens/ubuntu-core-launcher/frameworkPathSupport/+merge/26018917:51
mvo_beowulf: sure, top approving now, sorry for the delay18:15
mvo_Chipaca: just to iterate faster on a real snappy its always in PATH not in GOPATH18:15
beowulfmvo_: ta18:19
sergiusensmvo_: what Chipaca implies is that it is rarely in GOPATH18:22
mvo_sergiusens: yeah, we can kill that lookup if its not needed18:27
sergiusensmvo_: where did ubuntu-core-config live again?18:31
mvo_sergiusens: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/ubuntu-core-config/18:31
sergiusensmvo_: sounds good (allowing to remove code)18:31
mvo_sergiusens: lp:ubuntu/ubuntu-core-config I think or lp:ubuntu/wily/ubuntu-core-config18:31
sergiusensmvo_: thanks18:31
mvo_yw18:32
sergiusensmvo_: ubuntu branches are always hard to work with (personally), https://code.launchpad.net/~sergiusens/ubuntu/wily/ubuntu-core-config/frameworks-writable/+merge/26020018:37
sergiusensmvo_: and maybe https://code.launchpad.net/~sergiusens/ubuntu/wily/ubuntu-core-config/azure-datasource/+merge/26020118:43
mvo_sergiusens: looks good, I can merge/upload tomorrow morning18:45
sergiusensmvo_: sure, no hurry18:45
kgunnmterry: so i downloaded virtual machine manager cause i wanna be like mike :)20:10
mterrykgunn, right, it was very easy to set up for me20:10
kgunnok...getting thru that now20:10
kgunnmterry: complains about libvirt20:11
mterrykgunn, when installing via apt-get?20:12
kgunnmterry: i used sw store...20:12
mterrysure20:12
mterrykgunn, what was the error?20:12
kgunnmterry: when it starts, just a dialog "Unable to connect to libvirt" so i should verify20:13
kgunnthat i have libvirt-bin installed, i do20:13
mterryhuh20:13
kgunnThe 'libvirtd' daemon has been started20:13
mterryi didn't see that at all20:13
kgunnmterry: ok...let me dork with it a bit20:14
kgunnit's got some more details20:14
kgunni can try some stuff20:14
Chipacagah, missed mvo20:58
Chipacamy question was *when* is snappy in GOPATH and not in PATH20:58
sergiusensChipaca: when testing, but he said you can remove21:07
kgunnmterry: hehe, so apparently a reboot helped :)...so when you created your vm in vmm, do you recall what you picked for "OS type" and "version"21:16
mterrykgunn, that's dumb.  :-/21:16
kgunni left generic...but then it warned "for better performance, pick an OS"21:16
mterrykgunn, I think I left that blank, yeah21:17
kgunnk21:17
mterrykgunn, you know how to get a recent snappy image?21:17
kgunnmterry: so i was just following instructions from here21:18
kgunnhttps://developer.ubuntu.com/en/snappy/start/21:18
kgunnso i got a 15.04 image21:18
mterrykgunn, sure should be fine21:19
kgunnmterry: sorry keep getting distracted, but is your work flow to create a vm within wmm ? or do launch outside and just connect to it?21:38
kgunnjust realizing vmm changes img group/owner21:38
mterrykgunn, I make the .img file on my own.  Then inside WMM I add it?  Like going through that dialog that asked you for "OS type"21:38
kgunnok...that's what i did mterry, but then it when launched it says21:39
kgunnfailed to boot, no such device21:40
kgunnarggg why is my connection being a dog all of the sudden21:40
mterrykgunn, :(21:40
mterryfailed to boot...21:41
mterrykgunn, and you pointed your new VM at the .img file during setup?21:41
kgunnyep lemme grab a pic21:42
kgunnmterry: https://drive.google.com/a/canonical.com/file/d/0B4GvOYxwuvpFQVNvbmdnTVZaVVk/view?usp=sharing21:46
mterrykgunn, when you made your VM, you chose "import existing disk image" in the first dialog?21:47
kgunnmterry: oh...nope, i chose "local install"21:48
kgunnso i goofed21:48
mterrykgunn, eh, it's a weird dialog21:48
mterrykgunn, but yeah, try again with existing disk21:48
kgunnthere we go21:50
kgunnthanks mterry21:50
kgunn...back to fiddling21:50
mterrykgunn, awesome21:50
kgunnmterry: hey, the first part of your instructions, do you just do this to verify it's sane23:02
kgunn open VM23:02
kgunn ssh ubuntu@192.168.122.6923:02
kgunn ls23:02
kgunn snappy list23:02
kgunni'm building snappy-packaging....btw :D23:02
mterryyeah23:02
mterryJust to prove the VM is clean23:02
kgunn...and failed to build...dang it...23:03
kgunnah needs gfx drivers23:04
=== devil is now known as Guest4166
=== Guest4166 is now known as devil__
=== devil__ is now known as devil_

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