/srv/irclogs.ubuntu.com/2015/10/14/#snappy.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
dholbachgood morning06:24
tasdomasmorning06:34
tasdomasif a service requires access to a device, does it need to be restarted after hw-assign?06:35
tasdomasor is there a more elegant solution?06:36
tasdomasI noticed that the webcam-demo basically runs an executable periodically to retrieve an image, so I guess it does not have that problem06:37
fgimenezgood morning07:03
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mvoChipaca: hi, a quick question about the rest api, i remember in some versions the ubuntu-core snap was not displayed, there was a question about this and I wonder if I misremember and if not if its fixed ?07:55
tasdomasdoes a service need to be restarted after running hw-assign for its package?08:19
mvotasdomas: yes, this needs to be done manually at this point iirc08:22
tasdomasmvo, I see - thanks08:22
tasdomasmvo, took me a while to figure out why the webcam-demo does not need this08:23
mvotasdomas: sorry, bug #1484645 (https://bugs.launchpad.net/snappy/+bug/1484645)08:26
ubottuLaunchpad bug 1484645 in Snappy "Snappy hw-assign doesn't restart affected services" [Medium,Triaged]08:26
mvomaybe we need to raise the priority of this one08:27
mvoor at least print some warning as a stop-gap08:27
JamesTaitGood morning all; happy Wednesday, and happy World Maths Day! 😃08:33
Chipacamvo: core is always displayed in the rest api, afaik08:39
Chipacamvo: i believe the question was about when it would be displayed in the CPI08:39
mvoChipaca: ok, in this case the question needs more context08:39
mvoChipaca: aha, sorry, then I misread it, you should be in the CC so feel free to correct that :)08:40
=== davidcalle_ is now known as davidcalle
Guest42341omg how do i end up on this channel???08:47
tasdomasis the source for the snappy mqtt package available anywhere?08:58
Chipacawhat do you call a thing that looks like a mutex, but whose lock/unlock methods take a string and it only locks things with the same string?10:21
Chipacai'd call it a mutex tree, except it's not a tree, it's more like a bush :)10:22
mvoChipaca: sounds like a MutexManager to me10:23
mvoChipaca: if I don't know what its good for I call it a manager :P10:23
Chipacanoted :)10:24
mvoChipaca: you could of course make it something like a factory, i.e. GiveMeMutex(string) and it either gives you a ref for a new one or a existing one10:24
Chipacamvo: yes, but there's a two-level thing going on that i'd lose10:25
Chipacaum, maybe10:25
Chipacahm10:25
Chipacamvo: some operations mutate the state of everything, so they need to lock a "root" mutex, whereas most things just read or mutate things on a leaf, so they *rlock* the root mutex and lock/rlock the leaf mutex10:28
Chipacamvo: i'll push it as is, you tell me if a name pops out at you :)10:29
Chipacamvo: http://bazaar.launchpad.net/~chipaca/snappy/lock-ness/revision/771#daemon/mutex/mutex.go10:31
beunojdstrand, ack11:46
popeydholbach: heya, do we have a simple snapcraft example which caters for the "I have a simple C / C++ program I want to build and package as a snap?11:54
dholbachpopey, https://bazaar.launchpad.net/~snappy-dev/snapcraft/core/files/head:/examples/libpipeline/11:55
popeyta!11:55
dholbachsergiusens, tedg: about the Snappy Clinic?11:57
dholbachwhat do you think?11:57
dholbachI mean on Friday11:57
sergiusensdholbach, didn't I reply for Monday? :-)11:58
dholbachoh?11:59
dholbachsergiusens, ok... shall we have a chat on Friday then to talk about a propoer script?12:00
dholbachtedg, ^12:00
sergiusensdholbach, that sounds like a good plan12:00
dholbachawesome... which time? 14 UTC?12:00
sergiusensdholbach, 14 sounds good12:01
dholbachrock and roll - I'll pencil something into the calendar12:01
sergiusensdholbach, I might have a baby in arms potentially crying at that time, but for something private should be fine ;-)12:01
dholbach:-)12:02
* dholbach hugs sergiusens12:02
ogra_must be the mate overdose if it cries :)12:02
* sergiusens feels the hug and hugs back12:03
sergiusensogra_, probably, but from the mother ;)12:04
ogra_haha12:04
rickspencer3mvo, did I see "hw-assign" fixes in your snappy stable release announcement? ;)12:04
mvorickspencer3: yes, the override bug should be fixed in r712:09
rickspencer3mvo, is that the one that made me have to edit the apparmor profile?12:09
mvorickspencer3: yes, I believe that this one is fixed12:11
rickspencer3\o/12:11
* Chipaca -> lunch12:13
=== chihchun is now known as chihchun_afk
dholbachmvo, ogra: got much to discuss for the call today - if not, I guess we can skip it?12:27
ogra_dholbach, nothing from me atm12:28
dholbachall right, let's skip it then12:28
dholbachfrom what I gathered mvo is going to be busy as well :)12:29
ogra_nah, he just pretends to :P12:29
* ogra_ upgrades to snapcraft 0.3 ... lets see if my snaps still build 12:30
ogra_ogra@styx:~/Devel/branches/ircproxy$ snapcraft12:33
ogra_DEPRECATED: Use "plugin" instead of "type"12:33
ogra_Pulling ircproxy12:33
ogra_...12:33
ogra_Staging ircproxy12:33
ogra_Snapping ircproxy12:33
ogra_Generated 'ircproxy_0.1_amd64.snap' snap12:33
ogra_ogra@styx:~/Devel/branches/ircproxy$12:33
ogra_\o/12:33
* ogra_ changes "type" to "plugin" 12:34
mvodholbach: skip12:34
ogra_sergiusens, well done !!12:34
sergiusensogra_, lol, at least that works :-P12:34
=== chihchun_afk is now known as chihchun
* sergiusens wonders where zyga is12:35
sergiusensit is the perfect moment to switch to git12:35
ogra_oh, is that better to do if zyga isnt around ?12:36
* ogra_ didnt know 12:36
sergiusenslol12:36
sergiusensogra_, he said he'd help with all the automation :-)12:36
ogra_ah12:36
tedgdholbach: sergiusens: sounds good12:37
dholbachcool cool12:37
dholbachsergiusens, tedg: at which time on Monday do you think we should do the Clinic?12:38
dholbachshall we maybe announce it a bit in advance?12:38
tedgIf we go too early, people have an opportunity to think up hard questions.12:38
tedgNeed to keep them on the edge.12:38
dholbachI'm not sure if that should be a real concern. :-)12:39
tedgHeh12:39
dholbachwe're going to get those hard questions soon enough anyway :)12:39
tedgSo I'm not particular on time. I guess it'd depend on who we expect the audience to be.12:40
tedg1400UTC is a bit early for the West Coast US.12:40
dholbachok12:40
tedgBut, not sure if we're looking to include those folks or not.12:40
dholbachthe latest I could offer (if you want me in there as well) is 16 UTC12:41
dholbachthat's EOD (or near-EOD) for most Europeans, but I guess we could do that12:42
tedgdholbach: I think you'd have a better feel for what works than me or sergiusens12:42
tedgYou choose, we'll follow :-)12:43
sergiusensdholbach, 16 utc seems like a good compromise catch all12:44
dholbachok, let's try it - if it doesn't work, we'll do something different12:44
dholbachI'll send out the announce Thu or Fri - that should be good enough12:44
sergiusensdholbach, we should bounce the times so eventually everyone can join12:44
dholbachnice one! let's talk about that on Friday too then12:45
* ogra_ has lannding meeting on mondays at 16:00 UTC12:45
sergiusensogra_, you still go to those?12:45
ogra_yes12:45
sergiusensogra_, wow, why? :-P12:46
ogra_to help out with image build issues etc12:46
ogra_(and answer questions about plumbing which nobody else can answer anymore)12:47
sergiusensdholbach, btw, did you do your snapcraft dput magic?12:54
dholbachoh ok, no - will do12:54
tedgDid we ever add a logs command to snappy?12:57
dholbachsergiusens, https://launchpad.net/ubuntu/wily/+queue?queue_state=1&queue_text=snapcraft12:59
dholbachsitting in the queue for the release admins12:59
ogra_hmm, what is "snappy man" and why does it spill formatting chars to my console ?13:00
dholbachfgimenez, elopio: do we know why http://autopkgtest.ubuntu.com/packages/s/snapcraft/ is failing?13:07
dholbachwill 0.3 fix it? :)13:07
sergiusensogra_, that is what olli wanted, the man page (troff)13:15
ollisergiusens, I never said man or troff13:16
ogra_well, it would be nice if it was actually readable :)13:16
olliI want documentation to go to a website13:16
olliautomatically13:16
fgimenezdholbach, according to this https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-wily/wily/amd64/s/snapcraft/20151005_190657@/log.gz there's a problem with the unit tests, let me check13:16
ogra_the funniest is that i have "snappy man" but not "snappy help" :)13:17
sergiusensfgimenez, did we disable unit test running from debian/rules?13:17
fgimenezsergiusens, no idea, currently in trunk there's no override there for the tests13:19
Chipacaogra_: it's because you didn't want to ship troff in core. See what you've done?13:20
ogra_owww ... i didnt realize its my fault ... really sorry then13:20
* ogra_ seeds man :P13:20
Chipaca:-p13:21
fgimenezsergiusens, the failures are for 0.2.1 http://autopkgtest.ubuntu.com/packages/s/snapcraft/wily/amd64/ no override there either13:21
ogra_we just need to tell people to then run: snappy man|man13:21
Chipaca|man -l -13:21
ogra_yeah13:21
sergiusensfgimenez, you are talking about autopackage tests, I'm talking about the regular debuild13:23
fgimenezsergiusens, yes, in debian/rules there's only an override for dh_compress http://bazaar.launchpad.net/~snappy-dev/snapcraft/0.2/view/head:/debian/rules, the tests are not disabled there, but you are right, the errors in https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-wily/wily/amd64/s/snapcraft/20151005_190657@/log.gz come from adt-run while executing runtests13:29
sergiusensfgimenez, dholbach so unit tests aren't running from package build, I fixed it and reproduced the error13:29
sergiusensfails during package build, works fine outside of it13:29
plarsogra_: I'm bulding rolling/edge images for rpi2 with something like: "core rolling --oem pi2.canonical --device raspi2_armhf --enable-ssh --developer-mode --channel edge" and they seem to stop working at ubuntu-core rev 9, but 8 worked. Any idea what changed between those two that might have broken things?13:31
fgimenezsergiusens, great, thx :)13:31
plarsogra_: similarly, on generic_armhf, 186 works but 187 does not13:33
ogra_plars, rpi started using the new uboot setup between 8 and 913:34
plarsogra_: what's different about it?13:34
ogra_http://system-image.ubuntu.com/ubuntu-core/rolling/edge/raspi2_armhf/version-8.json (device=0.16 ...) http://system-image.ubuntu.com/ubuntu-core/rolling/edge/raspi2_armhf/version-9.json (device=0.16-1 ...)13:34
ogra_i have to look that up13:35
ogra_oh, that was just the addition of linux-fiirmware i think13:35
ogra_shouldnt affect booting13:35
ogra_and it wouldnt affect amd64 indeed13:35
plarsogra_: it will very likely affect things for me - remember how I have to boot the test images from usb?13:36
plarsogra_: so I'll likely need to make similar changes to uboot that boots from the mmc on our rpi213:36
ogra_well. i was wrong the uboot change was in 0.15 already13:36
ogra_when we dropped all txt files13:36
plarsogra_: right, this problem is just affecting rpi2, nothing else13:36
ogra_so between 8 and 9 there were only minor kernel adjustments13:36
plarsI'm gussing 187 for generic_armhf got the same kernel adjustments?13:37
plars*guessing13:37
ogra_no idea, i dont touch amd64 usually13:37
plarsogra_: I'm not saying amd6413:37
ogra_oh, generic_armhf, sorry, i misread13:38
ogra_might be, i didnt look at BBB for a long time either13:38
plars:)13:38
plarssomething in those changes broke rpi2 for us13:38
ogra_(last time for the uboot changes but they were far before that)13:38
plarsogra_: bbb works fine13:38
plarsrpi2 is completely busted for the way we have to automate it though13:38
ogra_well, both are identical on the uboot level13:39
ogra_both dont use txt files anymore and require editing of uboot.env13:39
plarsso either we need some other options for automating (unlikely unless they release a rev of the board with better hardware) or we need to figure out what changed and roll it back13:39
ogra_and both use the same kernel ... with RPi having a set of extra HW patches on top13:39
plarsogra_: I don't expect bbb to break here, we don't have to do this trick to make bbb boot13:40
plarsogra_: bbb boots off the sd card, just as if you had flashed it, because we can boot a stable image off of emmc13:40
ogra_http://people.canonical.com/~ogra/core-image-stats/20151002.changes thats the rootfs changes of 18713:40
plarsogra_: rpi only has one place to boot from, so we have to resort to pushing the new image to usb - did anything with usb perhaps?13:40
ogra_plars, yes, i know, i'm working on a netboot setup for the Pi as discussed with the CI team last week13:41
ogra_hopefully ready on friday13:41
plarsogra_: oh? I didn't hear about this13:41
plarsogra_: they don't tell me anything anymore :)13:41
ogra_you will still need the boot partition intact ... but it then should completely operate from ram and be able to dd a remote image from network13:41
ogra_plars, blame ursual and celso :P13:42
ogra_*ursula13:42
Ursinhame13:42
ogra_plars, anyway, the 187 changes show a new systemd and udev13:42
ogra_perhaps your issue is related to that13:42
Ursinhaplars: we can't advertise features other people are working on :P13:42
plarsogra_: hah, I thought that changelog looked familiar13:44
ogra_plars, so the idea is to have a script that itercepts the uboot boot via the serial port, then dumps a netboot config in place, pulls a remote kernel and initrd ... that initrd has dd and wget inside and writes that image to SD13:44
plarsogra_: it's the same point that bbb stopped getting ipv4 addresses on boot13:44
plarsogra_: I'm not sure that this is the same bug on rpi2 though, iirc when we looked at it with serial, it's just not getting past loading the kernel13:45
ogra_yes, probably a systemd regression13:45
ogra_i think pitti actually made some changes to networking that we perhaps need to adapt to13:45
* ogra_ remembers seeing a mail13:45
plarsogra_: where does it boot from though? the sd that it's about to dd over the top of? what happens if something goes wrong or if the new image that you dd is bad?13:46
plarsogra_: also, we've been down the path of trying to drive uboot automatically over serial before... it's bad13:46
ogra_you are screwed if the boot partition is broken indeed13:46
plarsogra_: isn't that exactly what we're trying to avoid?13:46
ogra_you cant avoid that13:46
plars:(13:46
ogra_as you know already :)13:47
ogra_i'm doing the best we can under the restrictions we have ... nothing more ... i cant magically swing my want and make an eMMC appear on the devic13:47
ogra_e13:47
ogra_*wand13:47
plarsogra_: yeah, I know... I think the way I already use is still better when it works though13:48
ogra_plars, do cprov and Ursinha know your way ?13:48
plarsogra_: yes13:48
* ogra_ wonders if it makes sense that he works on this then13:49
jdstrandmvo: is there something like this http://people.canonical.com/~lzemczak/landing-team/ubuntu-touch/rc-proposed/ for snappy?13:49
jdstrandmvo: and hello :)13:49
ogra_plars, the requirement was to dd a full image to the SD13:49
plarsogra_: I think they have different needs, and can more easily tolerate needing to reflash the sd if things go bad though13:49
ogra_i assume thats will be a very rare case anyway13:50
Ursinhaplars: for us it'd be to reset the device to run new tests13:50
plarsUrsinha: when ev talked to me about it, it sounds like you can handle needing to reflash a few by hand every day13:50
plarsUrsinha: that's harder for me13:50
plarsI need to be able to automatically reset it to a stable condition13:51
ogra_you will only need to manually re-flash if the dd actually failed to write the first megabytes of the img... as long as the first partition ends up on the SD you should be fine13:51
Ursinhaplars: that's sort what we need, but we need a specific stable condition :)13:51
ogra_i wouldnt expect that to be "a few per day" ... rather a few per month if at all13:52
plarsogra_: I'd be willing to give it a try13:52
ogra_i'll hand it to you once i'm done :)13:52
ogra_jdstrand, indeed there is ;) the original of that stuff ... http://people.canonical.com/~ogra/core-image-stats/13:54
jdstrandI was thinking you might've had it. thanks!13:55
ogra_jdstrand, iirc lukasz uses my logs as input, i guess he can do the same for snappy too13:55
ogra_in case you need more details13:55
jdstrandI don't, no13:56
mvojdstrand: what ogra_ said, plus there is a script https://code.launchpad.net/~mvo/+junk/compare-channels that can be used to compare channels, e.g. "compare-channels.py ubuntu-core edge alpha". its slow though needs to download images14:03
mvojdstrand: and hello to you as well :)14:03
jdstrandinteresting, thanks :)14:03
ogra_mvo, why do you need images to compare channels ? manifests should be enough14:16
mvoogra_: patches welcome :P14:16
ogra_well, just curious14:17
ogra_do yoou actually unpack them and compare contents ?14:17
mvoI don't know, I did that a long while ago, maybe I could not find the right manifests? sorry, I really don't remember14:17
ogra_fair enough14:19
sergiusensogra_, mvo I bet it is because the channels don't have manifests, only cdimage has manifests14:35
ogra_sergiusens, well, index.json has all info about which manifest to look for14:35
ogra_which is what my script does14:35
* ogra_ makes a note to actiually store the manifests under http://people.canonical.com/~ogra/core-image-stats/ so we have the history for them14:36
sergiusensogra_, ah, doesn't cdimage roll over though, faster than system image at least?14:36
ogra_yeah14:36
elopiosergiusens: could you please upload teh licensed snap example to the store?14:36
ogra_which is fine if you generate the changelog immediately after build14:36
ogra_but doesnt work when trying to go backwards14:36
sergiusensogra_, that is the reason ;-) when mvo did this it was reactive to figure out something that couldn't use the sources you use ;-)14:37
ogra_i'll add some backup code to my script14:37
ogra_so we have the manifests for older images too14:37
=== Guest77290 is now known as balloons
dholbachsergiusens, snapcraft 0.3 is in wily :)14:41
dholbachhttps://launchpad.net/ubuntu/+source/snapcraft/14:41
sergiusensdholbach, great, I already fixed that test thing, we can dilute it to 0.4 now I hope14:51
dholbachnice!14:51
sergiusensdholbach, thanks a bunch14:51
dholbachlet's open 0.4 then ;-)14:51
jdstrandmvo: fyi, I reviewed snappy-debug. please see my response to the email thread14:55
sergiusenselopio, fgimenez Chipaca I need one QA and one Chipaca to look at this :-) https://code.launchpad.net/~sergiusens/snapcraft/1506096/+merge/27441815:00
Chipacachipaca levels are running rather low today15:00
Chipacawe'll see if we can scrounge one up for you15:00
Chipacamvo: what's the state of https://code.launchpad.net/~mvo/snappy/snappy-snapfs-mount/+merge/273883 ?15:34
mvoChipaca: no change yet, sorry. I need to address the comments and thing some more about your other alternative15:56
Chipacano worries15:56
mvoChipaca: I kind of like the property of rm -rf /apps/$name/$ver15:56
mvoChipaca: I would like to preserve this, but maybe thats all mood with all-snap anyway because once something is mounted there the rm -rf will not work anymore anyway15:57
sergiusensmvo, btw, are we keeping SNAP_APP_DATA_PATH and others or are we going to be bind mounting that into /apps/$name/$ver/data ?15:57
sergiusenswe can keep the var too ;-)15:57
Chipacamvo: it's not strictly true anyway; there's a bunch of odds and ends in the system as well15:57
Chipacamvo: like apparmor, seccomp, and systemd chunks15:58
mvoChipaca: yeah15:58
mvosergiusens: hm, once we mount the snap we could bind mount too indeed. I have no immediate plans for this though15:59
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
sergiusensfgimenez, can you try real quick changing the port to 9999?16:05
fgimenezsergiusens, sure, give me a second16:05
sergiusensfgimenez, I don't know why it is going to a proxy since I added 'NO_PROXY' for 127.0.0.1 :-(16:06
=== chihchun is now known as chihchun_afk
fgimenezsergiusens, it seems to work with lower case os.environ['no_proxy'] = '127.0.0.1' :)16:12
=== wesleyma` is now known as wesleymason
mhall119asac: ping19:27
sergiusensolli, ^19:30
ollimhall119, wazzup19:49
mhall119olli: Hi, earlier this year we printed some appdev flyers to give away at conferences, they highlight the developer portal and the scopes, apps and web sections, We have a space available to add something about Snappy and a link to it's section on the devportal, I just need someone to tell me what words to use19:52
mhall119olli: see https://docs.google.com/document/d/1EQ3Dm-lMMxEY584_vX10ESBlxVxin8RgIHHpPCpgtns/edit towards the bottom I have a comment for this19:52
mhall119I'd like to get snappy stuff added before asking for another batch to be printed19:53
ollimhall119, what's your timeline?19:58
olliI don't think I will get to this this week19:58
mhall119olli: if we can get it early next week, I'm going ot try and have them printed in time for FOSSETCON next month20:03
ollimhall119, I added a reminder for Mo20:04
mhall119thanks20:04
=== manik_ is now known as manik
manikhey guys23:23
manikanyone around?23:23
manikhow do i generate a device tarball for a particular platform?23:23
tedgI'm around, but I don't know how to do that :-)23:27
maniktedg: is there any way to tell where a device tarball came from in a given image?23:30
manikor what version it is?23:30
manikor really get any information about it?23:30
manikalso, is there a way to access the contents of a .snap?23:33
sergiusensmanik, your questions are rather broad23:35
sergiusensmanik, there is no supported way to create a tarball23:35
maniksergiusens: thanks23:35
manikis there a way to see the snap contents?23:36
sergiusensmanik, instructions on how to get started with one are here though https://developer.ubuntu.com/en/snappy/guides/porting/23:36
sergiusensmanik, but to have it supported is another story23:36
sergiusensmanik, to list contents of a .snap that has not been installed just dpkg -c [file.snap]23:37
sergiusenssubject to change with all snaps23:38
manikok23:38

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