[00:38] gunix: yes [06:37] morning [07:04] hey diddledan [07:04] if somebody that can explain snapd to me is online, please ping me [07:04] i do not understand how this system works and it amazes me that stuff like LXD works on archlinux via snap [07:19] mvo: morning [07:25] good morning mborzecki [07:26] PR snapd#4508 closed: New spread test for hardware-random-observe interface [07:37] 4495 needs a second review [07:41] PR snapd#4425 closed: config: add support for `snap set core proxy.no_proxy=...` [07:44] 4473 also needs a second review :) [07:44] PR snapd#4476 closed: overlord/{snapstate,configstate}, daemon: introduce refresh.timer, fallback to refresh.schedule [08:03] good morning [08:07] hey o/ [08:08] good morning :) [08:09] good morning kalikiana pstolowski and zyga-ubuntu ! [08:09] happy monday! [08:09] mvo, hey, what is the forecast on the strace support for snaps? [08:09] koza: if somone reviews my PR at least basic support will land for 2.31 [08:09] zyga-ubuntu: pstolowski: kalikiana: morning guys [08:10] koza: we want support for custom options as well, there is a PR for that too [08:10] koza: hey [08:10] 4473 is the strace pr that needs a second review :) [08:10] koza: there is also your motd PR that we need to land for 2.31, right? [08:10] mvo, but like days, weeks, months? :) [08:11] mvo, would be nice, Thibaut commented vi email, Ill change the PR accordingly today [08:11] koza: 2.31 is scheduled for beta this week and stable in ~4 weeks [08:11] koza: ta [08:11] mvo, nice! [08:11] koza: yeah, we are quite excited about strace too, its a popular feature [08:14] mvo: i'm looking at https://bugs.launchpad.net/snapd/+bug/1744433 so far got this: https://bugs.launchpad.net/snapd/+bug/1744433 this should make the message: 'error: cannot refresh "vlc": snap "vlc" has auto-refresh in progress' [08:14] Bug #1744433: 'snap refresh' is silent about changes in progress [08:14] mborzecki: aha, you have a pr already? [08:15] mvo: no :) trying to figure out if there's a nicer way [08:15] mvo: i can open a pr with this change though [08:16] mborzecki: what is your current diff, could you pastebin this please? [08:16] mvo: https://paste.ubuntu.com/26435923/ [08:16] sorry, paste the bug link twice in the previous message [08:18] mborzecki: no worries. will that help with the original issue? afaict mark did "snap refresh" and got "all snaps up-to-date" but in fact there were not, there were refreshing. so the message should be something like "vlc is refreshing" or similar. are we running a changeConflictError when a global refresh is running and a global refresh is requested again? [08:19] mvo: the error mesage on `snap refresh vlc` would be friendly, instad of changes you'd get 'auto-refresh' and so on [08:20] mvo: I think I should update 2.30 in opensuse today [08:20] the rest i have not figured out yet [08:20] mvo: and we have some bug reports on fedora front to inspect [08:20] mborzecki: aha, ok - yeah, making this friendlier is definitely nice [08:20] zyga-ubuntu: +1 for updates [08:21] zyga-ubuntu: where do the fedora bugs come from? their bugtracker? [08:26] mvo: yes, on bugzilla [08:26] zyga-ubuntu: ok, how bad do they look? [08:26] https://bugzilla.redhat.com/show_bug.cgi?id=1536895 [08:27] uhh, ok [08:27] I wonder why we did not caught this in testing :( [08:27] yes, it's surprising to me as well [08:35] I'll be back soon, just getting some quick food [08:35] zyga-ubuntu: looks like something we fixed recently [08:57] PR snapd#4513 closed: dirs: fix snap mount dir on Manjaro [09:11] PR snapd#4514 opened: overlord/snapstate: record the 'kind' of conflicting change [09:14] whoa, quickest reviewers in the west [09:15] Chipaca: morning [09:16] mborzecki: morning :-) [09:20] do we have a pedronis again this week, or is that next week? [09:21] Chipaca: i think he mentioned he'd be on vacation until 29th [09:22] mborzecki: I laud your detailed memory [09:22] haha, yeah, my wife would disagree :) [09:22] lol@ mborzecki [09:23] hey Chipaca good morning and happy monday! [09:23] mborzecki: she holds you to a higher standard :-D [09:23] mvo: good morning! monday's looking good indeed [09:30] Chipaca: hey [09:30] Chipaca: I added i386 [09:31] Chipaca: I didn't do accounts yet but ping me if you want to play and I'll do that quickly [09:31] zyga-ubuntu: awesome. I don't think I need it right now, but very good to know. [09:31] and I will change the power adapter for the dragonboard so that it can be on 24/7 [09:31] but that's in the evening as it's not a priority for anyone today [09:38] mborzecki: 4509 has another review [09:38] zyga-ubuntu: thanks [09:38] mvo: any news on bolt, ppc and other misery? [09:41] zyga-ubuntu: not yet, I was doing a 2.30 core image respin to exclude the microcode again this morning, I will focus on 2.31 next, part of this is bolt on ppc [09:42] wonder when the new 'working' microcode will be released [09:43] mborzecki: you are not alone here [09:43] mborzecki: btw, are you looking into the "snap refresh" output as well (if there is another refresh alreaady running)? [09:44] mvo: no, i've put is aside for now, i ended up going in circles [09:45] mborzecki: "working" or working? [09:45] mborzecki: ok, no worries, just wanted to check [09:45] mborzecki: I was considering looking but had no time for it yet :/ [09:46] mvo: go ahead, i'm poking around https://bugs.launchpad.net/snappy/+bug/1741486 now [09:46] Bug #1741486: failed snap try leaves snap symlink around [09:47] mborzecki: aha, nice! thats a good one too [09:47] btw. can we close https://bugs.launchpad.net/snappy/+bug/1743504 ? this was the unlucky fellow who basically had his filesystem bail out on him [09:47] Bug #1743504: Ubuntu 16.04 snapd service not working [09:51] mborzecki: looking [09:53] mborzecki: I closed it now [09:53] mvo: great, thanks [09:53] Bug #1743504 changed: Ubuntu 16.04 snapd service not working [09:53] mborzecki: thank you! how are we actually doing with "New" bugs? how many are not confirmed/triaged currently? [09:58] (a) wooo, baby steps progress is now tangible [09:58] (b) /me -> physio [09:59] zyga-ubuntu: silly question, do we bundle on opensuse? [10:00] mvo: yes, we do [10:00] zyga-ubuntu: excellent [10:00] mvo: (it's legan now) [10:00] legal* [10:01] zyga-ubuntu: I fixed bolt on fedora by sed things back to boltdb/bolt [10:01] zyga-ubuntu: that means we just need to fix debian, I can make a patch, just need to find the upstream repo [10:01] zyga-ubuntu: eh, packaging repo [10:03] zyga-ubuntu: we really should import their packaging to make this simpler. anyway, found it and doing a patch [10:10] * Chipaca actually goes [10:13] * kalikiana moooore coffeeeee [10:17] zyga-ubuntu: working on a package for *ntoo and wondering what important stuff I am missing. manifest -> https://paste.pound-python.org/show/kHgFz1bglDwHLo89K5ZK/ [10:19] jamesb192: looking [10:19] kalikiana: you are reading my mind! [10:20] jamesb192: snap-confine is usually in /usr/lib/snapd/snap-confine or /usr/libexec/snapd/snap-confine [10:20] jamesb192: same with a host of other binaries (only snap and snapctl are on path) [10:20] jamesb192: you can drop the following systemd units: autoimport, core-fixup [10:20] snap-repair [10:20] system-shutdown [10:20] and the corresponding timer [10:21] jamesb192: you can drop the snapd autoimport servic [10:21] er [10:21] this thing: -rw-r--r-- root/root 157 2018-01-20 08:53 ./lib/udev/rules.d/66-snapd-autoimport.rules [10:21] the udev rules [10:21] those things are all files relevant for core but irrelevant elsewhere [10:21] core == not classic systems [10:21] the /opt/snapd location is curious, what made you put all those files there/ [10:21] zyga-ubuntu: you're welcome :-D [10:22] temporary holding area until I do something useful. [10:23] jamesb192: [10:24] ok, I think you will have some issues still but this looks like a good starting point, I may have missed something [10:24] I would suggest to look at debian/ubuntu/fedora packages and see if there are any files they ship that you do not [10:24] and always exclude the files I mentioned above [10:24] (they are at best no-ops on normal systems) [10:24] the end goal is to have a system that can be spread tested and that would pass our integration tests [10:25] but for now just iterate this way and run snaps on your system and see what breaks [10:26] Okay. I will do that. thank you. [10:27] jamesb192: please send update reports to the forum, I'm sure it will have wider exposure there [10:27] I can respond there as well [10:33] 4505 needs a 2nd review [10:33] ah [10:33] sorry [10:33] 4502* [10:33] not 5 [10:48] mvo: 4505 updated per your comments [10:52] PR snapd#4514 closed: overlord/snapstate: record the 'kind' of conflicting change [10:58] zyga-ubuntu: ta, one quick comment added [10:59] sure [11:00] mvo: which code reads "it" (I assume group/user name) [11:00] mvo: the switch you linked to explicitly maps specific values [11:01] zyga-ubuntu: let me double check, maybe github is playing tricks on me [11:01] mvo: the code in snap-update-ns did do name lookups AFAIR but I'm not sure it has to still [11:01] mvo: and that code is more generic as it applies to other mechanisms [11:01] mvo: this one only does layout language [11:02] zyga-ubuntu: aha, you are right, I was misreading the code [11:02] zyga-ubuntu: sorry [11:02] mvo: no worries, I wanted to check if I missed something :) thank you for askin! [11:46] joc: gentle ping about #4326 [11:46] PR #4326: interfaces/builtin: blacklist zigbee dongle [11:47] I think you know more about that than we do [11:50] mborzecki: what's the status of 4285? [11:51] zyga-ubuntu: i've put it on hold now, most of the tests were passing though, iirc the were maybe 1-2 left, one of those was /media directory [11:55] mborzecki: does it make sense to unconflict and merge this [11:56] opensuse 42.2 will be EOLed this week [11:56] we should switch to 42.3 [11:59] zyga-ubuntu: i'll merge master and push it for a travis run and we'll see how much has changed [12:01] * kalikiana taking a break [12:18] hey guys [12:18] do snaps run in containers? [12:18] gunix: hey [12:18] gunix: it depends [12:18] gunix: snaps are known to run (with some known issues) on recent versions of lxd when running on top of ubuntu [12:19] zyga-ubuntu: i just tried LXD on archlinux ... install via AUR is not working, but install via snapd is working. and this confuses me [12:19] zyga-ubuntu: and that made me ask my self how snapd is actually working [12:21] gunix: I think mborzecki will be the best to know this (he runs arch) [12:21] gunix: I can happily respond to detains about what we need from the system and how containers may break things [12:22] zyga-ubuntu: i am curious how snap is running system-agnostic apps [12:22] i don't understand how that is possible [12:22] for example, LXD needs to create a network bridge, so it needs to create specific files on the system [12:22] files which normally are not distro-agnostic [12:22] but still, it seems to work [12:23] i am can't understand how this is possible and i didn't find documentation about this online [12:24] mvo: 4399 needs a review, it's very nice and could be a 2.31 item [12:24] gunix: I cannot comment about LXD [12:24] gunix: perhaps stgraber can answer that [12:26] gunix: does the network work inside the containers? [12:27] mborzecki: yes, that's the confusing part. if you install LXC from the archlinux repos, you still have to configure networking [12:27] mborzecki: if you install LXD from aur, you can't create containers because it can't map the IDs [12:28] mborzecki: however, if you install LXD from snap (and snap gets installed from aur), you just do lxd init and everything works after that [12:28] this really looks like dark magic [12:30] oh and by default on archlinux you need to change a flag on the kernel if you want normal users to create NEWNS with clone (a.k.a. containers) ... and with the snap version of LXD, you just add the user to the lxd group and it works. [12:31] i guess you normally get people that ask why it doesn't work. not people who ask why it works. :D [12:38] mborzecki: can you please look at 4326 [12:38] gunix: the USERNS thing is already fix in arch kernel [12:39] zyga-ubuntu: uhh vendor reused vid/pid [12:39] ... [12:39] yeah [12:40] and here i thought i'd never have to see such things again [12:40] serial ports, no vid/pid, mess, usb, reuse vid/pid becaue saves 0.01$ [12:40] mess [12:40] ehehe, wonder how many devices are there with default ftdi vid/pid ;P [12:41] mvo: 4140 needs someone to decide [12:44] gunix: id mapping works differently because the snap sees the core's filesystem rather than the host's [12:47] mborzecki: are you sure? because i just installed an arch linux and you need to add the flag or install another kernel, in order to create containers when not root [12:48] gunix: which option? CONFIG_USER_NS? [12:48] mborzecki: https://wiki.archlinux.org/index.php/Linux_Containers [12:49] Enable support to run unprivileged containers (optional) [12:49] i don't know which of them because i didn't get it to work yet, i will go through all steps later today [12:50] gunix: yeah, just the kernel package + sysctl should work, iirc there was some discussion in the original bug report and the maintainer dopted patches from ubuntu or fedora [12:51] gunix: note that the lxd snap always runs as root [12:51] not as the lxd user [12:54] mvo: can you please look at https://github.com/snapcore/snapd/pull/3963 (aka oldest PR) [12:54] PR #3963: cmd/snap-confine: add support for per-user mounts [12:54] kalikiana: it still has to fix the user mapping problem [12:54] *the id mapping [12:54] gunix: did you read my previous message? [12:55] sorry, got only the one that it runs on root. reading now [12:55] no worries :-) [12:56] kalikiana: which are the core/host filesystems? [12:56] gunix: from the point of view of a snap, / comes from the core snap [12:57] not the actual / you'd expect [12:57] kalikiana: so all packages get installed in its chroot? [12:58] gunix: have a peek at /snap/core/current/ - nothing's installed there, but folders are mounted into place where things should be writable or you want to see the real contents [12:59] ok. thank you ... and in the users homefolder are only settings regarding the apps? because he also gets a .snap folder [13:00] OMW to the standup.. [13:01] hey niemeyer [13:01] gunix: those are files created by the snap, yes. home isn't accessible (unless you're using the "home" interface, and only non-hidden files even then) [13:02] you mean everything outside of /home/gunix/snap is not accessible by the application running as a snap? [13:02] kalikiana: ^ [13:07] gunix: yeah. a strict snap couldn't read, say, /home/gunix/mydocument.txt by default [13:07] kalikiana: than why was i able to change the settings of chromium to save in /home/gunix/Downloads instead of /home/gunix/snap/chromium/current/downloads ? [13:08] gunix: Have a look at `snap interfaces chromium`. You'll notice it has ":home" in the list [13:09] gunix: also try "snap interface home" [13:09] kalikiana: i have to install snap again for that, can you please paste that to bpaste? i will install snap later today, if you don't have time, so it's no rush [13:11] gunix: :home ag-mcphail,chromium,corebird,dekko,gedit,gimp,handbrake-jz,libreoffice,magic-device-tool,midori,nethack,rg,spotify,telegram-sergiusens,vlc [13:12] kalikiana: so chromium wants to use libreoffice and vlc? [13:14] gunix: Chromium uses the "home" slot, which the listed snaps plug into. Or to put it more simply, "Chromium uses the home interfaces, and all those other snaps do, too" [13:14] kalikiana: oh, so that's a list of the snaps that use the home slot, and you installed all the snaps in the above list, right? [13:15] gunix: Yes. This wouldn't show snaps that aren't installed. [13:15] kalikiana: do snaps run as containers? because i don't understand how gnome3 GUI apps would run in a container [13:16] gunix: no [13:16] gunix: and maybe [13:16] zyga-ubuntu: please explain :D [13:16] gunix: have a look at this https://new.zygoon.pl/post/poking-holes-in-cheese/ [13:17] zyga-ubuntu: haha "a look" [13:17] i will read it today or tomorrow [13:18] i also need to start working on a tripleo deployment since that is for my job, but i am too curious how snap works and i keep testing it instead of doing what i should [13:19] i always get this when i try archlinux. "yea i will just install arch on my desktop really quick and create some redhat VMs and continue my work" ... 5 days later: "ok so what if i install arch on the logical volume instead of the partition, so that i snapshot it before upgrades? hmm gotta try that" [13:23] greyback: oh right, forgot about that. in that snap, just do: something like: [13:23] name: foo [13:23] slots: [13:24] jdstrand: good morning! [13:24] x11-service: [13:24] interface: x11 [13:24] jdstrand: already figured out, with zyga's help [13:24] apps: [13:24] ... [13:24] ok, cool [13:24] hey zyga-ubuntu :) [13:24] cachio: reading 'man capabilities', it makes sense to add that cap to the policy [13:25] jdstrand: and it is working ok. Am trying to tighten up the interfaces and figure out /dev/shm usage [13:25] cachio: feel free to send up a PR and ping me for review [13:25] * kalikiana going to go for lunch in a bit [13:25] greyback: awesome! sorry again for the slow response. I'm no longer sprinting [13:25] jdstrand: no worries at all [13:25] * greyback thinks he sees the finishing line at long last [13:35] * kalikiana read that as "fishing line" and wondered if that was sarcasm [14:03] * pstolowski lunch [14:06] jdstrand, ok, I'll try that, thanks [14:21] zyga-ubuntu: I think you're misunderstanding gunix's question regarding "do snaps run inside containers?". I think gunix means something along the lines of not "if I create a container can I run a snap inside it?" and more "when I run a snap on my system, is it being executed inside a container to isolate it?" [14:23] mvo, is bug #1744584 might be worth commenting on if you have any recommendation of what snaps folder need backuping or not? [14:23] Bug #1744584: Exclude Snap .cache from Dejadup backups [14:23] diddledan: ah, perhaps [14:23] gunix: ^ [14:23] gunix: which question was it? [14:25] when I run a snap on my system, is it being executed inside a container to isolate it? [14:25] diddledan: zyga-ubuntu ^ [14:25] seb128: thanks, looking [14:25] mvo, thanks :) [14:25] gunix: aha, I see [14:26] gunix: so my answer stands, it depends on how you understand containers; I'm inclined to say "no" more than yes [14:26] gunix: because most of the security confinement comes from LSM (apparmor) [14:26] gunix: though we also use some of the technology used by what people agree are containers [14:26] zyga-ubuntu: can't be. i am running archlinux [14:26] gunix: hence the fuzzy answer [14:27] gunix: right, we use a combination of things [14:27] there is a teeny bit of container-tech used, such as mount-namespaces [14:27] gunix: and container is a marketing term more than a technical term today [14:27] gunix: but also spiritually, we try to integrate the app with the host [14:27] gunix: more than any other "containers" do [14:27] * diddledan meditates [14:27] zyga-ubuntu: with container, i mean NEWNS flag within the clone() function. [14:27] I'm spiritual [14:28] zyga-ubuntu: was that a marketing explanation too? :D [14:28] gunix: yes, we do that [14:28] (ish) [14:28] gunix: that's the only thing that we do that is clearly a container tech [14:28] * zyga-ubuntu gets more tea [14:29] zyga-ubuntu: is that default for all snaps? [14:31] getting more tea _should_ be the default for all apps [14:31] * Chipaca gets more tea too [14:31] I'm more a cola addict :-p [14:31] pepsi max ftw (no sugar) [14:31] gunix: yes, all snaps use that by default; the only exception are snaps that you install with --classic [14:32] gunix: those are, like classic packages, installed directly on your system [14:36] re [14:38] mvo: 4507 is green and has two +1s [14:47] jdstrand, you mean net_admin capability? [14:49] jdstrand, https://paste.ubuntu.com/26437642/ [14:50] I am using this, I already modified the capability [14:56] am I missing a trick, or is it not possible to stream a file into a tar with archive/tar? [14:57] (the key being I don't know the size of the file beforehand) [14:57] Chipaca: you should be able to do something equivalent to `cat file | tar cf mytarfile.tar` [14:58] unless you're talking about golang in which case I've done that before on an unrelated project [14:58] diddledan: golang yes [14:59] * Chipaca asks the same question over in #go-nuts because he feels it's nuts that he can't :-) [14:59] Good morning! [15:00] my code is a mess, but you can see I stream a file from sftp into a tar here: https://github.com/bowlhat/sftp-client/blob/master/backup.go [15:00] Chipaca: iirc you need to know the size upfront so that when parsing t you can skip that much + any padding [15:05] PR snapd#4507 closed: advisor: use forked bolt to make it work on ppc [15:05] jdstrand, this is the interface that I am using when I see that error, https://github.com/sergiocazzolato/snapd/blob/tests-interface-netlink-audit/interfaces/builtin/netlink_audit.go [15:06] jdstrand, do you think it needs any other change? === jkridner_ is now known as jkridner [15:10] PR snapd#4495 closed: data/dbus: add AssumedAppArmorLabel=unconfined [15:24] I added snap as an installation method for LXD on the archlinux wiki: https://wiki.archlinux.org/index.php/LXD [15:25] mvo: can I close core#67 now? [15:25] PR core#67: initramfs-tools: revert the symlinks generation to unbreak snapcrafts kernel plugin [15:25] since snap works flawlessly, it deserves this [15:25] gunix: thank you~! [15:25] zyga-ubuntu: so to fix the mount unit ordering issue, what kind of test do we need? [15:25] zyga-ubuntu: is a reboot inside the lxd container the rightonw? [15:25] right one? [15:25] mvo: I think I had a branch with a test [15:25] PR core#67 closed: initramfs-tools: revert the symlinks generation to unbreak snapcrafts kernel plugin [15:26] mvo: just remove a snap :) [15:26] zyga-ubuntu: inside lxd? ok [15:26] mvo: yes [15:26] mvo: is core#69 something that can be closed now? [15:26] PR core#69: hooks: add 28-command-not-found.chroot to create c-n-f handler [15:27] zyga-ubuntu: yes, good point [15:27] cachio: your paste from before was for audit_read: https://paste.ubuntu.com/26412541/ [15:27] PR core#69 closed: hooks: add 28-command-not-found.chroot to create c-n-f handler [15:28] thank you! [15:29] jdstrand, let me create a PR with the test so you can see what I am doing [15:29] gunix: niiiice :-D [15:30] jdstrand, #4515 [15:30] PR #4515: tests: new spread test for netlink-audit interface [15:30] cachio: man 7 netlink only says that net_admin is needed for multicasting. that doesn't mean it is accurate, but your paste from last week says audit_read and 'man capabilities' says 'Allow reading the audit log via a multicast netlink socket' [15:30] PR snapd#4515 opened: tests: new spread test for netlink-audit interface [15:31] cachio: since net_admin is needed for setting up a multicast socket, you probably will need both [15:31] Chipaca: have you found a way to deal with the tar issue? [15:31] mborzecki: "use archive/zip instead" [15:31] radical [15:31] this is exactly the sort of silly issue i wanted to root out by this approach to it all, so \o/ [15:32] Chipaca: glad that it works with zip :) [15:32] mborzecki: we'll see :-) [15:32] i like your optimism though [15:33] cachio: reading that PR it isn't clear that NETLINK_AUDIT is a multicast socket [15:34] Chipaca: hmm looking at https://golang.org/src/archive/zip/writer.go#L224 looks like zip writes the header upfront too [15:34] jdstrand, what do you suggest to fix it? [15:36] mborzecki: but AFAICT it doesn't require the size at that point [15:37] mborzecki: note how close() updates the header [15:37] Chipaca: yeah, it seems to update the count on the flly (next to crc32) [15:38] zyga-ubuntu: any idea about https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1744738 ? i.e. inside lxd it seems like apparmor is not confined anymore [15:38] Bug #1744738: snapd 2.29.4.2 ADT test tests/main/lxd failure with linux-hwe 4.13.0-30.33~16.04.1 [15:38] zyga-ubuntu: also slightly sad, but I only get 20kb for the lxd test so my ordering fix can take forever to verify [15:39] mvo: looking [15:39] Chipaca: so there's a fileWriter https://golang.org/src/archive/zip/writer.go#L317 and a countWriter https://golang.org/src/archive/zip/writer.go#L384 oh my [15:39] hmm [15:40] cachio: I think that the capabilities man page implies it is multicast. I commented in the pr [15:41] mvo, zyga-ubuntu: I may have an idea on that [15:41] Chipaca: we had a running joke at my previous company that all problems are solved by adding another reader/writer, in that case we had a file upload through POST which was repacking the data, checksumming, encrypting and uploading to s3 from one of the intermediate steps :P [15:41] jdstrand: oh, tell us more please [15:42] jdstrand, great, thanks [15:42] mvo: I haven't read that bug very closely, but serguisens reported an issue to me [15:42] mvo: can you please cherry pick the unit test from #4258 [15:42] PR #4258: cmd/snap-confine,tests: fix unmounting on systems without rshared / [15:42] mvo: as for the lxd issue you just linked to [15:42] mvo: on kernels that have partial apparmor support, the apparmor policy is set to the classic template [15:42] mvo: not sure yet [15:43] mborzecki: I may or may not have a io.TeeReader of a io.TeeReader of a member of an archive and a hasher, and a sizer [15:43] jdstrand: ah, nice catch! [15:43] mvo: this gives a glob rule like /** pix, [15:43] mborzecki: dec := json.NewDecoder(io.TeeReader(metaReader, io.MultiWriter(metaHashChecker, &sz))) [15:43] mborzecki: also that ^ [15:43] mvo: whereas the lxd-support template has /usr/sbin/aa-exec ux, (or similar) [15:44] Chipaca: hahah [15:44] mvo: 'ix' ends up scrubbing the environment (it shouldn't, that is an apparmor bug related to limitations in the current implementation) [15:44] mvo: and 'ux' doesn't [15:44] Newly allocated one machine roundtrips a dummy run in almost exactly one minute [15:44] on spread+Linode, that is [15:45] Surprisingly good [15:45] jdstrand: hm, why do we start to see this now? [15:45] jdstrand: thanks for explaining that :) [15:45] jdstrand: I wonder a) why now b) what can we do about it :) [15:45] That includes allocation of the brand new instance, image creation, trivial task run, and machine removal [15:45] mvo: what I've seen is that on those kernels the 'lxd init' command can't find the required libraries because LD_LIBRARY_PATH is cleared [15:47] mvo: I have a todo to file both an apparmor bug and a snapd bug. I'm evaluating how to fix this in snapd. this came up at the sprint so I couldn't chase it down further. was going to look at it after the layouts reviews [15:48] jdstrand: great, thank you! can I paste this into the open bug? [15:48] mvo: now, like I said, I haven't looked at the aforementioned bug closely, but I wonder if something with the partial support is affecting this? it *shouldn't* if I understand that bug after looking at it a little-- seems this should all be happening on a xenial kernel with full apparmor support [15:49] mvo: well, no, I'm only wondering if that bug is involved [15:49] jdstrand: aha, ok, sorry I misunderstood [15:49] jdstrand: yes, this is all full confinement [15:49] + lxd init --auto [15:49] LXD has been successfully configured. [15:49] that suggests that it isn't it... [15:50] so, sorry for the noise, but fyi there is a problem with lxd snap and partial apparmor support :) [15:51] jdstrand: heh, no worries and thanks, good (or bad) to know about this problem [15:55] mvo, zyga-ubuntu: with that bug, it seems that the container doesn't have the snap-confine loaded or snap-confine is not detecting that it is loaded correctly [15:57] jdstrand: the only change we did for 2.29.4.2 was http://launchpadlibrarian.net/347640641/snapd_2.29.4.1_2.29.4.2.diff.gz [15:59] mvo: it feels like something else has changed under us [15:59] mvo: it is a 2.29.4.1 to 2.29.4.2 regression? the bug talks about 2.28.5 [15:59] jdstrand: indeed, 2.28.5 -> 2.29.4.2 [16:00] zyga-ubuntu: same here [16:00] it could be that the kernel changed or lxd. someone should try to reproduce manually and run snap-confine in debug mode [16:00] mvo: (the diff you gave was 2.29.4.1 to 2.29.4.2) [16:01] hm, 2.29.4.2 is fine with lxd for linux-meta/4.4.0.105.110 on 2017-12-22 so 2.29.4.2 is probably not it [16:01] istr a bug about lxd not detecting apparmor correctly [16:01] * jdstrand tries to find [16:04] mvo: I wonder if it is a variation on https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1743079? [16:04] Bug #1743079: apparmor exit code 123 [16:04] mvo: ie, snap-confine.d doesn't exist and the profile fails to load [16:04] * jdstrand looks at the log more closely [16:04] jdstrand: ohhh, that sounds likely [16:04] PR snapd#4516 opened: spread: setup machine creation on Linode [16:05] HEADS UP: I just "broke" spread on Travis.. it will fail to allocate machines if something gets pushed *right now* as I'm testing the machine allocation with the new feature (PR above) [16:05] I don't see anything in the logs about that, but that doesn't surprise me. I doubt the logs would have lxc debug output [16:11] mvo (cc zyga-ubuntu): there was talk last week about artful kernels breaking lxd in that profiles were not loaded with 4.13 kernels due to the container check in /lib/apparmor/profile-load [16:11] mvo: this autopkgtest is with a 4.13 kernel [16:11] jdstrand: ouch [16:11] mvo: let me get a url for you. I don't see that a bug was filed [16:13] mvo (cc zyga-ubuntu): https://irclogs.ubuntu.com/2018/01/09/%23ubuntu-devel.html#t03:34 [16:14] thank you [16:14] And it works.. wow.. nice to see 26 machines coming up at once. [16:14] jdstrand: thank you! [16:15] mvo (c zyga-ubuntu): ok, now I paid my penance for distracting you with the partial apparmor lxd bug I mentioned [16:15] hopefully this will help you zero in on it [16:15] niemeyer: it's live now? [16:16] niemeyer: do you have a KPI for the # of machines up? :D [16:16] (average/day maybe) [16:16] zyga-ubuntu: Sort of.. Travis should be working again, but new allocations won't work until I drop the 80 preallocated systems [16:16] k [16:16] Except for that one PR that I tuned [16:16] niemeyer: cool, I cannot wait to see how that performs, maybe we'll finally never run out of systems! [16:17] If this one works well, and by now I see no reason why it wouldn't, I will drop the preallocations and then everybody can enjoy faster tests [16:17] zyga-ubuntu: Keep an eye here then: https://travis-ci.org/snapcore/snapd/builds/331879604?utm_source=github_status&utm_medium=notification [16:17] zyga-ubuntu: All 26 systems are dynamically allocated 8GB machines [16:17] mvo: if you verify profile-load is actually the issue, I guess file a bug against apparmor with steps to reproduce and we can look at how to fix it [16:18] looking :) [16:19] zyga-ubuntu: Note how it took *9 seconds* between request to allocate the new machine and us having it [16:19] For all 26 of them.. so sweet [16:21] niemeyer: has something changed on linode? AFAIK last time you said that it doesn't matter if the machines are on or off, they cost the same; I understand that those are machines added and removed to the pool/account but is that a new feature on linode or just us making use of it? [16:22] zyga-ubuntu: It doesn't matter if the machine is on or off, but it does matter if you have the machine or not have it at all [16:22] zyga-ubuntu: so using the bind mount /snap /snap and unshare it approach, the mount table has now two entries for each snap :/ [16:22] roundtripping with zip ftw [16:22] * Chipaca earned a break [16:22] zyga-ubuntu: In other providers (Amazon, GCE) you pay only when the machine is on, even if you have the whole metadata of the machine associated with it still (configuration, disks, etc) [16:23] mvo: ugh :/ [16:23] mvo: did you remove the code in snap-confine that was doing stuff in that area? [16:23] niemeyer: aha, I see [16:24] zyga-ubuntu: I did but let me double check [16:24] zyga-ubuntu: Yeah, this is now dynamically creating the whole machine.. nothing exists before or after [16:24] niemeyer: also, no more out of disk space errors! [16:24] zyga-ubuntu: Hah, indeed.. :) [16:35] PR snapd#4517 opened: data: add systemd unit that unshares /snap [16:35] It's looking good.. we just need to tune a bit the number of workers on each system [16:35] It hasn't finished, but we're down to only 6 machines [16:35] Which means 20 already terminated their job and went away [16:36] We're probably not making great use of the 8GB, either memory wise or CPU wise [16:36] It's probably better to split tasks further and take smaller machines [16:37] zyga-ubuntu: I pushed a first PR with the mount rshared thing, but its ugly due to the duplication afaict [16:38] mvo: duplication? [16:38] of those entries? [16:40] zyga-ubuntu: yes, everything under /snap it seems, I wonder if there is a different way to archive the --make-rshared. but I guess this only works on mounts not dirs? [16:40] mvo: it only works on mount entries, yes [16:43] zyga-ubuntu: ok, maybe we need to life with the dups then, I will see if a full snap run is happy [16:43] cachio: Is there a known Fedora error right now where the test hangs on "snap install"? [16:44] mvo: can you show me the code please? [16:44] zyga-ubuntu: sure, the PR is up [16:44] ah, let me refresh, thanks! [16:44] niemeyer, no [16:44] niemeyer, do you have any log? [16:45] cachio: https://travis-ci.org/snapcore/snapd/builds/331879604?utm_source=github_status&utm_medium=notification [16:45] cachio: Both workers hanging exactly in the same place for 10+ minutes, so not a coincidence [16:45] those fedora boxes [16:45] yeah [16:46] niemeyer: offtopic, I was thinking about my piles of abandonware lately and I was thinking about tagging it as such [16:46] niemeyer: and I quickly made this today: https://github.com/zyga/project-status-shields [16:46] zyga-ubuntu: adding the new units to the spec files now [16:47] niemeyer, I dont see any error on fedora [16:47] mvo: so this is the service unit [16:47] niemeyer, but are delayed [16:48] mvo: what happened to the snap.mount unit? [16:48] cachio: Well..? :) [16:48] niemeyer, first time I see that butI saw similar issues that I tried to address on the spread PR [16:49] niemeyer, https://github.com/snapcore/spread/pull/49 [16:49] PR spread#49: send keepalive packets every 10 seconds to avoid losing the connection [16:50] mvo: reviewed [16:50] niemeyer, I have seen kill timeout reached the last weeks [16:50] niemeyer, not just for fedora [16:51] cachio: Again, an entire run looking perfect except for the two Fedora workers hanging exactly on the same place is not a coincidence [16:51] cachio: These are independent machines, started independently, running independently [16:51] kalikiana, are you still around? [16:52] hey kyrofa [16:52] Yes I am :-D [16:52] cachio: Have you seen where it's stuck? [16:52] kalikiana, late for you! I don't suppose you have 5 minutes to meet? [16:52] * zyga-ubuntu small supper & fresh tea [16:52] niemeyer, yes [16:53] kyrofa: Indeed. I'll grab my headphones. It's fine. [16:53] niemeyer, but the test seem to be ok [16:53] niemeyer, in fact it is the first time I see this error [16:53] kalikiana, about on-to by the way [16:53] niemeyer, perhaps it is something related to the store [16:54] Weekly? [16:54] kyrofa: Ack [16:56] cachio: Maybe, but what would justify getting stuck? [16:57] niemeyer, perhaps it is not stuck, spread is who is not getting the changes [16:57] niemeyer, I used to see that in my machine often [16:57] mainly when we use the quiet command [16:58] cachio: Not sure I understand what you mean by that [16:58] cachio: There's a "snap install" command there and no output [16:59] niemeyer, what I say is that it could be different thinks, either the snap command got stuck or spread did not received any other output but after a time snap install continued working [17:00] niemeyer, that's what I saw running from localhost in different situations [17:00] cachio: snap install should not hang silently like that [17:01] niemeyer, let me try to reproduce it here [17:01] cachio: If it does it's a bug.. if you are seeing this frequently, let's please not ignore it [17:01] Anyway, really need to run.. o/ [17:01] I created a PR in spread for those situations [17:01] niemeyer, but I am not sure if this case is affected by that [17:02] niemeyer, I'll try to reproduce it locally [17:03] niemeyer, I am already runnig this test in order to see if I can reproduce it [17:03] mvo: fyi, jjohansen has been working on artful kernel for the autopkgtest failure. it seems like this will go to artful then the hwe kernel will get it in due course. in other words, if you can demonstrate that the test failure is due to the profiles not loading, then the bug will be fixed in due course [17:04] mvo: that came out a little weird-- he has a kernel to fix lxd, which I think will fix the autopkgtest failure (he isn't looking at the snappy autopkgtest failure) [17:07] mvo, the tests for beta are going really well [17:08] mvo, we are going to candidate soon [17:10] niemeyer, 2018-01-22 16:12:58 Cannot allocate linode:debian-9-64: no powered off servers in Linode account and no plan to allocate new machines [17:10] niemeyer, is being happening a change in linode? [17:10] all the machines failed because of this [17:11] https://travis-ci.org/snapcore/snapd/builds/331880011?utm_source=github_status&utm_medium=notification [17:14] * cachio lunch [17:19] elopio, did you ever manage to get the bot cranking out autopkgtests again? [17:20] kyrofa: no, had to do it locally. But haven't checked again since thursday. [17:20] elopio, looks like we have arm again [17:20] I'll check in a few. [17:23] Going to call it a day now [17:23] * kalikiana waves [17:23] kalikiana: o/ [17:24] * zyga-ubuntu EODs and marks most of his projects as abandoned [17:25] zyga-ubuntu: is that a part of "live every day like it's your last day"? ;-) [17:25] kalikiana: haha [17:25] no, about some thinking I was doing [17:25] on ancinent projects [17:25] and on ... [17:25] https://github.com/zyga/project-status-shields [17:28] elopio, does that mean you tested snapcraft#1877 locally? [17:28] PR snapcraft#1877: tests: move test files out of the snapcraft dir [17:28] PR snapcraft#1878 closed: repo: use debian.arfile instead of dpkg-deb [17:30] zyga-ubuntu: neat [17:34] kyrofa: yes. [17:44] elopio, with success? :P [17:44] I'll merge that PR if so [17:49] kyrofa: https://autopkgtest.ubuntu.com/request.cgi still gives 500, so no way to launch them. [17:49] cjwatson, do you know anything about that? [17:49] kyrofa: and yes, locally the tests ran. Not all of them passed, but that's not because of the refactor. [17:49] elopio, enough to give you confidence in the PR, though? [17:50] kyrofa: (a) it's intentional until Spectre mitigation is finished (b) in general please ask Laney about autopkgtest stuff, not me [17:50] kyrofa: yes, because travis is running all of them and passing. [17:50] cjwatson, excellent, thank you. Good to know who runs that stuff! [18:14] niemeyer, I could reproduce the error on fedora [18:14] this is the log with the error https://paste.ubuntu.com/26438961/ [18:20] return BadRequest("cannot %s %q: %v", inst.Action, inst.Snaps[0], err) [18:20] looks like inst.Snaps is empty [18:21] Chipaca: ^ [18:24] zyga-ubuntu, did you see this error? [18:25] seem to be affecting fedora [18:26] cachio: I looked at your log, I didn't investigate more [19:15] PR snapd#4518 opened: tests: fix for test interface-netlink-connector [19:23] cachio: ^ [19:23] I think you need to use ' ' rather than "" [19:23] it looks like invalid yaml [19:23] hey folks, sorry to ping here but i have a quick question which i didn't seem to find answered on the forum. what is the roadmap for official rhel7 support? any thoughts on osx support? i'm betting rhel6 is completely infeasible due to its age [19:24] barry: hey [19:24] zyga-ubuntu: hi! [19:24] barry: I think rhel7 is "soon" but nobody has championed that, perhaps someone just needs to work together with Pharaoh_Atem who maintains the fedora packages [19:25] barry: osx support is something that is a different class of problem to solve (virtualization most likely) [19:25] zyga-ubuntu, yes [19:25] zyga-ubuntu, thanks [19:25] zyga-ubuntu: that totally makes sense re: osx [19:26] barry: I think that if you want to see rhel happen soon you should get in touch with neal (Pharaoh_Atem) and see what's missing [19:26] I heard neal made some centos packages and I'm not on top of that anymore [19:27] barry: technically I think rhel is "just packagign" [19:33] zyga-ubuntu, should I add net-admin capability to the ssh-keys and ssh-public-keys interface? [19:33] zyga-ubuntu, I mean, to avoid connecting to network-control [19:35] cachio: I don't think so [19:35] those interfaces don't say "you are network admin" [19:35] cachio: perhaps just use a simpler test [19:35] cachio: don't run ssh [19:35] cachio: just read keys [19:36] zyga-ubuntu, ok, but the test is sharing ssh, that's why I using it [19:36] zyga-ubuntu, I mean, I am trying to cover the whole interface [19:37] cachio: yes but the interface doesn't promise you can run ssh [19:37] cachio: not sure if that's worth it [19:39] zyga-ubuntu, ok, so perhaps this line should not be included [19:39] in the interface /usr/bin/ssh ixr, [19:40] cachio: hmm, intersting, [19:40] jdstrand: ^ do you think this makes sense? [19:40] ssh-keys should not be about running ssh [19:41] jdstrand: or if it should it should really allow it [19:42] zyga-ubuntu: there's a few other things, like making the software install integration work [19:45] Pharaoh_Atem: gnome-software? [19:45] Pharaoh_Atem: what's missing there? [19:45] Pharaoh_Atem: I think getting basic CLI package out there would help [19:51] cachio: please don't add network-control for testing ssh [19:52] zyga-ubuntu: okay thanks [19:52] cachio: when I tested the interface, I did not need network-control [19:52] cachio: how are you using ssh? [19:53] jdstrand, https://github.com/snapcore/snapd/pull/4512/files [19:53] PR #4512: tests: new spread test for ssh-public-keys interface [19:53] cachio: the interfacec doesn't claim to support everything the ssh command can do [19:55] jdstrand, so, which is the idea about the ssh command for that interface? [19:55] jdstrand, to do what? [19:55] jdstrand, so I can update the test [20:00] cachio: "ssh-public-keys: I was unable to determine a use for this interface" from https://github.com/snapcore/snapd/pull/4100 [20:00] PR #4100: add ssh-keys, ssh-public-keys, gpg-keys and gpg-public keys interfaces [20:01] cachio: people wanted that interface to only allow the public keys, so that is what it does. probably the best test is ssh -V and testing if can access the .pub file [20:02] jdstrand, ok [20:02] jdstrand, what about the ssh-keys? [20:02] jdstrand, should I test the ssh command connection? [20:03] jdstrand, or just the access to the keys? [20:03] cachio: "ssh-keys: I was able to login to a remote server" [20:03] jdstrand, I tried that and I couldn't, let me try again [20:03] cachio: if you can do it without network-control, then I say go for it. I don't know why it is asking for that... [20:04] cachio: if you can't, the ssh -V and testing if can access .pub and private keys should be enough [20:04] jdstrand, ok [20:11] zyga-ubuntu: g-s is one bit, but not really the important one [20:11] the important one is making sure that the selinux policies apply correctly [20:12] Pharaoh_Atem: and what is missing there? [20:14] zyga-ubuntu: well, I still need to backport a bunch of patches for ensuring the paths work correctly [20:14] basically, I need to retry with 2.30 / 2.31 [20:14] which I'm preparing for Fedora right now [20:16] I see, thank you! [20:22] jdstrand, permission denied [20:22] [ 497.497832] audit: type=1400 audit(1516652364.412:57): apparmor="DENIED" operation="create" profile="snap.test-snapd-ssh-keys.ssh" pid=19379 comm="ssh" family="inet" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create" [20:23] jdstrand, this is without network-control [20:23] for the ssh-keys interface === kennyloggins is now known as CoderEurope [20:34] cachio: sure, you will definitely need 'network' [20:34] elopio: hi! hey do you know who mans the snapcrafters e-mail address? [20:35] roadmr: I would guess Alan and Martin. [20:35] thanks elopio ! (I wrote there to double-check a couple of snap transfers, just wanted to check if it's not a black hole heh) [20:36] jdstrand, so, what do you prefer for the test, add network or just check keys? for the ssh-keys interface [20:57] Hi. I need to stage libqt5charts5 but this package is not available in the official Xenial repo. I've found an unoffical .deb package I want to use. Is there a plugin that can install remote .deb packages by URL? [21:04] cachio: I don't have a preference. I think it is sufficient to only check check the keys [21:04] jdstrand, ok, tx [21:05] roadmr: istr noise][ reporting at the sprint that snap v1 is gone. does that mean I can finally remove click and snap v1 from the review tools? [21:06] jdstrand - yes! [21:07] jdstrand: \o/ zorch em [21:25] ok thanks [21:37] PR snapd#4518 closed: tests: fix for test interface-netlink-connector