/srv/irclogs.ubuntu.com/2016/08/26/#snappy.txt

wililupykyrofa, that seemed to fix it. The modules and everything load up, but it is still quite odd that a clean custom image I build with ubuntu-device-flash shows no snaps installed until I install my snap, and then it downloads ubuntu-core and then when I reboot my system, it crashes. A clean install would show three snaps, ubuntu-core, my custom-kernel and pc, but now it says no snaps installed.00:00
kyrofawililupy, sorry, I'm not sure what the situation is regarding all-snaps images. Have you tried downloading one of mvo's?00:01
wililupyI was just going to try that when my snapcraft snap finished and I tested that.00:02
wililupyLooks good so far, I have a dependency missing, so I have to figure that out...00:02
wililupykyrofa: I am using a modified version of your fboss snap from github to work with the Wedge 100.00:03
kyrofawililupy, ah, oay00:03
kyrofaokay*00:03
wililupykyrofa: I'm going to push my updates to my fork and then look at mvo's all-snap tomorrow. I am including the kmods with the snap, so it is a little easier to try with the all-snap image instead of a custom kernel.00:04
beisnerhi ev, niemeyer - looking to start using spread asap while we're redeploy some openstack ci infra.  i've got a fresh xenial instance, can launch and list lxc a-ok as my user, but can't get spread to do the examples:  http://pastebin.ubuntu.com/23091151/  ideas?00:17
kyrofabeisner, yeah, try running it from source instead00:51
kyrofabeisner, the snap doesn't have permission to reach out like that00:51
kyrofabeisner, do you need help with that?00:51
kyrofa(qemu backends have the same problem)00:52
kyrofaThe snap is only really useful if you're using remote backends00:52
=== al_ is now known as Guest55102
mwhudson$ sudo snap refresh --beta --devmode ubuntu-device-flash02:03
mwhudson- Setup snap "ubuntu-device-flash" (9) security profiles (cannot setup apparmor for snap "ubuntu-device-flash": cannot load apparmor profile "snap.ubuntu-device-flash.ubuntu-device-flash": cannot load apparmor profile: exit status 1002:03
mwhudsonwhat?02:03
mupPR snapcraft#759 opened: Remove the useless call to os.path.join from the go plugin <Created by elopio> <https://github.com/snapcore/snapcraft/pull/759>02:03
mwhudsonwell rebooting and reinstalling fixed that02:12
beisnerhi kyrofa thanks for the info.  just for kicks i removed the snap, reinstalled it in devmode, still the same.   so, go get ftw?02:45
smoserwhat does this mean ?02:51
smoser Cannot get permission from the store to upload this package.02:51
smosertrying to have launchpad build a snap package for me02:51
smoserit says:02:52
smoserIf you ask Launchpad to automatically upload builds of this snap to the store on your behalf, then the login service will prompt you to authorize this request.02:52
smoserso i expected it to ask me or something, but it just says fail02:52
mupPR snapd#1765 opened: many: move network initialization to a separate service <Created by mwhudson> <https://github.com/snapcore/snapd/pull/1765>04:36
mupPR snapcraft#760 opened: Removed statements not unused by the tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/760>04:48
=== chihchun_afk is now known as chihchun
mupPR snapd#1766 opened: image, asserts: add new asserts.Fetcher.SavedRefs() helper <Created by mvo5> <https://github.com/snapcore/snapd/pull/1766>07:16
zygagood morniong07:22
zyga*morning07:22
josvazQuestion about snaps and folder access / interfaces. For my snap I need to mount a folder so that the normal users can write to it and the snap can read it.08:18
josvazhow can I achieve that?08:18
mupPR snapd#1766 closed: image, asserts: add new asserts.Fetcher.SavedRefs() helper <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/1766>08:24
ogra_mvo, mind if i ubpublish all the canonical-* snaps ?08:37
mvoogra_: not at all08:37
=== AL_ is now known as Guest80394
Guest80394Hi ! I am sorry to disturb the channel. I have a short question: I try to connect a USB drive to my snap. I did not find a way to do this with the "strict confinement" mode. It only works with the "devmode". Is there a way using interfaces ?08:58
zygaGuest80394: hey, I don't believe there is right now but it should be simple to add08:59
zygaGuest80394: look at the home interface, a similar interface could mediate access to /media or /run/media or anything like that09:00
zygaGuest80394: it should be very easy to contribute if you want to09:00
Guest80394ok, I will look at this !09:01
ogra_mvo, hmm, did we seed subiquity already ? my serial console is a huge readable mess after rebooting on all my images09:01
ogra_*unreadable09:01
ogra_mvo, http://paste.ubuntu.com/23092374/09:01
ogra_the last line fill multiple pages09:02
ogra_'*fills09:02
zygaGuest80394: look at zygoon.pl, I posted some articles about this there09:02
zygaGuest80394: and ping me here for advice :-)09:02
mvoogra_: it landed last night09:02
mvoogra_: apparently a hard landing09:02
Guest80394Thanks a lot !09:02
ogra_mvo, extremely buggy ... and it seems to run regardless if the system is cionfigurede09:03
ogra_*configured09:03
mvoogra_: lets talk to cyphermox, mwhudson or slangasek about the bugs in console-conf: http://paste.ubuntu.com/23092374/09:03
ogra_on the dragonboard i now have a network config dialog09:03
mvoogra_: if its too buggy we can revert the upload09:03
mvoogra_: its a single line in livecd-rootfs from last night09:03
ogra_it is more than console-conf ... unless that also does network config etc ... and it is definitely not safe for serial09:04
mvoogra_: it does09:04
mvoogra_: and yeah, it takes over the gettys09:04
ogra_ah, i thought it cionfigures the coneole :)09:04
mvoogra_: its a bit misleading the name09:04
ogra_right, if it does so, it should probably use settings from d-i or so to make sure you dont end up with multiple lines of control chars :)09:05
ogra_in any case i cant do any unattended reboot anymore09:05
mvoogra_: and I want my getty back09:05
mvoogra_: if its too anoying, just revert, I think that is fine09:06
ogra_the boot hangs at a prompt (which i cant even see on the pi... but see on the dragonboard (different serial consoles i guess))09:06
ogra_mvo, oh, fun ... and it doesnt recognize my configured wlan0 devices on both boards ... so i'm stuck in the config screen09:08
ogra_i'll unseed it once i reported all the bugs ... oh my09:08
mvoogra_: oki doki, thanks09:09
mupPR snapd#1747 closed: overlord, daemon: add collect attribute hooks <Created by stolowski> <Closed by stolowski> <https://github.com/snapcore/snapd/pull/1747>09:09
mupPR snapd#1767 opened: overlord, daemon: add collect attribute hooks <Created by stolowski> <https://github.com/snapcore/snapd/pull/1767>09:12
mupPR snapd#1763 closed: many: clarify/tie down model assertion <Critical> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1763>09:13
mupPR snapd#1616 closed: tests, integration-tests: implement the cups-control manual test as a spread test <Decaying> <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1616>09:14
mupPR snapd#1759 closed: asserts: fix GPG key generation parameters <Created by cjwatson> <Conflict> <https://github.com/snapcore/snapd/pull/1759>09:14
* ogra_ sighs ... so how do i get out of this .. i cant boot at all anymore 09:17
ogra_(it tries to configure the already configured wlan devices, falis and drops me back to the start screen ... there is no way to skip)09:18
mupPR snapd#1759 closed: asserts: fix GPG key generation parameters <Created by cjwatson> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1759>09:18
mupBug #1617231 opened: subiquity kills serial console after regular update <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1617231>09:32
mupBug #1617232 opened: subiquity goes into endless configuration loop, no way to get out <Snappy:New> <https://launchpad.net/bugs/1617232>09:35
ogra_pitti, i fear in the light of that one ^^^ Bug 1616928 should get a higher urgency09:36
mupBug #1616928: netplan should support managing wlan devices via wpasupplicant <nplan (Ubuntu):Triaged> <https://launchpad.net/bugs/1616928>09:36
ogra_(assuming that subiquity actually tries to use netplan in the backend)09:37
mupBug #1617236 opened: console-conf falls over trying to create already existing logdir <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1617236>09:45
mupPR snapd#1753 closed: asserts: add an account-key-request assertion <Created by cjwatson> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1753>09:48
pittiogra_: ah, I can't get out either, as even though it is online it doesn't accept any email address of mine for registering to the snap store09:52
ogra_what a mess09:52
pittiogra_: but yes, wlan is another issue indeed09:52
ogra_pitti, file a bug ..., i'll unseed it now and re-spin ubuntu-core afterwards09:52
pitticommunication breakdown -- when this was discussed a few weeks/months ago, the plan was still "use NM for wifi"..09:52
ogra_pitti, well, the worst is that the console-conf process actually consumes 16-25MB ...09:53
pittiogra_: yep, will do; I'm sorting out some other console-conf issues with mwhudson (currently blocked on getting a VM image that actually works)09:53
pittiogra_: welcome to python :)09:53
ogra_and it spawns a new process every time i ctrl-c out of it09:53
=== hikiko is now known as hikiko|ln
ogra_yeah, the worst choice for arm09:53
ogra_i guess that bumps our ram requirements from ~64MB to 128 for embedded boards ...09:54
ogra_:(((09:54
pittifor those you could skip console-conf somehow perhaps (kernel arg or pre-create the firstboot stamp file etc.)?09:55
ogra_so you mean for all of them ?09:55
ogra_:)09:55
ogra_(like all boards)09:55
ogra_so depressing :/09:57
ogra_cyphermox, mwhudson, slangasek, i unseeded console-conf again for now, it breaks to many things atm10:01
ogra_woah ...10:03
ogra_ubuntu@dragonboard:~$ ps ax -orss=,args=|grep 2422810:04
ogra_24228 python3 /usr/bin/console-conf10:04
ogra_ubuntu@dragonboard:~$ sudo kill -9 2422810:04
ogra_ubuntu@dragonboard:~$ ps ax -orss=,args=|grep 2422810:04
ogra_24228 python3 /usr/bin/console-conf10:04
ogra_very reluctant to be killed :P10:04
pittiRestart=always10:08
mupBug #1617250 opened: 401 errors trying to install a snap <Snappy:New> <https://launchpad.net/bugs/1617250>10:09
mupBug #1617251 opened: console-conf unkillable <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1617251>10:09
ogra_pitti, weeeelll ... wouldnt a restart assign a new PID ?10:09
pittibut systemctl stop console-conf.service also is broken as there are about three endless loops10:09
pittiogra_: ^10:09
pittiogra_: err yes, kill -9 not working??10:09
ogra_right10:09
ogra_it keeps the PID10:09
ogra_no matter how often i kill -910:09
mupPR snapd#1744 closed: snap: use "up to date" instead of "up-to-date" <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1744>10:31
rogpeppeso, i've just made a snap that contains a single Go binary (app) that just makes HTTP connections. to make it work, I had to configure it with network, firewall-control and network-bind plugs. Anyone know why? It seems like I should only need "network".10:42
rogpeppealso, when I didn't have the required plugs, the binary just hung when I ran it. Is that the expected failure mode?10:42
ogra_it needs to create a socket ... "network" is only for client side things ... for the socket creation you need -bind ...10:43
ogra_not sure why you would need firewall though10:43
rogpeppeogra_: how can you be a network client without creating a socket?10:44
ogra_(i definitely dont need it for any of my network server snaps )10:44
rogpeppeogra_: ah, it's possible i don't need firewall-control - i added that first10:45
rogpeppeogra_: i'd have thought that network-bind was only necessary for listening on network ports, not making outgoing connections10:45
ogra_https://github.com/snapcore/snapd/blob/master/docs/interfaces.md10:46
rogpeppenetwork-bind says "Can access the network as a server"10:46
ogra_network10:46
ogra_Can access the network as a client.10:46
ogra_    Auto-Connect: yes10:46
ogra_network-bind10:46
ogra_Can access the network as a server.10:46
ogra_    Auto-Connect: yes10:46
rogpeppeogra_: yeah. and this program isn't a server.10:46
=== hikiko|ln is now known as hikiko
rogpeppeogra_: it's just making an outgoing connection10:46
ogra_so if your binary actually only does client connections network should be enough10:46
rogpeppeogra_: that's what i thought10:47
ogra_aks jdstrand once he is up :)10:47
rogpeppehmm, and now i can't replace the snap because (whenever i do snap install or snap remove) i get 'snap "bhttp" has changes in progress'10:50
ogra_well, look at snap changes (and "snap change $number" for details) ...10:52
rogpeppehmm, and that's because i aborted a "remove" operation that seemed to be taking forever. i did "snap abort" and i still can't do "snap remove"10:53
ogra_iirc you can also "snap abort"10:53
ogra_give it a bit, it works async ...10:53
rogpeppeogra_: yeah, i tried that. but "snap remove" takes forever10:53
ogra_might need some time to time out10:53
rogpeppeogra_: well, ok, i'll give it a few minutes10:53
rogpeppeogra_: do you think 5 minutes should be enough?10:54
ogra_no idea :)10:54
stubI've got a daemon that insists on not being run as root. Should my wrapper create the user and suid to it? Would that actually work?10:54
ogra_no, it wouldnt10:55
ogra_snap daemons always run as root10:55
rogpeppeah, looks like this might be the culprit: Aug 26 11:52:56 snazzy umount[9073]: umount: /snap/bhttp/x1: target is busy10:55
ogra_are you in there with your shell ?10:55
stubok, so for now I need to patch unless they have hidden an option in there somewhere to allow it...10:56
rogpeppeogra_: no, but there's a <defunct> process running the binary10:56
ogra_ouch10:56
ogra_stub, i fear so, yeah ...10:56
mupBug #1617275 opened: the home interface doesn't allow access to $HOME/snap-confine <snapd-interface> <Snappy:New> <https://launchpad.net/bugs/1617275>10:57
rogpeppeogra_: ok, success: i did "kill -9" on the defunct process, then aborted the remove operation and tried again and it worked.10:58
rogpeppeogra_: not a fantastic user experience though... :)10:58
ogra_rogpeppe, definitely not, file bugs ;)10:58
rogpeppeogra_: will do; it'll be the third bug this morning :)10:58
ogra_i'm at 5 for today :) chase me ;)10:59
rogpeppeogra_: https://www.google.co.uk/imgres?imgurl=http://t1.gstatic.com/images%3Fq%3Dtbn:ANd9GcTLjo_Nzd7eLrqGEG9ddoRlkUaAV7Q24KziKV2u5i6R-weg4Kgb&imgrefurl=http://books.google.com/books/about/Snappy_Little_Bugs.html%3Fid%3DrC3iGAAACAAJ%26source%3Dkp_cover&h=769&w=621&tbnid=URJ9QWARZ6Uq5M:&tbnh=160&tbnw=129&docid=bPGBY9Q323zj2M&itg=1&usg=__-RYGSWUfDcjgnJL1FRx3M0oDlwI=10:59
rogpeppeogra_: :)11:00
ogra_haha11:00
rogpeppeogra_: https://bugs.launchpad.net/snappy/+bug/161727811:05
mupBug #1617278: remove hung forever due to defunct process <Snappy:New> <https://launchpad.net/bugs/1617278>11:05
ogra_thx11:06
mupBug #1617278 opened: remove hung forever due to defunct process <Snappy:New> <https://launchpad.net/bugs/1617278>11:06
rogpeppeogra_: ok, it seems that only network and network-bind are needed. but what's weird is that the binary won't run at all (even to print a help message) without both of those plugs.11:08
ogra_i guess your syslog should have some DENIED lines then11:09
rogpeppeogra_: this is the line i see:11:10
rogpeppeAug 26 12:10:40 snazzy kernel: [117476.140023] audit: type=1326 audit(1472209840.610:190): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=10082 comm="bhttp" exe="/snap/bhttp/x3/bin/bhttp" sig=31 arch=c000003e syscall=49 compat=0 ip=0x5fbcb4 code=0x011:11
zygarogpeppe: that's bind11:11
rogpeppezyga: syscall 49?11:11
zygarogpeppe: it gets killed when it cannot use a syscall it tries11:11
zygarogpeppe: yes, 49 is bind11:11
ogra_mvo, seeing https://github.com/snapcore/snapd/pull/1684 ... should we also unseed the package (we explicitly have it in livecd-rootfs currently)11:12
mupPR snapd#1684: many: drop ubuntu-core-snapd-units package, use release.OnClassic instead <Reviewed> <Created by mvo5> <Conflict> <https://github.com/snapcore/snapd/pull/1684>11:12
rogpeppezyga: hmm, i wonder why... i wonder if i can make it panic when it does that11:12
zygarogpeppe: panic?11:12
zygarogpeppe: you get SIGKILL from the kernel11:12
rogpeppezyga: also, is it right that the binary should just hang when it does that?11:12
zygarogpeppe: it kills the offending thread11:12
rogpeppezyga: hmm, not the whole process?11:12
zygarogpeppe: depending on the way your program works it will just hang11:12
zygarogpeppe: nope11:12
rogpeppezyga: ok, that's probably the reason - it's a go program with multiple threads11:13
zygarogpeppe: yeah, it's unpredictable what will happen11:13
rogpeppezyga: any way to configure different behaviour?11:13
zygarogpeppe: not at present, I believe there's a bug about switching seccomp to return EPERM, we may be able to revive it11:14
rogpeppezyga: ah, i see now - the Go net package uses bind to probe to see if the kernel has ipv6 functionality11:15
zygarogpeppe: https://lists.ubuntu.com/archives/snappy-devel/2016-April/001708.html11:16
zygarogpeppe: that's correct, there's a separate bug about that, I've done the same investigation11:16
rogpeppezyga: so you can't have *any* Go program that imports /net without allowing the network-bind plug11:16
rogpeppezyga: i think i'll raise a Go bug about this11:17
rogpeppeah, there already is a bug: https://github.com/golang/go/issues/1678911:19
zygaI'm looking for the bug on golang11:19
zygaer11:19
zygasnapd11:19
zygaI cannot find it11:20
ogra_i think you can work around that by using a wrapper script with exec, so that systemd handles it differently11:21
zygaI'm sorry11:21
mupBug #1617264 opened: confusing error when installing snap when not logged in <Snappy:New> <https://launchpad.net/bugs/1617264>11:30
mattywhey folks, the icon guidelines link here is broken: https://developer.ubuntu.com/en/publish/creating-a-good-icon/11:42
mattyw^^ where should I report that11:42
mattywand can anyone tell me what dimension a snaps icon should be?11:42
ogra_what do you think is broken about it ?11:45
ogra_(my icons all work fine still)11:45
mvoogra_: good point about unseeding the scripts bits11:48
* ogra_ is happy about every bit he can remove ... :) just working on getting rid of all the partitioning tools and initramfs-tools in ubuntu-core 11:49
ogra_(well, at least initramfs-tools-ubuntu-core ... seems apparmor has a hard dep on the generic initramfs-tools )11:50
zygaChipaca: https://github.com/snapcore/snap-confine/pull/120/files11:59
mupPR snap-confine#120: Fix regression test when re-exec kicks in <Created by zyga> <https://github.com/snapcore/snap-confine/pull/120>11:59
zygaChipaca: care for a quick review of what we've just discussed?11:59
Chipacazyga, three things12:00
Chipacazyga, you're not stopping the .socket12:00
Chipacazyga, and, you can start/stop n all together in a single line12:00
zygaChipaca: I'm also not using it though I guess I can just stop it and be on the safe side12:00
zygaoh?12:00
zygahow :)12:00
Chipacazyga, systemctl stop foo bar baz12:00
zygaah12:00
zygathanks, doing that12:00
Chipacazyga, also also, systemctl stop snapd.{service,socket,refresh.timer}12:00
Chipacabut not sure if the bash these things run in has brace expansion12:01
zygaI've just spelled it out12:01
Chipacafair12:01
zygaChipaca: fixed, I also dropped sudo12:02
zygalook again please12:02
Chipacazyga, question: instead of “umount $(ls -1d /snap/ubuntu-core/* | grep -v current | tail -1)”, wouldn't “ummount /snap/ubuntu-core/$(readlink /snap/ubuntu-core/current)” work?12:06
zygaChipaca: perhaps, I didn't write this, jdstrand did12:07
zygaChipaca: I'm happy to improve it when it is green again12:07
Chipacaah ok12:07
Chipacazyga, go for it (once green)12:08
zygathanks12:08
rogpeppeso i seem to have published my snap (https://myapps.developer.ubuntu.com/dev/click-apps/5803/feedback/) but i still can't "snap install" it. anyone know what I'm doing wrong?12:09
rogpeppeis it just that i have to wait for a while for things to happen behind the scenes?12:09
zygarogpeppe: is that snap published to the stable channel?12:10
Chipacarogpeppe, what icon does the revision have next to it? a thumbs up, or a green box?12:11
=== chihchun is now known as chihchun_afk
rogpeppezyga: i think so. (i ran "snap release")12:11
rogpeppeChipaca: checking12:11
rogpeppeChipaca: a green box12:11
Chipacarogpeppe, and what's the snap called?12:11
rogpeppeChipaca: bhttp12:11
Chipacarogpeppe, if i can ask :-)12:11
rogpeppeChipaca: so that URL is personal?12:12
Chipacarogpeppe, yes12:12
rogpeppeChipaca: is there a URL for the snap that I can share?12:12
Chipacai get “You just tried to access a feature which you don't have permission to use.”12:12
Chipacarogpeppe, what channels is it published to?12:13
rogpeppeChipaca: i'm not sure where there's a page i can search for snaps12:13
rogpeppeChipaca: stable12:13
Chipacarogpeppe, i can confirm it isn't there :-)12:13
Chipacarogpeppe, I was about to point you at https://snapfui.herokuapp.com/ but it's broken right now :-(12:13
Chipacabeowulf, ^12:13
rogpeppeChipaca: what technique did you use to confirm that?12:14
ogra_uappexplorer :)12:14
* rogpeppe googles that12:14
Chipacarogpeppe, "snap find bhttp"12:14
Chipacarogpeppe, is it ARM-only?12:14
Chipacaor i386 or something other than amd64 or all12:14
rogpeppeChipaca: no, it's amd64-only12:14
Chipacahmmm12:14
rogpeppeChipaca: AFAIK12:14
rogpeppeChipaca: i didn't set any architectures12:15
rogpeppeChipaca: one mo, i'll send you a screenshot12:15
Chipacarogpeppe, you could wait until somebody with more access than i takes a look, or you can send me a screenshot :-)12:15
ogra_rogpeppe, does it have a little green box next to the version in the UI ?12:15
Chipacarogpeppe, m v o   should be able to see things, but he's a busy person12:15
Chipacaogra_, yep12:15
ogra_hmm12:15
mupPR snapd#1768 opened: many: automatically restart all-snap devices after os/kernel updates <Created by mvo5> <https://github.com/snapcore/snapd/pull/1768>12:17
rogpeppeChipaca: http://imgur.com/a/5YksP12:17
rogpeppeit *looks* like it's published to me, but maybe i'm missing some crucial piece of info12:18
mattywogra_, hey there, sorry, this is very out of context now, but where you replying to me above? (the broken link)12:18
Chipacarogpeppe, that should work12:19
Chipacanessita, are you around?12:19
ogra_mattyw, oh, i missed you meant a link, i thought you meant the instructions themselves12:19
ogra_mattyw, not sure where to file it, davidcalle or dholbach might be able to point oyyu to the right place12:20
rogpeppeChipaca: right, but... you verified that it's not actually there, right?12:20
Chipacarogpeppe, right12:20
Chipacarogpeppe, hence me poking nessita12:20
rogpeppeChipaca: ok, i give up for now. i need to do some actual work :) let me know if you work anything out, please?12:20
ogra_rogpeppe, if you scroll to the very bottom of the page there is also an "unpublish" button ?12:21
nessitaChipaca, indeed I am12:21
rogpeppeogra_: you think i should unpublish so that i can try to publish again?12:21
Chipacanessita, ohi12:21
Chipacanessita, given http://imgur.com/a/5YksP12:22
ogra_rogpeppe, no, i just want to know if that button is there12:22
rogpeppeogra_: yes, it's there12:22
Chipacanessita, which is https://myapps.developer.ubuntu.com/dev/click-apps/5803/12:22
Chipacanessita, what's missing, that snap can't find it?12:22
nessitaChipaca, let me check12:22
Chipacanessita, thank you12:22
nessitaversion 0 looks suspicius, but "in paper" shouldn't be an issue12:23
* nessita checks more12:23
zygatyhicks: https://github.com/snapcore/snap-confine/pull/11912:23
mupPR snap-confine#119: Make snap mount directory configurable <Created by zyga> <https://github.com/snapcore/snap-confine/pull/119>12:23
zygatyhicks: I didn't change the apparmor profile yet but I'm about to12:23
nessitaChipaca, not finding anything obvious, but I can't find it in CPI either, debugging more12:28
cyphermoxogra_: I can haz logs? what does it break?12:29
cyphermoxthe issue is this is hard to fix when I can't upload myself to that PPA and people leave pretty early12:30
Saeronhi guys12:32
Saeroni was looking for ubuntu disk image writer on snap12:33
Saeronthere are nor a lot of apps on this repo12:33
ogra_cyphermox, you got a bunch of bugs ;)12:33
ChipacaSaeron, early days :-)12:34
ChipacaSaeron, it would be a nice one to snap up, i agree12:34
Saeroncan someone tell me if anyone can make a snap of this app12:34
Saeroni men ihave to be the developper?12:34
ChipacaSaeron, yes, anyone can make a snap of that app12:34
Saeronthe problem is i am not actually using ubuntu12:34
Saeronand i cant find this app on manjara thats what i want a snap for it12:35
ogra_cyphermox, but in general i think having some tool that adds an additionyl 25MB RAM requirement is not really a good idea, is there no way to do it in ncurses or dialog instead of python3 ? it currently actually doubles our minimal ram reqs.12:35
cyphermoxogra_: there shouldn't be that much; we build images with nearly the same stuff (probably a few revs behind in livecd-rootfs, but that's it) in our PPA with no issues whatsoever12:35
cyphermoxno, there isn't. We'll have to see about the RAM usage. I'm shocked that it's as much as you say12:36
Saeronso exits the posibility of a good soul make a snap from this app?12:36
ogra_cyphermox, on the dragonboard i get two console-conf binaries each occupying 25MB RSS ... i noted that in one of the bugs12:36
ChipacaSaeron, are you looking for the gtk version?12:36
Saeronyes i am looking for the main ubuntu version12:37
ogra_cyphermox, but thats totally not unusual for python on arm ... it is about 10x slower and eats a lot more ram thgan i.e. C or perl12:37
SaeronChipaca: yes12:37
ChipacaSaeron, i could snap it, but over the weekend, not now12:37
SaeronChipaca: its all right, is not at urgent need is just i like a lot dat app and i think is a good one12:38
cyphermoxogra_: where did you open the bugs?12:38
SaeronChipaca: thx, is gonna be awesome to have dat app on manjaro :)12:38
Chipaca:-)12:38
ogra_cyphermox, against the snappy project with additional tasks against the subiquity package12:38
ogra_you should find them all under subiquity12:38
SaeronChipaca: i hope have time soon for see how to craft this apps12:39
SaeronChipaca: its really necesary to have ubuntu for do it?12:40
ChipacaSaeron, i don't know about that side of things i'm afraid12:40
Chipacasergiusens might, if he's around12:40
ogra_cyphermox, i know that mvo and pitti also did hit other bugs, not sure against what they filed them12:40
sergiusensI am12:41
sergiusenswhat's up?12:41
Chipacasergiusens, snapcraft on !ubuntu12:41
Chipacasergiusens, workie? no workie?12:41
sergiusensChipaca planned, not there yet12:41
SaeronChipaca: afraid about what12:41
ogra_Saeron, he is afraid he doesnt know about it :)12:41
Saeronwhat?12:41
ogra_(justa phrase=12:42
ogra_)12:42
ogra_*just a12:42
Saeronare you kidding me ?12:42
ChipacaSaeron, just an expression of apology for not knowing something12:42
ogra_?12:42
sergiusensChipaca the plans we have involve snapd and core work as well; but that was a brainstorm with zyga, probably needs a concrete design12:42
Saeronok but what you dont know?12:42
ChipacaSaeron, <Chipaca> Saeron, i don't know about that side of things i'm afraid12:43
Saeronabout if i can craft snap on othres dist diferents from ubuntu?12:43
mupPR snapcraft#761 opened: Remove dangling symlink from JDK plugin <Created by gnuoy> <https://github.com/snapcore/snapcraft/pull/761>12:43
ChipacaSaeron, means: i don't know12:43
ChipacaSaeron, I then went on to mentions sergiusens was the person to ask about that12:43
ChipacaSaeron, and he has since said that it won't work12:43
ogra_but that it is planned12:43
Chipacaogra_, yes. Yes.12:43
ogra_:)12:43
ogra_nobody is kidding you ... we just seem to have a communication breakdown :)12:44
Saeronok xd i dont understand nothing jajajajaja12:44
sergiusensSaeron subscribe to https://bugs.launchpad.net/snapcraft/+bug/160225812:44
mupBug #1602258: Support other distributions as sources (Fedora, Mageia, openSUSE, Debian) instead of Ubuntu <centos> <debian> <fedora> <mageia> <opensuse> <rfe> <rpm> <snapcraft> <Snapcraft:Confirmed> <https://launchpad.net/bugs/1602258>12:44
Chipacahmmm12:44
Saeronok now12:45
ChipacaSaeron, from your laugh i suspect spanish would work better12:45
sergiusensindeed ;-)12:45
Saeronthere is not suport for others dis12:45
SaeronChipaca: yeah i am a poor spanish12:45
SaeronChipaca: dont know a lot about english12:46
ChipacaSaeron, nada de pobre, eh?12:46
SaeronChipaca: asi que tambien eres español :)12:46
ChipacaSaeron, bueno, eso, que no funciona. Que está planeado, pero en realidad lo que está planeado es planearlo.12:47
SaeronChipaca: ok bueno si haces el favor de hacer el paquete cuando tengas tiempo12:47
ChipacaSaeron, síp, parece interesante, y el fin de semana es largo para mí \o/12:48
SaeronChipaca: no hay prisa, es simplimente lo que mejor me servia para raspberry pi12:48
ChipacaSaeron, perfecto12:48
SaeronChipaca: a mi se me esta haciendo ya largo con una version de tftop en tcp que tengo que hacer en java12:49
ogra_Chipaca, if my guessing of that spanish is correct he should be able to use the classic shell on his pi to use snapcraft12:49
Chipacaand now back to your regularly scheduled programme12:49
SaeronChipaca: :(12:49
Chipacaogra_, he needs something to write things for the pi, not on the pi12:49
* zyga sees spanish everywhere12:50
ogra_he can write wherever he wants .. and just build on the pi12:50
Saeronogra_: mm maybe but i only have raspberry pi 1 so i think i cant12:50
Chipacazyga, you're hallucinating12:50
zygaChipaca: must be the coffee12:50
zyga;-)12:50
ogra_zyga, nah, it is all german, just with bavarian accent :P12:50
Chipacazyga, it's the lack of mediterranean sun.12:50
Saeronogra_: snap is not aviable on rp1 unfortunally :(12:50
ogra_oh, pi112:51
ogra_yeah, sorry, that wont work12:51
zygaChipaca: it's surprisingly sunny here; always when holidays run out I guess12:51
Chipacazyga, hence the qualifier12:51
zygaogra_: I may learn some german soon, we're planning on visiting friends in dusseldorf12:51
* Chipaca -> tea and meetings12:51
* zyga spread and meetings12:51
zygaand meetings12:51
zygaand hopefully some code after12:52
ogra_and altbeer :)12:52
ogra_(regarding düüsseldorf)12:52
zygaoh12:52
ogra_12:52
zygaI need to package snapd-glib12:52
zygawell12:52
zygathat's easy by now12:52
* zyga gets around to do it12:52
ogra_it isnt packaged ?12:52
ogra_i thought it is12:53
sergiusensogra_ for all distros he means ;-)12:54
zygaogra_: maybe, I'm checking12:56
mupPR snapd#1769 opened: snap: add export-key --account= option <Created by cjwatson> <https://github.com/snapcore/snapd/pull/1769>12:58
ogra_sergiusens, ah, i thought for ubuntu13:00
mupPR snapcraft#759 closed: Remove the useless call to os.path.join from the go plugin <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/759>13:04
ogra_urgh13:06
ogra_morphis, so i just tried to install the nm snap on my pi3 (which has a perfectly fine configured /e/n/i setup for the wlan0 device already) ... over ssh ...13:07
ogra_that now locked me out completely13:08
ogra_why is it killing existing connections like that ?13:09
mupBug #1617302 opened: Specifying a nonexistent part does cause any errors <Snapcraft:Triaged> <Snappy:New> <https://launchpad.net/bugs/1617302>13:19
sborovkovHello. How do I keep snap in edge channel up to date? Should I add cron job to call snap refresh --devmode snap-name?13:20
ogra_sborovkov, on a snappy image ?13:21
ogra_if the image uses edge as well it will just auto-update13:21
sborovkovogra_: I have classic image13:21
ogra_(though --devmode will not autop-refresh i think)13:21
ogra_ah, k13:21
ogra_there i dont know then13:21
sborovkovYes, that's why I was thinking what should I do. Considering that I need to specify both --devmode and snap's name to get it to refresh13:22
ogra_yeah, i guess for --devmode there is no way around that13:22
ogra_edge on an image that knows about edge wouldnt be a prob13:22
ogra_hmm13:23
sborovkovDo you know if there is some recommended mechanism to make it so that snap login does not expire?13:23
ogra_ppisati_, did you actually notice that since we moved the dtb on the pi3 so high in ram you cant actually boot with mem= anymore ?13:23
ppisati_ogra_: uhm nope13:24
ppisati_ogra_: you mean to reduce the visible memory?13:24
ogra_yeah13:24
ppisati_nope13:24
ogra_seems it reduces enough to also hide the dtb13:24
ogra_my kernel just hangs13:24
ppisati_i have vague memoris of faffing with that options13:25
ppisati_*memoris13:25
ppisati_and i remember i disoverd way it hanged when reducing the visible memory13:25
ppisati_but it was long ago13:26
ogra_hmm, even hangs with mem=1024m13:26
ppisati_and i'm not even sure it was the raspi board13:26
ogra_which shoudl actually be more than the board has (944)13:26
ogra_probably not related to the dtb position then13:26
ppisati_i wonder if the fw has anything to do with it13:27
ppisati_since the dtb, usually, has an empty memory field13:27
ppisati_and it's a task of uboot to fill that field13:27
ogra_well, theer are also various gpu defaults that might kick in13:28
ppisati_right13:28
ppisati_and then we take a slice for the gpu too13:28
mupBug #1617314 opened: Cannot run daemons as non-root <Snapcraft:New> <Snappy:New> <https://launchpad.net/bugs/1617314>13:28
ogra_yeah13:28
ogra_so i guess it isnt a good system to try out differenmt ram sizes13:28
ppisati_uhm nope13:29
ogra_i know i was abnle to boot 15.04 on the BBB with mem=64m ... wanted to try out how the 16 images behave in that regard13:29
ogra_but i guess i'd need a BBB image to actualyl do that (dragon is arm64 so not really representative)13:30
ppisati_probably yes13:30
smoserso these failures here: https://code.launchpad.net/~smoser/+snap/azure-cli13:33
smoserthats simply "builders do not have internet access" right ?13:34
smoseram i missing somethign? or does that kind of mean that some large percent of the snapcraft.yaml that people would create will not work there.13:34
morphisogra_: because nm currently doesn't take care of any connections defined in /etc/network/interfaces.d13:47
morphisonly about those which are in /etc/network/interfaces13:47
morphiswhoever introduced interfaces.d didn't adjust nm for this13:47
morphiswe have a patch for that pending13:47
ogra_morphis, well, it would be nice if it could simply check for a default route and not kill existing connections13:47
morphisbut normally it should ignore all interface which are configured by ifupdown13:48
ogra_i dont care if it trashes my /e/n/i setup as long as it doesnt lock me out out of the blue13:48
morphisogra_: in this case it takes control over wlan0 completely as it doesn't see its already managed by ifupdown13:48
morphisogra_: how should I do that if it does not have any provisioning information for that interface?13:48
ogra_i.e. how would i switch over to nm on a remote device13:48
morphiswhat do you mean by that?13:49
ogra_morphis, by looking for a default route13:49
ogra_morphis, i would expect nm to not touch anything until i configured it ... simply installing the package should not kill my existing connection13:49
ogra_it shoudl notice there is a default route added to an interface ... and leave that interface alone until i tell it to use it13:50
morphisafaik that makes things quite more complex, nm is supposed to be a network manager which is installed by default13:50
ogra_it would even be fine if it already trashed my /e/n/i setup (and tells me it did) but doesnt ifdown the device13:50
morphisogra_: it shouldn't trash your ifupdown setup13:51
morphisit should just ignore those interfaces ifupdown has under its control13:51
morphisit then gives metrics to the various routes13:51
pstolowskikyrofa, hey, can you ping me when you're back and have a moment for HO? i'd like to talk about snapctl13:52
nessitarogpeppe, hi, I'm debugging the issue with bhttp, would you give me some detils about how you uploaded the snap to the store? was it manually, with snapcraft, or LP?13:53
rogpeppenessita: with snapcraft13:53
nessitarogpeppe, did you also release the revno with it? (so I can try to reproduce)13:54
rogpeppenessita: what does "release the revno" mean?13:54
ogra_morphis, well, i obviously installed nm to make use of it ... but doing that via ssh simply deconfigures the device during package install13:54
nessitarogpeppe, with snapcraft you first build the snap and push it to the store, and then you decide to release a revno to a given channel (release == publish)13:54
ogra_(to make use of it = i dont care about /e/n/i anymore)13:55
ogra_morphis, what makes you think an oem would pre-install nm13:55
morphisogra_: as said, if a device is configured via ifupdown it should be ignore, that it isn't as of today is a bug and will be fixed13:56
ogra_morphis, if i'm that hypothetical lawnmower manufacturer and have 500MB diskspace for OS and apps on that lawnmower, i surely dont want a 25MB nm package installed (25MB that i cant use for my autopilot app then)13:56
rogpeppenessita: i ran: snapcraft release bhttp 2 stable13:56
morphisogra_: second thing is taking over a network device which isn't configured by ifupdwon but manually by the other13:56
ogra_morphis, well, it shouldnt matter how the device was configured before ... all that should matter is that it is actively in use (default route)13:57
morphisthat is a different story and the easiest you can do is to reset the device to make sure you take it over in a well known state13:57
ogra_right, so i send out a technician to hit the reset button ;)13:57
tyhickszyga: why does the snap mount dir need to be configurable?13:58
morphisogra_: so we over two (or three) ways today to configure network, netplan, ifupdown and nm13:58
morphisall play together and all three is what you can use as a manufacturer13:58
smoseranyone able to comment on my question above ? basically snap building on launchpad wont work unless everything comes from the repo or the ubuntu archive (or i guess a ppa) right ?13:58
ogra_morphis, right, this isnt about how it was configured ... only about what is currently in use13:58
morphisogra_: if you go and build your own you're off and it gets harder to support all of these13:59
morphisogra_: yeah and it takes only ifupdown as indicator for that right now13:59
zygatyhicks: because some distributions will use a different location13:59
zygatyhicks: I've just updated the pull request to adjust apparmor profile (there's almost no change in practice)14:00
morphisogra_: what should we then do with such a device in nm?14:00
zygatyhicks: similar changes are almost ready for snapd14:00
morphismark it as unmanaged?14:00
zygatyhicks: https://github.com/snapcore/snap-confine/pull/119/commits/c77ce3d7e521b93a2375bbad5019338bb176f9cc is the new thing14:00
mupPR snap-confine#119: Make snap mount directory configurable <Created by zyga> <https://github.com/snapcore/snap-confine/pull/119>14:00
mupBug #1598225 changed: htop unable to send signals to other processes <snapd-interface> <verification-done> <Snappy:Fix Released by jdstrand> <https://launchpad.net/bugs/1598225>14:01
nessitarogpeppe, thanks14:02
* zyga lunch14:02
morphisogra_: size is a thing which matters for sure, there are some parts we can still optimize to reduce the footprint of the snap14:02
morphisbut in the end Ubuntu chose NetworkManager which hasn't the smallest footprint and isn't made for this14:02
=== JanC is now known as Guest12120
=== JanC_ is now known as JanC
tyhicksjdstrand: thanks for reviewing the profile changes14:03
morphisthen you want connman or just ifupdwon14:03
tyhicksjdstrand: I already reviewed the code changes14:03
tyhicksI'll leave a comment14:03
ogra_morphis, i installed nm to configure it with nm ... but i cant because nm locked me out on package install14:03
ogra_my point is that it should respect that the device is in use ... i will most likely want to then set up an nm config (because i installed the package) and reboot14:03
ogra_so what did configure the device before doesnt really matter ... that i cant configure nm now does though14:03
ogra_morphis, well, add a check for the default route to the systemd start script ... and make sure to not tear down the device if the default route points to it14:04
mupBug #1586547 changed: allow browsers to use user namespaces in its sandbox <snapd-interface> <Snappy:Fix Released by jdstrand> <https://launchpad.net/bugs/1586547>14:04
morphisogra_: so you configured the device with ifupdown before?14:04
ogra_morphis, well, i perfer using /e/n/i or wpa-supplicant directly, so i dont waste ram and diskspace (this isnt only about the 25MB disk but also about eating system resources)14:05
morphissure14:05
ogra_morphis, yeah ... but it shouldnt matter how it was configured14:05
ogra_sint i just installled a tool that i will likely use in the future to configure it14:05
ogra_*since14:06
ogra_so the past shouldnt be taken into account ... if i install nm it is fine to assume i want to configure my devices with it ... what matters is the present14:06
ogra_since i can snap install nm via ssh14:06
mupBug #1596717 changed: please add getsockopt to pulseaudio interface <snapd-interface> <Snappy:Fix Released by jdstrand> <https://launchpad.net/bugs/1596717>14:07
mupBug #1600085 changed: interface for making bpf syscalls <snapd-interface> <verification-done> <Snappy:Fix Released by jdstrand> <https://launchpad.net/bugs/1600085>14:07
mupBug #1605768 changed: incomplete 'opengl' interface <snapd-interface> <Snappy:Fix Released by jdstrand> <https://launchpad.net/bugs/1605768>14:07
morphisogra_: can you file a bug agaisnt https://bugs.launchpad.net/snappy-hwe-snaps ?14:07
ogra_will do14:08
morphisawe: can we easily tell network-manager to not reset a network device a default route is configured for when its first started?14:10
awemorphis, ?; can you give me some more context?14:10
morphisogra_ describes his use case: he has a network device configured and a default route set14:11
aweconfigured by...?14:11
morphisnow he installs the nm snap which removes all routes + interface configuration on first start14:11
awenm?14:11
morphisawe: manual14:11
aweor cloud-init/ifupdown14:11
awetotally manual?14:11
aweas in no eni or eni.d iface?14:12
morphisif it would be ifupdown it should be ignored but isn't right now due to us not respecting e/n/interfaces.d/14:12
aweright; s16?14:12
morphisawe: or phrase it like this: should be ignore whenever it is not configure by ifupdwon or nm itself14:12
morphisawe: yes14:12
aweif so, doesn't your new snap fix?14:12
morphisawe: it does and it would ogra_ problem14:13
morphisbut he worries that this will be a problem for people who may configure their interfaces manually and then lock themself out14:13
mupBug #1603113 changed: add fuse filesystem interface <lxd> <snapd-interface> <Snappy:Fix Released by stgraber> <https://launchpad.net/bugs/1603113>14:13
morphiswhich should be a very small number as everything is meant to be ifupdown/netplan in the default ubuntu core images14:14
ogra_apw, morphis bug 161734414:14
mupBug #1617344: snap install of network-manager should not tear down the device holding the default route <snappy-hwe-snaps:New> <https://launchpad.net/bugs/1617344>14:14
ogra_awe, it shouldnt matter how the device was configured (could be some shell script i put in place myself that called "ifconfig up" and dhclient) ... it should just not kill my current ssh connection14:16
ogra_awe, so that i have a chance to put an nm confiig in place after i installed the nm package ;)14:16
awewell.... that's what you get for mixing a manually configured device with a daemon that wants to own everything14:16
mupBug #1583371 changed: GPIO interface request <snapd-interface> <Snappy:Fix Released> <https://launchpad.net/bugs/1583371>14:16
awelet me give some thought to how we can address this...14:17
ogra_awe, just make the nm syystemd job chec for the default route and do not touch the device til there is an nm config for it i guess14:17
awedid you add an iface into e/n/i.d?14:17
morphisogra_: that would be a little bit of a hack as you still want nm to take over control when its configured correctly14:18
morphisawe: he did14:18
awethen why don't we just add ssweeny's patch?14:18
morphisyes14:18
awedoens't that solve the problem?14:18
morphisnot in ogra's eyes :-)14:18
ogra_awe, yes, thats the current default recommendation, using /e/n/i.d/wlan0 ...14:18
morphishe says we should ignore the device regardless of it was configured when it provides the current default route14:18
ogra_awe, all i want it that i'm not locked out of the device just because i installed a package :)14:19
morphisogra_: first of all if you install a network-manager you should know what you do14:19
ogra_right, i just dont want to have my ssh connection killed when installing NM14:19
morphisits quite a fundamental thing for a system14:19
aweogra_, we're sitting on a patch that fixes the problem14:19
morphisogra_: and you wouldn't when its properly configured with ifupdwon14:19
awenot sure why we'd want to do anything different?14:20
ogra_awe, good then14:20
morphisogra_: so securing the remaining 1% of use cases where the user configured the device manually sounds a bit like overhead14:20
awe+114:20
ogra_morphis, well, i perhaps (or rather most likely) installed nm to manage the device with nm in the future14:20
ogra_and perhaps my device sits on a pole in the arctic sea14:20
morphisogra_: but then you should have configured it properly with ifupdown14:21
aweogra_, people are going to use netplan or cloud-init14:21
ogra_when the device gets killed by the package install i have no way to actually put any nm config in place14:21
aweif they device in the north pole14:21
aweand they configure manually14:21
ogra_awe, how do you knwo ?14:21
aweand then install NM blindly without having tested it first...14:21
awewelll14:21
morphisthey shoot themself off IMHO14:21
aweyup14:22
morphiswe can't prevent them from running "sudo shutdown -h now" as well14:22
aweI suppose the other thing we could consider14:22
ogra_awe, imagine i'm an OEM with a 233MHz/128MB device that runs on solar power to measure sea temp ... and i use ubuntu-iage to roll myown very minimal image14:22
aweand you're not going to stage your software first?14:22
aweand test?14:22
ogra_i do stage my software ... and i do test it ... it worked and i installed it on that pole14:23
ogra_now someone comes along and tells me i should rather use nm even though that eats my resources ...14:23
mupPR snapd#1710 closed: tests: add content-shareing binary test that excersises snap-confine <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1710>14:23
ogra_so i ssh into the device, notice there is actually enough space to use nm (yay) ... and install nm14:23
ogra_*boom*14:23
aweogra_, is there a way to install a snap and have a job disabled upon install?14:23
morphisno14:23
ogra_i have to find a ship that goes to my pole to reset the device14:24
morphisyou wouldn't do such a critical operation on a production device14:24
aweexactly14:24
awethat's what I keep saying14:24
morphiswithout testing and having the gurantee it works14:24
ogra_awe, no, and why would you14:24
awethis would be a good case for it, no?14:24
ogra_all i want is that my current connection doesnt get orn down out of the blue14:24
ssweenyjdstrand, zyga, so I'm back to this mount namespace thing. I got debug output from snap-confine by changing the daemon to a command and running it from a shell. Here's the output: https://paste.ubuntu.com/23093357/14:24
ogra_*torn14:24
ssweenyjdstrand, zyga, I'm still not seeing the mounts outside of the snap though14:24
aweogra_, you want to hop on #nm and discuss?14:24
morphisogra_:  it does not if you have it configured properly with ifupdwon14:25
ogra_being locked out of a device just because you install some package is evil14:25
ogra_we should prevent that14:25
morphisogra_: but you would discover in your testing that this is broken and wouldn't do it14:25
ogra_i.e. look at ubuntu server ... if you upgrade ssh it will *never ever* kill your current sshd14:25
ogra_and snap should not behave different in that regard14:25
ogra_no matter what package i install14:26
morphisogra_: we support that use case very well (if that single bug is fixed I mentioned before)14:27
nessitaChipaca, rogpeppe bhttp is now available, we are still troubleshooting but we re-publihs it to unblock you14:27
aweogra_, I still think the right way to do this would be so have NM installed in a state where it's idle, until enabled14:27
ogra_morphis, well, thats fine then14:27
aweI honestly don't think playing around with the code that handles the routing table for a case where someone's manually configured their device is correct14:28
ogra_awe, whatever keeps my sshd alive is fine :) i dont care how it is solved14:28
aweas morphis said, in 99.99% of the cases, cloud-init or netplan will be used, and NM will stay from any devices configured via those14:28
ogra_locking people out of thir devices is just wrong ... thats the core point here14:28
awein this, the person has locked themselves out14:29
ogra_awe, i suspect most peope doing actual embedded stuff will not want to use NM14:29
awethey were flying without a net14:29
aweI agree14:29
ogra_since your resources are precious on such HW14:29
morphisogra_: and we support that for 99% percent of the use cases and the remaining 1% should be discovered in testing before deploying such a fundamental change in a critical production environment14:29
awethat said, I definitely could see a need for being able to specify that a service is disabled by default upon install14:30
ogra_morphis, well, you never know what weird manager takes over that sea tem measuring project  ... and what insane orders he gives to devs ;)14:30
ogra_*sea temp14:30
aweto allow the service to be *configured* before it's used14:30
morphisogra_: then he is responsible14:30
sergiusenssmoser we have an open bug for that launchpad issue (pull/build with or without internet access for the latter step)14:31
morphisawe: sure that is another use case we could support but that would require some features we don't have in snapd yet14:31
ogra_morphis, doesnt matter ... before he gets fired he gives a bunch of interviews telling the press how badly ubuntu snappy sucks ;)14:31
aweagreed, I'm just saying that's the way I'd handle this14:31
ogra_awe, and i agree ... we should have a way to handle initial state for systemd units14:32
ogra_but we dont atm14:32
morphisogra_: but somebody could say similar if ubuntu core doesn't prevent you from stopping the machine with "sudo shutdown -h now" on critical machines14:32
sergiusenssmoser if cjwatson gets his way we need to build in pull, I am not against that as I was before as that pull will only ""build"" your deps and not your actual referred to source14:32
smosersergiusens, i went asking in launchpad, and cjwatson said14:33
ogra_morphis, indeed :)14:33
smoser<cjwatson> Builders have internet access but only during the pull phase.14:33
smoser<cjwatson> ... which is the case here.14:33
smoser<cjwatson> There's a known but undiagnosed problem with npm.14:33
smoser<cjwatson> https://bugs.launchpad.net/launchpad-buildd/+bug/158887014:33
mupBug #1588870: npm doesn't seem to use snap proxy <lp-snappy> <launchpad-buildd:Triaged> <https://launchpad.net/bugs/1588870>14:33
aweogra_, patches welcome... but as mentioned, this probably should be discussed with upstream14:33
aweyou could do the same thing with the deb pkg14:33
ogra_does that kill my running interface ?14:34
morphisogra_: I am not against adding sth in nm to ignore already configured devices but I have the feeling that the effort to implement this (which could be very tricky) isn't worth it14:34
ogra_i dont think it does14:34
morphisogra_: if it is configured with ifupdwon the deb doesn't :-)14:34
aweit's the same code ogra_14:34
morphisbut if it is configured manually it will for sure14:34
ogra_morphis, well, whatever the solution is, as long as my ssh connection persistst i'm all fine14:34
awejust in a deb instead of a snap14:35
ogra_awe, same systemd unity ?14:35
morphisogra_: ok, then lets ignore the 1% and concentrate on the 99%14:35
ogra_*unit14:35
aweogra_, NM wants to own all of the networking on a device14:35
aweunless it's explicitly told otherwise14:35
morphisogra_: in gernal yes14:35
aweagain... if you really want this fixed, then hop on #nm with me, and we can discuss there14:36
awebut I agree with morphis14:36
ogra_hmm, so if i'd install  ubuntu-desktop+rdesktop remotely on a cloud instance that would kill the cloud instance networking ?14:36
* ogra_ doubts thats ture 14:36
ogra_*true14:36
morphisogra_: if you install the nm deb package no matter where, it will take over all not by ifupdown managed network devices14:38
sergiusenssmoser yeah, doing all that in `pull` would make your build/install twice (go through it). It is what we do with the python plugins today14:38
smosersergiusens, so is that an easy snapcraft.yaml config change that i can make  to try ?14:39
ogra_morphis, ah, in that case thats probably the ifupdown setup that prevents it from doing that in the cloud14:39
morphisogra_: yes14:39
ogra_and that patch you guys talked about will actually add that feature to the snap ?14:40
morphisit will14:40
ogra_well, then all is fine14:40
morphisogra_: or said differently, I suspect nm on the desktop has the same problem with /etc/network/interfaces.d as the snap has14:40
morphisas this isn't fixed anywhere yet14:41
rogpeppenessita: ok, thanks14:41
rogpeppenessita: do you know what might've gone wrong?14:41
morphisogra_: even not in the deb packages we have nor upstream14:41
nessitarogpeppe, nothing is standing out, we are now trying to reproduce the same flow you used to see if we have a bug14:42
nessitarogpeppe, also, we are adding more logging because we noticed we need some more for cases like this (ie no errors but still log when publishing ocurrs)14:42
ogra_morphis, well, i remember when asac maintained NM it never touched ifupdown devices14:43
ogra_due to a distro patch though14:43
ogra_and thats is years ago14:43
zygajdstrand: hey14:43
zygajdstrand: I've updated the milestones on launchpad so that snapd 2.12, .13 and .14 exist14:43
ogra_it has definitely been cpable of that for quite a while14:44
ogra_*capable14:44
zygajdstrand: and .12 although released, can be used as a bug target14:44
zygajdstrand: when you update bugs like you did just now would you mind also flipping the milestone to include this information14:44
morphisogra_: it ignores /etc/network/interfaces, yes14:44
ogra_right14:44
morphisogra_: but not interfaces.d14:44
zygajdstrand: this is very useful for looking at changes per whole milestone14:44
ogra_ah !14:44
morphisogra_: not sure when this was introduced but nobody added support for that in nm14:44
morphisand that is what we're fixing14:45
ogra_i think i.d exists forever (years for sure) but hasnt been widely used14:46
zygais robert ancell somewhere far away from europe, timezone-wise?14:47
ogra_zyga, only australia ... not that far14:47
zygaah14:47
ogra_(could be worse ... like .nz)14:47
zygaok, I'll just talk to him later tonight14:47
zygaer. wait, it's Friday14:48
ogra_he14:48
zygawell, on Sunday then14:48
morphisogra_: maybe that is the reason why :-)14:50
ogra_yeah :)14:50
* ogra_ hugs morphis and awe 14:51
morphis:-)14:51
sergiusenssmoser it is not in snapcraft.yaml where the change is needed but the plugins instead15:14
cjwatsonsergiusens: the logs suggest that npm *is* being called in pull though15:20
cjwatsonoh, no15:20
smoserbah.15:20
smoserok. so 2 changes needed.15:20
cjwatsonI must have misread it15:20
smoserso.. i have figured it out.15:21
cjwatsonsergiusens is right, it's just about moving the dep install into the pull phase15:21
smoseras documented npm pays attention to HTTP_PROXY and HTTPS_PROXY as it says15:21
smoserthat i simply not true15:21
smoserhowever, you can make it care with --proxy= and --http-proxy=15:21
smoserso i'm looking at a change to the nodejs plugin that will add --proxy= and --http-proxy= according to environment variables15:22
sergiusenssmoser it is really not a proxy problem; network is disabled for `build` from launchpad itself15:22
smosersergiusens, sure, but it doesnt read proxy anyway15:22
smoserso moving it to another stage doesn't fix it unless you make it respect proxy, right?15:23
sergiusenssmoser npm is supposed to read http_proxy and https_proxy15:23
smoseror do they have un-fettered access to internet in pull15:23
smosersergiusens, yes. it is documented as doing so15:23
smoserit does not15:23
sergiusenselopio ^ maybe reopen the PR15:24
zygaPharaoh_Atem: does this look okay? https://github.com/snapcore/snap-confine/pull/12115:24
mupPR snap-confine#121: Allow the use of capabilities over setuid bit <Created by zyga> <https://github.com/snapcore/snap-confine/pull/121>15:24
bulldoghi everyone once again am here :D15:24
Pharaoh_Atemzyga: LGTM15:25
bulldogwith updates on snapcraft-gui :P15:25
zygaPharaoh_Atem: will setcap be a problem for fedora's %install target?15:25
zygaPharaoh_Atem: I suspect it runs under some sort of fakeroot but I'm not sure15:25
zyga(does it?)15:25
elopiosmoser: sergiusens: the problem seems to be when http_proxy is http:// and https_proxy is https://15:26
bulldogcheck out https://github.com/keshavbhatt/snapcraft-gui15:26
Pharaoh_Atemrpm runs chroot() for all actions, including building packages, I believe15:26
elopiosmoser: have you seen https://bugs.launchpad.net/snapcraft/+bug/1611372 ?15:26
mupBug #1611372: add proxy support for nodejs plugin <Snapcraft:Invalid> <https://launchpad.net/bugs/1611372>15:26
zygachroot is one thing, does it run as root so that setcaps can run15:26
* zyga just goes to try15:26
Pharaoh_Atemzyga: though the best place to ask these things is in #rpm.org15:26
zygaok15:26
Pharaoh_Atemzyga: you'll need libcap as a BR though15:28
Pharaoh_Atemerr15:28
Pharaoh_Atemzyga: you'll need /usr/bin/setcap15:29
Pharaoh_Atemas a BR15:29
Pharaoh_Atemfuck15:29
Pharaoh_Atemit's /usr/sbin/setcap15:29
smoserelopio, hm..15:30
zygaas BR?15:30
smosermy path was not goign to be to set config ('npm config')15:30
zygabuild requires?15:30
zygathat's okay, that's easy15:30
smoserbut to set flags on the npm install line15:30
smosernpm install --proxy= --https-proxy=15:31
smoserwhich works15:31
zygaPharaoh_Atem: I'm about to call it a day, I will do a .41 soon and with .14 around the corner (of snapd) we should have all the we need15:32
zygaPharaoh_Atem: over weekend I'll look at selinux for the socket15:32
zygaand maybe more :)15:32
zygaPharaoh_Atem: I'm going to break and spend some time with my family, I'll grab you next week :)15:33
zygahave a good weekend everyone!15:33
Pharaoh_Atembye15:33
smoserhm..15:33
zygatyhicks: https://github.com/snapcore/snap-confine/pull/12115:33
mupPR snap-confine#121: Allow the use of capabilities over setuid bit <Created by zyga> <https://github.com/snapcore/snap-confine/pull/121>15:33
Pharaoh_Atemzyga: it'd be awesome if you could get the alternate path stuff done today15:33
zygaPharaoh_Atem: for snap-confine it is ready upstream, for snapd it was (sans test) for a while15:33
barryanybody know what this problem is:15:36
barry$ sudo snap install hello-world15:36
barry$ hello-world15:36
barrymultiple nvidia drivers detected, this is not supported15:36
barry 15:36
barrycan't check bugs because launchpad.net/snappy is timing out for me15:36
naccbarry: there's a bug for that15:37
zygabarry: I do15:37
zygabarry: yes, one sec15:37
barrycool, thx15:37
zygabarry: https://bugs.launchpad.net/snap-confine15:37
zygabarry: ideas welcome15:37
zygabarry: if you come up with something simple it will be fixed in the next release15:37
* barry looks15:38
zygaoh alberto suggested an idea15:38
nacchttps://bugs.launchpad.net/snap-confine/+bug/1615248 this one?15:38
mupBug #1615248: ubuntu-core-launcher nvidia driver detection is bogus <Snappy Launcher:Triaged by zyga> <https://launchpad.net/bugs/1615248>15:38
zygasound like a plan if security agrees with it :)15:38
zygatyhicks: can you please also look at https://bugs.launchpad.net/snap-confine/+bug/1615248 and tell me if looking at /sys/module/nvidia/version can be used as a way to know which driver to bind mount15:39
zygatyhicks: if so I can easily do that15:39
zygabarry: as a workaround, purge unused drivers15:39
zygabarry: sorry!15:39
barryzyga: thanks, will try that15:40
nacczyga: why does u-c-l care about nvidia drivers? just for context15:40
zyganacc: because world is terrible and it has to15:41
zyganacc: and for real...15:41
zyganacc: because on classic there is no kernel snap so no nvidia modules or userspace so we have to take them from the classic world15:41
zyganacc: so snap-confine has logic to find and bind mount the driver15:41
zyganacc: into the snap execution environment15:41
zyganacc: there's a different version of that for ubuntu and for arch, so far no other distro is supported15:42
nacczyga: ah!15:42
zyganacc: and they differ quite widely because of how packaging there works15:42
nacczyga: sure, it was just a surprising bug to my naive view of what u-c-l woudl care about :)15:42
zyganacc: and also among driver versions (nvidia switched to libglvnd or whatever that name is GL vendor) later15:42
zyganacc: well, surprise ;)15:42
zyganacc: I wish I had nvidia GPU with recent drivers to test15:43
* zyga has to order and expense GTX 96015:43
bulldoghow to browse all snap packages availble in store15:43
elopiokyrofa: can I interest you in https://bugs.launchpad.net/snapcraft/+bug/1615242 ?15:45
mupBug #1615242: etcd tree drives snapcraft dump plugin insane <Snapcraft:Confirmed> <https://launchpad.net/bugs/1615242>15:45
barryzyga, nacc i followed up on the bug.  i'm going to try to purge the old drivers and reboot.  if i come back then at least i'll know that wasn't a horrible idea ;)15:47
elopiosmoser: so npm install --proxy=http://... --https-proxy=https://... works ?15:47
bulldogsnap find wont load all packages :(15:47
elopioif so, that looks better than the other solution.15:47
ogra_zyga, barry, well, long term the nvidia driver should really stop leaving cruft behind :)15:48
barryogra_: of course! ;)15:48
ogra_that seems to go on since multiple releases ...15:49
bulldogogra_, how to browse all snap packages available in store any idea ?? snap find not working15:49
barrybtw, i'm not sure this will solve the problem because i think i'll still be left with nvidia-367 and nvidia-367-prime15:49
ogra_bulldog, no idea, all i know is that it was disabled15:49
ogra_bulldog, you could try if uappexplorer helps15:49
bulldogogra_, no i want list all packages available  in snapcraft-gui15:50
ogra_eeek ... mvo !!15:50
ogra_(why did he just share the ps gadget with me again)15:50
ogra_*pc15:51
barryanyway.  rebooting with fingers crossed15:51
ogra_bulldog, well, they you have to wait til snapd grows such a feature15:51
smoserelopio, it does15:51
smoserbut now i just seem to see HTTP_PROXY and HTTPS_PROXY working15:51
bulldogogra_, snap find was there for that but it is dropped feature idk why :(15:51
smoserso maybe all we need is to do the build in the pull15:52
smoseras was suggested15:52
smoserwhat environment does the buildd set up for us?15:52
ogra_bulldog, no, it wasnt .... it just listed 100 random snaps15:52
smoseris that documented?15:52
bulldogogra_,  oh :D15:52
elopiosmoser: I don't know. You need somebody from launchpad.15:52
bulldogogra_, and what snap find <snapname > does is look for package online ??15:53
ogra_yes15:53
bulldogdaem , but thats not gonna help me :D15:53
ogra_just talk to the local snapd15:55
bulldogwont look online ??15:55
ogra_it has a REST API15:55
ogra_sure it will look online15:55
bulldogcool15:55
ogra_thats the only package DB that exists15:55
ogra_so it has to look online :)15:55
bulldogi wil allow users to look online and then allow them install via gui15:55
bulldogty :P15:56
ogra_i think a gui to manage interfaces would abe a lot more interesting though15:56
ogra_*would be15:56
bulldogmanage interfaces mean ??15:56
barryzyga, nacc purging the old drivers doesn't help15:56
ogra_snaps are installable through the software center already, so there is a GUI installer15:57
bulldogshowing users the interfaces snap will use or what ?15:57
ogra_but there is no GUI tool yet to manage the snap interfaces15:57
ogra_only a few of them connect automatically15:57
bulldogogra_, am making all in one ,snapcraft-gui have a package manager too15:57
ogra_well, as you like15:57
bulldogogra_, make me clear about managing interfaces15:58
smosersergiusens, you said do the build twice ?15:58
smoserwhy not *only* in the pull as oppoosed to pull and build ?15:58
bulldogwhat u mean ?? how you want user manage em15:58
ogra_bulldog, well, snap interfaces ... snap connect ... guis for these ...15:58
ogra_so that you can manage permissions for installed snaps15:58
bulldogoh15:58
ogra_currently that requires commandline15:58
ogra_even if you installed through the software center15:59
bulldogogra_, is it a feature available in cli snapd15:59
ogra_snap help15:59
ogra_:P15:59
bulldogogra_, :D15:59
kgunnogra_: you used to have a dragonboard readme with how to setup wifi i used to cheat with :)15:59
kgunnbut now it's missing15:59
bulldogogra_, can we allow any snap allow interface access ?? with command line?16:00
ogra_kgunn, http://paste.ubuntu.com/23093640/16:00
kgunnogra_: thanks!16:00
bulldogogra_, what u mean by manage man ??16:01
ogra_bulldog, no, only defined plugs can use defined interfaces16:01
Chipacaseb128, does gnome-software not use polkit right now?16:01
bulldogplz , so what u mean by manage16:01
ogra_Chipaca, most likely16:01
ogra_bulldog, manage the connections16:01
bulldogexample please16:02
Chipacaogra_, I imagined so; I'm trying to understand an email16:02
ogra_bulldog, "snap interfaces"16:02
bulldogseen that16:02
seb128Chipaca, no it doesn't, why would it?16:02
ogra_bulldog, https://github.com/snapcore/snapd/blob/master/docs/interfaces.md16:02
bulldogogra_, let me check it16:02
seb128Chipaca, that was not needed until those recent snapd changes16:02
Chipacaseb128, I ask because robert ancell's first approach to snapd was adding polkit support16:03
ogra_seb128, no admin rights for installing packages ?16:03
seb128Chipaca, right, which the snappy team rejected16:03
Chipacaseb128, so I imagined that was how you wanted to do it16:03
ogra_i would have thought sw-center asks for a pw16:03
seb128ogra_, aptdaemon does16:03
ogra_ah16:03
bulldoggoogle making a non linux based OS .DAEM :@16:03
ogra_bulldog, and ? even the linux foundation does that https://www.linuxfoundation.org/news-media/announcements/2016/02/linux-foundation-announces-project-build-real-time-operating-system16:05
ogra_it'S just a kernel after all16:06
=== mup_ is now known as mup
bulldogogra_, am not a IT Student ,what u think about my future ? lol16:06
bulldogchoosing Biology as my subjects in school was biggest mistake i made :(16:07
cyphermoxogra_: do you happen to still have around copies of the broken OS snaps? I keep getting timeouts from Launchpad; it would help to be able to debug this for myself16:07
ogra_barry, indeed purging doesnt help :) you need to remove the dirs to cheat the check mechanism16:07
slangasekogra_: so I have an update for the pc amd64 gadget snap to make it ubuntu-image compatible; AFAICS nothing in u-d-f will care about the stuff I'm adding, so it should be safe to merge this, and from my side it's ready to merge now or in the near future.  Thoughts?  lp:~vorlon/snappy-hub/snappy-systems/16:08
ogra_slangasek, oh, did you just share the pc gadget with me ?16:09
ogra_(silly that the store doesnt tell who actually did that share request)16:09
slangasekogra_: hmm? no16:09
ogra_ah, well, then it was mvo16:09
slangasekogra_: I have no store privs :)16:10
ogra_:)16:10
* ogra_ neither16:10
slangasekogra_: oh, but it was also just shared with me :D16:10
* ogra_ pokes LP with a pointy stick ... 16:10
slangasekogra_: does this mean I should be able to upload the snap now?16:11
ogra_timeouts galore16:11
ogra_slangasek, yep16:11
slangasekwow16:11
ogra_slangasek, oooooh !!!!!!!16:11
* ogra_ dances16:11
slangasekogra_: I guess it would help me if you would steer the upload for the moment, I haven't used the store much yet and would flounder - so your input on the merge question is still appreciated16:11
ogra_slangasek, tell me when i can drop the grub packages :)16:11
slangasekhaha16:12
slangaseknot yet16:12
ogra_(just saw your change)16:12
ogra_well, go ahead and upload ... if edge breaks it breaks ... its edge after all16:12
ogra_(just dont release it to stable :)16:12
slangaseknot until a) we actually fix ubuntu-image to implement mbr stuff (we're almost there), b) we get everyone to use ubuntu-image instead of ubuntu-device-flash ;)16:13
ogra_slangasek, its one checkbox to unpublish it ... iirc the store just falls back to the former version then16:13
ogra_ah, right, udf doesnt have mbr handling at that level for grub16:14
ogra_cyphermox, armhf http://people.canonical.com/~ogra/snappy/ubuntu-core_360.snap ... arm64 http://people.canonical.com/~ogra/snappy/ubuntu-core_361.snap16:17
mvoogra_: yes, me16:17
ogra_(i dont have x86 ones)16:17
ogra_mvo, ah ... did anything change that you shared it again with me ?=16:18
ogra_or was that group vs user ?16:18
mvoogra_: I think for some reason you were not listed as a collaborator16:18
ogra_well, i had access :)16:18
cyphermoxogra_: in that case, do you happen to also have the other snaps I need to build an armhf image?16:18
cyphermox(preferably the same ones you used)16:18
mvoslangasek: I'm writing a mail now about this, but you are already ahead of me (like always :)16:19
mvoslangasek: you can upload the gadget in any way you want, u-d-f does not actually look at the content, it has its own version that is known to work16:19
ogra_cyphermox, just pi2-kernel and pi2 or pi3 for a pi image ... and dragoboard + dragonboard-kernel for a dragonboard image ... you need the udf snap16:19
ogra_(installed i mean)16:19
cyphermoxok16:20
ogra_mvo, please make sure to only share with snappy-dev people if it comes to ubuntu-core or kernels ... since that controls also who can trigger builds via the LP UI16:20
mvoogra_: you can control that list too16:21
ogra_oh, i didnt know16:21
ogra_oh, kyrofa is a powerful man :)16:21
* ogra_ notes he has ubuntu-core access :)16:22
cyphermoxwell, for one I see /var/lib/console-conf is not a writable path; so console-conf explodes because of that16:23
slangasekcyphermox: oh. do we have livecd-rootfs or ubuntu-core-config changes still in our ppa that haven't made it over to snappy-dev?16:25
slangasekcyphermox: we actually have a newer version of ubuntu-core-config in our ppa; can you reconcile those and give me (or ogra) something to publish to snappy-dev/16:27
ogra_note that i made a change to that package yesterday ... so your changelog might be behind16:27
slangasekogra_: ok; so my plan is to locally validate the MBR case (once I finish all the bits in ubuntu-image to actually implement this), then publish16:27
ogra_yeah16:28
ogra_you need to accept the invide to th3e pc gadget still :)16:28
ogra_(says the store)16:28
slangasekyawp, accepting now16:29
cyphermoxslangasek: doesn't seem to me like it's a different version of ubuntu-core-config at all16:36
cyphermoxoh, wrong ppa16:37
ogra_cyphermox, dont forget the dir needs to exist if you add it to writable-paths ... so make sure to also add it to your debian/dirs file in console-conf16:38
cyphermoxit still doesn't explain why everything seemed to be working correctly when I and mwhudson did the testing on amd64.16:40
ogra_did you build with the right PPAs and proposed enabled ?16:41
cyphermoxyes16:41
ogra_when creatinmg your ubuntu-core16:41
ogra_then this is indeed weird16:42
slangasekcyphermox: surely, the difference is some dependency in *our* ppa that is missing from snappy-dev16:43
cyphermoxnot to explain these failures16:43
ogra_no16:43
ogra_there is a writabvle dir missing, that cant be due to a dependency ...16:43
cyphermoxwell I'm simply going to copy all the packages to our PPA, and build an image from there16:44
ogra_could be due to a a version number not being high enough though16:44
ogra_ubuntu-core-config - 0.6.40+ppa616:44
ogra_that is whats in the snappy-dev PPA16:44
ogra_yours needs to be higher to be considered indeed16:44
slangasekno, ours needs to be merged into the snappy-dev ppa16:45
ogra_sure, i was referring to cyphermox' test buiulds16:45
ogra_wheer he added your PPA additionally16:45
slangasekcyphermox: please don't copy things from snappy-dev ppa to ours, there really should be no need16:46
cyphermoxthe only way we can reliably figure this out is to reduce the delta between the two ppas, and build more images16:46
cyphermoxI won't do this in "prod"16:46
ogra_dont hold back :)16:46
ogra_there is no prod16:46
cyphermoxwell, snappy-dev must not be broken, is this not the case?\16:47
ogra_there is only edge (where you admittedly can annoy devs)16:47
slangasekcyphermox: ~canonical-foundations/ubuntu/ubuntu-image should be a thin layer on top of the snappy-dev ppa.  You shouldn't need to copy things over, that will just clutter16:47
ogra_snappy-dev can be broken for a bit, as long as you unbreak16:47
slangasekcyphermox: I see the ppa doesn't actually have a ppa dep that I thought it did; I'll add that now16:47
cyphermoxit shouldn't matter for the build actually, snapcraft.yaml defines the PPAs to use16:48
slangasekah16:48
ogra_for ubuntu-core ?16:48
ogra_nope16:48
cyphermoxyes16:48
ogra_the Makefile does16:48
cyphermoxwell, that code branch16:48
ogra_unless you changed my setup drastically16:48
cyphermoxthe Makefile, then16:49
slangasekcyphermox: in which case, you just need to be sure that everything present in snappy-dev is merged into ours16:49
ogra_snapcraft.yaml only defines the outer chroot16:49
slangaseknot copied wholesale16:49
ogra_the actual build PPAs come from the live-build call in the makefile16:49
ogra_http://bazaar.launchpad.net/~snappy-dev/ubuntu-core-snap/trunk/view/head:/Makefile16:50
ogra_from the "ENV" var at the top16:50
cyphermoxyes16:50
ogra_if you dont explicitly add it to the EXTRA_PPAS var in there it wont be taken into account inside the live-build chroot16:51
slangasekPROPOSED=1 PROJECT=ubuntu-core SUBPROJECT=system-image EXTRA_PPAS='snappy-dev/image snappy-dev/edge canonical-foundations/ubuntu-image' IMAGEFORMAT=plain SUITE=xenial ARCH=amd64 lb clean16:51
slangasekLGTM?16:52
ogra_yeah16:52
cyphermoxthat isn't the issue16:52
rogpeppein snapcraft.io, it says:16:57
rogpeppe~/snap/<name>/current/      ← $SNAP_USER_DATA that can be rolled back16:57
rogpeppe~/snap/<name>/common/       ← $SNAP_USER_COMMON unversioned user-specific data16:57
rogpeppeis that still true?16:57
rogpeppei don't see any "current" or "common" directories inside ~/snap/<name>16:57
rogpeppejust x[0-9] directories16:58
elopiorogpeppe: they are in /var/snap16:59
elopiorogpeppe: please file a bug about that.17:00
rogpeppeelopio: ok17:00
rogpeppeelopio: so what's the role of the directories in ~/<name>/x[0-9] ?17:02
rogpeppeelopio: they definitely seem to be used17:02
wililupyThats odd. I use the image from all-snaps on my device, it shows the three snaps, but one that I create does not...17:04
elopiorogpeppe: your snap can read and write files in that directory.17:05
ogra_wililupy, which ubuntu-device-flash snap did you use ? is it up to date ?17:05
rogpeppeelopio: so it's independent of current and common?17:06
rogpeppeelopio: it seems that $HOME points there17:06
wililupyogra_: version 10 Rev 9 in devmode17:06
elopioI'm not sure if it has an env var. Maybe there's something wrong and it should be the same as the one in /var.17:06
ogra_yeah, sounds correct17:06
rogpeppeelopio: yeah, it's $HOME, because i was being confused because i ran the command and it wasn't finding data files that i was expecting17:07
wililupyI updated it yesterday. It did work before giving me the 3 snaps on a clean image, but since then it hasn't. The image works, but as soon as I install a snap, it downloads ubuntu-core and then hoses up the device after a reboot.17:07
camako CMAKE_C_COMPILER17:09
camakough ignore that17:09
ogra_wililupy, which ubuntu-snap version ?17:09
ogra_err17:09
ogra_ubuntu-core17:09
ogra_should be in the 360's somewhere17:10
wililupyogra_, 16.04.1 Rev 35217:10
ogra_that sounds outdated17:10
camakoDo we have a known CI problem? Just updated my PR for the playpen and the travis job failed ---- > https://travis-ci.org/ubuntu/snappy-playpen/builds/15538533317:10
camako"No CMAKE_C_COMPILER could be found"17:11
camako"No CMAKE_CXX_COMPILER could be found"17:11
camako?17:11
wililupyogra_ I just ran sudo snap refresh --edge ubuntu-core and it updated to 36617:11
ogra_yay17:11
ogra_see if that works then17:11
wililupyI'll give it a shot after my snap finishes building.17:11
camakoHmmm I see that other's jobs are failing too ---> https://travis-ci.org/ubuntu/snappy-playpen/builds/13094322717:13
wililupyAnother quick question, after updates, how to I get rid of the previous versions? I have 7 /dev/loop* but only 2 snaps running. I'd like to get rid of the 3 previous versions of ubuntu-core that I'm not going to use. Plus I haven't been able to get rollback to function right...17:14
mupBug #1617399 opened: snapcraft.io documents persistent state incorrectly <Snapcraft:Invalid> <Snappy:Confirmed> <https://launchpad.net/bugs/1617399>17:15
ogra_i dont think rollback is there yet17:15
wililupyogra_, I'll have to remember that for my demo ;)17:16
rogpeppeis there any way i can give permission to a snap to open a page in a web browser?17:16
ogra_i see code landing for it regulary ... but doesnt look like it released yet17:16
ogra_rogpeppe, theoretically snapd-xdg-open should provide that ... but i think it is still broken17:18
ogra_(install the deb and see )17:18
rogpeppeogra_: ah, i haven't seen that17:18
rogpeppeogra_: is that an interface that can be installed?17:19
ogra_but mind you, i think it still doesnt work right ...17:19
ogra_no, shouldnt need any interfaces17:19
ogra_it will become part of snapd or a dependency or some such17:19
rogpeppeogra_: this particular code uses sensible-browser to open the web page17:19
rogpeppeogra_: are you saying that would need to change?17:20
ogra_well, it hands it through to the host17:20
ogra_but that bit doesnt work yet17:20
rogpeppeogra_: so... how does this work? the snap executes a command called "snapd-xdg-open <url>" ?17:20
rogpeppeogra_: or rather, i guess, how *would* it work if it did work? :)17:21
ogra_if your app tries to open an url it intercepts that17:21
ogra_and then calls xdg-open on the host17:21
rogpeppeogra_: what does it mean to "open a URL" ?17:21
ogra_open a web link17:21
rogpeppeogra_: what does my app need to do to trigger that?17:21
rogpeppeogra_: when you say "open", what's that?17:21
ogra_iirc only the http mime types are implemented yet17:21
rogpeppeogra_: call the open command?17:21
rogpeppes/call/exec/17:22
ogra_if you click a url on an app ...17:22
rogpeppeogra_: this is a command-line app17:22
ogra_that would spawn something in the os ...17:22
rogpeppeogra_: there's no UI17:22
mupPR snapcraft#760 closed: Removed statements not used by the tests <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/760>17:22
ogra_but since your snap doesnt run in an actual os this call is handed over to xdg-open on the host17:22
ogra_oh, not sure ift works from some non UI call17:22
rogpeppeogra_: so my code would need to exec the xdg-open command?17:23
ogra_you could try to just call xdg-open directly and hope for the best17:23
rogpeppeogra_: odd, the browser code calls xdg-open in freebsd, netbsd and openbsd but not linux17:23
ogra_but it might only be hooked into the desktop launchers ... so no guarantee that anything happens if you do that from a cmdline app17:23
rogpeppes/browser/open-browser/17:23
rogpeppeogra_: ok, so a command line app probably can't open a page in a web browser.17:24
ogra_probably17:24
* ogra_ has no idea ... :)17:24
rogpeppeogra_: fair enough :)17:24
ogra_i know it is supposed to work from gui apps (but currently doesnt)17:24
sergiusensrogpeppe the code or the execution of such code?17:24
rogpeppesergiusens: ?17:25
sergiusensmaybe it defaults to some sort of os system() since it cannot find xdg-open in path17:25
* ogra_ wonders why everyone and his grandma tries to snap neovim :)17:25
Pharaoh_Atembecause vim is evil17:26
Pharaoh_Atem:)17:26
ogra_lol17:26
ogra_right17:26
rogpeppesergiusens: this is the code: https://github.com/juju/webbrowser/blob/master/webbrowser.go17:26
Pharaoh_Atemof course, the vim codebase finally had DOS support removed17:26
ogra_geez, really ?!?17:26
ogra_the world ends !17:26
rogpeppesergiusens: it would be quite nice if we could make that code work in a snap; or at least return an appropriate error.17:27
Pharaoh_Atemogra_: yep, vim 8.0 will be the first version of vim to not be able to run on DOS17:30
ogra_not a big loss if you ask me :)17:31
Pharaoh_Atemanyone able to review/merge zyga's PR? https://github.com/snapcore/snapd/pull/174517:37
mupPR snapd#1745: overlord/snapstate: respect SnapMountDir in tests <Created by zyga> <https://github.com/snapcore/snapd/pull/1745>17:37
sergiusensrogpeppe it is indeed in the code17:37
hatchI've noticed that tab complete doesn't work - appears to be a regression https://bugs.launchpad.net/snapcraft/+bug/1570506 should I file another bug or re-open this one?17:38
mupBug #1570506: Snapcraft should use bash-completion <verification-done> <Snapcraft:Fix Released> <snapcraft (Ubuntu):Fix Released> <snapcraft (Ubuntu Xenial):Fix Released> <snapcraft (Ubuntu Yakkety):Fix Released> <https://launchpad.net/bugs/1570506>17:38
sergiusensrogpeppe oh and sensible-browser is `alternatives` based. ogra_ you sill love this :-)17:39
sergiusensrogpeppe I would switch to xdg-open17:39
sergiusensabout the error though, the code should raise the error, is it not?17:39
ogra_oh, lovely17:40
cyphermoxogra_: how can I make sure my ubuntu-device-flash or whatever is good enough to create proper images?17:40
ogra_cyphermox, just make sure to have the latest snap17:40
ogra_mvo updates it regulary17:41
cyphermoxI don't have snaps17:41
mupPR snapd#1684 closed: many: drop ubuntu-core-snapd-units package, use release.OnClassic instead <Reviewed> <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1684>17:41
ogra_then you cant use udf17:41
ogra_we only hae it as a snap now17:41
ogra_*have17:41
cyphermoxhow is it called?17:42
cyphermox$ snap install ubuntu-device-flash17:42
cyphermoxerror: cannot install "ubuntu-device-flash": snap not found17:42
elopiohey hatch! does it fail for the commands? Like snapcraft p<tab><tab> ?17:43
ogra_--devmode --edge17:43
ogra_(or --beta ... should both work)17:43
hatchelopio: those work but I can't do `snap install he<tab>`17:45
elopiohatch: right, those have never worked, so no regression. Let me try to find the bug.17:45
hatchwhere 'he' is the hello world snap in my current path17:45
hatchelopio: ohh ok, I looked but maybe my search foo is weak :)17:45
ogra_yeah, thats a very old bug ...17:45
ogra_open since snap's childhood17:46
hatchhaha, it happens :)17:46
elopiohatch: https://askubuntu.com/questions/795253/how-can-i-enable-auto-completion-for-the-snap-command/795412#comment1199447_79541217:46
hatchthanks elopio17:46
ogra_bug 1600083 ... but i think there is an older one17:47
mupBug #1600083: 'snap' tool bash completion does not complete local file names <Snappy:Confirmed> <https://launchpad.net/bugs/1600083>17:47
ogra_there must be one in the 15xxxx numbering17:47
elopiohatch: snapcraft however has no bug for $ snapcraft upload he<tab>. Could you please file one?17:47
hatchelopio: I'd imagine that would simply be an expansion on https://bugs.launchpad.net/snappy/+bug/1600083 no?17:48
mupBug #1600083: 'snap' tool bash completion does not complete local file names <Snappy:Confirmed> <https://launchpad.net/bugs/1600083>17:48
elopiohatch: no, because it's in a different project. https://bugs.launchpad.net/snapcraft17:49
hatchohh I see17:49
hatchsure17:49
elopiothank you.17:50
cyphermoxogra_: presumably I shouldn't have to download the gadget and kernel snaps locally to be able to run this correctly?17:51
ogra_right17:51
ogra_note you need sud and the full path though17:51
ogra_sudo /snap/bin/ub....17:51
cyphermoxof course17:51
cyphermoxthat's not the issue17:51
cyphermoxit can't find the gadget  snap17:51
ogra_which one ?17:51
ogra_(show me your command)17:52
cyphermoxwhy don't you paste me a full command I can use?17:52
ogra_because i would have to type it myself :P17:52
ogra_(it isnt like i have 500 terminal windows open here keeping old commands around :P)17:52
cyphermoxsudo /snap/bin/ubuntu-device-flash --verbose core rolling -o console-conf.img --channel edge --enable-ssh --gadget canonical-pc --kernel pc-kernel --os ubuntu-core_16.04.1_amd64.good.snap17:52
ogra_--gadget pc17:53
ogra_the rest looks fine17:53
cyphermoxI tried that too17:53
ogra_--enable-ssh is a no-op17:53
ogra_oh17:53
ogra_s/rolling/16/17:53
ogra_havent seen that one in a while :)17:53
cyphermoxthing is, there is just about no documentation on all of this17:54
ogra_that should fix you17:54
cyphermoxyeah, it does17:54
ogra_and it is obsolete code :)17:54
ogra_slangasek, and barry will make sure we have proper docs for image building once we have a tool :)17:54
cyphermoxogra_: I really don't care which tool, as long as I can make an image that works.17:55
ogra_udf is really dead and buried since quite some time ...17:55
ogra_which is why it isnt promoted anywhere or any docs are put up17:55
ogra_mvo wrote a long mail when it switched to be a snap though17:55
ogra_documenting the command call17:56
cyphermoxwhy isn't that in a wiki or doc somewhere?17:57
ogra_because it changes nearly weekly17:58
ogra_or used to at least17:58
ogra_and now it is dead17:59
cyphermoxright, surely something replaces it?18:00
cyphermoxthat thing should also be documented.18:00
ogra_yes, ubuntu-image18:00
ogra_as i said above18:00
cyphermoxand how do I use that?18:01
ogra_it isnt ready yet18:01
slangasekcyphermox: you can grab it from git@github.com:CanonicalLtd/ubuntu-image.git and follow the instructions in docs/notes.rst for the moment18:05
slangasekwhich is incredibly hairy18:05
slangasekuntil I validate the mbr work ;)18:05
cyphermoxthat's fine18:05
cyphermoxfor now ubuntu-device-flash will do; if there are any more days of mucking necessary, I will dogfood ubuntu-image.18:06
ogra_cyphermox, note that the worst bug i filed is actually bug 1617231 though ... testing on amd64 wont really help with all the serial breakages on the different devices18:09
mupBug #1617231: subiquity kills serial console after regular update <Snappy:New> <subiquity (Ubuntu):New> <https://launchpad.net/bugs/1617231>18:09
ogra_(beyond subiqity not respecting that the system already has user and network setup)18:10
ogra_i'm not sure what exactly you use as UI library ... but colors are definitely a very bad idea for that ;)18:10
cyphermoxogra_: the point *is* that you won't have the ubuntu user, and that the network setup you might really want to change to something else.18:12
cyphermoxas for the colors; something to look into18:13
ogra_i definitely dont18:13
cyphermoxthen hitting Done should DTRT18:13
ogra_(i mean, yes, i might want to use another user ... but definitely not switch away from ifupdown for my wlan)18:13
cyphermoxeverything is switching away from ifupdown18:13
ogra_the tool seems to detect there is a working connection18:13
slangasekconsole-conf doesn't give you the option to switch away from ifupdown for wlan at the moment18:13
ogra_but doesnt accept it18:14
cyphermoxwell, wlan is admittedly probably not working correctly right now, netplan probably doesn't do anything to make it work18:14
ogra_slangasek, well, currently it doesnt do anything at all except hogging 50MB in my ram and breaking all serial consoles :P18:14
ogra_(and being unkillable ... even with sudp kill -9 )18:15
ogra_*sudo18:15
ogra_(which is very very odd)18:15
slangasekogra_: the last is certainly not a bug in our package ;)18:16
slangasekthe first two are serious bugs, yes18:16
ogra_well, i have no explanatiojn for the last at all18:17
slangasekI guess the first means that subiquity doesn't currently have a proper serial console driver18:17
slangaseksure18:17
slangasekbut it's not a bug in our package, because kill -9 is handled in the kernel18:17
ogra_yeah18:17
* ogra_ goes afk18:23
ogra_cyphermox,  i'll check IRC sporadically in case you need anything like an ubuntu-core build or anything (slangasek has upload permission to the snappy-dev PPA afaik)18:23
slangasekogra_: as does cyphermox now :)18:23
ogra_ah, cool18:23
ogra_snappy-dev people can also trigger ubuntu-core builds, but i think the store currently auto-accepts only mvo and me for the uploads18:24
lazyPowerelopio o/18:24
mbruzekHello elopio18:24
mbruzekelopio: I am interested in charming some container stuff, such as kubernetes18:25
eldarkghello guys. How to exchange copy plugin with dump: "files: ./*: usr/share/kicad/modules/" ?18:26
elopiolazyPower: hello mbruzek: hello18:27
elopiombruzek: we have been playing with related stuff in the playpen. mbruzek: do you think it would make sense to share your work in progress there?18:28
lazyPowerelopio - we only have the client binary packed as a snap, and its using the dump plugin18:28
lazyPowerthe build env for kubernetes wont "just work" using hte golang plugin18:29
lazyPowerwe need support to invoke make targets along with exports18:29
mbruzekelopio: Is there the ability to run a script.18:29
eldarkgelopio: How to exchange copy plugin with dump. Now with copy plugin "files: ./*: usr/share/kicad/modules/" ?18:30
elopiombruzek: lazyPower: you'll find this one interesting: https://github.com/ubuntu/snappy-playpen/pull/223/files18:30
mupPR ubuntu/snappy-playpen#223: Add the etcd snap, in devmode <Created by elopio> <https://github.com/ubuntu/snappy-playpen/pull/223>18:30
lazyPowerinteresting, this is more complex than the etcd snap i came up with18:30
lazyPowerbut it doesn't run the daemon either18:31
sergiusensstokachu hey, where is your snapcraft.yaml for conjure-up?18:31
elopioour idea is that people should use a custom plugin, instead of just executing a script. That causes some issues, so there's an open bug and a couple of PRs we are discussing.18:31
elopioeldarkg: hello. I'm not too sure, I would have to play with it but I'm testing snapd atm.18:31
elopiosergiusens: we need a guide to migrate from copy to dump. It's not easy.18:32
eldarkgelopio: ok )18:32
sergiusenselopio ok18:32
elopiolazyPower: ah, I have that question. Most of the guides tell you to launch the binary, instead of using an autostart daemon.18:32
eldarkgsergiusens: Hi. How to exchange copy plugin with dump. Now with copy plugin "files: ./*: usr/share/kicad/modules/" ?18:32
sergiusenselopio it should be if people had been using organize/snap/stage/filesets more, but copy got the need for that out18:32
lazyPowerwell, its like this elopio18:32
elopiowe could easily add daemon: simple, but I didn't know if that was the right thing to do.18:33
lazyPowerif you start etcd, and hten make a cluster configuration change, and you have a dirty data dir, you're going to have a bad time18:33
lazyPoweronce raft takes over, its slightly easier, but its still not a stellar process18:33
elopioI love that you people are here ^_^ I just had toy examples, now we can make it really useful and find better blocker bugs.18:34
elopiolazyPower: mbruzek: so, how can I help? Should we start with one project and make it awesome?18:35
mupPR snapd#1770 opened: overlord/assertstate,asserts/snapasserts: give snap assertions helpers a package, introduce ReconstructSideInfo <Created by pedronis> <https://github.com/snapcore/snapd/pull/1770>18:36
lazyPowerelopio - well.... we're currently blocked on a missing docker snap (or instructions on how to bin pack the docker daemon *and* get it running in the k8s snap)18:37
eldarkgsergiusens: Have you answer? I try organize but it doesn't understand './*'18:38
mbruzekelopio I running the kubernetes build in a snap.18:38
lazyPowerwhile i dont want to just willy nilly spin up engine instances, if we could conglomerate pack the daemon in the k8s snap, that works for us for now and we can get unblocked18:38
lazyPowerwe're stuck on that portion in the mean time, as its a baseline dependency for k8s18:38
elopiolazyPower: well, starting with kubernetes might not be the best idea. It's too hard. I would suggest to start with simpler services that it will consume, like etcd,18:39
lazyPower"its too hard" - neverrrr18:40
elopioI have seen lool and jdstrand comenting about docker. They probably know about the timeline.18:40
lazyPoweroh i'm looped in on some of those discussions and we're a ways out from having anything ready for us to consume18:41
lazyPowerre; etcd - thats fine by me, but we also need to talk about how thats going to function in reality18:41
lazyPowerclustering etcd manually is painful18:41
eldarkgelopio: Is it possible to have access to media storage like USB flash card?18:41
lazyPowerwe've had a lot of success clustering with juju18:41
eldarkgelopio: from snap app18:41
elopioeldarkg: it will be: https://bugs.launchpad.net/snappy/+bug/160488518:43
mupBug #1604885: Access to mounted USB drives <snapd-interface> <Snappy:Confirmed> <https://launchpad.net/bugs/1604885>18:43
eldarkgelopio: thanks. sorry for noise18:44
elopiolazyPower: but that's where the charm comes into play, right? I don't much about either, so please be patient with the stupid questions.18:44
lazyPowerelopio - no worries, and yeah18:44
lazyPowerthing is18:44
lazyPower1 sec18:44
elopioas I see it, we will have the snap. Juju will install it in many machines, and then configure them to talk to each other.18:44
elopioeldarkg: hey, no worry, you are not noise. Is it your first time here?18:45
smosersergiusens, elopio https://github.com/snapcore/snapcraft/pull/762 if you're interested.18:45
mupPR snapcraft#762: node plugin: run build in pull phase to download dependencies <Created by smoser> <https://github.com/snapcore/snapcraft/pull/762>18:45
eldarkgelopio: yes18:45
lazyPowerelopio - https://github.com/juju-solutions/layer-etcd/issues/31  -- comment halfway down by neiljerram. If its not coming from the archive, they aren't trusting it, and they are a real consumer of the etcd charm18:45
lazyPowerso i dont know how keen they are giong to be moving from archive to a snap, as resources had the same property18:45
mupPR snapcraft#762 opened: node plugin: run build in pull phase to download dependencies <Created by smoser> <https://github.com/snapcore/snapcraft/pull/762>18:46
elopiosmoser: oh, that could be a mess, but it's just what sergiusens was suggesting. Call build twice.18:46
elopiohowever, I didn't imagine pull calling build. Hum...18:46
smoseri'm not certain that is what you were looking for, but the things i've added (--cache-min=Infinity) is required. and i've tested that the idea works.18:46
elopioeldarkg: welcome!18:46
smoserhttp://paste.ubuntu.com/23094486/ <--18:46
eldarkgelopio: thank you :)18:47
smoserthere, do a 'npm install' with internet, and then take away internet and do it again.18:47
elopiosorry people, I have a meeting. BBS.18:48
eldarkgelopio: bye18:48
eldarkgwho can to answer what status of https://bugs.launchpad.net/snappy/+bug/161106318:49
mupBug #1611063: can't mkdir SNAP_USER_COMMON directory <snapd-interface> <Snappy:Confirmed> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1611063>18:49
eldarkgsergiusens: can you tell anything about this bug https://bugs.launchpad.net/snapcraft/+bug/1617002 ?18:52
mupBug #1617002: LP build: "/usr/bin/ld: cannot find -llibrary" <build> <lp> <Snapcraft:New> <https://launchpad.net/bugs/1617002>18:52
jdstrandroadmr: hi! can you pull r719 of the review tools. not an emergency18:57
jdstrandroadmr: oh, actually, hold off on that (the commits are fine, I forgot I wanted to add a few more checks)18:59
mupPR snapd#1771 opened: store: refresh expired device sessions <Created by matiasb> <https://github.com/snapcore/snapd/pull/1771>19:03
kyrofajdstrand, what is happening here? http://pastebin.ubuntu.com/23094551/19:05
kyrofajdstrand, how is that possible without the snapd-control interface?19:05
kyrofa(FYI, this is the released snapd, not my PR)19:05
jdstrandkyrofa: that's curious (cc tyhicks)19:07
kyrofajdstrand, I've verified, the only place /run/snapd.socket is present is the snapd-confine interface apparmor snippet19:08
kyrofaAnd since I can't ls /run or /run/*, there isn't something else covering that19:08
jdstrandkyrofa: so, /run is not allowed by the policy so ls /run doesn't work. /run/snapd.socket is also not allowed by the policy-- you can cat /run/snapd.socket. but what is curious is that you can ls -l /run/snapd.socket even though '/run/ r,' is not allowed19:09
kyrofaIndeed19:09
jdstrandkyrofa: s/you can cat /run/snapd.socket/you can cat /run/snapd.socket to verify/19:09
kyrofajdstrand, indeed, and I can't dial it or anything either19:09
elopiolazyPower: that's a good question. It would be great to let people choose the source, either deb from the archive, deb from a ppa, snap, or download a tar.19:09
kyrofaBut the ls... and os.Stat I tried to do...19:10
kyrofaWhich I figured would fail. Doesn't!19:10
elopiobut that sounds like the problem is now 4 times harder.19:10
tyhicksyikes, that's not right19:10
jdstrandtyhicks: I think kyrofa discovered a bug19:10
jdstrandtyhicks: the access to the file is not allowed. but ls /foo/bar is allowed when there is no '/foo/ r,' rule19:11
tyhicksyeah, I'm going to narrow down if it specific to socket files or regular files19:11
tyhicksand compare to older ubuntu releases to see if it is a regression19:11
jdstrandthanks19:11
jdstrandkyrofa: thanks for bringing that up19:12
kyrofajdstrand, of course, thanks for looking into it tyhicks!19:12
tyhicksnp19:12
stokachusergiusens: http://github.com/conjure-up/conjure-up19:12
jdstrandtyhicks: do you need me to do anything? one thing I thought that might have an impact is that /run is bind mounted on classic19:13
tyhicksjdstrand: not right now19:13
tyhicksjdstrand: that's a good though19:13
jdstrandkyrofa: did you see this on classic?19:13
tyhickss/though/thought/19:13
kyrofajdstrand, indeed19:13
jdstrandkyrofa: 16.04?19:13
kyrofajdstrand, yessir19:13
jdstrandk19:13
jdstrandtyhicks: ^19:13
tyhicksthanks19:13
jdstrandtyhicks: thanks! :)19:13
eldarkgkyrofa: hi. can you tell anything about this bug https://bugs.launchpad.net/snapcraft/+bug/1617002 ?19:14
mupBug #1617002: LP build: "/usr/bin/ld: cannot find -llibrary" <build> <lp> <Snapcraft:New> <https://launchpad.net/bugs/1617002>19:14
kyrofaeldarkg, you're probably missing a build-package19:16
kyrofaThat you have installed on your build machine, but isn't available by default19:17
eldarkgkyrofa: what pkg?19:17
eldarkgkyrofa: I build ngspice from src in this snapcraft.yaml19:18
kyrofaeldarkg, oh, I missed that :)19:18
ahoneybunanyone know what's up with travis?19:18
eldarkgkyrofa: ok)19:18
nacceldarkg: i'm guessing that you need to tell kicad's build where to find the staged ngspice19:19
nacc*libngspice19:19
ahoneybuntrying to put otter-browser in the playpen19:19
ahoneybunhttps://github.com/ubuntu/snappy-playpen/pull/22119:19
mupPR ubuntu/snappy-playpen#221: Added otter-browser <Created by ahoneybun> <https://github.com/ubuntu/snappy-playpen/pull/221>19:19
eldarkgnacc: why in local machine this is not need?19:20
nacceldarkg: on your local machine are you running `snapcraft build`? and do you have a system libngspice installed?19:20
eldarkgeldarkg: on local machine I use `snapcraft prime`. Yes installed19:21
kyrofaeldarkg, is there a reason you're building that lib from source instead of using one from the archive?19:22
kyrofaAh, maybe there isn't one19:22
nacceldarkg: right, i think you could start with just using stage-packages: libngprime (or what the package is called)?19:22
naccif it's packaged, that is19:22
eldarkgkyrofa: yes)19:22
eldarkgnacc: libngspice19:23
nacceldarkg: err, yes, sorry!19:23
eldarkgnacc: isn't in ubuntu repo. It builds from src19:23
nacceldarkg: ah i see19:24
roadmrjdstrand: oops... sure, just let me know which revno you need19:25
eldarkgnacc: I think running of `snapcraft snap` on local and on LP should be identical shouldn't to use system libs.19:25
jdstrandroadmr: well, you could queue up r71919:25
jdstrandroadmr: but I have another couple things to add19:25
jdstrand(unrelated to what's in there)19:25
nacckyrofa: you probably know better the details than I, but I think that means eldarkg'd need to pass perhaps a configure-like flag which tells kicad to use the staged libngspice?19:25
jdstrandratliff: so just trying to save you time19:25
jdstrandroadmr: ^19:26
jdstrandratliff: nm19:26
roadmrjdstrand: ok, will do19:26
kyrofanacc, yeah probably, eldarkg happy to help in just a sec, trying to schedule the all-important internet installation19:26
eldarkgkyrofa: ok. I waiting19:27
tyhicksjdstrand, kyrofa: quick update - this is not a regression in behavior19:28
eldarkgnacc: but how kicad build found other build-packages like libboost?19:28
tyhicksjdstrand, kyrofa: I've tested on all LTS releases all the way back to 12.0419:28
kyrofatyhicks, yikes19:28
tyhicksjdstrand, kyrofa: https://paste.ubuntu.com/23094631/19:28
sergiusenssmoser looks interesting, aesthetically though I'd prefe to not call self.build from pull, better factor out the common things in build :-)19:29
tyhicksI'll glance at the code and see if I can spot something19:29
nacceldarkg: you specificed 'libboost-all-dev' in build-packages19:29
smosersergiusens, i did that at first19:29
smoserbut then the diff looked bigger.19:29
jdstrandtyhicks: that's interesting19:29
eldarkgnacc: yes. but I don't set to kicad where it should find libboost19:29
smosersergiusens, i have no strong feeling at all on it.19:30
nacceldarkg: yes, but you told it to install it in the snap build environment19:30
nacceldarkg: and so it's installed int he 'system' level view, whichis probably the default for kicad's build19:30
elopio<- lunch.19:31
nacceldarkg: whereas your part for ngspice maybe is not19:31
eldarkgnacc: how to install library compiled from source to snap build env?19:32
nacceldarkg: let's let kyrofa help, i'm mostly just conjecturing based upon my own experience. I'm still pretty new to snaps myself :)19:32
kyrofaSome people go out to lunch. But when elopio wants to eat, lunch comes to him19:32
eldarkgnacc: ok. thanks to help19:33
eldarkgwhat about this bug https://bugs.launchpad.net/snappy/+bug/1611063 ?19:34
mupBug #1611063: can't mkdir SNAP_USER_COMMON directory <snapd-interface> <Snappy:Confirmed> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1611063>19:34
elopio-> lunch. I have to cook today.19:35
kyrofaHahaha19:36
eldarkgkyrofa: you don't forgot about me ? :)19:36
kyrofaeldarkg, still on the phone, sorry19:37
kyrofaeldarkg, I can talk, but can't think ;)19:37
mupBug #1581167 changed: package snap (not installed) failed to install/upgrade: a tentar sobre-escrever '/usr/share/man/man1/snap.1.gz', que também está no pacote snapd 2.0.2 <amd64> <apport-package> <xenial> <One Hundred Papercuts:Confirmed> <Snappy:Confirmed> <snap (Ubuntu):Confirmed> <snapd19:37
mup(Ubuntu):Confirmed> <https://launchpad.net/bugs/1581167>19:37
eldarkgkyrofa:  ahh OK :)19:37
mupBug #1605080 changed: package snap (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man1/snap.1.gz', which is also in package snapd 2.0.10 <amd64> <apport-package> <package-conflict> <xenial> <One Hundred Papercuts:Confirmed> <Snappy:Confirmed> <snap19:40
mup(Ubuntu):Confirmed> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1605080>19:40
bull_mup,19:44
bull_nick/ bulldog19:44
kyrofaAlright eldarkg, off now19:44
=== bull_ is now known as bulldog
eldarkgkyrofa: ok19:45
kyrofaLet me take a look here19:45
kyrofaI suspect nacc was right, though19:45
eldarkgkyrofa: I listen you19:45
bulldoggood night guys :(19:45
nacci'm not sure if this is the best way to test, but one way i've debugged issues like this one eldarkg is to temporarily comment out the broken part, build the rest and then `unsquashfs -l` the resutling .snap to see where things are in the snap's environment. I'm sure there is a better way to do that, but it wasn't obvious to met yet19:46
nacc*me19:46
eldarkgnacc: to find libngspice?19:49
kyrofanacc, you don't need to squash and then unsquash, just look in the prime/ directory19:50
nacckyrofa: ah true, except i do everything via cleanbuild :)19:50
kyrofanacc, ah, then you're a bit stuck19:50
nacci guess i could flip it and start a container that is my building env19:50
naccand then what you suggest woudl work19:50
nacci'll retool my brain :)19:50
kyrofanacc, that's what I do-- I fire up an ephemeral container every time someone asks me to debug something (like now)19:50
bulldogOerHeks, haha yyou here too ?19:51
nacckyrofa: yep, makes sense -- i almost wish that was what cleanbuild did19:51
nacckyrofa: then i could drop to that container's shell on failure19:51
kyrofanacc, actually, we're working on just that19:51
kyrofaIn fact, it may have landed already19:51
nacckyrofa: awesome!19:51
kyrofasergiusens can give you more info19:51
nacckyrofa: great, thanks!19:51
sergiusensnacc use master and do snapcraft cleanbuild --debug19:53
kyrofanacc, that'll be in the next release19:53
naccsergiusens: cool, will try that19:53
nacckyrofa: ah great, that was going to be my next question :)19:53
kyrofanacc, we release weekly19:54
naccyep19:54
eldarkgwho know status of https://bugs.launchpad.net/snappy/+bug/1611063 ?19:54
mupBug #1611063: can't mkdir SNAP_USER_COMMON directory <snapd-interface> <Snappy:Confirmed> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1611063>19:54
kyrofaeldarkg, I'm working on building this, but my internet is dreadful, this will take a bit19:54
eldarkgkyrofa: how many?19:55
kyrofaIt says 37 minutes19:55
kyrofaBut it jumps to 50-something too19:55
eldarkgkyrofa: ouuu. what time in your country ? my 22:56 :) I want to sleep :)19:56
kyrofaeldarkg, 1300, haha. Go to bed, come back Monday and ping me19:56
eldarkgkyrofa: ok :))19:57
kyrofaOr if I figure something out, I'll put it on the bug19:57
eldarkgkyrofa: ok19:57
eldarkgkyrofa: you know something about https://bugs.launchpad.net/snappy/+bug/1611063 ?19:57
mupBug #1611063: can't mkdir SNAP_USER_COMMON directory <snapd-interface> <Snappy:Confirmed> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1611063>19:57
=== davmor2 is now known as davmor2_hols
kyrofaeldarkg, yeah I do20:03
eldarkgkyrofa: what?20:03
kyrofazyga, are you still around? I think the latest snap-confine SRU fixes that bug, right? ^^20:04
kyrofaeldarkg, anyway, that was caused by a lack of communication between two tools, snapd and snap-confine20:07
kyrofaOne thought the other tool was creating it, so neither did :P20:07
kyrofaIf it's not fixed already it'll be fixed in the next release20:08
eldarkgkyrofa: ok.20:08
eldarkgkyrofa: good bye. I'll ping you on Monday20:08
kyrofaeldarkg, sounds good, talk to you then20:08
slangaseksergiusens: hi, I've been granted store perms on the pc snap, but I get a strange error from 'snapcraft push'; can you help me decipher this?:20:17
slangasekReceived 403: '{"error_list": [{"message": "Developer profile is missing short namespace.", "code": "user-not-ready"}]}'20:17
slangasekcommand was 'snapcraft push pc_16.04-0.5_all.snap', snapcraft help output doesn't give any clues20:18
sergiusensslangasek yeah, talk to ev ;)20:19
evle sigh20:19
sergiusensslangasek you basically need to go to the store (myapps... and create that)20:19
slangasekhmm20:19
sergiusensev well you need to fix it faster :-)20:19
slangasekok, set20:19
sergiusensslangasek nice to se the error list stuff is working! I will implement a nicer error for that now ;-)20:20
evI know, believe me - I’ve been moaning about the short namespace ever being a thing for snaps. But we have frankly more important things to deal with first20:20
slangasekyeah, I was managing to work my way through the error message to do what it was asking me, was just confused about why this would be related to my upload - I guess it's understood to be a bug ;)20:20
slangasekThere has been a problem while analyzing the snap, check the snap and try to push again.20:20
slangasek...20:20
evsergiusens: we should check for the short namespace on snapcraft login20:20
sergiusensev how? as in with what api? or are you talking server side20:21
sergiusensslangasek if there was a problem, check your inbox20:21
sergiusensslangasek or click-review it20:21
slangasek"found binaries for architecture 'all': ... ok then20:21
slangaseksergiusens: one of the rejects was because 'gadget requires manual review', so if I click that button and somebody manually reviews it, is the architecture mismatch ignorable?20:23
evsergiusens: right, we’d need an API for it20:23
slangasekogra_: btw why is there a 16.04-0.5 in the store that's not in bzr?20:23
evbut even with SSO usernames we’re going to have this problem20:24
evunless there’s some magic way of making them required for anyone who already has an account20:25
wililupyIs there a handy list of what the different $SNAP variables are? like $SNAP and $SNAP_APP. What else is there? I am specifically looking for the writable space for my snap.20:28
slangaseksergiusens: "check my inbox"> never received any email about this fwiw20:30
qenghowililupy: "snap install hello-world; hello-world.env |grep SNAP"20:32
hatchis the lack of support in an lxd a snappy or lxd issue?20:34
hatch(for running snaps, not building them)20:34
slangasekjdstrand, ev: who can 'manually review' a gadget snap that I've uploaded?20:39
jdstrandslangasek: I can20:39
jdstrandslangasek: what is the store url?20:40
slangasekjdstrand: cool, https://myapps.developer.ubuntu.com/dev/click-apps/5508/rev/5/20:40
jdstrandslangasek: curious, do that use all the nifty new gadget yaml?20:42
jdstranddoes*20:42
slangasekjdstrand: yes20:42
jdstrandcool20:43
jdstrandslangasek: approved btw20:43
ahoneybunmhall119: make a snap tut video or talk about it at the release party20:43
slangasekjdstrand: thanks :)20:43
slangasekjdstrand: it's passed local boot tests for both UEFI and BIOS boot, so now we can give people something compatible with ubuntu-image that they can play with :)20:46
wililupyqengho: exactly what I was looking for! Thanks!20:50
mhall119ahoneybun: if the venue is good for it, I can give a presentation20:55
jdstrandslangasek: nice! :)21:10
=== tvoss_ is now known as tvoss
ogra_slangasek, i dont think so21:29
ogra_(but i also dont really touch the x86 side in teh tree)21:31
slangasekogra_: you don't think so> you don't think why there's a version in the store that's not in bzr?21:33
slangasek:)21:34
slangasekfwiw I checked the contents and they were no changes except the version21:34
slangasekso I ignore it21:34
cjwatsonsmoser: environment> easy enough to see from http://bazaar.launchpad.net/+branch/launchpad-buildd/view/head:/buildsnap, which is short enough22:38
cjwatson(it is not otherwise documented I'm afraid)22:39
wililupyhmm. For some reason, when I build an image with ubuntu-device-flash and a custom kernel, it doesn't show any snaps installed.23:13

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