[00:00] kyrofa, 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:01] wililupy, sorry, I'm not sure what the situation is regarding all-snaps images. Have you tried downloading one of mvo's? [00:02] I was just going to try that when my snapcraft snap finished and I tested that. [00:02] Looks good so far, I have a dependency missing, so I have to figure that out... [00:03] kyrofa: I am using a modified version of your fboss snap from github to work with the Wedge 100. [00:03] wililupy, ah, oay [00:03] okay* [00:04] kyrofa: 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:17] hi 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:51] beisner, yeah, try running it from source instead [00:51] beisner, the snap doesn't have permission to reach out like that [00:51] beisner, do you need help with that? [00:52] (qemu backends have the same problem) [00:52] The snap is only really useful if you're using remote backends === al_ is now known as Guest55102 [02:03] $ sudo snap refresh --beta --devmode ubuntu-device-flash [02:03] - 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 10 [02:03] what? [02:03] PR snapcraft#759 opened: Remove the useless call to os.path.join from the go plugin [02:12] well rebooting and reinstalling fixed that [02:45] hi kyrofa thanks for the info. just for kicks i removed the snap, reinstalled it in devmode, still the same. so, go get ftw? [02:51] what does this mean ? [02:51] Cannot get permission from the store to upload this package. [02:51] trying to have launchpad build a snap package for me [02:52] it says: [02:52] If 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] so i expected it to ask me or something, but it just says fail [04:36] PR snapd#1765 opened: many: move network initialization to a separate service [04:48] PR snapcraft#760 opened: Removed statements not unused by the tests === chihchun_afk is now known as chihchun [07:16] PR snapd#1766 opened: image, asserts: add new asserts.Fetcher.SavedRefs() helper [07:22] good morniong [07:22] *morning [08:18] Question 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] how can I achieve that? [08:24] PR snapd#1766 closed: image, asserts: add new asserts.Fetcher.SavedRefs() helper [08:37] mvo, mind if i ubpublish all the canonical-* snaps ? [08:37] ogra_: not at all === AL_ is now known as Guest80394 [08:58] Hi ! 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:59] Guest80394: hey, I don't believe there is right now but it should be simple to add [09:00] Guest80394: look at the home interface, a similar interface could mediate access to /media or /run/media or anything like that [09:00] Guest80394: it should be very easy to contribute if you want to [09:01] ok, I will look at this ! [09:01] mvo, hmm, did we seed subiquity already ? my serial console is a huge readable mess after rebooting on all my images [09:01] *unreadable [09:01] mvo, http://paste.ubuntu.com/23092374/ [09:02] the last line fill multiple pages [09:02] '*fills [09:02] Guest80394: look at zygoon.pl, I posted some articles about this there [09:02] Guest80394: and ping me here for advice :-) [09:02] ogra_: it landed last night [09:02] ogra_: apparently a hard landing [09:02] Thanks a lot ! [09:03] mvo, extremely buggy ... and it seems to run regardless if the system is cionfigurede [09:03] *configured [09:03] ogra_: lets talk to cyphermox, mwhudson or slangasek about the bugs in console-conf: http://paste.ubuntu.com/23092374/ [09:03] on the dragonboard i now have a network config dialog [09:03] ogra_: if its too buggy we can revert the upload [09:03] ogra_: its a single line in livecd-rootfs from last night [09:04] it is more than console-conf ... unless that also does network config etc ... and it is definitely not safe for serial [09:04] ogra_: it does [09:04] ogra_: and yeah, it takes over the gettys [09:04] ah, i thought it cionfigures the coneole :) [09:04] ogra_: its a bit misleading the name [09:05] 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] in any case i cant do any unattended reboot anymore [09:05] ogra_: and I want my getty back [09:06] ogra_: if its too anoying, just revert, I think that is fine [09:06] 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:08] mvo, oh, fun ... and it doesnt recognize my configured wlan0 devices on both boards ... so i'm stuck in the config screen [09:08] i'll unseed it once i reported all the bugs ... oh my [09:09] ogra_: oki doki, thanks [09:09] PR snapd#1747 closed: overlord, daemon: add collect attribute hooks [09:12] PR snapd#1767 opened: overlord, daemon: add collect attribute hooks [09:13] PR snapd#1763 closed: many: clarify/tie down model assertion [09:14] PR snapd#1616 closed: tests, integration-tests: implement the cups-control manual test as a spread test [09:14] PR snapd#1759 closed: asserts: fix GPG key generation parameters [09:17] * ogra_ sighs ... so how do i get out of this .. i cant boot at all anymore [09:18] (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] PR snapd#1759 closed: asserts: fix GPG key generation parameters [09:32] Bug #1617231 opened: subiquity kills serial console after regular update [09:35] Bug #1617232 opened: subiquity goes into endless configuration loop, no way to get out [09:36] pitti, i fear in the light of that one ^^^ Bug 1616928 should get a higher urgency [09:36] Bug #1616928: netplan should support managing wlan devices via wpasupplicant [09:37] (assuming that subiquity actually tries to use netplan in the backend) [09:45] Bug #1617236 opened: console-conf falls over trying to create already existing logdir [09:48] PR snapd#1753 closed: asserts: add an account-key-request assertion [09:52] ogra_: 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 store [09:52] what a mess [09:52] ogra_: but yes, wlan is another issue indeed [09:52] pitti, file a bug ..., i'll unseed it now and re-spin ubuntu-core afterwards [09:52] communication breakdown -- when this was discussed a few weeks/months ago, the plan was still "use NM for wifi".. [09:53] pitti, well, the worst is that the console-conf process actually consumes 16-25MB ... [09:53] ogra_: 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] ogra_: welcome to python :) [09:53] and it spawns a new process every time i ctrl-c out of it === hikiko is now known as hikiko|ln [09:53] yeah, the worst choice for arm [09:54] i guess that bumps our ram requirements from ~64MB to 128 for embedded boards ... [09:54] :((( [09:55] for those you could skip console-conf somehow perhaps (kernel arg or pre-create the firstboot stamp file etc.)? [09:55] so you mean for all of them ? [09:55] :) [09:55] (like all boards) [09:57] so depressing :/ [10:01] cyphermox, mwhudson, slangasek, i unseeded console-conf again for now, it breaks to many things atm [10:03] woah ... [10:04] ubuntu@dragonboard:~$ ps ax -orss=,args=|grep 24228 [10:04] 24228 python3 /usr/bin/console-conf [10:04] ubuntu@dragonboard:~$ sudo kill -9 24228 [10:04] ubuntu@dragonboard:~$ ps ax -orss=,args=|grep 24228 [10:04] 24228 python3 /usr/bin/console-conf [10:04] very reluctant to be killed :P [10:08] Restart=always [10:09] Bug #1617250 opened: 401 errors trying to install a snap [10:09] Bug #1617251 opened: console-conf unkillable [10:09] pitti, weeeelll ... wouldnt a restart assign a new PID ? [10:09] but systemctl stop console-conf.service also is broken as there are about three endless loops [10:09] ogra_: ^ [10:09] ogra_: err yes, kill -9 not working?? [10:09] right [10:09] it keeps the PID [10:09] no matter how often i kill -9 [10:31] PR snapd#1744 closed: snap: use "up to date" instead of "up-to-date" [10:42] so, 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] also, when I didn't have the required plugs, the binary just hung when I ran it. Is that the expected failure mode? [10:43] it needs to create a socket ... "network" is only for client side things ... for the socket creation you need -bind ... [10:43] not sure why you would need firewall though [10:44] ogra_: how can you be a network client without creating a socket? [10:44] (i definitely dont need it for any of my network server snaps ) [10:45] ogra_: ah, it's possible i don't need firewall-control - i added that first [10:45] ogra_: i'd have thought that network-bind was only necessary for listening on network ports, not making outgoing connections [10:46] https://github.com/snapcore/snapd/blob/master/docs/interfaces.md [10:46] network-bind says "Can access the network as a server" [10:46] network [10:46] Can access the network as a client. [10:46] Auto-Connect: yes [10:46] network-bind [10:46] Can access the network as a server. [10:46] Auto-Connect: yes [10:46] ogra_: yeah. and this program isn't a server. === hikiko|ln is now known as hikiko [10:46] ogra_: it's just making an outgoing connection [10:46] so if your binary actually only does client connections network should be enough [10:47] ogra_: that's what i thought [10:47] aks jdstrand once he is up :) [10:50] hmm, 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:52] well, look at snap changes (and "snap change $number" for details) ... [10:53] hmm, 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] iirc you can also "snap abort" [10:53] give it a bit, it works async ... [10:53] ogra_: yeah, i tried that. but "snap remove" takes forever [10:53] might need some time to time out [10:53] ogra_: well, ok, i'll give it a few minutes [10:54] ogra_: do you think 5 minutes should be enough? [10:54] no idea :) [10:54] I'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:55] no, it wouldnt [10:55] snap daemons always run as root [10:55] ah, looks like this might be the culprit: Aug 26 11:52:56 snazzy umount[9073]: umount: /snap/bhttp/x1: target is busy [10:55] are you in there with your shell ? [10:56] ok, so for now I need to patch unless they have hidden an option in there somewhere to allow it... [10:56] ogra_: no, but there's a process running the binary [10:56] ouch [10:56] stub, i fear so, yeah ... [10:57] Bug #1617275 opened: the home interface doesn't allow access to $HOME/snap-confine [10:58] ogra_: ok, success: i did "kill -9" on the defunct process, then aborted the remove operation and tried again and it worked. [10:58] ogra_: not a fantastic user experience though... :) [10:58] rogpeppe, definitely not, file bugs ;) [10:58] ogra_: will do; it'll be the third bug this morning :) [10:59] i'm at 5 for today :) chase me ;) [10:59] ogra_: 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= [11:00] ogra_: :) [11:00] haha [11:05] ogra_: https://bugs.launchpad.net/snappy/+bug/1617278 [11:05] Bug #1617278: remove hung forever due to defunct process [11:06] thx [11:06] Bug #1617278 opened: remove hung forever due to defunct process [11:08] ogra_: 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:09] i guess your syslog should have some DENIED lines then [11:10] ogra_: this is the line i see: [11:11] Aug 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=0x0 [11:11] rogpeppe: that's bind [11:11] zyga: syscall 49? [11:11] rogpeppe: it gets killed when it cannot use a syscall it tries [11:11] rogpeppe: yes, 49 is bind [11:12] 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] PR snapd#1684: many: drop ubuntu-core-snapd-units package, use release.OnClassic instead [11:12] zyga: hmm, i wonder why... i wonder if i can make it panic when it does that [11:12] rogpeppe: panic? [11:12] rogpeppe: you get SIGKILL from the kernel [11:12] zyga: also, is it right that the binary should just hang when it does that? [11:12] rogpeppe: it kills the offending thread [11:12] zyga: hmm, not the whole process? [11:12] rogpeppe: depending on the way your program works it will just hang [11:12] rogpeppe: nope [11:13] zyga: ok, that's probably the reason - it's a go program with multiple threads [11:13] rogpeppe: yeah, it's unpredictable what will happen [11:13] zyga: any way to configure different behaviour? [11:14] rogpeppe: not at present, I believe there's a bug about switching seccomp to return EPERM, we may be able to revive it [11:15] zyga: ah, i see now - the Go net package uses bind to probe to see if the kernel has ipv6 functionality [11:16] rogpeppe: https://lists.ubuntu.com/archives/snappy-devel/2016-April/001708.html [11:16] rogpeppe: that's correct, there's a separate bug about that, I've done the same investigation [11:16] zyga: so you can't have *any* Go program that imports /net without allowing the network-bind plug [11:17] zyga: i think i'll raise a Go bug about this [11:19] ah, there already is a bug: https://github.com/golang/go/issues/16789 [11:19] I'm looking for the bug on golang [11:19] er [11:19] snapd [11:20] I cannot find it [11:21] i think you can work around that by using a wrapper script with exec, so that systemd handles it differently [11:21] I'm sorry [11:30] Bug #1617264 opened: confusing error when installing snap when not logged in [11:42] hey folks, the icon guidelines link here is broken: https://developer.ubuntu.com/en/publish/creating-a-good-icon/ [11:42] ^^ where should I report that [11:42] and can anyone tell me what dimension a snaps icon should be? [11:45] what do you think is broken about it ? [11:45] (my icons all work fine still) [11:48] ogra_: good point about unseeding the scripts bits [11:49] * 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:50] (well, at least initramfs-tools-ubuntu-core ... seems apparmor has a hard dep on the generic initramfs-tools ) [11:59] Chipaca: https://github.com/snapcore/snap-confine/pull/120/files [11:59] PR snap-confine#120: Fix regression test when re-exec kicks in [11:59] Chipaca: care for a quick review of what we've just discussed? [12:00] zyga, three things [12:00] zyga, you're not stopping the .socket [12:00] zyga, and, you can start/stop n all together in a single line [12:00] Chipaca: I'm also not using it though I guess I can just stop it and be on the safe side [12:00] oh? [12:00] how :) [12:00] zyga, systemctl stop foo bar baz [12:00] ah [12:00] thanks, doing that [12:00] zyga, also also, systemctl stop snapd.{service,socket,refresh.timer} [12:01] but not sure if the bash these things run in has brace expansion [12:01] I've just spelled it out [12:01] fair [12:02] Chipaca: fixed, I also dropped sudo [12:02] look again please [12:06] zyga, 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:07] Chipaca: perhaps, I didn't write this, jdstrand did [12:07] Chipaca: I'm happy to improve it when it is green again [12:07] ah ok [12:08] zyga, go for it (once green) [12:08] thanks [12:09] so 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] is it just that i have to wait for a while for things to happen behind the scenes? [12:10] rogpeppe: is that snap published to the stable channel? [12:11] rogpeppe, what icon does the revision have next to it? a thumbs up, or a green box? === chihchun is now known as chihchun_afk [12:11] zyga: i think so. (i ran "snap release") [12:11] Chipaca: checking [12:11] Chipaca: a green box [12:11] rogpeppe, and what's the snap called? [12:11] Chipaca: bhttp [12:11] rogpeppe, if i can ask :-) [12:12] Chipaca: so that URL is personal? [12:12] rogpeppe, yes [12:12] Chipaca: is there a URL for the snap that I can share? [12:12] i get “You just tried to access a feature which you don't have permission to use.” [12:13] rogpeppe, what channels is it published to? [12:13] Chipaca: i'm not sure where there's a page i can search for snaps [12:13] Chipaca: stable [12:13] rogpeppe, i can confirm it isn't there :-) [12:13] rogpeppe, I was about to point you at https://snapfui.herokuapp.com/ but it's broken right now :-( [12:13] beowulf, ^ [12:14] Chipaca: what technique did you use to confirm that? [12:14] uappexplorer :) [12:14] * rogpeppe googles that [12:14] rogpeppe, "snap find bhttp" [12:14] rogpeppe, is it ARM-only? [12:14] or i386 or something other than amd64 or all [12:14] Chipaca: no, it's amd64-only [12:14] hmmm [12:14] Chipaca: AFAIK [12:15] Chipaca: i didn't set any architectures [12:15] Chipaca: one mo, i'll send you a screenshot [12:15] rogpeppe, you could wait until somebody with more access than i takes a look, or you can send me a screenshot :-) [12:15] rogpeppe, does it have a little green box next to the version in the UI ? [12:15] rogpeppe, m v o should be able to see things, but he's a busy person [12:15] ogra_, yep [12:15] hmm [12:17] PR snapd#1768 opened: many: automatically restart all-snap devices after os/kernel updates [12:17] Chipaca: http://imgur.com/a/5YksP [12:18] it *looks* like it's published to me, but maybe i'm missing some crucial piece of info [12:18] ogra_, hey there, sorry, this is very out of context now, but where you replying to me above? (the broken link) [12:19] rogpeppe, that should work [12:19] nessita, are you around? [12:19] mattyw, oh, i missed you meant a link, i thought you meant the instructions themselves [12:20] mattyw, not sure where to file it, davidcalle or dholbach might be able to point oyyu to the right place [12:20] Chipaca: right, but... you verified that it's not actually there, right? [12:20] rogpeppe, right [12:20] rogpeppe, hence me poking nessita [12:20] Chipaca: ok, i give up for now. i need to do some actual work :) let me know if you work anything out, please? [12:21] rogpeppe, if you scroll to the very bottom of the page there is also an "unpublish" button ? [12:21] Chipaca, indeed I am [12:21] ogra_: you think i should unpublish so that i can try to publish again? [12:21] nessita, ohi [12:22] nessita, given http://imgur.com/a/5YksP [12:22] rogpeppe, no, i just want to know if that button is there [12:22] ogra_: yes, it's there [12:22] nessita, which is https://myapps.developer.ubuntu.com/dev/click-apps/5803/ [12:22] nessita, what's missing, that snap can't find it? [12:22] Chipaca, let me check [12:22] nessita, thank you [12:23] version 0 looks suspicius, but "in paper" shouldn't be an issue [12:23] * nessita checks more [12:23] tyhicks: https://github.com/snapcore/snap-confine/pull/119 [12:23] PR snap-confine#119: Make snap mount directory configurable [12:23] tyhicks: I didn't change the apparmor profile yet but I'm about to [12:28] Chipaca, not finding anything obvious, but I can't find it in CPI either, debugging more [12:29] ogra_: I can haz logs? what does it break? [12:30] the issue is this is hard to fix when I can't upload myself to that PPA and people leave pretty early [12:32] hi guys [12:33] i was looking for ubuntu disk image writer on snap [12:33] there are nor a lot of apps on this repo [12:33] cyphermox, you got a bunch of bugs ;) [12:34] Saeron, early days :-) [12:34] Saeron, it would be a nice one to snap up, i agree [12:34] can someone tell me if anyone can make a snap of this app [12:34] i men ihave to be the developper? [12:34] Saeron, yes, anyone can make a snap of that app [12:34] the problem is i am not actually using ubuntu [12:35] and i cant find this app on manjara thats what i want a snap for it [12:35] 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] ogra_: 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 whatsoever [12:36] no, there isn't. We'll have to see about the RAM usage. I'm shocked that it's as much as you say [12:36] so exits the posibility of a good soul make a snap from this app? [12:36] cyphermox, on the dragonboard i get two console-conf binaries each occupying 25MB RSS ... i noted that in one of the bugs [12:36] Saeron, are you looking for the gtk version? [12:37] yes i am looking for the main ubuntu version [12:37] 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 perl [12:37] Chipaca: yes [12:37] Saeron, i could snap it, but over the weekend, not now [12:38] Chipaca: its all right, is not at urgent need is just i like a lot dat app and i think is a good one [12:38] ogra_: where did you open the bugs? [12:38] Chipaca: thx, is gonna be awesome to have dat app on manjaro :) [12:38] :-) [12:38] cyphermox, against the snappy project with additional tasks against the subiquity package [12:38] you should find them all under subiquity [12:39] Chipaca: i hope have time soon for see how to craft this apps [12:40] Chipaca: its really necesary to have ubuntu for do it? [12:40] Saeron, i don't know about that side of things i'm afraid [12:40] sergiusens might, if he's around [12:40] cyphermox, i know that mvo and pitti also did hit other bugs, not sure against what they filed them [12:41] I am [12:41] what's up? [12:41] sergiusens, snapcraft on !ubuntu [12:41] sergiusens, workie? no workie? [12:41] Chipaca planned, not there yet [12:41] Chipaca: afraid about what [12:41] Saeron, he is afraid he doesnt know about it :) [12:41] what? [12:42] (justa phrase= [12:42] ) [12:42] *just a [12:42] are you kidding me ? [12:42] Saeron, just an expression of apology for not knowing something [12:42] ? [12:42] Chipaca the plans we have involve snapd and core work as well; but that was a brainstorm with zyga, probably needs a concrete design [12:42] ok but what you dont know? [12:43] Saeron, Saeron, i don't know about that side of things i'm afraid [12:43] about if i can craft snap on othres dist diferents from ubuntu? [12:43] PR snapcraft#761 opened: Remove dangling symlink from JDK plugin [12:43] Saeron, means: i don't know [12:43] Saeron, I then went on to mentions sergiusens was the person to ask about that [12:43] Saeron, and he has since said that it won't work [12:43] but that it is planned [12:43] ogra_, yes. Yes. [12:43] :) [12:44] nobody is kidding you ... we just seem to have a communication breakdown :) [12:44] ok xd i dont understand nothing jajajajaja [12:44] Saeron subscribe to https://bugs.launchpad.net/snapcraft/+bug/1602258 [12:44] Bug #1602258: Support other distributions as sources (Fedora, Mageia, openSUSE, Debian) instead of Ubuntu [12:44] hmmm [12:45] ok now [12:45] Saeron, from your laugh i suspect spanish would work better [12:45] indeed ;-) [12:45] there is not suport for others dis [12:45] Chipaca: yeah i am a poor spanish [12:46] Chipaca: dont know a lot about english [12:46] Saeron, nada de pobre, eh? [12:46] Chipaca: asi que tambien eres español :) [12:47] Saeron, bueno, eso, que no funciona. Que está planeado, pero en realidad lo que está planeado es planearlo. [12:47] Chipaca: ok bueno si haces el favor de hacer el paquete cuando tengas tiempo [12:48] Saeron, síp, parece interesante, y el fin de semana es largo para mí \o/ [12:48] Chipaca: no hay prisa, es simplimente lo que mejor me servia para raspberry pi [12:48] Saeron, perfecto [12:49] Chipaca: a mi se me esta haciendo ya largo con una version de tftop en tcp que tengo que hacer en java [12:49] Chipaca, if my guessing of that spanish is correct he should be able to use the classic shell on his pi to use snapcraft [12:49] and now back to your regularly scheduled programme [12:49] Chipaca: :( [12:49] ogra_, he needs something to write things for the pi, not on the pi [12:50] * zyga sees spanish everywhere [12:50] he can write wherever he wants .. and just build on the pi [12:50] ogra_: mm maybe but i only have raspberry pi 1 so i think i cant [12:50] zyga, you're hallucinating [12:50] Chipaca: must be the coffee [12:50] ;-) [12:50] zyga, nah, it is all german, just with bavarian accent :P [12:50] zyga, it's the lack of mediterranean sun. [12:50] ogra_: snap is not aviable on rp1 unfortunally :( [12:51] oh, pi1 [12:51] yeah, sorry, that wont work [12:51] Chipaca: it's surprisingly sunny here; always when holidays run out I guess [12:51] zyga, hence the qualifier [12:51] ogra_: I may learn some german soon, we're planning on visiting friends in dusseldorf [12:51] * Chipaca -> tea and meetings [12:51] * zyga spread and meetings [12:51] and meetings [12:52] and hopefully some code after [12:52] and altbeer :) [12:52] (regarding düüsseldorf) [12:52] oh [12:52] -ü [12:52] I need to package snapd-glib [12:52] well [12:52] that's easy by now [12:52] * zyga gets around to do it [12:52] it isnt packaged ? [12:53] i thought it is [12:54] ogra_ for all distros he means ;-) [12:56] ogra_: maybe, I'm checking [12:58] PR snapd#1769 opened: snap: add export-key --account= option [13:00] sergiusens, ah, i thought for ubuntu [13:04] PR snapcraft#759 closed: Remove the useless call to os.path.join from the go plugin [13:06] urgh [13:07] 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:08] that now locked me out completely [13:09] why is it killing existing connections like that ? [13:19] Bug #1617302 opened: Specifying a nonexistent part does cause any errors [13:20] Hello. How do I keep snap in edge channel up to date? Should I add cron job to call snap refresh --devmode snap-name? [13:21] sborovkov, on a snappy image ? [13:21] if the image uses edge as well it will just auto-update [13:21] ogra_: I have classic image [13:21] (though --devmode will not autop-refresh i think) [13:21] ah, k [13:21] there i dont know then [13:22] Yes, 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 refresh [13:22] yeah, i guess for --devmode there is no way around that [13:22] edge on an image that knows about edge wouldnt be a prob [13:23] hmm [13:23] Do you know if there is some recommended mechanism to make it so that snap login does not expire? [13:23] 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:24] ogra_: uhm nope [13:24] ogra_: you mean to reduce the visible memory? [13:24] yeah [13:24] nope [13:24] seems it reduces enough to also hide the dtb [13:24] my kernel just hangs [13:25] i have vague memoris of faffing with that options [13:25] *memoris [13:25] and i remember i disoverd way it hanged when reducing the visible memory [13:26] but it was long ago [13:26] hmm, even hangs with mem=1024m [13:26] and i'm not even sure it was the raspi board [13:26] which shoudl actually be more than the board has (944) [13:26] probably not related to the dtb position then [13:27] i wonder if the fw has anything to do with it [13:27] since the dtb, usually, has an empty memory field [13:27] and it's a task of uboot to fill that field [13:28] well, theer are also various gpu defaults that might kick in [13:28] right [13:28] and then we take a slice for the gpu too [13:28] Bug #1617314 opened: Cannot run daemons as non-root [13:28] yeah [13:28] so i guess it isnt a good system to try out differenmt ram sizes [13:29] uhm nope [13:29] 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 regard [13:30] but i guess i'd need a BBB image to actualyl do that (dragon is arm64 so not really representative) [13:30] probably yes [13:33] so these failures here: https://code.launchpad.net/~smoser/+snap/azure-cli [13:34] thats simply "builders do not have internet access" right ? [13:34] am 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:47] ogra_: because nm currently doesn't take care of any connections defined in /etc/network/interfaces.d [13:47] only about those which are in /etc/network/interfaces [13:47] whoever introduced interfaces.d didn't adjust nm for this [13:47] we have a patch for that pending [13:47] morphis, well, it would be nice if it could simply check for a default route and not kill existing connections [13:48] but normally it should ignore all interface which are configured by ifupdown [13:48] i dont care if it trashes my /e/n/i setup as long as it doesnt lock me out out of the blue [13:48] ogra_: in this case it takes control over wlan0 completely as it doesn't see its already managed by ifupdown [13:48] ogra_: how should I do that if it does not have any provisioning information for that interface? [13:48] i.e. how would i switch over to nm on a remote device [13:49] what do you mean by that? [13:49] morphis, by looking for a default route [13:49] morphis, i would expect nm to not touch anything until i configured it ... simply installing the package should not kill my existing connection [13:50] it shoudl notice there is a default route added to an interface ... and leave that interface alone until i tell it to use it [13:50] afaik that makes things quite more complex, nm is supposed to be a network manager which is installed by default [13:50] it would even be fine if it already trashed my /e/n/i setup (and tells me it did) but doesnt ifdown the device [13:51] ogra_: it shouldn't trash your ifupdown setup [13:51] it should just ignore those interfaces ifupdown has under its control [13:51] it then gives metrics to the various routes [13:52] kyrofa, hey, can you ping me when you're back and have a moment for HO? i'd like to talk about snapctl [13:53] rogpeppe, 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] nessita: with snapcraft [13:54] rogpeppe, did you also release the revno with it? (so I can try to reproduce) [13:54] nessita: what does "release the revno" mean? [13:54] morphis, well, i obviously installed nm to make use of it ... but doing that via ssh simply deconfigures the device during package install [13:54] rogpeppe, 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:55] (to make use of it = i dont care about /e/n/i anymore) [13:55] morphis, what makes you think an oem would pre-install nm [13:56] ogra_: 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 fixed [13:56] 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] nessita: i ran: snapcraft release bhttp 2 stable [13:56] ogra_: second thing is taking over a network device which isn't configured by ifupdwon but manually by the other [13:57] 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] that 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 state [13:57] right, so i send out a technician to hit the reset button ;) [13:58] zyga: why does the snap mount dir need to be configurable? [13:58] ogra_: so we over two (or three) ways today to configure network, netplan, ifupdown and nm [13:58] all play together and all three is what you can use as a manufacturer [13:58] anyone 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] morphis, right, this isnt about how it was configured ... only about what is currently in use [13:59] ogra_: if you go and build your own you're off and it gets harder to support all of these [13:59] ogra_: yeah and it takes only ifupdown as indicator for that right now [13:59] tyhicks: because some distributions will use a different location [14:00] tyhicks: I've just updated the pull request to adjust apparmor profile (there's almost no change in practice) [14:00] ogra_: what should we then do with such a device in nm? [14:00] tyhicks: similar changes are almost ready for snapd [14:00] mark it as unmanaged? [14:00] tyhicks: https://github.com/snapcore/snap-confine/pull/119/commits/c77ce3d7e521b93a2375bbad5019338bb176f9cc is the new thing [14:00] PR snap-confine#119: Make snap mount directory configurable [14:01] Bug #1598225 changed: htop unable to send signals to other processes [14:02] rogpeppe, thanks [14:02] * zyga lunch [14:02] ogra_: size is a thing which matters for sure, there are some parts we can still optimize to reduce the footprint of the snap [14:02] but in the end Ubuntu chose NetworkManager which hasn't the smallest footprint and isn't made for this === JanC is now known as Guest12120 === JanC_ is now known as JanC [14:03] jdstrand: thanks for reviewing the profile changes [14:03] then you want connman or just ifupdwon [14:03] jdstrand: I already reviewed the code changes [14:03] I'll leave a comment [14:03] morphis, i installed nm to configure it with nm ... but i cant because nm locked me out on package install [14:03] 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 reboot [14:03] so what did configure the device before doesnt really matter ... that i cant configure nm now does though [14:04] 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 it [14:04] Bug #1586547 changed: allow browsers to use user namespaces in its sandbox [14:04] ogra_: so you configured the device with ifupdown before? [14:05] 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] sure [14:05] morphis, yeah ... but it shouldnt matter how it was configured [14:05] sint i just installled a tool that i will likely use in the future to configure it [14:06] *since [14:06] 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 present [14:06] since i can snap install nm via ssh [14:07] Bug #1596717 changed: please add getsockopt to pulseaudio interface [14:07] Bug #1600085 changed: interface for making bpf syscalls [14:07] Bug #1605768 changed: incomplete 'opengl' interface [14:07] ogra_: can you file a bug agaisnt https://bugs.launchpad.net/snappy-hwe-snaps ? [14:08] will do [14:10] awe: can we easily tell network-manager to not reset a network device a default route is configured for when its first started? [14:10] morphis, ?; can you give me some more context? [14:11] ogra_ describes his use case: he has a network device configured and a default route set [14:11] configured by...? [14:11] now he installs the nm snap which removes all routes + interface configuration on first start [14:11] nm? [14:11] awe: manual [14:11] or cloud-init/ifupdown [14:11] totally manual? [14:12] as in no eni or eni.d iface? [14:12] if it would be ifupdown it should be ignored but isn't right now due to us not respecting e/n/interfaces.d/ [14:12] right; s16? [14:12] awe: or phrase it like this: should be ignore whenever it is not configure by ifupdwon or nm itself [14:12] awe: yes [14:12] if so, doesn't your new snap fix? [14:13] awe: it does and it would ogra_ problem [14:13] but he worries that this will be a problem for people who may configure their interfaces manually and then lock themself out [14:13] Bug #1603113 changed: add fuse filesystem interface [14:14] which should be a very small number as everything is meant to be ifupdown/netplan in the default ubuntu core images [14:14] apw, morphis bug 1617344 [14:14] Bug #1617344: snap install of network-manager should not tear down the device holding the default route [14:16] 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 connection [14:16] awe, so that i have a chance to put an nm confiig in place after i installed the nm package ;) [14:16] well.... that's what you get for mixing a manually configured device with a daemon that wants to own everything [14:16] Bug #1583371 changed: GPIO interface request [14:17] let me give some thought to how we can address this... [14:17] 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 guess [14:17] did you add an iface into e/n/i.d? [14:18] ogra_: that would be a little bit of a hack as you still want nm to take over control when its configured correctly [14:18] awe: he did [14:18] then why don't we just add ssweeny's patch? [14:18] yes [14:18] doens't that solve the problem? [14:18] not in ogra's eyes :-) [14:18] awe, yes, thats the current default recommendation, using /e/n/i.d/wlan0 ... [14:18] he says we should ignore the device regardless of it was configured when it provides the current default route [14:19] awe, all i want it that i'm not locked out of the device just because i installed a package :) [14:19] ogra_: first of all if you install a network-manager you should know what you do [14:19] right, i just dont want to have my ssh connection killed when installing NM [14:19] its quite a fundamental thing for a system [14:19] ogra_, we're sitting on a patch that fixes the problem [14:19] ogra_: and you wouldn't when its properly configured with ifupdwon [14:20] not sure why we'd want to do anything different? [14:20] awe, good then [14:20] ogra_: so securing the remaining 1% of use cases where the user configured the device manually sounds a bit like overhead [14:20] +1 [14:20] morphis, well, i perhaps (or rather most likely) installed nm to manage the device with nm in the future [14:20] and perhaps my device sits on a pole in the arctic sea [14:21] ogra_: but then you should have configured it properly with ifupdown [14:21] ogra_, people are going to use netplan or cloud-init [14:21] when the device gets killed by the package install i have no way to actually put any nm config in place [14:21] if they device in the north pole [14:21] and they configure manually [14:21] awe, how do you knwo ? [14:21] and then install NM blindly without having tested it first... [14:21] welll [14:21] they shoot themself off IMHO [14:22] yup [14:22] we can't prevent them from running "sudo shutdown -h now" as well [14:22] I suppose the other thing we could consider [14:22] 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 image [14:22] and you're not going to stage your software first? [14:22] and test? [14:23] i do stage my software ... and i do test it ... it worked and i installed it on that pole [14:23] now someone comes along and tells me i should rather use nm even though that eats my resources ... [14:23] PR snapd#1710 closed: tests: add content-shareing binary test that excersises snap-confine [14:23] so i ssh into the device, notice there is actually enough space to use nm (yay) ... and install nm [14:23] *boom* [14:23] ogra_, is there a way to install a snap and have a job disabled upon install? [14:23] no [14:24] i have to find a ship that goes to my pole to reset the device [14:24] you wouldn't do such a critical operation on a production device [14:24] exactly [14:24] that's what I keep saying [14:24] without testing and having the gurantee it works [14:24] awe, no, and why would you [14:24] this would be a good case for it, no? [14:24] all i want is that my current connection doesnt get orn down out of the blue [14:24] jdstrand, 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] *torn [14:24] jdstrand, zyga, I'm still not seeing the mounts outside of the snap though [14:24] ogra_, you want to hop on #nm and discuss? [14:25] ogra_: it does not if you have it configured properly with ifupdwon [14:25] being locked out of a device just because you install some package is evil [14:25] we should prevent that [14:25] ogra_: but you would discover in your testing that this is broken and wouldn't do it [14:25] i.e. look at ubuntu server ... if you upgrade ssh it will *never ever* kill your current sshd [14:25] and snap should not behave different in that regard [14:26] no matter what package i install [14:27] ogra_: we support that use case very well (if that single bug is fixed I mentioned before) [14:27] Chipaca, rogpeppe bhttp is now available, we are still troubleshooting but we re-publihs it to unblock you [14:27] ogra_, I still think the right way to do this would be so have NM installed in a state where it's idle, until enabled [14:27] morphis, well, thats fine then [14:28] I 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 correct [14:28] awe, whatever keeps my sshd alive is fine :) i dont care how it is solved [14:28] as morphis said, in 99.99% of the cases, cloud-init or netplan will be used, and NM will stay from any devices configured via those [14:28] locking people out of thir devices is just wrong ... thats the core point here [14:29] in this, the person has locked themselves out [14:29] awe, i suspect most peope doing actual embedded stuff will not want to use NM [14:29] they were flying without a net [14:29] I agree [14:29] since your resources are precious on such HW [14:29] ogra_: 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 environment [14:30] that said, I definitely could see a need for being able to specify that a service is disabled by default upon install [14:30] 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] *sea temp [14:30] to allow the service to be *configured* before it's used [14:30] ogra_: then he is responsible [14:31] smoser we have an open bug for that launchpad issue (pull/build with or without internet access for the latter step) [14:31] awe: sure that is another use case we could support but that would require some features we don't have in snapd yet [14:31] morphis, doesnt matter ... before he gets fired he gives a bunch of interviews telling the press how badly ubuntu snappy sucks ;) [14:31] agreed, I'm just saying that's the way I'd handle this [14:32] awe, and i agree ... we should have a way to handle initial state for systemd units [14:32] but we dont atm [14:32] ogra_: but somebody could say similar if ubuntu core doesn't prevent you from stopping the machine with "sudo shutdown -h now" on critical machines [14:32] smoser 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 source [14:33] sergiusens, i went asking in launchpad, and cjwatson said [14:33] morphis, indeed :) [14:33] Builders have internet access but only during the pull phase. [14:33] ... which is the case here. [14:33] There's a known but undiagnosed problem with npm. [14:33] https://bugs.launchpad.net/launchpad-buildd/+bug/1588870 [14:33] Bug #1588870: npm doesn't seem to use snap proxy [14:33] ogra_, patches welcome... but as mentioned, this probably should be discussed with upstream [14:33] you could do the same thing with the deb pkg [14:34] does that kill my running interface ? [14:34] ogra_: 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 it [14:34] i dont think it does [14:34] ogra_: if it is configured with ifupdwon the deb doesn't :-) [14:34] it's the same code ogra_ [14:34] but if it is configured manually it will for sure [14:34] morphis, well, whatever the solution is, as long as my ssh connection persistst i'm all fine [14:35] just in a deb instead of a snap [14:35] awe, same systemd unity ? [14:35] ogra_: ok, then lets ignore the 1% and concentrate on the 99% [14:35] *unit [14:35] ogra_, NM wants to own all of the networking on a device [14:35] unless it's explicitly told otherwise [14:35] ogra_: in gernal yes [14:36] again... if you really want this fixed, then hop on #nm with me, and we can discuss there [14:36] but I agree with morphis [14:36] 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] *true [14:38] ogra_: if you install the nm deb package no matter where, it will take over all not by ifupdown managed network devices [14:38] smoser yeah, doing all that in `pull` would make your build/install twice (go through it). It is what we do with the python plugins today [14:39] sergiusens, so is that an easy snapcraft.yaml config change that i can make to try ? [14:39] morphis, ah, in that case thats probably the ifupdown setup that prevents it from doing that in the cloud [14:39] ogra_: yes [14:40] and that patch you guys talked about will actually add that feature to the snap ? [14:40] it will [14:40] well, then all is fine [14:40] ogra_: or said differently, I suspect nm on the desktop has the same problem with /etc/network/interfaces.d as the snap has [14:41] as this isn't fixed anywhere yet [14:41] nessita: ok, thanks [14:41] nessita: do you know what might've gone wrong? [14:41] ogra_: even not in the deb packages we have nor upstream [14:42] rogpeppe, nothing is standing out, we are now trying to reproduce the same flow you used to see if we have a bug [14:42] rogpeppe, 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:43] morphis, well, i remember when asac maintained NM it never touched ifupdown devices [14:43] due to a distro patch though [14:43] and thats is years ago [14:43] jdstrand: hey [14:43] jdstrand: I've updated the milestones on launchpad so that snapd 2.12, .13 and .14 exist [14:44] it has definitely been cpable of that for quite a while [14:44] *capable [14:44] jdstrand: and .12 although released, can be used as a bug target [14:44] jdstrand: when you update bugs like you did just now would you mind also flipping the milestone to include this information [14:44] ogra_: it ignores /etc/network/interfaces, yes [14:44] right [14:44] ogra_: but not interfaces.d [14:44] jdstrand: this is very useful for looking at changes per whole milestone [14:44] ah ! [14:44] ogra_: not sure when this was introduced but nobody added support for that in nm [14:45] and that is what we're fixing [14:46] i think i.d exists forever (years for sure) but hasnt been widely used [14:47] is robert ancell somewhere far away from europe, timezone-wise? [14:47] zyga, only australia ... not that far [14:47] ah [14:47] (could be worse ... like .nz) [14:47] ok, I'll just talk to him later tonight [14:48] er. wait, it's Friday [14:48] he [14:48] well, on Sunday then [14:50] ogra_: maybe that is the reason why :-) [14:50] yeah :) [14:51] * ogra_ hugs morphis and awe [14:51] :-) [15:14] smoser it is not in snapcraft.yaml where the change is needed but the plugins instead [15:20] sergiusens: the logs suggest that npm *is* being called in pull though [15:20] oh, no [15:20] bah. [15:20] ok. so 2 changes needed. [15:20] I must have misread it [15:21] so.. i have figured it out. [15:21] sergiusens is right, it's just about moving the dep install into the pull phase [15:21] as documented npm pays attention to HTTP_PROXY and HTTPS_PROXY as it says [15:21] that i simply not true [15:21] however, you can make it care with --proxy= and --http-proxy= [15:22] so i'm looking at a change to the nodejs plugin that will add --proxy= and --http-proxy= according to environment variables [15:22] smoser it is really not a proxy problem; network is disabled for `build` from launchpad itself [15:22] sergiusens, sure, but it doesnt read proxy anyway [15:23] so moving it to another stage doesn't fix it unless you make it respect proxy, right? [15:23] smoser npm is supposed to read http_proxy and https_proxy [15:23] or do they have un-fettered access to internet in pull [15:23] sergiusens, yes. it is documented as doing so [15:23] it does not [15:24] elopio ^ maybe reopen the PR [15:24] Pharaoh_Atem: does this look okay? https://github.com/snapcore/snap-confine/pull/121 [15:24] PR snap-confine#121: Allow the use of capabilities over setuid bit [15:24] hi everyone once again am here :D [15:25] zyga: LGTM [15:25] with updates on snapcraft-gui :P [15:25] Pharaoh_Atem: will setcap be a problem for fedora's %install target? [15:25] Pharaoh_Atem: I suspect it runs under some sort of fakeroot but I'm not sure [15:25] (does it?) [15:26] smoser: sergiusens: the problem seems to be when http_proxy is http:// and https_proxy is https:// [15:26] check out https://github.com/keshavbhatt/snapcraft-gui [15:26] rpm runs chroot() for all actions, including building packages, I believe [15:26] smoser: have you seen https://bugs.launchpad.net/snapcraft/+bug/1611372 ? [15:26] Bug #1611372: add proxy support for nodejs plugin [15:26] chroot is one thing, does it run as root so that setcaps can run [15:26] * zyga just goes to try [15:26] zyga: though the best place to ask these things is in #rpm.org [15:26] ok [15:28] zyga: you'll need libcap as a BR though [15:28] err [15:29] zyga: you'll need /usr/bin/setcap [15:29] as a BR [15:29] fuck [15:29] it's /usr/sbin/setcap [15:30] elopio, hm.. [15:30] as BR? [15:30] my path was not goign to be to set config ('npm config') [15:30] build requires? [15:30] that's okay, that's easy [15:30] but to set flags on the npm install line [15:31] npm install --proxy= --https-proxy= [15:31] which works [15:32] Pharaoh_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 need [15:32] Pharaoh_Atem: over weekend I'll look at selinux for the socket [15:32] and maybe more :) [15:33] Pharaoh_Atem: I'm going to break and spend some time with my family, I'll grab you next week :) [15:33] have a good weekend everyone! [15:33] bye [15:33] hm.. [15:33] tyhicks: https://github.com/snapcore/snap-confine/pull/121 [15:33] PR snap-confine#121: Allow the use of capabilities over setuid bit [15:33] zyga: it'd be awesome if you could get the alternate path stuff done today [15:33] Pharaoh_Atem: for snap-confine it is ready upstream, for snapd it was (sans test) for a while [15:36] anybody know what this problem is: [15:36] $ sudo snap install hello-world [15:36] $ hello-world [15:36] multiple nvidia drivers detected, this is not supported [15:36] [15:36] can't check bugs because launchpad.net/snappy is timing out for me [15:37] barry: there's a bug for that [15:37] barry: I do [15:37] barry: yes, one sec [15:37] cool, thx [15:37] barry: https://bugs.launchpad.net/snap-confine [15:37] barry: ideas welcome [15:37] barry: if you come up with something simple it will be fixed in the next release [15:38] * barry looks [15:38] oh alberto suggested an idea [15:38] https://bugs.launchpad.net/snap-confine/+bug/1615248 this one? [15:38] Bug #1615248: ubuntu-core-launcher nvidia driver detection is bogus [15:38] sound like a plan if security agrees with it :) [15:39] tyhicks: 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 mount [15:39] tyhicks: if so I can easily do that [15:39] barry: as a workaround, purge unused drivers [15:39] barry: sorry! [15:40] zyga: thanks, will try that [15:40] zyga: why does u-c-l care about nvidia drivers? just for context [15:41] nacc: because world is terrible and it has to [15:41] nacc: and for real... [15:41] nacc: because on classic there is no kernel snap so no nvidia modules or userspace so we have to take them from the classic world [15:41] nacc: so snap-confine has logic to find and bind mount the driver [15:41] nacc: into the snap execution environment [15:42] nacc: there's a different version of that for ubuntu and for arch, so far no other distro is supported [15:42] zyga: ah! [15:42] nacc: and they differ quite widely because of how packaging there works [15:42] zyga: sure, it was just a surprising bug to my naive view of what u-c-l woudl care about :) [15:42] nacc: and also among driver versions (nvidia switched to libglvnd or whatever that name is GL vendor) later [15:42] nacc: well, surprise ;) [15:43] nacc: I wish I had nvidia GPU with recent drivers to test [15:43] * zyga has to order and expense GTX 960 [15:43] how to browse all snap packages availble in store [15:45] kyrofa: can I interest you in https://bugs.launchpad.net/snapcraft/+bug/1615242 ? [15:45] Bug #1615242: etcd tree drives snapcraft dump plugin insane [15:47] zyga, 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] smoser: so npm install --proxy=http://... --https-proxy=https://... works ? [15:47] snap find wont load all packages :( [15:47] if so, that looks better than the other solution. [15:48] zyga, barry, well, long term the nvidia driver should really stop leaving cruft behind :) [15:48] ogra_: of course! ;) [15:49] that seems to go on since multiple releases ... [15:49] ogra_, how to browse all snap packages available in store any idea ?? snap find not working [15:49] btw, i'm not sure this will solve the problem because i think i'll still be left with nvidia-367 and nvidia-367-prime [15:49] bulldog, no idea, all i know is that it was disabled [15:49] bulldog, you could try if uappexplorer helps [15:50] ogra_, no i want list all packages available in snapcraft-gui [15:50] eeek ... mvo !! [15:50] (why did he just share the ps gadget with me again) [15:51] *pc [15:51] anyway. rebooting with fingers crossed [15:51] bulldog, well, they you have to wait til snapd grows such a feature [15:51] elopio, it does [15:51] but now i just seem to see HTTP_PROXY and HTTPS_PROXY working [15:51] ogra_, snap find was there for that but it is dropped feature idk why :( [15:52] so maybe all we need is to do the build in the pull [15:52] as was suggested [15:52] what environment does the buildd set up for us? [15:52] bulldog, no, it wasnt .... it just listed 100 random snaps [15:52] is that documented? [15:52] ogra_, oh :D [15:52] smoser: I don't know. You need somebody from launchpad. [15:53] ogra_, and what snap find does is look for package online ?? [15:53] yes [15:53] daem , but thats not gonna help me :D [15:55] just talk to the local snapd [15:55] wont look online ?? [15:55] it has a REST API [15:55] sure it will look online [15:55] cool [15:55] thats the only package DB that exists [15:55] so it has to look online :) [15:55] i wil allow users to look online and then allow them install via gui [15:56] ty :P [15:56] i think a gui to manage interfaces would abe a lot more interesting though [15:56] *would be [15:56] manage interfaces mean ?? [15:56] zyga, nacc purging the old drivers doesn't help [15:57] snaps are installable through the software center already, so there is a GUI installer [15:57] showing users the interfaces snap will use or what ? [15:57] but there is no GUI tool yet to manage the snap interfaces [15:57] only a few of them connect automatically [15:57] ogra_, am making all in one ,snapcraft-gui have a package manager too [15:57] well, as you like [15:58] ogra_, make me clear about managing interfaces [15:58] sergiusens, you said do the build twice ? [15:58] why not *only* in the pull as oppoosed to pull and build ? [15:58] what u mean ?? how you want user manage em [15:58] bulldog, well, snap interfaces ... snap connect ... guis for these ... [15:58] so that you can manage permissions for installed snaps [15:58] oh [15:58] currently that requires commandline [15:59] even if you installed through the software center [15:59] ogra_, is it a feature available in cli snapd [15:59] snap help [15:59] :P [15:59] ogra_, :D [15:59] ogra_: you used to have a dragonboard readme with how to setup wifi i used to cheat with :) [15:59] but now it's missing [16:00] ogra_, can we allow any snap allow interface access ?? with command line? [16:00] kgunn, http://paste.ubuntu.com/23093640/ [16:00] ogra_: thanks! [16:01] ogra_, what u mean by manage man ?? [16:01] bulldog, no, only defined plugs can use defined interfaces [16:01] seb128, does gnome-software not use polkit right now? [16:01] plz , so what u mean by manage [16:01] Chipaca, most likely [16:01] bulldog, manage the connections [16:02] example please [16:02] ogra_, I imagined so; I'm trying to understand an email [16:02] bulldog, "snap interfaces" [16:02] seen that [16:02] Chipaca, no it doesn't, why would it? [16:02] bulldog, https://github.com/snapcore/snapd/blob/master/docs/interfaces.md [16:02] ogra_, let me check it [16:02] Chipaca, that was not needed until those recent snapd changes [16:03] seb128, I ask because robert ancell's first approach to snapd was adding polkit support [16:03] seb128, no admin rights for installing packages ? [16:03] Chipaca, right, which the snappy team rejected [16:03] seb128, so I imagined that was how you wanted to do it [16:03] i would have thought sw-center asks for a pw [16:03] ogra_, aptdaemon does [16:03] ah [16:03] google making a non linux based OS .DAEM :@ [16:05] 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-system [16:06] it'S just a kernel after all === mup_ is now known as mup [16:06] ogra_, am not a IT Student ,what u think about my future ? lol [16:07] choosing Biology as my subjects in school was biggest mistake i made :( [16:07] ogra_: 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 myself [16:07] barry, indeed purging doesnt help :) you need to remove the dirs to cheat the check mechanism [16:08] ogra_: 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:09] slangasek, oh, did you just share the pc gadget with me ? [16:09] (silly that the store doesnt tell who actually did that share request) [16:09] ogra_: hmm? no [16:09] ah, well, then it was mvo [16:10] ogra_: I have no store privs :) [16:10] :) [16:10] * ogra_ neither [16:10] ogra_: oh, but it was also just shared with me :D [16:10] * ogra_ pokes LP with a pointy stick ... [16:11] ogra_: does this mean I should be able to upload the snap now? [16:11] timeouts galore [16:11] slangasek, yep [16:11] wow [16:11] slangasek, oooooh !!!!!!! [16:11] * ogra_ dances [16:11] ogra_: 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 appreciated [16:11] slangasek, tell me when i can drop the grub packages :) [16:12] haha [16:12] not yet [16:12] (just saw your change) [16:12] well, go ahead and upload ... if edge breaks it breaks ... its edge after all [16:12] (just dont release it to stable :) [16:13] not 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] slangasek, its one checkbox to unpublish it ... iirc the store just falls back to the former version then [16:14] ah, right, udf doesnt have mbr handling at that level for grub [16:17] cyphermox, armhf http://people.canonical.com/~ogra/snappy/ubuntu-core_360.snap ... arm64 http://people.canonical.com/~ogra/snappy/ubuntu-core_361.snap [16:17] ogra_: yes, me [16:17] (i dont have x86 ones) [16:18] mvo, ah ... did anything change that you shared it again with me ?= [16:18] or was that group vs user ? [16:18] ogra_: I think for some reason you were not listed as a collaborator [16:18] well, i had access :) [16:18] ogra_: in that case, do you happen to also have the other snaps I need to build an armhf image? [16:18] (preferably the same ones you used) [16:19] slangasek: I'm writing a mail now about this, but you are already ahead of me (like always :) [16:19] slangasek: 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 work [16:19] cyphermox, just pi2-kernel and pi2 or pi3 for a pi image ... and dragoboard + dragonboard-kernel for a dragonboard image ... you need the udf snap [16:19] (installed i mean) [16:20] ok [16:20] 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 UI [16:21] ogra_: you can control that list too [16:21] oh, i didnt know [16:21] oh, kyrofa is a powerful man :) [16:22] * ogra_ notes he has ubuntu-core access :) [16:23] well, for one I see /var/lib/console-conf is not a writable path; so console-conf explodes because of that [16:25] cyphermox: 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:27] cyphermox: 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] note that i made a change to that package yesterday ... so your changelog might be behind [16:27] ogra_: 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 publish [16:28] yeah [16:28] you need to accept the invide to th3e pc gadget still :) [16:28] (says the store) [16:29] yawp, accepting now [16:36] slangasek: doesn't seem to me like it's a different version of ubuntu-core-config at all [16:37] oh, wrong ppa [16:38] 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-conf [16:40] it still doesn't explain why everything seemed to be working correctly when I and mwhudson did the testing on amd64. [16:41] did you build with the right PPAs and proposed enabled ? [16:41] yes [16:41] when creatinmg your ubuntu-core [16:42] then this is indeed weird [16:43] cyphermox: surely, the difference is some dependency in *our* ppa that is missing from snappy-dev [16:43] not to explain these failures [16:43] no [16:43] there is a writabvle dir missing, that cant be due to a dependency ... [16:44] well I'm simply going to copy all the packages to our PPA, and build an image from there [16:44] could be due to a a version number not being high enough though [16:44] ubuntu-core-config - 0.6.40+ppa6 [16:44] that is whats in the snappy-dev PPA [16:44] yours needs to be higher to be considered indeed [16:45] no, ours needs to be merged into the snappy-dev ppa [16:45] sure, i was referring to cyphermox' test buiulds [16:45] wheer he added your PPA additionally [16:46] cyphermox: please don't copy things from snappy-dev ppa to ours, there really should be no need [16:46] the only way we can reliably figure this out is to reduce the delta between the two ppas, and build more images [16:46] I won't do this in "prod" [16:46] dont hold back :) [16:46] there is no prod [16:47] well, snappy-dev must not be broken, is this not the case?\ [16:47] there is only edge (where you admittedly can annoy devs) [16:47] cyphermox: ~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 clutter [16:47] snappy-dev can be broken for a bit, as long as you unbreak [16:47] cyphermox: I see the ppa doesn't actually have a ppa dep that I thought it did; I'll add that now [16:48] it shouldn't matter for the build actually, snapcraft.yaml defines the PPAs to use [16:48] ah [16:48] for ubuntu-core ? [16:48] nope [16:48] yes [16:48] the Makefile does [16:48] well, that code branch [16:48] unless you changed my setup drastically [16:49] the Makefile, then [16:49] cyphermox: in which case, you just need to be sure that everything present in snappy-dev is merged into ours [16:49] snapcraft.yaml only defines the outer chroot [16:49] not copied wholesale [16:49] the actual build PPAs come from the live-build call in the makefile [16:50] http://bazaar.launchpad.net/~snappy-dev/ubuntu-core-snap/trunk/view/head:/Makefile [16:50] from the "ENV" var at the top [16:50] yes [16:51] if you dont explicitly add it to the EXTRA_PPAS var in there it wont be taken into account inside the live-build chroot [16:51] PROPOSED=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 clean [16:52] LGTM? [16:52] yeah [16:52] that isn't the issue [16:57] in snapcraft.io, it says: [16:57] ~/snap//current/ ← $SNAP_USER_DATA that can be rolled back [16:57] ~/snap//common/ ← $SNAP_USER_COMMON unversioned user-specific data [16:57] is that still true? [16:57] i don't see any "current" or "common" directories inside ~/snap/ [16:58] just x[0-9] directories [16:59] rogpeppe: they are in /var/snap [17:00] rogpeppe: please file a bug about that. [17:00] elopio: ok [17:02] elopio: so what's the role of the directories in ~//x[0-9] ? [17:02] elopio: they definitely seem to be used [17:04] Thats odd. I use the image from all-snaps on my device, it shows the three snaps, but one that I create does not... [17:05] rogpeppe: your snap can read and write files in that directory. [17:05] wililupy, which ubuntu-device-flash snap did you use ? is it up to date ? [17:06] elopio: so it's independent of current and common? [17:06] elopio: it seems that $HOME points there [17:06] ogra_: version 10 Rev 9 in devmode [17:06] I'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] yeah, sounds correct [17:07] elopio: yeah, it's $HOME, because i was being confused because i ran the command and it wasn't finding data files that i was expecting [17:07] I 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:09] CMAKE_C_COMPILER [17:09] ugh ignore that [17:09] wililupy, which ubuntu-snap version ? [17:09] err [17:09] ubuntu-core [17:10] should be in the 360's somewhere [17:10] ogra_, 16.04.1 Rev 352 [17:10] that sounds outdated [17:10] Do 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/155385333 [17:11] "No CMAKE_C_COMPILER could be found" [17:11] "No CMAKE_CXX_COMPILER could be found" [17:11] ? [17:11] ogra_ I just ran sudo snap refresh --edge ubuntu-core and it updated to 366 [17:11] yay [17:11] see if that works then [17:11] I'll give it a shot after my snap finishes building. [17:13] Hmmm I see that other's jobs are failing too ---> https://travis-ci.org/ubuntu/snappy-playpen/builds/130943227 [17:14] Another 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:15] Bug #1617399 opened: snapcraft.io documents persistent state incorrectly [17:15] i dont think rollback is there yet [17:16] ogra_, I'll have to remember that for my demo ;) [17:16] is there any way i can give permission to a snap to open a page in a web browser? [17:16] i see code landing for it regulary ... but doesnt look like it released yet [17:18] rogpeppe, theoretically snapd-xdg-open should provide that ... but i think it is still broken [17:18] (install the deb and see ) [17:18] ogra_: ah, i haven't seen that [17:19] ogra_: is that an interface that can be installed? [17:19] but mind you, i think it still doesnt work right ... [17:19] no, shouldnt need any interfaces [17:19] it will become part of snapd or a dependency or some such [17:19] ogra_: this particular code uses sensible-browser to open the web page [17:20] ogra_: are you saying that would need to change? [17:20] well, it hands it through to the host [17:20] but that bit doesnt work yet [17:20] ogra_: so... how does this work? the snap executes a command called "snapd-xdg-open " ? [17:21] ogra_: or rather, i guess, how *would* it work if it did work? :) [17:21] if your app tries to open an url it intercepts that [17:21] and then calls xdg-open on the host [17:21] ogra_: what does it mean to "open a URL" ? [17:21] open a web link [17:21] ogra_: what does my app need to do to trigger that? [17:21] ogra_: when you say "open", what's that? [17:21] iirc only the http mime types are implemented yet [17:21] ogra_: call the open command? [17:22] s/call/exec/ [17:22] if you click a url on an app ... [17:22] ogra_: this is a command-line app [17:22] that would spawn something in the os ... [17:22] ogra_: there's no UI [17:22] PR snapcraft#760 closed: Removed statements not used by the tests [17:22] but since your snap doesnt run in an actual os this call is handed over to xdg-open on the host [17:22] oh, not sure ift works from some non UI call [17:23] ogra_: so my code would need to exec the xdg-open command? [17:23] you could try to just call xdg-open directly and hope for the best [17:23] ogra_: odd, the browser code calls xdg-open in freebsd, netbsd and openbsd but not linux [17:23] but it might only be hooked into the desktop launchers ... so no guarantee that anything happens if you do that from a cmdline app [17:23] s/browser/open-browser/ [17:24] ogra_: ok, so a command line app probably can't open a page in a web browser. [17:24] probably [17:24] * ogra_ has no idea ... :) [17:24] ogra_: fair enough :) [17:24] i know it is supposed to work from gui apps (but currently doesnt) [17:24] rogpeppe the code or the execution of such code? [17:25] sergiusens: ? [17:25] maybe it defaults to some sort of os system() since it cannot find xdg-open in path [17:25] * ogra_ wonders why everyone and his grandma tries to snap neovim :) [17:26] because vim is evil [17:26] :) [17:26] lol [17:26] right [17:26] sergiusens: this is the code: https://github.com/juju/webbrowser/blob/master/webbrowser.go [17:26] of course, the vim codebase finally had DOS support removed [17:26] geez, really ?!? [17:26] the world ends ! [17:27] sergiusens: it would be quite nice if we could make that code work in a snap; or at least return an appropriate error. [17:30] ogra_: yep, vim 8.0 will be the first version of vim to not be able to run on DOS [17:31] not a big loss if you ask me :) [17:37] anyone able to review/merge zyga's PR? https://github.com/snapcore/snapd/pull/1745 [17:37] PR snapd#1745: overlord/snapstate: respect SnapMountDir in tests [17:37] rogpeppe it is indeed in the code [17:38] I'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] Bug #1570506: Snapcraft should use bash-completion [17:39] rogpeppe oh and sensible-browser is `alternatives` based. ogra_ you sill love this :-) [17:39] rogpeppe I would switch to xdg-open [17:39] about the error though, the code should raise the error, is it not? [17:40] oh, lovely [17:40] ogra_: how can I make sure my ubuntu-device-flash or whatever is good enough to create proper images? [17:40] cyphermox, just make sure to have the latest snap [17:41] mvo updates it regulary [17:41] I don't have snaps [17:41] PR snapd#1684 closed: many: drop ubuntu-core-snapd-units package, use release.OnClassic instead [17:41] then you cant use udf [17:41] we only hae it as a snap now [17:41] *have [17:42] how is it called? [17:42] $ snap install ubuntu-device-flash [17:42] error: cannot install "ubuntu-device-flash": snap not found [17:43] hey hatch! does it fail for the commands? Like snapcraft p ? [17:43] --devmode --edge [17:43] (or --beta ... should both work) [17:45] elopio: those work but I can't do `snap install he` [17:45] hatch: right, those have never worked, so no regression. Let me try to find the bug. [17:45] where 'he' is the hello world snap in my current path [17:45] elopio: ohh ok, I looked but maybe my search foo is weak :) [17:45] yeah, thats a very old bug ... [17:46] open since snap's childhood [17:46] haha, it happens :) [17:46] hatch: https://askubuntu.com/questions/795253/how-can-i-enable-auto-completion-for-the-snap-command/795412#comment1199447_795412 [17:46] thanks elopio [17:47] bug 1600083 ... but i think there is an older one [17:47] Bug #1600083: 'snap' tool bash completion does not complete local file names [17:47] there must be one in the 15xxxx numbering [17:47] hatch: snapcraft however has no bug for $ snapcraft upload he. Could you please file one? [17:48] elopio: I'd imagine that would simply be an expansion on https://bugs.launchpad.net/snappy/+bug/1600083 no? [17:48] Bug #1600083: 'snap' tool bash completion does not complete local file names [17:49] hatch: no, because it's in a different project. https://bugs.launchpad.net/snapcraft [17:49] ohh I see [17:49] sure [17:50] thank you. [17:51] ogra_: presumably I shouldn't have to download the gadget and kernel snaps locally to be able to run this correctly? [17:51] right [17:51] note you need sud and the full path though [17:51] sudo /snap/bin/ub.... [17:51] of course [17:51] that's not the issue [17:51] it can't find the gadget snap [17:51] which one ? [17:52] (show me your command) [17:52] why don't you paste me a full command I can use? [17:52] because i would have to type it myself :P [17:52] (it isnt like i have 500 terminal windows open here keeping old commands around :P) [17:52] sudo /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.snap [17:53] --gadget pc [17:53] the rest looks fine [17:53] I tried that too [17:53] --enable-ssh is a no-op [17:53] oh [17:53] s/rolling/16/ [17:53] havent seen that one in a while :) [17:54] thing is, there is just about no documentation on all of this [17:54] that should fix you [17:54] yeah, it does [17:54] and it is obsolete code :) [17:54] slangasek, and barry will make sure we have proper docs for image building once we have a tool :) [17:55] ogra_: I really don't care which tool, as long as I can make an image that works. [17:55] udf is really dead and buried since quite some time ... [17:55] which is why it isnt promoted anywhere or any docs are put up [17:55] mvo wrote a long mail when it switched to be a snap though [17:56] documenting the command call [17:57] why isn't that in a wiki or doc somewhere? [17:58] because it changes nearly weekly [17:58] or used to at least [17:59] and now it is dead [18:00] right, surely something replaces it? [18:00] that thing should also be documented. [18:00] yes, ubuntu-image [18:00] as i said above [18:01] and how do I use that? [18:01] it isnt ready yet [18:05] cyphermox: you can grab it from git@github.com:CanonicalLtd/ubuntu-image.git and follow the instructions in docs/notes.rst for the moment [18:05] which is incredibly hairy [18:05] until I validate the mbr work ;) [18:05] that's fine [18:06] for now ubuntu-device-flash will do; if there are any more days of mucking necessary, I will dogfood ubuntu-image. [18:09] 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 devices [18:09] Bug #1617231: subiquity kills serial console after regular update [18:10] (beyond subiqity not respecting that the system already has user and network setup) [18:10] i'm not sure what exactly you use as UI library ... but colors are definitely a very bad idea for that ;) [18:12] ogra_: 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:13] as for the colors; something to look into [18:13] i definitely dont [18:13] then hitting Done should DTRT [18:13] (i mean, yes, i might want to use another user ... but definitely not switch away from ifupdown for my wlan) [18:13] everything is switching away from ifupdown [18:13] the tool seems to detect there is a working connection [18:13] console-conf doesn't give you the option to switch away from ifupdown for wlan at the moment [18:14] but doesnt accept it [18:14] well, wlan is admittedly probably not working correctly right now, netplan probably doesn't do anything to make it work [18:14] slangasek, well, currently it doesnt do anything at all except hogging 50MB in my ram and breaking all serial consoles :P [18:15] (and being unkillable ... even with sudp kill -9 ) [18:15] *sudo [18:15] (which is very very odd) [18:16] ogra_: the last is certainly not a bug in our package ;) [18:16] the first two are serious bugs, yes [18:17] well, i have no explanatiojn for the last at all [18:17] I guess the first means that subiquity doesn't currently have a proper serial console driver [18:17] sure [18:17] but it's not a bug in our package, because kill -9 is handled in the kernel [18:17] yeah [18:23] * ogra_ goes afk [18:23] 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] ogra_: as does cyphermox now :) [18:23] ah, cool [18:24] snappy-dev people can also trigger ubuntu-core builds, but i think the store currently auto-accepts only mvo and me for the uploads [18:24] elopio o/ [18:24] Hello elopio [18:25] elopio: I am interested in charming some container stuff, such as kubernetes [18:26] hello guys. How to exchange copy plugin with dump: "files: ./*: usr/share/kicad/modules/" ? [18:27] lazyPower: hello mbruzek: hello [18:28] mbruzek: 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] elopio - we only have the client binary packed as a snap, and its using the dump plugin [18:29] the build env for kubernetes wont "just work" using hte golang plugin [18:29] we need support to invoke make targets along with exports [18:29] elopio: Is there the ability to run a script. [18:30] elopio: How to exchange copy plugin with dump. Now with copy plugin "files: ./*: usr/share/kicad/modules/" ? [18:30] mbruzek: lazyPower: you'll find this one interesting: https://github.com/ubuntu/snappy-playpen/pull/223/files [18:30] PR ubuntu/snappy-playpen#223: Add the etcd snap, in devmode [18:30] interesting, this is more complex than the etcd snap i came up with [18:31] but it doesn't run the daemon either [18:31] stokachu hey, where is your snapcraft.yaml for conjure-up? [18:31] our 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] eldarkg: hello. I'm not too sure, I would have to play with it but I'm testing snapd atm. [18:32] sergiusens: we need a guide to migrate from copy to dump. It's not easy. [18:32] elopio: ok ) [18:32] elopio ok [18:32] lazyPower: ah, I have that question. Most of the guides tell you to launch the binary, instead of using an autostart daemon. [18:32] sergiusens: Hi. How to exchange copy plugin with dump. Now with copy plugin "files: ./*: usr/share/kicad/modules/" ? [18:32] elopio it should be if people had been using organize/snap/stage/filesets more, but copy got the need for that out [18:32] well, its like this elopio [18:33] we could easily add daemon: simple, but I didn't know if that was the right thing to do. [18:33] if you start etcd, and hten make a cluster configuration change, and you have a dirty data dir, you're going to have a bad time [18:33] once raft takes over, its slightly easier, but its still not a stellar process [18:34] I love that you people are here ^_^ I just had toy examples, now we can make it really useful and find better blocker bugs. [18:35] lazyPower: mbruzek: so, how can I help? Should we start with one project and make it awesome? [18:36] PR snapd#1770 opened: overlord/assertstate,asserts/snapasserts: give snap assertions helpers a package, introduce ReconstructSideInfo [18:37] elopio - 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:38] sergiusens: Have you answer? I try organize but it doesn't understand './*' [18:38] elopio I running the kubernetes build in a snap. [18:38] while 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 unblocked [18:38] we're stuck on that portion in the mean time, as its a baseline dependency for k8s [18:39] lazyPower: 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:40] "its too hard" - neverrrr [18:40] I have seen lool and jdstrand comenting about docker. They probably know about the timeline. [18:41] oh i'm looped in on some of those discussions and we're a ways out from having anything ready for us to consume [18:41] re; etcd - thats fine by me, but we also need to talk about how thats going to function in reality [18:41] clustering etcd manually is painful [18:41] elopio: Is it possible to have access to media storage like USB flash card? [18:41] we've had a lot of success clustering with juju [18:41] elopio: from snap app [18:43] eldarkg: it will be: https://bugs.launchpad.net/snappy/+bug/1604885 [18:43] Bug #1604885: Access to mounted USB drives [18:44] elopio: thanks. sorry for noise [18:44] lazyPower: 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] elopio - no worries, and yeah [18:44] thing is [18:44] 1 sec [18:44] as 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:45] eldarkg: hey, no worry, you are not noise. Is it your first time here? [18:45] sergiusens, elopio https://github.com/snapcore/snapcraft/pull/762 if you're interested. [18:45] PR snapcraft#762: node plugin: run build in pull phase to download dependencies [18:45] elopio: yes [18:45] elopio - 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 charm [18:45] so i dont know how keen they are giong to be moving from archive to a snap, as resources had the same property [18:46] PR snapcraft#762 opened: node plugin: run build in pull phase to download dependencies [18:46] smoser: oh, that could be a mess, but it's just what sergiusens was suggesting. Call build twice. [18:46] however, I didn't imagine pull calling build. Hum... [18:46] i'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] eldarkg: welcome! [18:46] http://paste.ubuntu.com/23094486/ <-- [18:47] elopio: thank you :) [18:47] there, do a 'npm install' with internet, and then take away internet and do it again. [18:48] sorry people, I have a meeting. BBS. [18:48] elopio: bye [18:49] who can to answer what status of https://bugs.launchpad.net/snappy/+bug/1611063 [18:49] Bug #1611063: can't mkdir SNAP_USER_COMMON directory [18:52] sergiusens: can you tell anything about this bug https://bugs.launchpad.net/snapcraft/+bug/1617002 ? [18:52] Bug #1617002: LP build: "/usr/bin/ld: cannot find -llibrary" [18:57] roadmr: hi! can you pull r719 of the review tools. not an emergency [18:59] roadmr: oh, actually, hold off on that (the commits are fine, I forgot I wanted to add a few more checks) [19:03] PR snapd#1771 opened: store: refresh expired device sessions [19:05] jdstrand, what is happening here? http://pastebin.ubuntu.com/23094551/ [19:05] jdstrand, how is that possible without the snapd-control interface? [19:05] (FYI, this is the released snapd, not my PR) [19:07] kyrofa: that's curious (cc tyhicks) [19:08] jdstrand, I've verified, the only place /run/snapd.socket is present is the snapd-confine interface apparmor snippet [19:08] And since I can't ls /run or /run/*, there isn't something else covering that [19:09] kyrofa: 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 allowed [19:09] Indeed [19:09] kyrofa: s/you can cat /run/snapd.socket/you can cat /run/snapd.socket to verify/ [19:09] jdstrand, indeed, and I can't dial it or anything either [19:09] lazyPower: 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:10] But the ls... and os.Stat I tried to do... [19:10] Which I figured would fail. Doesn't! [19:10] but that sounds like the problem is now 4 times harder. [19:10] yikes, that's not right [19:10] tyhicks: I think kyrofa discovered a bug [19:11] tyhicks: the access to the file is not allowed. but ls /foo/bar is allowed when there is no '/foo/ r,' rule [19:11] yeah, I'm going to narrow down if it specific to socket files or regular files [19:11] and compare to older ubuntu releases to see if it is a regression [19:11] thanks [19:12] kyrofa: thanks for bringing that up [19:12] jdstrand, of course, thanks for looking into it tyhicks! [19:12] np [19:12] sergiusens: http://github.com/conjure-up/conjure-up [19:13] tyhicks: do you need me to do anything? one thing I thought that might have an impact is that /run is bind mounted on classic [19:13] jdstrand: not right now [19:13] jdstrand: that's a good though [19:13] kyrofa: did you see this on classic? [19:13] s/though/thought/ [19:13] jdstrand, indeed [19:13] kyrofa: 16.04? [19:13] jdstrand, yessir [19:13] k [19:13] tyhicks: ^ [19:13] thanks [19:13] tyhicks: thanks! :) [19:14] kyrofa: hi. can you tell anything about this bug https://bugs.launchpad.net/snapcraft/+bug/1617002 ? [19:14] Bug #1617002: LP build: "/usr/bin/ld: cannot find -llibrary" [19:16] eldarkg, you're probably missing a build-package [19:17] That you have installed on your build machine, but isn't available by default [19:17] kyrofa: what pkg? [19:18] kyrofa: I build ngspice from src in this snapcraft.yaml [19:18] eldarkg, oh, I missed that :) [19:18] anyone know what's up with travis? [19:18] kyrofa: ok) [19:19] eldarkg: i'm guessing that you need to tell kicad's build where to find the staged ngspice [19:19] *libngspice [19:19] trying to put otter-browser in the playpen [19:19] https://github.com/ubuntu/snappy-playpen/pull/221 [19:19] PR ubuntu/snappy-playpen#221: Added otter-browser [19:20] nacc: why in local machine this is not need? [19:20] eldarkg: on your local machine are you running `snapcraft build`? and do you have a system libngspice installed? [19:21] eldarkg: on local machine I use `snapcraft prime`. Yes installed [19:22] eldarkg, is there a reason you're building that lib from source instead of using one from the archive? [19:22] Ah, maybe there isn't one [19:22] eldarkg: right, i think you could start with just using stage-packages: libngprime (or what the package is called)? [19:22] if it's packaged, that is [19:22] kyrofa: yes) [19:23] nacc: libngspice [19:23] eldarkg: err, yes, sorry! [19:23] nacc: isn't in ubuntu repo. It builds from src [19:24] eldarkg: ah i see [19:25] jdstrand: oops... sure, just let me know which revno you need [19:25] nacc: I think running of `snapcraft snap` on local and on LP should be identical shouldn't to use system libs. [19:25] roadmr: well, you could queue up r719 [19:25] roadmr: but I have another couple things to add [19:25] (unrelated to what's in there) [19:25] kyrofa: 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] ratliff: so just trying to save you time [19:26] roadmr: ^ [19:26] ratliff: nm [19:26] jdstrand: ok, will do [19:26] nacc, yeah probably, eldarkg happy to help in just a sec, trying to schedule the all-important internet installation [19:27] kyrofa: ok. I waiting [19:28] jdstrand, kyrofa: quick update - this is not a regression in behavior [19:28] nacc: but how kicad build found other build-packages like libboost? [19:28] jdstrand, kyrofa: I've tested on all LTS releases all the way back to 12.04 [19:28] tyhicks, yikes [19:28] jdstrand, kyrofa: https://paste.ubuntu.com/23094631/ [19:29] smoser looks interesting, aesthetically though I'd prefe to not call self.build from pull, better factor out the common things in build :-) [19:29] I'll glance at the code and see if I can spot something [19:29] eldarkg: you specificed 'libboost-all-dev' in build-packages [19:29] sergiusens, i did that at first [19:29] but then the diff looked bigger. [19:29] tyhicks: that's interesting [19:29] nacc: yes. but I don't set to kicad where it should find libboost [19:30] sergiusens, i have no strong feeling at all on it. [19:30] eldarkg: yes, but you told it to install it in the snap build environment [19:30] eldarkg: and so it's installed int he 'system' level view, whichis probably the default for kicad's build [19:31] <- lunch. [19:31] eldarkg: whereas your part for ngspice maybe is not [19:32] nacc: how to install library compiled from source to snap build env? [19:32] eldarkg: 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] Some people go out to lunch. But when elopio wants to eat, lunch comes to him [19:33] nacc: ok. thanks to help [19:34] what about this bug https://bugs.launchpad.net/snappy/+bug/1611063 ? [19:34] Bug #1611063: can't mkdir SNAP_USER_COMMON directory [19:35] -> lunch. I have to cook today. [19:36] Hahaha [19:36] kyrofa: you don't forgot about me ? :) [19:37] eldarkg, still on the phone, sorry [19:37] eldarkg, I can talk, but can't think ;) [19:37] Bug #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 (Ubuntu):Confirmed> [19:37] kyrofa: ahh OK :) [19:40] Bug #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 (Ubuntu):Confirmed> [19:44] mup, [19:44] nick/ bulldog [19:44] Alright eldarkg, off now === bull_ is now known as bulldog [19:45] kyrofa: ok [19:45] Let me take a look here [19:45] I suspect nacc was right, though [19:45] kyrofa: I listen you [19:45] good night guys :( [19:46] i'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 yet [19:46] *me [19:49] nacc: to find libngspice? [19:50] nacc, you don't need to squash and then unsquash, just look in the prime/ directory [19:50] kyrofa: ah true, except i do everything via cleanbuild :) [19:50] nacc, ah, then you're a bit stuck [19:50] i guess i could flip it and start a container that is my building env [19:50] and then what you suggest woudl work [19:50] i'll retool my brain :) [19:50] nacc, that's what I do-- I fire up an ephemeral container every time someone asks me to debug something (like now) [19:51] OerHeks, haha yyou here too ? [19:51] kyrofa: yep, makes sense -- i almost wish that was what cleanbuild did [19:51] kyrofa: then i could drop to that container's shell on failure [19:51] nacc, actually, we're working on just that [19:51] In fact, it may have landed already [19:51] kyrofa: awesome! [19:51] sergiusens can give you more info [19:51] kyrofa: great, thanks! [19:53] nacc use master and do snapcraft cleanbuild --debug [19:53] nacc, that'll be in the next release [19:53] sergiusens: cool, will try that [19:53] kyrofa: ah great, that was going to be my next question :) [19:54] nacc, we release weekly [19:54] yep [19:54] who know status of https://bugs.launchpad.net/snappy/+bug/1611063 ? [19:54] Bug #1611063: can't mkdir SNAP_USER_COMMON directory [19:54] eldarkg, I'm working on building this, but my internet is dreadful, this will take a bit [19:55] kyrofa: how many? [19:55] It says 37 minutes [19:55] But it jumps to 50-something too [19:56] kyrofa: ouuu. what time in your country ? my 22:56 :) I want to sleep :) [19:56] eldarkg, 1300, haha. Go to bed, come back Monday and ping me [19:57] kyrofa: ok :)) [19:57] Or if I figure something out, I'll put it on the bug [19:57] kyrofa: ok [19:57] kyrofa: you know something about https://bugs.launchpad.net/snappy/+bug/1611063 ? [19:57] Bug #1611063: can't mkdir SNAP_USER_COMMON directory === davmor2 is now known as davmor2_hols [20:03] eldarkg, yeah I do [20:03] kyrofa: what? [20:04] zyga, are you still around? I think the latest snap-confine SRU fixes that bug, right? ^^ [20:07] eldarkg, anyway, that was caused by a lack of communication between two tools, snapd and snap-confine [20:07] One thought the other tool was creating it, so neither did :P [20:08] If it's not fixed already it'll be fixed in the next release [20:08] kyrofa: ok. [20:08] kyrofa: good bye. I'll ping you on Monday [20:08] eldarkg, sounds good, talk to you then [20:17] sergiusens: 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] Received 403: '{"error_list": [{"message": "Developer profile is missing short namespace.", "code": "user-not-ready"}]}' [20:18] command was 'snapcraft push pc_16.04-0.5_all.snap', snapcraft help output doesn't give any clues [20:19] slangasek yeah, talk to ev ;) [20:19] le sigh [20:19] slangasek you basically need to go to the store (myapps... and create that) [20:19] hmm [20:19] ev well you need to fix it faster :-) [20:19] ok, set [20:20] slangasek nice to se the error list stuff is working! I will implement a nicer error for that now ;-) [20:20] I 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 first [20:20] yeah, 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] There has been a problem while analyzing the snap, check the snap and try to push again. [20:20] ... [20:20] sergiusens: we should check for the short namespace on snapcraft login [20:21] ev how? as in with what api? or are you talking server side [20:21] slangasek if there was a problem, check your inbox [20:21] slangasek or click-review it [20:21] "found binaries for architecture 'all': ... ok then [20:23] sergiusens: 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] sergiusens: right, we’d need an API for it [20:23] ogra_: btw why is there a 16.04-0.5 in the store that's not in bzr? [20:24] but even with SSO usernames we’re going to have this problem [20:25] unless there’s some magic way of making them required for anyone who already has an account [20:28] Is 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:30] sergiusens: "check my inbox"> never received any email about this fwiw [20:32] wililupy: "snap install hello-world; hello-world.env |grep SNAP" [20:34] is the lack of support in an lxd a snappy or lxd issue? [20:34] (for running snaps, not building them) [20:39] jdstrand, ev: who can 'manually review' a gadget snap that I've uploaded? [20:39] slangasek: I can [20:40] slangasek: what is the store url? [20:40] jdstrand: cool, https://myapps.developer.ubuntu.com/dev/click-apps/5508/rev/5/ [20:42] slangasek: curious, do that use all the nifty new gadget yaml? [20:42] does* [20:42] jdstrand: yes [20:43] cool [20:43] slangasek: approved btw [20:43] mhall119: make a snap tut video or talk about it at the release party [20:43] jdstrand: thanks :) [20:46] jdstrand: 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:50] qengho: exactly what I was looking for! Thanks! [20:55] ahoneybun: if the venue is good for it, I can give a presentation [21:10] slangasek: nice! :) === tvoss_ is now known as tvoss [21:29] slangasek, i dont think so [21:31] (but i also dont really touch the x86 side in teh tree) [21:33] ogra_: you don't think so> you don't think why there's a version in the store that's not in bzr? [21:34] :) [21:34] fwiw I checked the contents and they were no changes except the version [21:34] so I ignore it [22:38] smoser: environment> easy enough to see from http://bazaar.launchpad.net/+branch/launchpad-buildd/view/head:/buildsnap, which is short enough [22:39] (it is not otherwise documented I'm afraid) [23:13] hmm. For some reason, when I build an image with ubuntu-device-flash and a custom kernel, it doesn't show any snaps installed.