/srv/irclogs.ubuntu.com/2017/05/15/#snappy.txt

=== chihchun_afk is now known as chihchun
jobotHello, I have a beaglebone black. I'm running a snappy image by ogra. I also have a wifi adapter (https://www.logicsupply.com/uwn100/) but I don't know how to install the drivers. I have a guess, but it requires writing to the device storage. However, it seems that snappy is unwritable by default. Is there any guidance on this issue? thanks05:44
=== JanC_ is now known as JanC
zygagood morning06:58
olympionexwhat mechanism does snapcraft use by default to set the directories where a snap command searches for shared libs?  All of a sudden, i have this problem where my command can't find libraries, but they exist in $SNAP/usr/lib.  If I shell into the command (snap run --shell command), I can manually set the LD_LIBRARY_PATH to $SNAP/usr/bin and it works fine.  I've tried adding an environment key to the snapcraft.yaml to set the LD_L06:58
olympionexIBRARY_PATH, and while it does get set, for some reason it doesn't work unless I do it manually inside the shell06:58
olympionexgood morning06:58
zygaolympionex: good morning06:59
zygaolympionex: I believe snapcraft puts this in the generated command wrappers07:00
zygaolympionex: after building your snap please look at meta/snap.yaml07:00
zygaolympionex: you will see that the command: parts are re-written07:00
zygaolympionex: and you can look at what they contain for insight07:00
olympionexthanks, i'll have a look.  The command wrappers themselves seemed pretty empty, but now there are binaries in /snap/bin07:01
zygaolympionex: the inaries in /snap/bin are just symlinks to 'snap'07:01
mupPR snapd#3319 opened: wrappers: don't convert between []byte and string needlessly <Created by chipaca> <https://github.com/snapcore/snapd/pull/3319>07:01
zygaolympionex: those essentially do the same as "snap run $SNAP.$APP'07:01
Chipacazyga: good morning!07:02
* Chipaca off to get more coffee07:02
* Chipaca on 0hs of sleep, because ¯\_(ツ)_/¯ 07:02
zygaChipaca: omg, really?07:03
zygaChipaca: take some care :/07:03
Chipacayeah, gave up trying to sleep at 5am07:03
zygaChipaca: I'll be working on the road today, going to some magnificent places :)07:03
Chipacazyga: :-) nice!07:04
Chipacaworking on the road many years ago was when i realised i was in the future :-)07:04
zygasomething odd is going on with image building07:05
Chipacaanyway, got most of the services work mapped out in my head, just need to make it happen now07:05
zygathe i386 image has the new version07:05
zygathe amd64 image does not07:05
Chipacahmm07:05
olympionexzyga: hmm , ok -- I see.  Yeah its just calling the wrapper, but my wrappers have nothing except 'exec "command" "$@"'  I have an older working snap and those wrappers have the LD_LIBRARY paths set07:08
zygaolympionex: interesting, can you look at any environment section that may be there? perhaps snapscraft has changed how it conveys the environment variables to snapd07:09
zyga(I'm not a snapcraft developer)07:09
olympionexzyga: yeah, it must have changed -- i'll have to either revert snapcraft or dig through and figure out what they changed07:11
olympionexzyga: where are you driving to?07:11
zygaolympionex: to girona :)07:12
zygaolympionex: the whole city is full of flowers and flower scupltures and flower themes07:12
zygaolympionex: it's amazing (when I mean the wohle city I do mean the whole city)07:13
olympionexCatalonia?07:13
zygaChipaca: can you please have a look at https://github.com/snapcore/snapd/pull/331107:13
mupPR snapd#3311: difs,interfaces/mount: add support for locking namespaces <Created by zyga> <https://github.com/snapcore/snapd/pull/3311>07:13
zygaolympionex: yes07:13
olympionexzyga: do you live in Spain or somewhere else?07:13
zygaolympionex: most people here would say I live in Catalonia :)07:13
olympionexhaha07:13
zygaolympionex: just on the coast, very close to Girona07:14
olympionexnice07:14
olympionexit is evening here and i've only been to work07:14
zygaolympionex: https://www.youtube.com/embed/fAL90qLfGQA07:15
zygaolympionex: (ad for the event)07:15
olympionexits also winter...07:15
olympionexso all those things look nice =)07:15
olympionexthat looks very  nice07:16
zygaI must say that ajuntament did a very good job :)07:17
zygaolympionex: yeah, summer is getting here in full force, the weekend was very hot07:17
Chipacaolympionex: from a quick look at snapcraft, it should still be adding LD_LIBRARY_PATH07:25
Chipacaolympionex: can you share your snapcraft.yaml? or is it secret :-)07:25
Chipacai also am not a snapcraft developer, fwiw07:25
olympionexzyga: sorry, had to tend to dinner for a second07:27
zygaolympionex: no worries :)07:28
* zyga thinks it would be good to have a snapcraft developer in this timezone07:29
pedroniszyga: hi, did you push writable-localtime to snapcore/snapd by mistake?07:30
olympionexits proprietary, so i removed/changed some of the critical bits -- https://pastebin.com/41d79JT407:31
zygapedronis: no, that was ogra07:31
olympionexas i said, a very similar snap i compiled recently has the LD_LIBRARY_PATH in the wrappers07:31
zygapedronis: I just pushed it there again to fix spread07:31
olympionexbut now i'm on 2.29 on this machine and it doesn't07:31
olympionexchecking on another machine with 2.27.107:32
olympionexhmm, the 2.27.1 wrappers don't have any library paths either07:33
zygaChipaca: if you have spare cycles we could also use a review on https://github.com/snapcore/snapd/pull/327107:35
mupPR snapd#3271: cmd/snap-confine: use /etc/ssl from the core snap <Created by morphis> <https://github.com/snapcore/snapd/pull/3271>07:35
morphiszyga: for https://github.com/snapcore/snapd/pull/3307 , you really want to have one environment: stanza per system definition in spread.yaml which repeatidly defines SNAPMOUNT/LIBEXECDIR? if we would do that for Ubuntu we would have that 31 times repeated07:38
mupPR snapd#3307: tests: abstract common dirs which differ on distributions <Created by morphis> <https://github.com/snapcore/snapd/pull/3307>07:38
morphisah sorry, 35 times07:38
zygamorphis: kind of yes, because that means I don't have to do it in task.yaml's07:40
zygamorphis: but that's just one vote, see what others say07:40
zygamorphis: ideally spred would have environment-script: section that lets us do this programmatically on 3 lines in one place07:40
morphiszyga: I am in for not doing it in task.yaml but we should repeat the same key/value pair more than a single time07:40
morphiszyga: right that is what I was proposing07:40
morphiszyga: lets keep it as is for now and I will look into adding an environment-script/environment-include part to spread07:41
* zyga nods07:41
zygamorphis: I merged master into some of your branches07:41
zygato fix conflicts and to re-start tests that were broken by new version string on the core snap07:42
morphiszyga: thanks07:42
morphisfgimenez: time to look into https://github.com/snapcore/snapd/pull/3307 and https://github.com/snapcore/snapd/pull/3308 today?07:43
mupPR snapd#3307: tests: abstract common dirs which differ on distributions <Created by morphis> <https://github.com/snapcore/snapd/pull/3307>07:43
mupPR snapd#3308: tests/lib: introduce pkgdb helper library <Created by morphis> <https://github.com/snapcore/snapd/pull/3308>07:43
fgimenezmorphis: sure! :) will be on it in a bit07:44
morphisfgimenez: thanks!07:45
* zyga goes for breakfast07:49
olympionexzyga: since i'm building a classic mode snap, is snapcraft just expecting my to use ld.so.conf.d scripts maybe?  Still not sure why this snap i built sometime in the past has the exports and works and when i build now it doesn't07:49
zygaolympionex: ah07:50
zygaolympionex: classic confinement snap?07:50
olympionexyeah07:50
zygaolympionex: in that case there is no help, no love, no wrappers AFAIK07:50
zygaolympionex: how are you buidling your snap contents?07:50
zygaolympionex: is it using stage-packages?07:50
zygaolympionex: https://new.zygoon.pl/post/state-of-classic-confinement/07:51
zygaolympionex: have a look at this please07:51
olympionexits dumping a deb that I made07:51
zygaolympionex: that will not work correctly07:52
zygaolympionex: the blog has the details07:52
olympionexhmm, ok07:52
olympionexit must have changed at some point07:52
olympionexi have the working .snap i made in the past with the wrappers07:52
olympionexand its classic confinement07:53
olympionexbut i'll read and see whats different07:53
Chipacazyga: “With those three assumptions you and the bag of predictable low-level libraries [...]”07:56
zygaChipaca: ah s/you//07:57
zygamorphis: can you please have a look at https://github.com/snapcore/snapd/pull/3311/files -- it needs a 2nd +108:04
mupPR snapd#3311: difs,interfaces/mount: add support for locking namespaces <Created by zyga> <https://github.com/snapcore/snapd/pull/3311>08:04
* zyga really goes to eat something now08:04
Chipacamorphis: in snapd#3271, why are you droppping tests/regression/lp-1580018?08:08
mupPR snapd#3271: cmd/snap-confine: use /etc/ssl from the core snap <Created by morphis> <https://github.com/snapcore/snapd/pull/3271>08:08
morphisChipaca: it is merged with the other test case I am modifying08:09
morphisChipaca: check the environment: part08:09
olympionexzyga: Thanks for the info.  Looks like 2.26 was the last version that adds the LD_LIBRARY_PATH to classic snaps.  I have to use classic (afaik) because i have a daemon whose source I don't control and it has to write a .pid file to /var/run/ueyed.  Maybe there is a better way, but I haven't found it yet08:09
Chipacamorphis: yeah08:10
zygaolympionex: an interface :)08:10
zygaolympionex: do you have the source for the daemon?08:11
olympionexzyga: no, its a library for a camera we use.  I'm just snapping it to ease deployment.  It seemingly has a parameter to specify the PID path, but it doesn't seem to like if I write it anywhere else - I think it might be a bug in the daemon.08:13
zygaolympionex: that will not be approved for a classic confinement snap08:13
olympionexzygs: i'll look at interfaces again, I couldn't find great documentation last year, but it seems like there may be some new stuff08:13
olympionexzyga: its not for the store08:13
zygaolympionex: well, I'm here if you need me ;)08:13
olympionexzyga: i only sideload it on our systems08:13
zygaolympionex: but if you don't have the source it could be bad anyway, I'd suggest talking to your software vendor to help, it should be a simple fix for that pid parameter08:14
olympionexzyga: yeah -- i notified them and haven't gotten a report back.  I guess they don't expect people to do funny things with their software...08:14
morphiszyga: looking08:15
olympionexzyga: they aren't in the FOSS spirit, their latest libraries use some kind of code protection deb I also have to install08:15
zygaolympionex: vote with your money and even more reason to confine it08:16
zygamorphis: thank you08:16
morphiszyga: commented08:16
olympionexzyga: haha, well my company votes with its money, but unfortunately there aren't a lot of great industrial 3D cameras to choose from.  This is just the driver for their camera08:17
olympionexzyga: o08:17
olympionexzyga: i'm off to dinner as well08:17
olympionexzyga: hope i didn't interrupt your meal too much108:17
zygamorphis: replied08:18
* zyga nods08:18
zygaolympionex: good luck then08:18
fgimenezmorphis: done, LGTM with small suggestions about systemd-escape08:28
morphisfgimenez: how do you feel about the discussion I have with zyga on https://github.com/snapcore/snapd/pull/3308 ?08:30
mupPR snapd#3308: tests/lib: introduce pkgdb helper library <Created by morphis> <https://github.com/snapcore/snapd/pull/3308>08:30
fgimenezmorphis: i like more the centralized approach proposed in the PR, will drop a line08:34
morphisfgimenez: thanks08:35
mupPR snapd#3311 closed: difs,interfaces/mount: add support for locking namespaces <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3311>08:48
mupPR snapd#3318 closed: overlord/snapstate: Enable() was ignoring the flags from the snap's state, resulting in losing "devmode" on disable/enable. This fixes that <Created by chipaca> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3318>08:51
morphisPharaoh_Atem: ping08:56
Chipacapedronis: thanks!09:01
pedronisChipaca: np, I think zyga's remark about DeepEquals is right though if you want to change it in some follow up09:02
Chipacaok09:03
Chipacapedronis: what do you think about his suggestion on snapd#3292?09:07
mupPR snapd#3292: wrappers: make StartSnapServices cleanup any services that were added if a later one fails <Created by chipaca> <https://github.com/snapcore/snapd/pull/3292>09:07
Chipaca(if you looked at that at all)09:07
pedronisChipaca: I think serviceName in the rewritten code has the same problem as app09:12
pedronismmh, maybe not09:13
zygahmm09:14
zygawe need a generic "run-from-core-or-from-distro re-exec helper"09:14
Chipacapedronis: no, it's defined inside the loop09:15
pedronisChipaca: yea, sorry09:15
Chipacai still prefer the one with a slice though09:15
Chipaca:-)09:15
ChipacaOTOH, I'll be moving some of these around09:16
Chipacamaybe I should do this after that09:16
Chipacahrm09:16
ChipacaOT*O*OH I could make this work with helper funcs passing &err09:17
Chipacawhich might make it better09:17
pedronisthat sounds obscure09:17
Chipacayes09:18
Chipacapedronis: zyga: I'm going to close #329209:18
Chipacareshuffle add/start/stop/remove09:18
Chipaca(because they're wrong in subtle ways anyway, afaict)09:18
Chipacaand then redoing 3292 after fixing that should be cleaner09:18
Chipacaok?09:19
zygaChipaca: +109:19
pedronisChipaca: master should failed on tests/main/completation09:21
pedronishttps://travis-ci.org/snapcore/snapd/builds/23234636409:21
mupPR snapd#3292 closed: wrappers: make StartSnapServices cleanup any services that were added if a later one fails <Created by chipaca> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/3292>09:21
Chipacapedronis: key gen09:22
Chipacatimeout in prepare09:23
Chipacapedronis: what triggered this travis run?09:24
pedronisChipaca: my merge of your branch09:25
pedronis:)09:25
Chipacapedronis: the expect script sets a timeout of 60s for the key gen09:25
Chipacaand that timed out :-/09:25
pedroniswell we need to do something about entropy like we do on debian09:26
Chipacashould I just re-run?09:26
pedronisfgimenez should look into that I suppose09:26
fgimenezpedronis: yep, we can modify the images to include rng-tools and configure it to use /dev/urandom, for the time being we could do that on prepare-project too09:27
fgimenezpedronis: i'll prepare a branch09:28
Chipacafgimenez: I think pollinate is part of the fix also, somewhere09:28
Chipacanot sure if the linode hosts are using pollinate09:28
Chipaca(I'm assuming the guests eat from the host's pool)09:28
Chipacapedronis: objections to restarting that travis build?09:29
fgimenezpedronis: Chipaca ok i'll take a look, btw is it possible to snap download for an architecture different from the calling one?09:30
Chipacanot currently09:30
fgimenezor at least get the assembled .assert file09:30
fgimenezChipaca: aha, ok thanks, i find myself doing nasty things with the files dropped in var/lib/snapd/seeed/assertions by snap prepare-image :)09:31
zygamorphis: hey, is cmd/cmd.go something that needs changes (for /snap vs /var/lib/snapd/snap) ?09:32
zygamorphis: look at oldCore vs newCore09:32
mupPR snapd#3316 closed: make /etc/localtime writable in timezone_control <Created by ogra1> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3316>09:33
morphiszyga: nothing which any test covered so far09:34
* zyga shakes fist at openvswitch tests :/09:35
zygamorphis: I think it's broken but we don't know because we re-exec where we use /snap anyway09:35
* zyga -> small walk09:36
pedronisfgimenez: Chipaca: yes09:36
morphiszyga: will have a look09:37
pedronisfgimenez: set the envvar UBUNTU_STORE_ARCH09:38
fgimenezpedronis: great, thanks a lot! just for snap (ie global env), not snapd right?09:39
Chipacaoooh :-)09:39
pedronisyes, this works only with snap download09:39
leebobyIs there anyone have debug alsa in ubuntu core10:05
leebobyThe good codec device ported to ubuntu coer, but can't working normal10:06
=== gbisson_ is now known as gbisson
mupPR snapd#3320 opened: tests: improve entropy also for ubuntu <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3320>10:25
fgimenezpedronis: Chipaca snapd#3320 extends morphis' entropy solution to ubuntu classic systems, works fine on local executions10:26
mupPR snapd#3320: tests: improve entropy also for ubuntu <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3320>10:26
morphisfgimenez: nice!10:27
AdamH_Hello, is there any current issues with ports.ubuntu.com? I get the error message about it not being resolvable10:30
diddledancjwatson: moving a conversation from #snapcraft on rocket.ubuntu.com: popey_ thinks there might be something in the build.snapcraft.io system that is rewriting my URLs - I use jhbuild in my snap as a subprocess to handle the build of my part but it is failing only on build service because a url has lost a / from http://10:30
diddledanhttps://build.snapcraft.io/user/diddledan/corebird-snap/3822810:30
diddledanrelevant log line: jhbuild list: failed to parse /bacfbbd4b618017965cf05163fa2626f-xenial/parts/corebird/jhbuild/usr/lib/python2.7/site-packages/modulesets/http:/ftp.gnome.org/pub/GNOME/teams/releng/3.25.1/gnome-apps-3.25.1.modules: [Errno 2] No such file or directory:10:31
diddledanu'/bacfbbd4b618017965cf05163fa2626f-xenial/parts/corebird/jhbuild/usr/lib/python2.7/site-packages/modulesets/http:/ftp.gnome.org/pub/GNOME/teams/releng/3.25.1/gnome-apps-3.25.1.modules'10:31
diddledanoops10:31
diddledanthat was supposed to be a link10:31
diddledanmy snap is at https://github.com/diddledan/corebird-snap10:32
=== popey_ is now known as popey
cjwatsonThat is rather deeply unlikely ...10:38
diddledanstrange then that it works on a snapcraft cleanbuild locally10:38
cjwatsonNothing in BSI or even in Launchpad really digs into the build at a low enough level that it could affect that kind of thing.10:39
cjwatsonYou sure it's not the three lines immediately above the one you quote?10:40
cjwatsonid: ‘jhbuild’: no such user10:40
cjwatsonpython-gobject not found10:40
cjwatsondbus-python not found10:40
diddledanno, they're normal10:40
cjwatsonCould be just missing build-packages or something.10:40
cjwatsonOr maybe jhbuild uses HTTP code that fails to deal with proxies correctly.10:41
Chipacapedronis: https://travis-ci.org/snapcore/snapd/builds/23234636410:43
cjwatsondiddledan,popey: I'm pretty certain that the URL thing is a red herring.  jhbuild builds a local cache for remote URLs it needs to fetch, so that'll just be where it decides to stash them.10:44
diddledanok, that makes sense. I guess it's failing to download then due to the proxy10:45
cjwatsonIt's just Python, so that is a *bit* surprising.10:45
cjwatsonBut I have no better guess at the moment.  I have branches in flight to simplify the proxy setup from the client point of view.10:46
cjwatsonYou're welcome to file a bug against https://bugs.launchpad.net/launchpad-buildd if you want more detailed investigation10:47
diddledanthanks, I'll try a few more things first I think10:50
diddledanone thing I can immediately do, is replace the git checkout of jhbuild with a release tarball10:50
diddledanit might be that they broke it upstream10:50
morphiszyga: /snap in cmd/cmd.go isn't yet a problem as we have reexec support explicitly disabled on fedora10:54
cjwatsondiddledan: (It's also possible to set up launchpad-buildd locally, though still a non-trivial amount of work ...)10:54
zygamorphis: right, I agree10:55
zygamorphis: idea: snap tool update-ns10:56
zygamorphis: snap tool discard-ns10:56
zyga(tool would be a hidde command)10:56
zygamorphis: not sure this is necessary but I was thinking about it10:56
morphiswhy not `snap update-ns` ?10:56
zygamorphis: because there would be many of those and that would just clutter the top-level namespace10:57
zygamorphis: and you could have nice stuff on `snap tool` like --no-reexec or --reexec or others10:57
zygamorphis: useful for testing mainly10:57
morphisas long as they stay hidden, that shouldn't be a problem10:57
zygamorphis: it also has the `go tool` feeling which I like :)10:57
morphis:-)10:58
mupPR snapd#3282 closed: hooks: default timeout <Created by stolowski> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3282>10:58
morphiszyga: mvo suggested something similar for the `snap forced-managed` command but waiting for feedback from niemeyer on that10:58
diddledanlol, cjwatson, was that a trigger? I see you've just this second released a new launchpad buildd :-p11:00
zygamorphis: aha11:01
zygamorphis: that might make sense (the debug command I presume)11:01
morphisyes11:01
cjwatsondiddledan: Nah, I sent the ticket for that on Friday afternoon, just tidying up now :)11:01
diddledanco inky dink (coincidence)11:02
AdamH_Any body else get the following when trying to install classic snap? Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/xenial/InRelease  Could not resolve 'ports.ubuntu.com'11:02
pedronisthat sounds very snap specific, is it trying to do some apt get stuff behind the scenes?11:04
AdamH_It installs the snap and then start to see the errors the first time you use the snap sudo classic11:05
pedronisah, classic snap, not a classic snap11:06
mupPR snapd#3319 closed: wrappers: don't convert between []byte and string needlessly <Created by chipaca> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3319>11:06
pedronissounds a question for mvo11:06
zygacan someone do a (trivial) 2nd review on https://github.com/snapcore/snapd/pull/3315 please?11:06
mupPR snapd#3315: spread.yaml: rename host's http proxy env vars <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3315>11:06
zygaAdamH_: looks like a DNS issue (so far), can you ping ports.ubuntu.com?11:07
AdamH_zyga: Yes I can resolve and ping ports.ubuntu.com11:08
mupPR snapd#3315 closed: spread.yaml: rename host's http proxy env vars <Created by fgimenez> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3315>11:08
zygaAdamH_: intersting, so it may be something deeper11:08
AdamH_zyga: Also works fine doing a sudo apt-get update once the snap has been setup, just fails on the initial setup for lsb-release11:09
pedronispstolowski: could you adjust the tests in snapd#3235  ? it seems very close11:13
mupPR snapd#3235: overlord/hooks: make sure only one hook for given snap is executed at a time <Created by stolowski> <https://github.com/snapcore/snapd/pull/3235>11:13
morphiszyga, pedronis, Chipaca, niemeyer: can you guys also have a look on https://github.com/snapcore/snapd/pull/3260 ? would like to get some eyes on the Go code before I spend to much time to getting the tests passing11:20
mupPR snapd#3260: daemon: implement --user instance for snapd <Created by morphis> <https://github.com/snapcore/snapd/pull/3260>11:20
zygamorphis: looking now11:22
pstolowskipedronis, yes, will do11:23
morphiszyga: thanks11:23
morphisfgimenez, niemeyer: a review on https://github.com/snapcore/spread-images/pull/2 would be nice11:31
mupPR spread-images#2: Add fedora-25-64 image <Created by morphis> <https://github.com/snapcore/spread-images/pull/2>11:31
fgimenezmorphis: sure, i'll have a look11:33
morphisfgimenez: thanks11:35
zygamorphis: done11:42
zygamorphis: and done11:43
mupPR snapd#3271 closed: cmd/snap-confine: use /etc/ssl from the core snap <Created by morphis> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3271>11:45
zygais mvo around today?11:45
zygaso https://github.com/snapcore/snapd/pull/3225 is now under testing, I'd like to land it and iterate on more tests11:47
mupPR snapd#3225: cmd/snap-update-ns: add actual implementation <Created by zyga> <https://github.com/snapcore/snapd/pull/3225>11:47
morphiszyga: didn't you want a review from jdstrand_ on https://github.com/snapcore/snapd/pull/3271 ?11:48
mupPR snapd#3271: cmd/snap-confine: use /etc/ssl from the core snap <Created by morphis> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3271>11:48
zygamorphis: yes but 1) it's the beginning of the cycle and 2) jdstrand said he is pretty busy on a new project now11:48
zygamorphis: and I want to see it fix suse :)11:48
morphiszyga: good11:48
zygamorphis: the conference is coming up, we should do a .1 just for suse11:48
zygamorphis: all those nice snaps should work :-)11:49
morphiszyga: sure, wanted to get that PR merged and will add that patch to the suse pkg soon11:49
pstolowskipedronis, i'm not sure what's wrong with #3235, seems like travis got confused, the tests are green but the status is not11:51
zygapstolowski: yeah, this happens sometimes11:51
pstolowskiindeed I saw this once in the past11:51
pedronispstolowski: no,  I was referring to Gustavo's comment, to not change the common fake hook handler11:51
pstolowskipedronis, ah, sorry, my bad, I went to wrong PR11:52
zygaChipaca: around?12:02
mupPR snapd#3320 closed: tests: improve entropy also for ubuntu <Created by fgimenez> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3320>12:02
zygaChipaca: completion failure https://travis-ci.org/snapcore/snapd/builds/232387046?utm_source=github_status&utm_medium=notification12:02
Chipacazyga: around12:02
Chipacazyga: in tests/main/completion, during prepare?12:03
Chipacazyga: timeout creating a key12:03
zygaChipaca: ah, so that will go away (hopefully) with the branch I just merged12:04
zygathanks!12:04
zygaChipaca: how are you feeling? you said you didn't sleep at all12:04
Chipacazyga: i napped for about an hour, and have just finished lunch12:05
zygaChipaca: feel like doing a review for https://github.com/snapcore/snapd/pull/322512:05
mupPR snapd#3225: cmd/snap-update-ns: add actual implementation <Created by zyga> <https://github.com/snapcore/snapd/pull/3225>12:05
Chipacafeeling sleepy and weird but ok12:05
zygaChipaca: I'd like to land it and give it some real-world testing on anything I can think of12:05
Chipacazyga: that needs a review from gustavo :-)12:05
Chipacaa re-review, even12:06
Chipacaah but he's not here12:06
Chipacahrm12:06
zygaChipaca: I addressed all of his feedback12:06
zygaChipaca: I wanted to just get it in and iterate on anything we find12:07
* zyga wishes it was less hot12:08
zygait's 28C easily now12:08
zygaand only getting hotter12:08
zygamorphis: https://github.com/snapcore/snapd/pull/3225 has conflicts12:15
mupPR snapd#3225: cmd/snap-update-ns: add actual implementation <Created by zyga> <https://github.com/snapcore/snapd/pull/3225>12:15
zygamorphis: shall I resolve them?12:15
morphiszyga: isn't that your PR?12:15
zygano12:15
zygaoh12:15
zygabad paste12:16
zygahttps://github.com/snapcore/snapd/pull/330712:16
mupPR snapd#3307: tests: abstract common dirs which differ on distributions <Created by morphis> <https://github.com/snapcore/snapd/pull/3307>12:16
zygaI meant this one12:16
morphisno, I will do that12:16
zygathanks!12:16
zygaI'll re-review it once it is green12:16
zygapstolowski: hey, any updates on https://github.com/snapcore/snapd/pull/3120 ?12:20
mupPR snapd#3120: interfaces/hooks: expose attrs to the interface API, snapctl enhancements (step #4) <Created by stolowski> <https://github.com/snapcore/snapd/pull/3120>12:20
pstolowskizyga, no, I didnt' have time to work on it yet; focusing on snapctl-outside-of-hooks branch still12:31
zygapstolowski: OK12:32
zygaChipaca: anything I can do to move the patch problem forward?12:32
zygaChipaca: or to cheat and get the InstallPath into sideinfo?12:32
zygaChipaca: (or similar that postpones the patch problem)12:32
Chipacazyga: the patch problem?12:32
zygaChipaca: AFAIK the patch system is currently unusable12:33
zygaChipaca: because we have no unpatch that allows rollback12:33
zygaChipaca: correct?12:33
Chipacazyga: because having unpatch that allows rollback implies rewriting the past12:35
pedroniszyga: Chipaca: I'm getting run-checks --static errors/warning about spellings on master12:40
pedronisrelared to cmd/* stuff12:40
Chipacapedronis: where?12:40
pedronisstuff like:12:41
pedronisChecking spelling errors12:41
pedroniscmd/config.sub:118:2: "nto" is a misspelling of "not"12:41
pedronis...12:41
pedroniscmd/configure:1195:55: "includ" is a misspelling of "include"12:41
pedronisChipaca: just get master and run  ./run-checks --static ?12:43
Chipacapedronis: “( cd cmd && make distclean )”12:44
Chipaca:-)12:44
mupPR snapd#3321 opened: wrappers: service start/stop were inconsistent <Created by chipaca> <https://github.com/snapcore/snapd/pull/3321>12:44
pedronisChipaca: thx, interestngly I had not Makefile12:49
pedroniss/not/no/12:49
Chipacaheh12:49
=== chihchun is now known as chihchun_afk
cjwatsonpopey: Did your home-assistant repository move somewhere else?  I'd like a handy test case for https://github.com/canonical-ols/build.snapcraft.io/issues/49713:02
Chipacapedronis: standup13:02
cjwatsonpopey: though I guess I can use https://github.com/stuartlangridge/ColourPicker13:05
diddledanis build.snapcraft.io down?13:11
cjwatsondiddledan: shouldn't be, though I just upgraded it.  what's up?13:12
diddledanit's timing out13:12
cjwatsonseems fine from here13:12
diddledanhmm13:12
diddledanlet me try a different browser13:12
diddledanok, seems that browser is b0rked - ms edge13:13
cjwatsonhas it worked with BSI before?13:13
diddledanyup, it was when I hit refresh that it didn't come back13:14
cjwatsondiddledan: OK, can you please file an issue on https://github.com/canonical-ols/build.snapcraft.io with whatever details you have?13:15
cjwatsonwe should find out if that's consistent or what13:15
diddledanok, it's back now. I have no idea what's happened there13:18
diddledanI've opened https://github.com/canonical-ols/build.snapcraft.io/issues/768 and noted that it seemingly works again now13:22
sborovkovChipaca: hi, question about rest api. {"type":"sync","status-code":200,"status":"OK","result":{"id":"12","kind":"configure-snap","summary":"Change configuration of \"core\" snap","status":"Doing","tasks":[{"id":"82","kind":"run-hook","summary":"Run configure hook of \"core\" snap","status":"Doing","progress":{"label":"","done":1,"total":1},"spawn-time":"2017-05-12T09:51:34.973297068Z"}],"ready":false,"spawn-time":"2017-05-12T09:51:34.973459255Z"}}   So it13:23
sborovkovsays "doing" but if I look at "progress" inside "done" is 1?13:23
sborovkovso what should I actually be looking at that job is done13:23
Chipacapstolowski: do you remember offhand what the progress info means for the configure hook?13:35
Chipacasborovkov: wrt knowing whether it's done, it changes to status:Done13:35
Chipacaah!13:36
Chipacasborovkov: a total of "1" means there isn't progress information13:36
Chipacai.e., just spin13:36
sborovkovhmm alright thanks13:37
pstolowskiChipaca, no, but I just had a quick look and I don't see it doing anything about progress, so yes as you say it's (0,1) -> (1,1)13:39
Chipacayep13:39
zygare13:39
zygaChipaca: (sorry for disconnecting earlier)13:39
zygaChipaca: so what is the path forward for patch?13:40
Chipacazyga: a time machine13:41
zygaChipaca: do we have anything better?13:42
zyga :D13:42
zygaChipaca: question, is golint right or are we right?13:43
zygabootstrap.go:48:2: error var noNamespaceError should have name of the form errFoo13:43
Chipacaah! no, my bad13:44
Chipacai got confused13:44
Chipacazyga: ErrFoo is for values, FooError is for types13:44
zygaChipaca: aha13:45
Chipacazyga: wrt patches, the problem is that we want them to not be flagday events, ie we want them to be undoable13:45
Chipacazyga: for which we need to enable let past snapds undo patches of future snapds13:46
Chipacawhich is doable, but super easy to over-engineer13:47
zygaChipaca: aha13:47
zygaChipaca: hmm13:47
zygaChipaca: undo could be simply a snapshot we roll back to13:47
Chipacaand i don't see a way out of having either a single epoch when we implement this thing, or having one last flagday13:47
zygaChipaca: e.g. /var/lib/snapd/state.json -> state.patch21.json13:47
zygaChipaca: but "past" snapd could read the symlink and say "gee, this sucks", I'll use state.patch20.json13:47
Chipacazyga: right, but we want to let a person revert a day (a week) after they got refreshed into something they didn't notice wasn't working13:48
zygaChipaca: devil is in details, specifically if you rollback just after upgrade13:48
zygaChipaca: or after collecting 100 extra changes13:48
zygaChipaca: indeed13:48
zygaChipaca: but how can future snapd downgrade non-programmatically?13:48
zygaChipaca: could we ask snapd to downgrade state to given patch level?13:49
Chipacaeasily (the problem is _past_ snapd :-p)13:49
zygaChipaca: e.g. snap set core patch-level=1013:49
zygaChipaca: then rollback13:49
ChipacaI think it's doable and there should be a generic, simple, straightforward and correct way of expressing transformations to the state13:49
Chipacabut making it have all those attributes is hard13:50
zygaChipaca: "generic simple straightforward", gee, sounds like a turing machine :D13:50
zygaChipaca: the question is this13:53
zygaChipaca: should we describe a transformation of state13:53
pedroniszyga: so far we cheat with one shot Ensure stuff13:53
zygaChipaca: and teach current snapd to process the transformations13:53
zygapedronis: (yes)13:53
zygaChipaca: or should we do something (anything) else13:53
pedronisif you need something today that's the way13:54
pedronismaybe at the sprint we can discuss something else13:54
zygapedronis: mmm, I think this can wait for the sprint13:54
zygapedronis: it's for the oldest open branch:13:54
zygaah, 2nd oldest13:54
zygahttps://github.com/snapcore/snapd/pull/283713:54
mupPR snapd#2837: interfaces/apparmor: allow reading from ecryptfs <Blocked> <Created by zyga> <https://github.com/snapcore/snapd/pull/2837>13:54
zygaI think that to fix it we need to store extra stuff about "try" snaps13:55
pedronisnot so clear what why we need to fix the past there though13:55
pedronisit's broken atm13:55
zygapedronis: yep13:55
zygapedronis: so... maybe I can use a patch :)13:55
pedronisand try stuff is ephemeralish13:55
zygapedronis: the tricky thing is that I'm not sure a patch can fix anything13:55
pedroniswell, more do nothing for old stuff13:55
zygapedronis: as we just don't have any state today there13:55
pedronisjust fix it for new stuff13:55
zygapedronis: I just want to start collecting more state13:55
zygapedronis: yep13:56
Chipacazyga: 3225 gtg once green13:56
zygapedronis: I think you are right13:56
zygaChipaca: thank you!13:56
zygaChipaca: I'm working on unit tests now13:56
Chipacazyga: pedronis: in any case, I think _backwards compatible_ changes (i.e. additions to structs) should be fine13:56
zygaonce it hits edge we should rally people on the forum to do some dedicated testing13:56
Chipacathat is, we should be able to do those without having to bump patch level i think?13:57
pedroniskind of13:57
pedronisyou need to redo them13:57
zygaredo?13:57
pedronisif you go back and forward13:57
pedronisbut maybe I'm not understanding what Chipaca is saying13:57
Chipacapedronis: I think you are13:58
Chipacai mean, yes you'd have to redo them on rollback/re-refresh13:58
pedronisso you don't need a patch level for those but something13:59
Chipacabecause they're backwards compatible, we get away with their undo being a NOP13:59
Chipacabut you still need to (re)do them when moving forwards13:59
zygaChipaca: here I think this is tricky because the forward path is also a nop13:59
zygaChipaca: as we cannot just guess the data easily13:59
zygaChipaca: (we might but I would argue not to as the cost outweights the benefit)14:00
Chipacazyga: how is the forwards a nop?14:00
zygaChipaca: because of zero values14:00
pedronisas I said I see no reason to use a patch that might brick you to fix a development case14:00
Chipacaif the patch do is a nop, and the undo is a nop, then there is no patch :-)14:00
zygaChipaca: we'd add a new field to a struct14:00
zygaChipaca: quick comment on https://github.com/snapcore/snapd/pull/332114:07
mupPR snapd#3321: wrappers: service start/stop were inconsistent <Created by chipaca> <https://github.com/snapcore/snapd/pull/3321>14:07
popeycjwatson: oh, did I delete that, sorry. Yes, Stuarts is a good alternative14:12
AdamH_Not sure if i am going mad here, but has syslog been taken out of the latest edge builds?14:20
Pharaoh_Atemmorphis: pong14:23
kyrofaAdamH_, indeed it has14:27
kyrofaAdamH_, more details here: https://forum.snapcraft.io/t/change-in-logging-behaviour-on-ubuntu-core/59114:28
AdamH_kyrofa: By design? Only noticed when trying to get mir-kiosk-apps to run and they fails as well.14:28
pedronisChipaca: I think I have hit some variant of aborting on seeding explodes problem in a test14:28
AdamH_Thanks14:28
pedronisChipaca: good and bad14:32
Chipaca...?14:32
pedronisChipaca: well good I have a reproducer of something, bad it's a distraction from my current task14:34
Chipacapedronis: http://i.imgur.com/rQIb4Vw.gif14:36
pedronisanyway good but will ignore for a bit14:37
Chipacaman, *all* the tests that create keys are timing out :-(14:38
zygaChipaca: I'll look at that14:38
zygaChipaca: maybe the hwrng thing isn't helpin14:38
zygag14:39
Chipacais it done already?14:39
zygaI think so14:39
zygayep14:39
zygayes, tests are rather red now14:40
Chipacado linode hosts even have a hwrng14:41
Chipacai still think we need pollinate14:41
zygaChipaca: I think recent intel and amd hardware have cpu instruction for that but I agree we need polinate14:42
zygaor pollinate even14:42
* zyga reads https://forum.linode.com/viewtopic.php?t=2311%3E14:43
Chipacazyga: I doubt we're running on hardware14:44
zygaChipaca: that's okay, it's just an instructions any VM can use14:45
zyga(given recent hardware)14:45
zygastill reading though14:45
AdamH_Looks like the latest edge build breaks the mir-kiosk-apps demo with [QPA] QMirClientClientIntegration: connection to Mir server failed. Mir returned: ""14:47
zygaAdamH_: any denials?14:47
AdamH_zyga: Nope not seeing any14:48
zygadid the snap itself change/14:48
AdamH_zyga: Not that I am aware of, we use it as a baseline to test mir-kiosk install when we have issue with the builds of our own app. Hence noticing the error14:49
zygaChipaca: heh, forum suggests to run this in a separate terminal: >while true ; do mandb ; done14:51
zygaChipaca: as source of entropy ;D14:51
Chipaca/o\14:51
zygaAdamH_: does it work on stable core/14:51
AdamH_zyga: No because vc4 is missing from the build so mir-kiosk does not start on rPi314:52
AdamH_so been running on the edge build which includes vc414:53
zygaAdamH_: do you have an edge revision where id still worked?15:03
morphisPharaoh_Atem: you had time to rework the snap-mgmt script?15:06
ChipacaFWIW, we do seem to have /dev/hwrng15:08
Pharaoh_Atemmorphis: I was going to after you sent me that list of files15:08
morphisPharaoh_Atem: ah, right15:12
morphisI knew that I forgot something ..15:12
* zyga merged update-ns!15:17
zyganow for real world feedback15:17
zygaand those unit tests :)15:17
zygabut first hwrng :((15:17
AdamH_zyga: Unfortunately not15:17
mupPR snapd#3225 closed: cmd/snap-update-ns: add actual implementation <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3225>15:18
zygaif anyone notices something funky with the content interface, let me know please15:21
zygafgimenez: did you see https://blog.travis-ci.com/2017-05-11-introducing-build-stages?utm_source=broadcast&utm_medium=notification15:24
zygafgimenez: anything we could benefit from15:24
zyga??15:24
fgimenezzyga: yes, not sure if it makes too much sense for snapd suite though15:24
fgimenezzyga: don't really know :) what do you think?15:25
zygafgimenez: I was thinking about running some quick smoke test early on (say unit tests) and then run the spread suite only if that fist thing passes15:26
zygafgimenez: so sequential check then parallel spread15:27
zygafgimenez: maybe even just run unit tests as an early warning systme15:27
zyga*system15:27
* zyga is tired and takes a break15:30
fgimenezzyga: i think we can do that without stages, we do something similar now with the static tests, unit are more expensive and that would impose an upfront delay to all the builds, currently we are making good use of spread paralellization by executing the unit tests as a regular task15:31
fgimenezzyga: but yes, maybe it is good to have that early warning system, there are always tradeoffs and perhaps the benefits of having it are better than having the execution time improvements15:32
fgimenezmmm i'm getting a panic on pi3 (2.26) http://paste.ubuntu.com/24581419/15:33
AdamH_zyga: mir-kiosk-apps works when using the beta channel if that helps15:44
Chipacafgimenez: is there a particular reason you make rngd use /dev/urandom ?15:52
Chipacafgimenez: (in other words, if I changed it to use /dev/hwrng if present, would that be ok?)15:53
fgimenezChipaca: yes i think so, morphis did that changes though, i just enabled them for ubuntu, he can confirm if that is ok15:55
Chipacaah15:55
morphisChipaca: just because that is available everywhere, qemu, linode, ..15:55
=== JohnAgosta is now known as JohnAgosta-otp
Chipacamorphis: afaict hwrng is also available in those places15:57
Chipaca(on debian you need to load a module)15:57
morphisChipaca: not on qemu unless you enable that with the qemu cmd line15:57
Chipacain any case, i'll propose a branch (if this change makes debian happier)15:58
Chipacamorphis: strange, i see it in qemu in both ubuntu (by default) and debian (after the modprobe)15:58
morphisChipaca: really? I had to add -device virtio-rng-pci to get the host hwrng forwarded15:58
Chipacamorphis: and if you modprobe tpm-rng?15:59
morphisguess that still needs a tpm, either emulator by qemu (which it may does by default) or forwarded from the host16:00
morphisChipaca: but let me try that16:01
elopiocjwatson: is it possible to retrigger a build in build.snapcraft.io?16:06
=== jdstrand_ is now known as jdstrand
cjwatsonelopio: not at the moment16:08
cjwatson(this is a bug IMO, though not sure if it's been filed)16:08
elopiocjwatson: I couldn't find it, so I will report it. And is there a plan to do this with an API? For some cases, I want to trigger the build from travis.16:12
cjwatsonelopio: Thanks in advance for the report.  My feeling is that if you're getting to the point where you need an API then you should be using the underlying Launchpad facilities directly, not via BSI.16:15
elopiocjwatson: that works for me. However, the UI is a lot nicer on this side. I would appreciate a nice dashboard even for the ones that are hooked to my weird CI.16:16
cjwatsonelopio: You can certainly request it (though in a separate issue, please).  Just telling you that APIs aren't a priority at the moment.16:17
elopiocjwatson: I will leave somebody else (who actually needs it) to report it, because launchpad indeed solves my use case.16:18
cjwatsonOK16:18
Chipacamorphis: gah, modprobe works, device gets created, but rngd fails to read it :-(16:27
morphis:-)16:27
Chipacamorphis: (also, there's a rng-tools5 that seems to be ubuntu's rng-tools; rng-tools in debian is ancient)16:27
morphisPharaoh_Atem: https://paste.ubuntu.com/24581840/16:31
morphisPharaoh_Atem: also looks like the snaps didn't got unmount now with my installation of the snapd 2.25 package on F25 (fresh install)16:31
morphisPharaoh_Atem: for the paste I unmounted them manually16:31
Pharaoh_Atemhmm16:46
Pharaoh_AtemI didn't change anything regarding that16:46
=== jdstrand is now known as jdstrand_
=== jdstrand_ is now known as jdstrand
mupPR snapd#3322 opened: overlord: make config defaults from gadget work at also at first boot <Created by pedronis> <https://github.com/snapcore/snapd/pull/3322>18:20
mupPR snapcraft#1248 closed: snap: include asset tracking details in snap/snapcraft.yaml <Created by josepht> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1248>19:07
mupPR snapd#3323 opened: overlord/snapstate: avoid creating command aliases for daemons  <Created by pedronis> <https://github.com/snapcore/snapd/pull/3323>19:27
=== JanC_ is now known as JanC
mupBug #1690880 opened: test_snappy_version fails on artful <cloud-init:New> <Snappy:New> <https://launchpad.net/bugs/1690880>21:48

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