/srv/irclogs.ubuntu.com/2016/10/05/#snappy.txt

mupPR snapd#2092 opened: store: do not set store auth for local users <Created by niemeyer> <https://github.com/snapcore/snapd/pull/2092>00:44
=== wililupy is now known as wililupy|away
=== wililupy|away is now known as wililupy
mupPR snapd#2082 closed: overlord,daemon,snap: support gadget config defaults <Created by niemeyer> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2082>01:06
mupPR snapd#2071 closed: interfaces,overlord/ifacestate: switch to use declaration-based checking for auto-connect <Critical> <Created by pedronis> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2071>01:07
mupPR snapd#2089 closed: store: do not set store auth for local users <Created by matiasb> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2089>01:17
mupPR snapd#2092 closed: store: do not set store auth for local users <Created by niemeyer> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2092>01:17
mupPR snapd#2093 opened: cmd/snap,ctlcmd: fix behavior of snap(ctl) get <Created by niemeyer> <https://github.com/snapcore/snapd/pull/2093>03:20
mupPR snapd#2094 opened: docs: fix missing "=" in the systemd-active docs <Created by mvo5> <https://github.com/snapcore/snapd/pull/2094>06:06
mvoogra_: thanks for setting up "core". could we make it so that core is auto-triggered to build daily just like ubuntu-core? that would be great!06:18
dholbachgood morning06:25
mupPR snapd#2094 closed: docs: fix missing "=" in the systemd-active docs <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2094>06:40
morphis_zyga: ping07:22
mvopitti: quick question - what is the best way to conditionall enable a systemd service (cloud-init in my case). during boot I want to evaulate via "snap get core cloud-init.enabled" if it should run or not and based on target start cloud-init.target. should I just do that in a new snapd.cloud-init.service  ? "ExecStart=/bin/sh -c "if snap get core cloud-init.enabled; do systemctl start cloud-init.target; fi"? or is there a better way to do that?07:43
pittimvo: not sure that this works as cloud-init wants to run *very* early; you can't alter the early boot transaction while you are already in that07:45
pittimvo: I can think of two ways:07:45
pitti1) write a generator which does the get and enables cloud-init.service in the generator run dir07:46
pitti(that's the "official" way)07:46
pitti2) run snapd.cloud-init.service Before=cloud-init-local.service, if enabled create a /run/somewhere/run_cloud_init, and add ConditionPathExists=/run/somewhere/run_cloud_init to cloud-init*.service07:46
pittibut the latter is the same effort with a non-standard way to enable it and requires modifying cloud-init.service (you can do that with drop-ins); so I'd actually just use a generator07:47
pittimvo: I thought cloud-init already had like five different ways to enable/disable it -- none of them are suitable?07:48
pitti(kernel command line, flag files, etc.)07:48
mvopitti: well, maybe I have not found the right one yet :) I want it to be totally disabled, i.e. no python running by default to not slow down boot on arm07:48
mvopitti: the /etc/cloud/cloud-init.disabled does not do that, there is still python code run afaict (mind you, I'm not a cloud-init expert)07:49
pittiah, too bad -- otherwise that could just be the flag file07:49
pittialthough having it in /run would be better07:49
mvopitti: yeah07:49
pittimvo: so, I'd say just write a generator07:49
mvopitti: this will run very early, right?07:50
pittimvo: yes, before any unit starts; so you can make essentially zero assumptions about r/w mounts, remote mounts, networking etc.07:50
pittibut for checking a config option it should work fine07:50
mvopitti: hm, that is also going to be tricky because of the way the snapd config works. hm hm07:50
mvopitti: essentially a config get goes through snapd07:51
pittioh07:51
mvopitti: but thanks, I won't bother you more with this, let me think about this some more, this is really helpful so far07:51
pittimvo: when does snapd start?07:51
pittimvo: there is no way to get that config option without the daemon?07:51
mvopitti: in multi-user somewhere07:51
mvopitti: maybe, I need to check that out07:52
pittimvo: ok, way too late; cloud-init (the earliest is cloud-init-local) runs basically as the second thing after boot07:52
pittis/after/at/07:52
mvopitti: uhhh07:53
pittimvo: it wants to be able to change fstab entries, reformat partitions etc.07:53
clobranoHi everybody, I was looking at some bugs to fix, and saw Bug #1470661. Is it still a valid one? The code has changed a lot, this problem is still reproducible,but snapcraft schema allows tilde in version07:53
mupBug #1470661: Tilde allowed in version but systemd hates it <Snappy:Triaged> <Snappy 15.04:Won't Fix> <Snappy trunk:Triaged> <https://launchpad.net/bugs/1470661>07:53
mvopitti: thanks, tricky07:54
pittimvo: hm, I thought it had some ConditionSomething= on a file, seems not07:55
pittimvo: then again, how many features of cloud-init would actually work on snappy? most certainly not the fstab, formatting, package installation, etc. parts07:55
pittimvo: so on snappy you might actually get away with starting it later07:56
* pitti suggests discussing that in a hangout with smoser07:56
pittimvo: but still -- I'd say, find a way to get that flag without the daemon07:56
mvopitti: yeah, that is a good point, again, thanks for your input07:59
zygaara: hey08:56
ackkhey, I think you query'd the wrong nick :)08:57
ackkn/m, my client tricked me08:57
zygaara: we found this bug https://bugs.launchpad.net/snap-confine/+bug/163047908:58
mupBug #1630479: permission denied while opening mount namespace file <Snappy Launcher:In Progress by zyga> <snap-confine (Ubuntu):In Progress by zyga> <https://launchpad.net/bugs/1630479>08:58
zygaara: this will probably fail verification (well, it's a regression compared to .38) but we already fixed it and I'll probably upload .4308:58
arazyga, thanks for the heads up09:04
arazyga, (even if it is bad news!) :)09:04
morphis_zyga: ping09:06
mupPR snapd#2095 opened: snapstate: fix hanging `snap remove` if a try mount dir is no longer mounted <Created by mvo5> <https://github.com/snapcore/snapd/pull/2095>09:11
zygamorphis_: hey09:14
morphis_zyga: hey!09:19
morphis_zyga: you came forward yesterday with the /media share work?09:19
zygamorphis_: some, I'm working on that now09:19
morphis_zyga: I read yesterday here that you're out tomorrow and on friday, so you want to complete it today?09:20
zygamorphis_: yes09:20
mupPR snapcraft#716 closed: Add Waf plugin (LP: #1611335) <Created by cpaelzer> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/716>09:20
morphis_zyga: ok, then please lets discuss later today where you stop with this and what the status is09:22
zygaok09:22
zygasounds good09:22
morphis_zyga: I guess for the feature-freeze this needs to be done today anyway, right?09:32
zygamorphis_: I don't know09:33
zygamorphis_: gustavo said we might do this after ff and just treat it as a bug09:33
zygamorphis_: but my plan is to do it today09:33
mupPR snapd#2096 opened: tests: check for failure creating user on managed ubuntu-core systems <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2096>09:33
ogra_mvo, i was waiting for the store to support auto landing (it was still failing yesterday on "type: os")09:39
ogra_but yeah, as i said yesterday, i'm plainning to set that up today09:40
arahello! can I set up any env variable so that "snap login" uses the staging SSO site?09:41
ogra_zyga, a line or two in bug #1630492 would have avoided the heart attack i just had :P09:49
mupBug #1630492: /var/lib/extrausers is wrong in all-snap <Snappy Launcher:In Progress by zyga> <https://launchpad.net/bugs/1630492>09:49
ogra_(though whats wrong about it ?)09:50
mupPR snapd#2085 closed: many: check installation of slots and plugs against declarations <Critical> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2085>10:07
sborovkovhmm, when I do snap revert for snap installed in devmode does it keep devmode?10:18
zygaogra_: whaaat?10:18
zygaara: pedronis would probably know this10:18
zygaogra_: it's empty :) fixing it now10:18
sborovkovyeah, it does not... Does that even make any sense?10:19
mupPR snapd#2097 opened: snap: add `snap is-managed` for console-conf <Created by mvo5> <https://github.com/snapcore/snapd/pull/2097>10:20
arazyga, thanks10:21
arapedronis, question was whether there was an env variable (or other method) so that snap login points to the staging SSO site10:21
pedronisara: yes, but it needs to be set of snapd, so you need some kind of  /etc/systemd/system/snapd.service.d/local.conf and setting USE_STAGING_STORE=1 there, but also you need a specially built with snapd10:24
pedroniss/of snapd/for snapd/10:24
arapedronis, but does USE_STAGING_STORE set, also sets staging SSO?10:25
pedronisara: yes10:25
pedronisit points everything to staging10:25
arapedronis, OK, I will try that10:25
ara" but also you need a specially built with snapd"10:25
ara?10:26
arawhat does that mean10:26
pedronisara: if you do anything that involves getting assertions you need a snapd with the staging root key10:26
pedronisotherwise it will try to verify with only the prod one and that won't work10:26
arapedronis, how do you do that? a snapd with the staging root key10:27
pedronisara: are you on classic? or using an all-snaps image?10:27
arapedronis, classic10:28
pedronisara: you need a deb of snapd built with something like  DEB_BUILD_OPTIONS='nocheck testkeys' dpkg-buildpackage -tc -b -Zgzip or building snapd with go and replacing your system one10:30
arapedronis, OK, will try that10:30
arapedronis,10:30
arapedronis, thanks10:30
pedronisara: if you just build with go   :     go build -tags withstagingkeys ./cmd/snap and go build -tag withstagingkeys ./cmd/snapd should do the trick10:32
* pedronis lunch10:32
sborovkovHello. How do I revert snap revert? snap refresh does not work it seems10:33
arapedronis, cool, will try that10:33
zygasborovkov: "snap revert"10:37
mupBug #1630520 opened: snap login error message incorrect <Snappy:Triaged by chipaca> <https://launchpad.net/bugs/1630520>10:39
sborovkovzyga: wait won't it revert to even more previous version?10:39
sborovkovzyga: also how does that make any sense that snap revert removes devmode...10:40
popeyhm. I have a pi2 which auto updated overnight and now won't boot10:42
popeyhttp://paste.ubuntu.com/23279200/ hangs at Starting kernel...10:42
ogra_popey, anything on screen or serial ?10:43
popeyyes ^10:43
ogra_hmm, weird10:43
popeyi have two pi's (a pi 2 and a pi 3) on daily images and the pi3 came back okay, but pi2 didn't10:44
ogra_well, nothing changed in the kernel10:45
popeysorry, I have them the wrong way round, pi2 came back, pi3 didn't it seems10:45
popeyi need to put stickers on my pis to idenify them :)10:47
ogra_the pi3 has a white plastic bar on the top10:49
ogra_at least mine does10:49
zygasborovkov: look at --help10:50
ogra_mvo, so the auto-builds are set up, but since the store still doesnt accept them i wont set up a cron entry until i heard back from roadmr that the fixes landed (like i said yesterday as well)10:51
zygasborovkov: 12:47 < popey> i need to put stickers on my pis to idenify them :)10:51
zygaogra_: plastic bar?10:51
zygaogra_: photo?10:51
popeymine are in cases10:52
popeyi need to put a sticker on the case10:52
popeyI saw some nice transparent cases recently, which will help10:52
ogra_mvo, also note that the store now blocks *all* subsequent uploads if there was one failure in one revision upload10:52
sborovkovogra_: oh wow. Now I know how to differentiate my RPIs. Never noticed that bar before10:54
ogra_zyga, similar to the pi1 in that pic mine has that white plastic thingy (vs the same part in black on the left one) https://www.pretzellogix.net/wp-content/uploads/2015/08/flirc-rpi-3.jpg10:54
ogra_next to the headphone jack ...10:54
sborovkovogra_: to be fair though it also says the model in text if you don't have it without case10:54
ogra_but very fine print :)10:55
popeyold man eyes10:57
popeyhttp://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/ is useful if you "grep Revision /proc/cpuinfo" :)10:57
zygaahh10:57
zygaogra_: you mean the flat-flex connector latch10:58
popeyanyway, what can I do with this pi3 that won't boot?10:58
ogra_zyga, yeah, the bar :P10:58
zyga:D10:58
nhainespopey: well, if you leave it running it's probably nice for a small space heater.10:58
popeyshould I get something off the sd card? logs or somesuch?10:58
zygathe thing ;-)10:58
ogra_popey, hard reset10:58
popeyogra_: que?10:58
ogra_youo wouldnt get anything off the card anyway before anything is mounted10:58
ogra_so just reset it10:59
popeyas in, dd a new image on it?10:59
ogra_you can indeed check via HDMI10:59
ogra_if there is an oops or so10:59
ogra_but beyond that, just do a reset10:59
ogra_popey, that power plug thing ... pull it and plug it in again :P10:59
popeyhah, okay11:00
ogra_(i would have said re-flash otherwise ;) )11:00
popeyI was hoping for some leet reset tool :)11:00
popeyindeed, "reset" has other connotations for me, "reboot" might work ;)11:00
popeyalso as we call it in our house "Do a Daddy Pig"11:01
* ogra_ notes that down for next time :)11:01
=== hikiko is now known as hikiko|ln
popeyhttps://www.youtube.com/watch?v=fxqw0am27Fk is the episode in question11:02
mupBug #1572175 changed: change finished in status "Hold" with no error message <amd64> <apport-bug> <sdoc> <xenial> <Snappy:Fix Released> <snapd (Ubuntu):Fix Released> <snapd (Ubuntu Xenial):Fix Released> <https://launchpad.net/bugs/1572175>11:03
mvoogra_: ok, thanks11:06
popeyogra_: magically came back after a reboot :S11:08
mupPR snapcraft#852 opened: Simplify the parser tests <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/852>11:11
ogra_popey, yeah, i thought so, there is a mystical OOPS that we are still trying to debug ... ppisati didnt get further on that one either and i didnt manage to capture it yet11:16
popeyogra_: ok, thanks11:16
ogra_mvo, once enabled core info for the auto-builds will be at http://people.canonical.com/~ogra/core-builds/ (much like http://people.canonical.com/~ogra/ubuntu-core-builds/ was for ubuntu-core before)11:19
sborovkovzyga: btw "look at help" does not have anything about devmode or whatever. Idk I might be on old version though. Not going to update until that issue that makes snaps not working becase of cross architecture stuff is fixed...11:19
mvoogra_: neato11:23
zygasborovkov: oh, yes, perhaps it is not released yet, I'm running master11:25
zygasborovkov: I think behavior changed and it should not behave as you expect11:25
ogra_cjwatson, is there any specific reason why s3390x and ppc64el do not publish their manifest files (i see in the log that they built)11:37
ogra_-311:37
mupPR snapd#2098 opened: store: retry store operations (WIP) <Created by stolowski> <https://github.com/snapcore/snapd/pull/2098>11:39
cjwatsonogra_: s390x hasn't been upgraded to the new launchpad-buildd because I'm lazy; ppc64el hasn't been upgraded for some mysterious reason we've yet to properly investigate11:41
cjwatson(its image upgrader script is probably broken somewhere ...)11:41
ogra_ah, ok ... it isnt that important anyway, just curiosity ... i doubt anyone but me cares :)11:42
cjwatsonogra_: I'll take care of s390x at least, ppc64el will be a bit of a when-we-get-round-to-it11:45
=== hikiko|ln is now known as hikiko
ogra_yeah, dont put it on to high prio, i doubt there are even many users on these arches atm11:46
ogra_(i wish i could look up the numbers, but the store times out when i click on "stats" for ubuntu-core :)  )11:46
ogra_hah, and saying tht, this time it didnt11:47
ogra_but no downloads by arch :(11:47
cjwatsonMainly I just like having production revisions of things in sync where possible.11:52
* ogra_ notes mvo is a busy bee manually approving stuff in the store :)11:53
* ogra_ thinks this new store behaviour of blocking the world is insane ... approving a set now takes ages since you have to wait for the next fail first11:56
mupPR snapd#2099 opened: docs/hooks.md: fix typos <Created by pedronis> <https://github.com/snapcore/snapd/pull/2099>12:02
=== dholbach_ is now known as dholbach
dakerhi snapcraft question, how can i tell the make plugin to run two make commands (make something then make) ?12:06
zygadaker: write the make rules so that you don't have to12:06
dakerzyga: what do you mean ? write another Makefile that will run thoses make commands ?12:07
zygadaker: if you can control the original makefile just change that12:08
dakerzyga: no i don't have control that's an upstream project, and the first make commands is from a submodules12:09
ogra_well, a toplevel makefile would likely work ... just put your upstream project in a subdir and have the toplevel makefile drive everything12:10
hikikojust for the record I found a solution for my problem with the libcuda1-361 package but it was a hack: I edited the /var/lib/dpkg/info/libcuda1-361.prerm and put an "exit 0;" at the beginning so that the script doesn't run, then I purged nvidia* and libcuda1* and then I had no issues12:13
morphis_zyga: how are things going?12:24
=== ycheng-afk is now known as ycheng
zygamorphis_: I'm having issues using all-snap systems12:31
zygamorphis_: fighting console-conf12:32
morphis_zyga: what kind of issues?12:32
zygai cannot log in12:32
morphis_zyga: do you have a ssh key registered with your sso account?12:34
zygaah, I think I know what the problem is12:34
zygatrying again12:34
zygayes, certainly, I was just using the wrong key to log in12:34
zygamorphis_: I'm in :)12:43
mupPR snapd#2100 opened: store: local users download from the anonymous url <Created by matiasb> <https://github.com/snapcore/snapd/pull/2100>12:44
morphis_zyga: ah12:44
* ogra_ hands zyga a lockpick for the next time 12:44
mupPR snapd#2099 closed: docs/hooks.md: fix typos <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2099>12:45
ogra_mvo, if someone sends me an updated set of official assertions i can also set up the dailies to use core by default btw12:46
ogra_(if snapd is ready for that already indeed)12:46
popeyanyone seen this before:- popey@localhost:~$ sudo snap refresh12:54
popeyerror: cannot refresh []: cannot refresh snap-declaration for "pi2": Get https://assertions.ubuntu.com/v1/assertions/snap-declaration/16/ZbHoNCV2YMyGLhAf1U9SLaOvuVD02Sqs: dial tcp: lookup assertions.ubuntu.com: no such host12:54
popeyhmm, dns issue on that box... odd.12:55
morphis_ogra_: is it known that the pi3 kernel crashes quite often on edge?12:59
ogra_morphis_, there is a known oops on boot, if you can capture something please give it to ppisati13:02
ogra_beyond that my pi is rock solid13:02
morphis_ogra_: yeah happens always at boot, something with the uart13:03
ogra_rather withthe wifi13:03
morphis_will take a picture next time13:03
ogra_thx13:04
morphis_ogra_: but it corrupts the whole firstboot so I have to reflash my sdcard13:04
ogra_yep13:05
ogra_annoying....13:05
zygajdstrand: hey, can you look at https://github.com/snapcore/snap-confine/pull/162/files13:06
mupPR snap-confine#162: Set PATH unconditionally even if mount namespace is set up <Created by zyga> <https://github.com/snapcore/snap-confine/pull/162>13:06
ogra_it works with wired networkfor me though13:06
zygajdstrand: I'm making a tiny tweak to the test but it's just polish, the semantics is okay as is13:06
jdstrandzyga: yeah, I am looking at it now13:11
zygajdstrand: I need to cook a new release13:11
zygajdstrand: so those two are going in for sure13:11
zygajdstrand: I also merged this just a moment ago: https://github.com/snapcore/snap-confine/pull/16313:12
mupPR snap-confine#163: Disable quirks on all-snap systems <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snap-confine/pull/163>13:12
jdstrandzyga: does the lxd snap continue to work on all snaps?13:17
zygajdstrand: that is irrelevant as the quirk was only meaningful in classic, /var/lib/lxd doesn't exist in the core snap13:20
zygajdstrand: AFAIK it never worked there13:20
zygabut again, this is irrelevant for this reason13:20
jdstrandzyga: I was thinking perhaps this did work before because this created the /var/lib/lxd directory13:21
zygajdstrand: it cannot create that directory13:21
jdstrandbut maybe lxd does that already. idk. seems at least worth testing if it worked before and now doesn't so you could let the lxd guys know the snap will break on all snaps13:22
zygajdstrand: on all-snap /var/lib is on the core snap, there's no mount point for /var/lib/lxd13:22
zygaroot@localhost:~# mkdir /var/lib/lxd13:22
zygamkdir: cannot create directory ‘/var/lib/lxd’: Read-only file system13:22
jdstrandwell, right, which is partly what the quirk dealt with, no?13:22
zygano, the qurik only made the host's version of /var/lib/lxd show up13:23
zygaif there was one13:23
zygabut there's no /var/lib/lxd here and the idea of "hostfs" is meaningless13:23
jdstrandhmm, I guess that's true13:23
ogra_om26er, while i appreciate https://code.launchpad.net/~om26er/core-snap/improve_build_script/+merge/307640 (a lot actually, my python is usually awful) ... there is sadly no python3 on any of the servers these scripts run on13:24
diddledancould someone enlighten me as to why my corebird experiment isn't showing up in the unity menu when I've installed it? I'm thinking it might be related to my use of an svg icon(?) otherwise I feel I must have seriously misunderstood the setup of the desktop file13:24
diddledanhttps://github.com/diddledan/corebird-snap13:24
om26erogra_, oh, fun ;)13:24
ogra_the datacenter runs mostly on 12.0413:24
om26erogra_, no problem, its only a matter of a few months when 12.04 goes EOL and I can resurrect my branch ;) :p13:25
ogra_heh, well, i can merge it into a lp-build-core-py3 or so13:26
ogra_so we are future proof13:26
ogra_morphis_, bug 1627643 btw13:27
mupBug #1627643: oops on pi3 (seemingly wlan related) <Snappy:New> <linux-raspi2 (Ubuntu):New for p-pisati> <https://launchpad.net/bugs/1627643>13:27
morphis_ogra_: different one here: https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1630586/13:38
mupBug #1630586: Pi3 kernel crash and is unreliable <linux-raspi2 (Ubuntu):New> <https://launchpad.net/bugs/1630586>13:38
ogra_how do you know it is different ?13:38
morphis_ogra_: it crashes reliable at the same point here13:39
ogra_same here13:39
morphis_and there is nothing which relates to wifi13:39
ogra_and after the crash there is no wlan device setup possible13:39
morphis_ogra_: actually you can't even get into the device with this crash13:40
ogra_oh, it hangs hard ?13:40
morphis_yes13:40
ogra_then it actually is different13:40
mupBug #1630586 opened: Pi3 kernel crash and is unreliable <Snappy:New> <linux-raspi2 (Ubuntu):New> <https://launchpad.net/bugs/1630586>13:40
morphis_ppisati: https://bugs.launchpad.net/snappy/+bug/163058613:41
mupBug #1630586: Pi3 kernel crash and is unreliable <linux-raspi2 (Ubuntu):New> <https://launchpad.net/bugs/1630586>13:41
ogra_for me i see the oops pass by but after a while (1-2 min) i get the "please press enter" prompt and can set up the device13:41
ogra_only with wired though13:41
zygajdstrand: 1.0.43 released13:57
zygajdstrand, ara: we should get it into yakkety and override the SRU to use it13:57
zygait contains two fixes, one is very important and affects xenial13:57
mupPR snapcraft#852 closed: Simplify the parser tests <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/852>14:12
cjwatsonogra_: You should get s390x manifests now.14:17
ogra_cjwatson, yay, thanks !14:17
morphis_kyrofa: is this expected that snapd takes authority over the current configuration settings I can set via the config hook?14:17
mupPR snapd#2100 closed: store: local users download from the anonymous url <Created by matiasb> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2100>14:23
ogra_niemeyer, dbarth, so just in time for the meeting i had two WiFi SD cards and an adapter arrive :)14:27
* ogra_ is just unpacking them here 14:27
didrockssergiusens: hey! I think I found a regression (or case that wasn't tested) in the go plugin with go-importpath14:28
dbarthogra_: ah nice14:28
didrockssergiusens: source: ., go-importpath: <matching-my-project-import-url>. I see that parts/go/src/<myproject-url> is still the git branch and not the local source14:29
niemeyerogra_: Oh, nice14:29
niemeyerogra_: Looking forward to the news there!14:29
didrockssergiusens: so, local modification aren't reflected, I guess that's a bug and that was the purpose of importpath, correct?14:29
ogra_i'll report back what works and what doesnt once i had some time to play with them14:29
* ogra_ shakes fist at google14:31
arapedronis, I have built the debs with the parameters you mentioned and installed the new .debs, yet snap login cannot find the account that was created in staging14:34
arapedronis, (and I have USE_STAGING_STORE=1)14:35
pedronisara:  you can turn on debugging with SNAPD_DEBUG_HTTP=1  (only requests) or SNAPD_DEBUG_HTTP=7 (everything)14:37
pedronisand look at syslog14:37
morphis_zyga: you got it working already?14:37
arapedronis, trying14:37
zygamorphis_: I fixed two issues in snap-confine, iterating on the problem14:38
zygamorphis_: (the problem==/media)14:38
zygamorphis_: I need to rebase it on top and try again, fingers crossed but outlook is positive14:39
morphis_zyga: ok, you think we need a plan to accommondate you being away starting tomorrow?14:39
morphis_zyga: if yes, lets bring that up in the team meeting14:40
kyrofamorphis_, I'm not sure what you're asking about the configuration settings14:40
arapedronis, mmm, syslog doesn't give me a lot of info: Oct  5 16:39:01 sushirider /usr/lib/snapd/snapd[7573]: daemon.go:174: DEBUG: uid=0;@ POST /v2/login 1.734880238s 40114:42
arapedronis, (for example, whether it is correctly pointing to staging)14:42
pedronisara: seems the wway you are turning on those env var is wrong14:42
pedronisyou should get a lot of spam14:42
pedroniswith SNAPD_DEBUG_HTTP14:42
om26erHow do I get pip on all-snaps ?14:43
ogra_you ue it in snapcraft ;)14:43
ogra_*use14:43
morphis_kyrofa: I started to play with it now that my hook is called and saw that the actual configuration state is stored in the snap which seems to be applied again when a new snap revision is installed14:44
morphis_kyrofa: which conflicts a bit if the snap has other mechanisms to change the same configuration items14:44
morphis_s/stored in the snap/stored in snapd/14:45
kyrofamorphis_, how is it applied again when a new revision is installed?14:46
kyrofaAre you saying the hook is called again?14:46
morphis_yes14:46
arapedronis, I have them set up at /etc/systemd/system/snapd.service.d/local.conf14:46
arapedronis, what's the right way?14:46
pedronisthat's one of the ways14:46
pedronisone sec14:47
morphis_kyrofa: so "snap install my.snap" gives me a call on the configure hook where I then look into the existing config items via snapctl14:47
morphis_kyrofa: however those might be already overriden by something inside the snap14:47
pedronisara: this what our tests do (just making sure we are on the same page):  http://pastebin.ubuntu.com/23280119/14:48
arapedronis, definitely different, thanks for the pointer!14:48
pedronisreplace SNAP_REEXEC=0 with USE_STAGING_STORE=114:48
kyrofamorphis_, huh... I only added a hook call when `snap set` is called, I'm not sure why it would be called upon install14:48
pedronisara: those conf are overrides, they follow systemd unit syntax14:49
morphis_kyrofa: so I am wondering who has authoritive over the current state of the configuration, the snap itself or snapd?14:49
pedronisara: sorry I wasn't super clear when I mentioned that14:49
om26erogra_, won't I be able to just pip install something ?14:49
arapedronis, no worries, thanks a lot for the help14:49
kyrofamorphis_, we wanted it to be held within snapd, otherwise every snap would need some way to store it and respond to queries about it14:49
ogra_om26er, nope ... and python is not even guaranteed to be on the core snap14:50
morphis_kyrofa: so how can something inside the snap change the configuration? calling snap set?14:50
ogra_the only things we guarantee are snapd, systemd and /bin/sh14:50
ogra_everything else can change at any time14:50
kyrofamorphis_, admittedly we need a way to ask the snap for its configuration so we can initialize it within snapd14:50
om26erogra_, a snap for pip, maybe ?14:50
ogra_om26er, you can intall the classic snap though .... so you have a "normal" deb env14:51
kyrofamorphis_, something within the snap can change config via `snapctl set`, and get it with `snapctl get`14:51
ogra_sudo snap install classic --devmode --edge14:51
ogra_then: sudo classic14:51
om26erogra_, is that persistent now ? I was once told here that it will be wiped on reboot.14:51
ogra_that gives you a classic shell env14:51
morphis_kyrofa: you mean snap set or snap get, right?14:51
kyrofamorphis_, no, snapctl14:51
om26erI do use classic already in virt-manager14:52
zygamorphis_: snapctl is not the same as snap14:52
morphis_kyrofa: as for snapctl you need SNAP_CONTEXT being set14:52
ogra_it wont be wiped ... but services started in that enmv wont be started14:52
zygamorphis_: it uses another socket14:52
morphis_zyga: I know14:52
kyrofasnap get/set is for a user, it'll cause the hook to be called14:52
kyrofamorphis_, snap get/set allows one to change settings for all snaps14:52
ogra_*services installed in14:52
kyrofamorphis_, snapctl uses a context generated for hooks to determine the snap which is being altered, so snaps can't alter the config of other snaps14:52
morphis_kyrofa: so where do I get that context from when I want to change the config for my own snap from within an application of that snap?14:53
kyrofamorphis_, again though, we're missing a little bit of the picture for config, as you've noticed14:53
om26erogra_, Whats the footprint you aiming for the core snap ?14:53
morphis_kyrofa: yeah, but trying to understand what you guys have in mind14:53
ogra_om26er, aiming for 0 ... :P ... reality is between 60 and 75MB14:54
morphis_kyrofa: as this conflicts with what we've build for a snap where snap actually has the authority over the configuration data14:54
ppisatimorphis_: what's the kernel version?14:55
kyrofamorphis_, long-term I imagine we'll have a hook that runs upon install that the snap can use to pre-load snapd with its config14:55
=== JanC is now known as Guest96823
=== JanC_ is now known as JanC
kyrofamorphis_, or something similar14:55
niemeyerkyrofa: Not long term, today14:55
kyrofaniemeyer, we have that today?14:55
morphis_ppisati: added the kernel snap rev to the bug14:55
niemeyerkyrofa: Yep ;)14:56
morphis_niemeyer: how? :-)14:56
kyrofaniemeyer, ha!14:56
ppisatimorphis_: 4.4.0-1023-raspi2 29 apparently14:56
niemeyermorphis_: The configure hook is called on every install and every refresh of the snap14:56
morphis_ppisati: yeah, just verified: 4.4.0-1023-raspi2 #2914:56
niemeyermorphis_: What exactly are you looking for?14:56
ogra_thats the current one14:56
kyrofaniemeyer, even without a configuration?14:56
niemeyerkyrofa: Right14:57
morphis_niemeyer: nothing urgent we have to discuss now if you have more important things to do for feature-freeze14:57
kyrofamorphis_, so upon first install, the snap can just `snapctl set` its config, basically14:57
niemeyermorphis_: Well, I'd like to clarify these points now, to ensure we don't have confusion on this area14:57
morphis_niemeyer: just trying to understand how these things are supposed to work as we have a snap which assume it has the authority over its configuration data which slightly conflicts with what snapd does with the config hook14:57
kyrofamorphis_, the snap still has authority, it just doesn't have the responsibility of storing it all. It can still change configs and veto change requests14:58
niemeyermorphis_: Every snap can continue to have authority of its configuration, and they don't even have to implement the configure hook14:58
niemeyermorphis_: snap set will fail if the configure hook is not in place, telling the user that's the case14:58
ogra_ppisati, perhaps i'm missing something in th config.txt for that image ? http://paste.ubuntu.com/23280174/14:59
morphis_niemeyer: yeah sure, but having a generic mechanism would make sense14:59
morphis_to not reinvent the wheel again and again14:59
niemeyermorphis_: Yes, and we've implemented that generic mechanism..14:59
morphis_niemeyer: yeah, which is great :-)14:59
morphis_niemeyer: as said, I don't say its incorrect or wrong, I am just trying to understand how its supposed to work :-)15:00
niemeyermorphis_: Right now snapctl get/set must be done from within a hook (any hook), but in the near future the snap as a whole will be able to use snapctl anywhere, and adjust its configuration accordingly15:00
morphis_niemeyer: yeah, that was the point I was missing15:01
niemeyermorphis_: Every time snap get/set is done, the configure hook is called again, and has a chance to adjust its configuration in any way it wants, and it may also reject the configuration proposed15:01
om26erogra_, on another question, can I assume that installation of an all-snap Ubuntu Personal (read: desktop) would technically be even faster than it is today ? Just dump of the image on the partition and account setup ?15:01
ogra_om26er, well, it'd be closer to a phone or the M10 tablet we have today ... but yeah, dump it to disk and a (graphical) first-setup too runs15:02
ogra_*too15:03
ogra_pfft15:03
morphis_niemeyer: with the sync mechanism via snapctl set it makes more sense as then I can tell snapd when something else has changed the configuration item15:03
ogra_*tool15:03
niemeyermorphis_: The configure hook is called with the _whole_ configuration, not just the requested changes15:03
niemeyermorphis_: Yes, that's what the earlier point addresses15:03
niemeyerThis, specifically:15:04
niemeyer12:00:34 <niemeyer> morphis_: Right now snapctl get/set must be done from within a hook (any hook), but in the near future the snap as a whole will be able to use snapctl anywhere, and adjust its configuration accordingly15:04
morphis_niemeyer: what you mean with the whole configuration? I have to do a snapctl get call to get specific items in my configure hook implementation15:04
niemeyermorphis_: That's right.. I just mean the whole configuration is at hand15:04
morphis_ah15:04
niemeyermorphis_: Not just the delta that was requested via snap set15:05
morphis_niemeyer: what about the changes stored in the snapd transaction database, when I revert to an earlier revision of a snap are all configuration changes reverted back to that revision as well?15:06
niemeyermorphis_: Not yet, but I'm planning to fix that for the RC15:06
niemeyerHave a good idea for how to do that in a simple way already15:07
om26erWhats the speed difference of reading a file from ext4 and reading from a squashfs based snap(do we use compression of some sort?) place on ext4, have we measured that ?15:07
elopiosergiusens: kyrofa: does this make sense? https://github.com/elopio/QGIS/blob/snapcraft/snapcraft.yaml#L6615:09
elopioI had to move the stage packages to a different part, because otherwise it wouldn't find them during build.15:09
kyrofaelopio, so it only looks in stage, eh?15:10
kyrofaelopio, although you don't use `after` it seems?15:10
kyrofaelopio, oh nevermind, I'm blind15:10
kyrofaelopio, how does qgis find deps? cmake modules? pkg-config?15:11
kyrofaelopio, those deps, specifically15:11
elopiolots of cmake find modules15:11
kyrofaelopio, let me take a look, hold on15:12
ogra_morphis_, does your pi image with the oops actually use an unmodified config.txt ? i wonder if we are missing something there, the default is http://paste.ubuntu.com/23280174/15:12
elopiothanks15:13
morphis_niemeyer: sounds good15:13
morphis_ogra_: its the default one15:13
morphis_ogra_: that what comes via ubuntu-image/snap prepare-image15:14
ogra_ok ... well, i wonder i ppisati might find some missing option regarding the uart there15:14
ogra_morphis_, right, straight from the gadget snap15:14
ppisatiogra_: i'm flasging an image that i just preapared15:14
ogra_oki15:14
elopioralsina: I think I removed the coverage checks on integration and snaps tests. But it makes sense to check the coverage of unit tests. If a line is not executed, it's very likely that it should be removed, don't you think?15:15
ppisatiusing the model posted in lp163058615:15
ppisatilet's see15:15
mupPR snapcraft#853 opened: Simplify the handler from uri tests <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/853>15:15
ralsinaelopio: could be. I was just a it frustrated about being -0.006% but then I removed an unused line ;-)15:15
elopioralsina: anyway, we don't really pay a lot of attention to those numbers, because coveralls is know to be bad at math. We only care when there's a clear missing test.15:16
ralsinaelopio: cool with me :-)15:16
ogra_morphis_, woah, reading your syslog in bug 1630586 i see a lot of errors i dont see on any standard image ... specifically the squashfs errors are interesting15:17
mupBug #1630586: Pi3 kernel crash and is unreliable <Snappy:New> <linux-raspi2 (Ubuntu):New> <https://launchpad.net/bugs/1630586>15:18
morphis_ogra_: yeah possible that those come after the first boot or so15:20
ogra_hmm, actually i havent ooked into my syslog of the running pi3 here for a while ... i got the same here15:20
ogra_this is worrying15:20
ogra_mvo, ^^^^ did anything regarding squashfs change recently in snapd ?15:21
ogra_mvo, http://paste.ubuntu.com/23280252/15:21
ogra_and thre are a lot more errors15:22
SuperJonotronTrying to figure out the correct way to setup the environment variables for my snap to access the writable sections.  I know I can hard code the "current" version of the snap install but it seems like this should be the version number15:24
SuperJonotronnot sure how to dynamically grab the version number when the snap launches15:24
mvoogra_: auto-probe magic for assertion15:24
mvoogra_: harmless15:24
mvoogra_: but noisy:/15:24
ogra_phew !15:24
ogra_that had me shocked for a moment15:25
kyrofaSuperJonotron, have you seen this? https://askubuntu.com/questions/762354/where-can-ubuntu-snaps-write-data15:26
SuperJonotronI have seen that but I was unclear on whether or not just accessing those variables alone would do the trick or if they needed to be initialized15:27
kyrofaSuperJonotron, just accessing them should be enough15:28
SuperJonotronI'll give that a shot.  I also have to figure out how the snap can generate a configuration file within it's read only folder where it's packaged or reference it's creation in the SNAP_DATA folder15:29
SuperJonotronis this possible with say a symbolic link?15:29
morphis_mvo: auto-probe magic for assertions? are they stored in squashfs?15:29
ogra_likely in /writable15:29
ogra_but the squashfses are matched against them i guess15:30
kyrofaelopio, hmm... this isn't just using cmake, it actually shells out to python scripts as well15:32
kyrofaelopio, you might need to set those variables for the build15:32
elopiokyrofa: but I think I'm misunderstanding stage packages. Shouldn't they be in the stage dir, before the part builds?15:32
kyrofaelopio, no, they're in the part's installdir15:33
kyrofaelopio, and they get migrated along with the rest of the part to stage15:33
elopiokyrofa: and they get to the installdir, before the part builds?15:33
kyrofaelopio, indeed15:34
elopiokyrofa: so, shouldn't the installdir be added to the paths, just like the stage dir?15:34
mvomorphis_: the code will probe any block device15:34
morphis_mvo: ah15:34
kyrofaelopio, yeah, that's what I mean to say. The find modules will need a PYTHONPATH looking in the installdir in order to find anything, it seems15:35
kyrofaelopio, but I'm a bit surprised this works with the stagedir, honestly15:35
kyrofaelopio, are you sure pyqt5-dev actually needs to be staged?15:36
elopiokyrofa: well, I meant that it should work magically using installdir, like it does with stage dir ^_^15:36
kyrofaelopio, haha, I agree! It just means we need to figure out the magic first :P15:37
elopiokyrofa: as a build package, it doesn't find it.15:37
kyrofaelopio, huh, that's interesting15:37
elopioand qgis does some weird things on loading, with python. So I think it's also needed in the final package. But I'm not totally sure.15:37
kyrofaYeah, whenever I see -dev packages in stage-packages, I know something is off15:37
kyrofaHmm15:37
mupBug #1630652 opened: snap revert and refresh forwards and backwards causes breakage <Snappy:New for chipaca> <https://launchpad.net/bugs/1630652>15:53
ppisatiogra_: did you try to generate a pi3 image?16:02
ogra_ppisati, ?16:03
ogra_my scripts do that every day, why ?16:03
ppisatiogra_: i'm referring to morphis_ bug16:03
ogra_http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/16:03
ppisatiogra_: and does your image have that stack trace on boot?16:04
* ppisati tries without the eth cable16:04
ogra_ppisati, it used to last week ... i havent freshly installed since16:04
ogra_but nothing changed afaik ... so it should still have it16:04
ppisatiogra_: ok, me tries without the eth cable and then tries your image16:05
SuperJonotronI have an application wrapped up in a snap and running but I know it lacks a license to operate fully and the application will want to write this license into a folder within the application structure (the read only section).  I have no control over changing this behavior and need to know how to give this folder writable access when it needs to update and/or create the license file16:08
arapedronis, OK, it looks now that it takes those env variables into account, as i am getting a lot more debug messages16:09
kyrofaSuperJonotron, you can't tell it where to write with a cli parameter or anything?16:09
arapedronis, but it looks like it still tries to connect to login.ubuntu.com (instead of loging.staging.ubuntu.com)16:09
SuperJonotronkyrofa, I am porting a piece of existing software into the ubuntu snappy os and so I have limitations on what is exposed.  I do have direct contact with the manufacturer so I can double check what I am allowed to do but as of right now, I have not found a way to overwrite this method.  What would you suggest a solution be to overwrite the apps behavior to write into the snap environment?16:10
arapedronis, Oct  5 18:10:23 sushirider /usr/lib/snapd/snapd[21445]: logger.go:66: DEBUG: > "POST /api/v2/tokens/discharge HTTP/1.1\r\nHost: login.ubuntu.com\[...]16:11
SuperJonotronkyrofa, I would also imagine I would need to create a link to the file back into the application where it expects it to be?16:11
kyrofaSuperJonotron, that means the application could never be installed into e.g. /usr/local/bin either, since it's owned as root16:11
kyrofaSuperJonotron, if the app requires where it is to be writable, then really your only option is to copy the entire thing into writable space16:12
kyrofaAnd run from there16:12
kyrofaSuperJonotron, but that's kinda terrible16:12
SuperJonotronwhat about just the licensing section and create a link back to the file?16:13
SuperJonotronis that allowed or will the read only status block a link being made?16:13
kyrofaSuperJonotron, you can't write in $SNAP, plain and simple. No files, no links16:13
mupPR snapd#2101 opened: image: support gadget specific cloud.conf file <Created by mvo5> <https://github.com/snapcore/snapd/pull/2101>16:15
SuperJonotronkyrofa, thanks, I'll see if I can work with the manufacturer to overwrite the default licensing folder to reference one of the writable snap locations16:15
kyrofaSuperJonotron, yeah, I'd ask for either a CLI parameter or support for an environment variable16:17
elopiodavidcalle: ping. Did you find the mapbox contact?16:23
morphis_zyga: what's the state now?16:26
morphis_zyga: can you drop me a mail before you leave tomorrow on where you leave this and what the next steps are?16:28
elopiokyrofa: synapse working \o/ https://gist.github.com/elopio/dffcda326f5b51feedeb09f012ac9a4416:36
zygamorphis_: yes, sure16:43
ogra_jdstrand, so mvo said core should auto-land in the store now ?16:44
zygamorphis_: still working on it, testing is slow16:44
ogra_jdstrand, i.e. i can enable the cron build now ?16:45
pedronisara: it's my fault, the env var is SNAPPY_USE_STAGING_STORE=116:48
pedronisara: I totally went by memory, and it seems my brain has dropped the prefix16:48
zygajdstrand: hey, I need your review on this https://github.com/zyga/snapd/pull/2/files16:48
mupPR zyga/snapd#2: Make sure gpio exported before apparmor setup <Created by jocave> <https://github.com/zyga/snapd/pull/2>16:48
zygajdstrand: joc figured out how to solve the gpio issue but it requires that the permanent slot snippet exports the gpio to userspace16:49
zygajdstrand: so by the time apparmor snippet needs to be comoputed the gpio directory already exists and we can run realpath on it (dereference all the symlinks)16:49
zygajdstrand: I think that's okay but I wante to check with you first16:49
zygajoc: ^^16:50
zygajoc: good work and good thinking :) (unless jdstrand disagrees) I didn't think about it16:50
zygas/about it/of it/16:50
ogra_these wifiSD cards are fun !16:50
zygaogra_: do they work?16:51
zygaogra_: tell me which you got,16:51
zygaI'll drop some to amazon inbox16:51
joczyga: thanks, lets see what jamie says!16:51
ogra_zyga, well, i have to solder a serial port on ... seems the documented hacker backdoors hhave been fixed (some of them at least)16:51
ogra_but i guess we can actually use them for flashing the pi's for testing images16:52
ogra_they come with a very tiny linux16:52
ogra_and AP mode ...16:52
ogra_i guess i can hack the initrd on them to give us a flashsher tool16:52
ogra_zyga, transcend seems to be hackeble pretty well ...16:53
zygaogra_: OMG :D16:53
ogra_i got a toshiba one as well, but that doesnt seem to run linux :/16:53
zygaogra_: can you share the link to the product you think is woth getting16:54
ogra_zyga, https://www.amazon.de/dp/B010MQ13E8 ... i didnt get the transcend one from amazon though16:56
ogra_they only have the flashair toshiba one in germany atm16:56
ogra_or eyefi ...16:56
ogra_but afaik both arent easily hackeable16:56
zygajoc: please add that comment and I'll merge it into my branch16:56
zygajoc: this will update the pull requast16:56
zyga*request16:56
zygathe main one16:56
zygajoc: and if jdstrand gives it a +1 we'll be good to go16:57
mupPR snapd#2093 closed: cmd/snap,ctlcmd: fix behavior of snap(ctl) get <Created by niemeyer> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2093>16:59
zygaogra_: thanks, it is even cheaper on amazon.es16:59
ogra_heh17:00
* zyga -> afk17:02
zygaI'll be back later, I need to rest17:02
mupPR snapcraft#853 closed: Simplify the handler from uri tests <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/853>17:03
mupPR snapd#2101 closed: image: support gadget specific cloud.conf file <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2101>17:09
mupPR snapd#2098 closed: store: retry store operations (WIP) <Created by stolowski> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/2098>17:11
jdstrandogra_: yes17:31
ogra_ok, let me try that ... you will have to approve each single one if you lied ;)17:32
mupBug #1630690 opened: A snap with git fails because it can't access /etc/mailname <Snappy:New> <https://launchpad.net/bugs/1630690>17:33
morphis_zyga: aye17:49
morphis_zyga: please just drop me a note per mail where you leave this17:51
ogra_jdstrand, GOSH ! ... IT WORKS !17:59
ogra_:)17:59
ogra_http://people.canonical.com/~ogra/core-builds/ ...18:00
ogra_:)18:00
rharperhi, looking for any docs on creating assertions, like account and account-id;  I want to test out creating assertions, signing them and acking them;  I see various assertions in the snapd source but not sure of the required key and inputs18:03
jdstrandogra_: yay :)18:07
=== fginther` is now known as fginther
om26erI cannot set password on all-snap image on RPi, it gives me:18:09
om26erom26er@localhost:~$ sudo passwd18:09
om26erpasswd: Authentication token manipulation error18:09
om26erpasswd: password unchanged18:09
sergiusensom26er shouldn't it be `sudo passwd $USER` ?18:10
om26ersergiusens, my bad, it worked that way.18:10
om26erI am actually used to digitalocean droplets where I am root and `passwd` just works18:11
=== davmor2_ is now known as davmor2
om26erI have a new project https://github.com/om26er/pigpio, its specifically for the RPi but I haven't been able to find a way to build armhf snap. The only piece I found is https://developer.ubuntu.com/en/snappy/guides/cross-build/18:27
om26erwhich doesn't help much as there is no mention of snapcraft in that. Whats the recommended way to build armhf snaps ?18:27
om26eroh, btw upload to snap store was instant, much faster than I had expected.18:27
om26erbrb18:29
mupPR snapd#2102 opened: cmd/snap: rename is-managed to managed and tune <Created by niemeyer> <https://github.com/snapcore/snapd/pull/2102>18:38
mupPR snapd#2097 closed: snap: add `snap is-managed` for console-conf <Created by mvo5> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/2097>18:47
SuperJonotronIs there a system variable when running a snap for the current version folder and/or the latest version number?  http://askubuntu.com/questions/762354/where-can-ubuntu-snaps-write-data mentions where to find the writable directories but can't seem to find where the app install directory is defined as a variable18:48
cjwatsonom26er: You can build armhf snaps on Launchpad19:21
om26ercjwatson, do I need to register my project on launchpad for that ?19:22
cjwatsonom26er: Yes.  Import the repository to a Launchpad branch (either push the same git repository manually to LP, or cross your fingers and do a git->bzr import, or wait for us to finish git-to-git imports), then you can create a snap package from the LP UI19:22
cjwatsonom26er: We'll be automating this further in future19:23
cjwatsonI think the guide you found is how to cross-build snapd itself, and it's out of date anyway ...19:23
cjwatson(refers to cmd/snappy, which isn't a thing any more)19:24
om26ercjwatson, ok, I will try that now.19:25
om26ercjwatson, is there a change in future when git becomes the primary version control for Launchpad ?19:25
cjwatsonom26er: what would "primary" mean, in your opinion?19:25
cjwatsonom26er: I mean, in what particular sense is it not that would be changed by being primary19:26
om26ercjwatson, launchpad code currently rings a be of bzr in my head, while we do have git support, most docs that we see around only refer to bzr.19:27
cjwatsonom26er: there are probably a bunch of docs to update spread all over the place, it's a pretty Sisyphean task19:27
cjwatsonom26er: many of them not maintained by us either19:27
cjwatsonom26er: our git hosting is lacking maybe about two or three substantial features compared to our bzr hosting, but it's definitely the way forward19:28
cjwatson(imports, more useful subscriptions, direct translation commits)19:29
om26ercjwatson, ok, good to know.19:29
cjwatsonom26er: shifting ten years of perception is going to take a while no matter what way you slice it though19:30
mupPR snapd#2095 closed: snapstate: fix hanging `snap remove` if a try mount dir is no longer mounted <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2095>19:32
mupPR snapcraft#851 closed: catkin plugin: nicely handle an invalid rosdistro <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/851>19:37
kyrofaHey jdstrand, I lost track of the seccomp arg filtering, particularly relating to setpriority. Is that stuff still waiting to land?19:47
jdstrandkyrofa: the feature landed. the policy to use it has not. it was deprioritized in favor of a bunch of rtm interfaces and now other rtm/ga stuff. once that stuff is done, I'm back to dbus-app PR and after that, these seccomp arg policy19:50
jdstrandpolicies19:51
kyrofajdstrand, sounds good, thanks for the update!19:51
jdstrandnp19:51
om26ersnap install gives me 401 on all-snap.20:04
om26ersomething broken in the image or server side ?20:04
om26erom26er@localhost:~$ sudo snap install classic --devmode --edge20:09
om26ererror: cannot perform the following tasks:20:09
om26er- Download snap "classic" (17) from channel "edge" (received an unexpected http response code (401) when trying to download https://public.apps.ubuntu.com/download-snap/QbSFwGGAgvG8zHl9nWLY7vEee8lhgFsp_17.snap)20:09
mwhudsonmorning20:11
loolkyrofa: I sense you're about to snap cartografer for ROS!  http://opensource.googleblog.com/2016/10/introducing-cartographer.html   :-)20:15
looldamn, the laser seems to be 1000 USD20:20
loolthere are some 150 USD ones, unidirectional though20:23
kyrofalool, haha, awesome20:30
kyrofalool, yeah, stereo SLAM is usually cheaper20:32
kyrofaoptical, I mean20:32
loolkyrofa: I wonder if we could do the same kind of mapping with just a sonic depth sensor20:33
loolkyrofa: there is one on the slam dunk20:33
loolNB: running ubuntu and ROS :-D20:34
kyrofalool, sonic sensors don't typically have great range though-- do you know what that one is?20:34
loolkyrofa: I'm afraid not, but you're right, it was in range at about 1m and out of range at <0.5 and >2m20:35
loolit was more for collisions20:35
kyrofaYeah that's a typical use-case20:35
kyrofaAnd for some platforms, it might be enough for mapping (i.e. small and slow-moving)20:36
kyrofaResolution wouldn't be great20:36
rharpermwhudson: hey;  I playing with snap ack and assertions, and I can't seem to construct anything that snap will actually ack;  I looked at the json input you used for system-user; but was hoping to have an account and account-id one so I can test out acking multiple assertions ;  any pointers to the right json format for account-id or such ?20:37
mwhudsonrharper: you need a model where you are the authority, do you have that bit set up?20:38
loolkyrofa: did you manage to move our ros support to indigo before roscon?  :)20:38
mwhudsonthere is a google doc with instructions for that, let me dig it up20:38
kyrofalool, indigo has been supported for ever. I'm assuming you mean kinetic? Yessir!20:38
loolerr sorry kinetic20:38
kyrofalool, yeah, just landed in 2.1920:39
loolnice!20:39
mwhudsonrharper: https://docs.google.com/document/d/1cJvRnpoQyLvY6pOLFPgUxMHrFVBCDNwAlrORARBiZlU/edit20:39
mwhudsonhm that doc could/should probably be updated to include the unattended user creation flow20:40
rharpermwhudson: yeah, I've followed that but I didn't build a new image;  I wanted to just ack the system-user (or in my case an account-id ) assertion20:41
rharpermwhudson: but I think you're suggesting that I have to boot into an image with my own model assertion enabled20:42
mwhudsonrharper: i don't know about account-id assertions, but for system-user the authority has to be the brand, so you need an image where you can sign for the brand20:42
mwhudsonpresumably there is/will be some way to sign system-user assertions for the canonical brand but i certainly don't know what that is20:42
rharpermwhudson: right;  I'm hoping to test importing any type of assertion via the cloud-init user-data; so I was hoping to have *some* valid assertions that snap could actually ack20:42
mwhudsonrharper: ahh20:42
rharperand right now I've got zero20:43
rharperso that makes testing a bit hard20:43
mwhudsonrharper: use snap download to download a snap, this also downloads assertions20:43
mwhudson$ snap download hello20:44
rharperok20:44
mwhudson$ ls hello_20.snap*20:44
mwhudsonhello_20.snap  hello_20.snap.assertions20:44
rharperindeed20:44
mwhudsoni assume snap will ack hello_20.snap.assertions ?20:44
mwhudsonhaven't tried but seems likely20:44
rharperyay20:44
rharper% sudo snap ack hello_20.snap.assertions20:44
rharpererror: cannot assert: cannot decode request body into an assertion: assertion body length and declared body-length don't match: 3494 != 71720:44
rharperI've been seeing that a lot key body not matching20:44
rharperso maybe I did get one right20:44
rharperhard to tell20:45
mwhudsonuhhh20:45
mwhudsonnow i guess you need someone who knows what they are talking about i guess :)20:45
rharperI'm one step further, so many thanks for your help20:46
mwhudsonsnap (on my desktop) seems happy with that file20:46
rharperlemme try on a fresh system20:46
rharperwho knows what I've got on my laptop20:46
caio1982rharper, mwhudson: i am not very familiar with ack and dunno if it's a bug or by design but the assertions file download fetches contains *multiple* assertions and ack parses a single one, so you need to split it into (currently) 3: account-key, declaration and revision, then ack will work for each one of them20:49
caio1982that explains the body-length mismatch above20:49
mwhudsoni really thought snap ack was supposed to handle that20:49
caio1982me too20:50
mwhudsonbut that would explain the problem indeed20:50
caio1982but as i said, i dont even use ack right now so i dont know if it's on purpose20:50
rharpercaio1982: mwhudson: yes I think that's a bug;  I've been told to put multiple assertions into a single file20:58
rharperthe assert.Decode() code comments suggests it's similar to a multi-part MIME format, with new lines separating portions20:59
rharperso certainly feels like a bug20:59
caio1982i would certainly subscribe to it if it was filed ;-)21:00
rharperfwiw, the 717 is the right size for the public-key21:00
loolrharper: hey have you by any chance latest email from MikeB on the devices list? he brings up a bunch of cloud-init start time questions, would you think we could extract some cloud-init runtimes from his system?21:01
loolrun times, not runtimes sorry21:01
rharperlool: do we know if the image has the cache purged or not ?21:01
loolrharper: I do not21:01
mupPR snapd#2090 closed: interfaces,overlord/ifacestate: initial cleaning up of no arg AutoConnect related bits <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2090>21:02
rharperthe python cache stuff that was discussed on the console-conf thread21:02
loolrharper: https://lists.snapcraft.io/archives/devices/2016-October/000082.html21:02
loolrharper: oh the missing cache creates performance issues?21:03
loolrharper: that might be it, but I'd be surprized it'd be that bad; these switches are supposed to be x86-64, typically some GHz and SSD storage21:03
loolthe processing power is not crazy, it's more like a laptop configuration21:03
rharperit's not that bad on x86;  it's more likely something to do with the cloud-config21:04
loolYes, I figured it would be more like timeouts21:04
loolhe mentions an instance-data http connection21:04
loolyou know, the AWS stuff21:04
rharperand which cloud-init;  the version in yakkety until yesterday or so had issues with DNS due to ordering around systemd's dbus socket21:04
loolthat seemed weird21:04
rharperright, if those show up, very likely that the no-cloud seed was never embedded21:04
loolrharper: how about I ask these questions and Cc: you on it?21:04
rharpersure21:04
loolrharper: I guess you're not on the devices@ list21:05
rharperI am21:05
rharperI can reply21:05
loolthanks, that'd be great21:05
rharperand if you know how to create account-id or account assertions and be able to ack them; that'd help me work cloud-init importing snap assertions   (or point me to who does know)21:05
loolrharper: I wish I knew!  :-)21:06
loolrharper: let me check the snap login code21:06
loolrharper: at least I can point at sample data for it; check snapd/tests/main/ack/alice.account21:08
rharperheh21:08
rharperyeah, I'm looking for the json format for account-id or account, so I can pipe that through snap sign, and then snap ack the output of sign21:09
mupPR snapd#2103 opened: store: send correct JSON type of string for expected payment amount <Created by pete-woods> <https://github.com/snapcore/snapd/pull/2103>21:09
mupPR snapd#2102 closed: cmd/snap: rename is-managed to managed and tune <Created by niemeyer> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2102>21:12
loolrharper: so to dump account assertions of a system, snap known account; you can import with snap ack21:15
loolrharper: but I guess you wanted to create the contents from scratch?21:16
rharperthat might be good enough21:18
tyhicksjdstrand, zyga: I'm trying to decide if a bug I'm seeing while running a snap inside a lxd container is caused by the container environment or possibly by snap-confine mount oddness - have you seen anything like this before? https://paste.ubuntu.com/23281705/21:25
mupPR snapcraft#854 opened: Decouple state handling from plugin options <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/854>21:34
jdstrandtyhicks: never seen that21:48
jdstrandtyhicks: but I've not tried running snaps in a container yet21:49
jdstrandgetting there21:49
tyhicksjdstrand: no problem, I'm fairly confident that it is a container issue21:51
mupPR snapcraft#855 opened: tools: script to talk to the staging servers <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/855>21:52
zygatyhicks: looking22:01
zygatyhicks: interesting22:02
zygatyhicks: is 'd????????? ? ?    ?       ?            ? 2722:02
zygatyhicks: is that caused by stat failure?22:02
=== drizztbsd is now known as timothy
zygado you get any apparmor denials?22:02
zygatyhicks: to answer, I haven't seen anything like this22:03
tyhickszyga: that's what happens when a dentry in the kernel doesn't have a corresponding inode (negative dentry)22:04
tyhickszyga: I'm not sure if there are other situations where that output is display22:04
tyhicksdisplayed*22:04
zygatyhicks: oh22:04
tyhickszyga: there are no apparmor denials22:04
zygatyhicks: I did see sooome of that22:04
rharpercaio1982: mwhudson: snapd 2.16  in xenial-proposed will snap ack the hello.snap.assertion just fine22:04
zygatyhicks: can you cat mountinfo please?22:04
zygatyhicks: does it contain "deleted" anywhere?22:04
tyhickszyga: no "deleted" in mountinfo22:05
zygatyhicks: I'm sure you know but there are a few pending pull requests on snap confine up22:05
rharperas well as the 'snap known account' output as well ; cool22:06
zygatyhicks: it looks all sane?22:06
zygatyhicks: and they relate to lxd22:06
tyhickszyga: it does look sane22:06
tyhickszyga: hmmm22:06
tyhickszyga: btw, this is a yakkety environment with snapd from yakkety-proposed22:06
tyhickszyga: thanks for your help, I'll file a bug and get some more eyes on the report22:07
zygatyhicks: please do, I'll try to look at it when I can22:09
zygaI'm off next week though22:09
zygaand tomorrow/day after I'm flying22:09
zygaand then roscon22:09
mupPR snapd#2104 opened: debian, tests: enable spread tests on trusty <Created by vosst> <Conflict> <https://github.com/snapcore/snapd/pull/2104>22:09
tyhicksstgraber: are there still any pending snapd/snap-confine changes (outside of snapd from yakkety-proposed) needed for bug #1611078? I see that you have fix-committed for the Snappy task but I'm not sure what that represents22:13
mupBug #1611078: Support snaps inside of lxd containers <landscape> <lxd> <nova-lxd> <Snappy:Fix Committed by stgraber> <apparmor (Ubuntu):Fix Released by tyhicks> <linux (Ubuntu):Fix Released by jjohansen> <lxd (Ubuntu):Fix Released by stgraber> <https://launchpad.net/bugs/1611078>22:13
tyhicksstgraber: I'm having trouble running snap commands as a normal user inside a container22:14
pedronisrharper: yes, we changed snap ack to take streams of assertions only in 2.1622:15
mupPR snapcraft#856 opened: Call organize() after building <Created by josepht> <https://github.com/snapcore/snapcraft/pull/856>22:25
mupBug #1630789 opened: normal users can't run snaps inside of LXD containers <Snappy:New> <https://launchpad.net/bugs/1630789>22:28
mwhudsonrharper: ah ok, good to hear23:03

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