/srv/irclogs.ubuntu.com/2018/05/30/#snappy.txt

=== kalikiana_ is now known as kalikiana
=== zyga_ is now known as zyga
=== cmagina_ is now known as cmagina
=== tai271828_ is now known as tai271828
=== TinoGuest_ is now known as TinoGuest
=== victorbjelkholm_ is now known as victorbjelkholm
=== pstolowski|afk_ is now known as pstolowski|afk
=== mwhudson is now known as Guest96057
=== Guest96057 is now known as mwhudson
=== erio|away is now known as erio
=== prime is now known as Guest2033
zygagood morning04:58
mborzeckimorning05:14
zygahey05:20
mborzeckizyga: anything on fire today?05:21
zyganothing apart from my joints05:25
zygaeverything hurts as if I had a flu05:25
zygathere's one bug about apparmor but it looks like partial removal of snapd05:25
mborzeckiyour joints hmm? :)05:25
mborzeckizyga: #177351 ?05:27
mupBug #177351: evince crashed with SIGSEGV in CairoOutputDev::setCairo() <apport-crash> <evince (Ubuntu):Invalid by desktop-bugs> <https://launchpad.net/bugs/177351>05:27
mborzeckidamn, not that one, this one #1773515?05:27
mupBug #1773515: apparmor fails after removal of snapd <snapd (Ubuntu):New> <https://launchpad.net/bugs/1773515>05:28
zygamborzecki: yeah, that one05:43
zygadrat05:44
zygaI made an appointment today to replace my phone battery at a service centre05:44
zygasigh05:44
zygawhat a day05:44
zygawell, ok, it's at 10:00 AM, close by, I can just go and work from some place nearby05:44
zygaI will just login home and work this way05:45
zygaI updated to bionic yesterday to have more recent autopkgtest05:45
zygaI find the whole image construction toolkit super fragile05:45
zygait times out, doesn't say what's going on, etc05:45
zygaI’m going to the service center now06:13
zygaI will install myself there and just work06:13
zygaETA 30 minutes06:13
zygaI’m close now but man, committing at this time is not fun06:24
zygare :)06:46
zygaI'm at a starbucks exactly in front of the service center, time to work06:47
zygamborzecki: mvo will be around later today06:47
mborzeckiok06:47
zygamborzecki: can you please look at #523106:49
mupPR #5231: interfaces/joystick: force use of the device cgroup with joystick interface <Critical> <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5231>06:49
zygawe need to cherry pick it into the release branch as well06:49
mborzeckizyga: to recap, this is to have the device cgroup created always, using a device (/dev/full) that we're sure is present at all times, right?06:50
zygayes, almost,06:50
zygawe don't make device cgroups unless there's a device tagged with an udev tag that matches the app we're running06:51
mborzeckibtw. reading systemd-environment-generators manpages, it's a nice feature of systemd06:51
zygaand if you give broad apparmor permissions (like all of input devices here)06:51
zygaand not tag any dveices06:51
mborzeckiyup06:51
zygathen there's no cgroup and you can do anything you want06:51
zygamborzecki: I know, I talked to zbyszek about it about a year ago when I was trying to figure out how to inject /snap/bin into PATH in a nicer way than we did before06:52
zygahe suggested environment generators but they were not merged back then :)06:52
mborzeckizyga: any idea how far back in systemd versions this feature is available?06:52
zygait's very recent06:52
zygathis is why I made a remark about it on the PR06:53
zygaI don't know how we plan to use it across the released versions of systemd people are using06:53
mborzeckizyga: why not just always create the device cgroup? i see in the code that we're adding a bunch of static devices iff there are any (other) devices tagged for particular snap07:01
zygathat's my feedback as well07:01
mborzeckioh and i see nvidia ...07:01
zyganvidia is a special snowflake because they cannot use GPL symbols and udev07:01
mborzeckizyga: there's a chance that device group by default may break some snaps07:04
=== pstolowski|afk is now known as pstolowski
pstolowskimorning07:04
mborzeckior at least that's my guess why jdstrand didn't go down this path07:05
mborzeckipstolowski: hey07:05
zygahey pawel07:05
zygamborzecki: note that nvidia works with udev tagged devices today07:05
zygawe have special code for taht07:05
zygain my review I gave a +1 but indicated that we should probably not make mistakes again by simply always doing a cgroup anyway07:06
mupPR snapd#5227 closed: interfaces/hardware-observe: allow access to /etc/sensors* for libsensors <Simple> <Created by jdstrand> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5227>07:07
mupPR snapd#5228 closed: interfaces/hardware-observe: allow access to /etc/sensors* for libsensors (2.33) <Simple> <Created by jdstrand> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5228>07:07
pedronispstolowski: hi, should we chat again?07:10
pedroniszyga: tagging short udev related PRs with "simple" is a bit misleading I think07:12
zygabecause it's udev?07:12
pedronisbecause  reviewing quickly to means I should not need to be on alert for subtle issues07:14
pedronisby definition a PR that solves a subtle issue cannot be quick to review07:14
mborzeckizyga: maybe i'll play a bit with that change to snap-confine later today07:15
pedroniszyga: same for the new interface PR07:15
zygabut the issue is very clearly stated there07:15
zygapedronis: the ones about sensors?07:15
pedronisany of them07:16
pedronisagain I don't think they can be simple07:16
pstolowskipedronis: probably, but give me a few moments to collect thoughts07:16
pedroniszyga: you invented the label, but if I need to read the description carefully07:16
pedronisit is also not simple07:16
pedroniszyga: simple is something that can be reviewed before coffee07:16
pedronisotherwise is just a trap07:17
pedronisof mindless +107:17
zygammm,07:17
pedronisand we should remove the label07:17
zygaI'll apply more restraint07:17
zygathere's certainly the case that everyone is familiar with a specific part of the code more closely07:17
zygaand indeed then the label can be deceptive07:17
pedronisok, then again it cannot be simple07:17
pedronis(because everybody sees the label)07:18
zygapedronis: some quick feedback on #522107:21
mupPR #5221: [RFC] snap: parse connect instructions in gadget.yaml <Created by pedronis> <https://github.com/snapcore/snapd/pull/5221>07:21
Chipacapedronis: WDYT of adding a "mounted-from" key to snaps' json, and have that be the EvalSymlinks of the MountFile of all snaps?07:22
pedronisChipaca: seems ok to me07:24
Chipacak, i'll push a pr for that soonish07:24
pedroniszyga: I'm sort of tempted to kill the label completely tbh, the fact we don't agree how it should be used it's probaly a sign is a nuisance07:27
zygapedronis: I'd like to keep the label because it's an encouragement to look at PRs07:28
zygawe should just agree how to use it07:28
pstolowskipedronis: ok, i'm ready when you're07:30
mupPR snapd#5232 opened: interfaces/builltin/tpm: Allow access to the kernel resource manager <Created by yphus> <https://github.com/snapcore/snapd/pull/5232>07:30
* zyga notices a ~2K lines changed PR and wonders if 30 minutes is enough time to even look 07:30
pedroniswhich one?07:31
pedronispstolowski: joining07:32
zygaspineau: hey, do you have any links about what the TPM resource manager is for?07:34
spineauzyga: I'm collecting them right now07:35
zygathanks07:35
zygaplease add them to the PR07:35
mupPR snapd#5231 closed: interfaces/joystick: force use of the device cgroup with joystick interface <Critical> <Created by jdstrand> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5231>07:35
zygapopey_: https://forum.snapcraft.io/t/is-the-author-of-a-package-verified/567107:51
zygasomething that well deserves a good answer07:51
zygaok07:54
zygaSon_Goku: hey07:54
* zyga needs to go to the service center07:55
zygaSon_Goku: please review your PRs, there's feedback and patches but we cannot push to your branch07:55
* Son_Goku waves at zyga 07:55
Son_GokuI pushed the patch requested07:55
* zyga goes to replace his phone battery now07:55
zygattyl07:55
zygathanks! I'll check soon07:55
mborzeckiSon_Goku: hey, left you a link to a patch that fixes media-sharing in opensuse pr07:55
Son_Gokumborzecki: done already07:55
Son_Gokunow we wait forever for spread :D07:55
mborzeckihehe :)07:56
mborzeckiforever as in ~30 minutes07:56
mupPR snapd#5233 opened: client, daemon: add a "mounted-from" entry to local snaps' JSON <Created by chipaca> <https://github.com/snapcore/snapd/pull/5233>08:10
zygare08:24
zygamy phone should have a brand new battery by noon08:24
zygamvo: hey, welcome back08:25
mvozyga: hello08:26
Chipacamvo: you're not under water are you?08:27
mvoChipaca: no, all good08:27
Chipacamvo: throw one bubble for yes, two bubbles for no08:28
* Son_Goku throws three bubbles at Chipaca 08:29
* Chipaca starts selling a dragon-based arcade game remake reusing Son_Goku's bubbles08:29
Son_Goku:D08:29
Son_Gokuahh Spyro :)08:30
Chipacabubble bobble, you uncultured yob08:30
* Chipaca removes his monacle08:31
Chipacathat thing's evil08:31
* zyga wonders what is going on 08:33
Chipacazyga: an area in the west of germany (but a few km from mvo) is under water08:34
zygaspineau: feedback on your PR08:34
Chipacazyga: also bubble bobble is a game with dragons that throw bubbles and that makes no sense08:35
zygaChipaca: because dragons make sense ;-) ?08:35
Chipacazyga: about as much sense as unicorns08:36
Son_Goku:D08:36
* zyga sings "narwhals"08:36
spineauzyga: thx, I was wondering which one caused the error08:36
mvoChipaca: yeah, some heavy rain here in the area but where I am its mostly fine08:36
* zyga just moved further away from the window becase OMG SO HOT today 08:36
zygait's weird not to have one's phone around08:37
pstolowskipedronis: ok, i think i nailed the conflict check.. at least the tests seem happy08:37
zygait's the most important thing to bring in many ways08:37
mborzecki29C in the shade here08:37
mborzeckizyga: do you want one last look at #5219 ?08:37
mupPR #5219: packaging/opensuse: Refactor packaging to support all openSUSE targets <Created by Conan-Kudo> <https://github.com/snapcore/snapd/pull/5219>08:37
zygayep, looking08:38
pedronisfun fact, the man page of mount uses both "file system" and "filesystem" at the same time08:38
Son_Gokuthat's... annoying08:39
pedroniswell to be fair, the former only a few times08:39
zygamborzecki: one question on this https://github.com/snapcore/snapd/pull/5219#discussion_r19168555008:39
mupPR #5219: packaging/opensuse: Refactor packaging to support all openSUSE targets <Created by Conan-Kudo> <https://github.com/snapcore/snapd/pull/5219>08:39
zygamborzecki, Pharaoh_Atem do you know what's the tumbleweed version in the RPM macro?08:41
zygaI'm AFK from my home machine to check08:41
mborzeckiSon_Goku: there's some fine print note about tumbleweed version right here: https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros08:41
zygaI mean, it's 155508:41
mborzeckizyga: ^^08:41
zygabut what will happen later08:41
zygaI know, I read that :)08:41
zygasorry, my question on the PR was worder better than my question here08:41
Son_Gokuyou can't not rely on it in some fashion08:42
zygaright but I'm trying to guess if the next leap will have all the features we target for tumbleweed today08:42
zygaif so that's even better08:42
Son_Gokubut basically if you use it as a checkpoint (that is, don't do 0%{?suse_version} == 1550), you're fine08:42
Son_Gokuzyga, well, Leap is branched from Factory08:42
Son_Gokuerr, SLE is branched from Factory08:43
Son_Gokuand Leap is cloned from SLE08:43
zygaand tumble?08:43
Son_Gokuand Tumbleweed is regular snapshots of Factory08:43
mborzeckiwe should be good with >= check then08:43
Son_Gokuyes08:44
Son_GokuSUSE has made version checking harder than it should be :/08:44
zyga+1 then, let's mere it08:44
mborzeckiaaand merge08:44
mborzecki(d)08:44
Son_Gokuugh08:45
Son_GokuI hate touching openSUSE packaging sometimes08:45
jameshmvo: any chance you could approve the two new revisions of the test-snapd-eds snap? (this is just changing interface names based on the review)08:45
mborzeckizyga: do you plan to sync the spec in obs?08:45
mupPR snapd#5219 closed: packaging/opensuse: Refactor packaging to support all openSUSE targets <Created by Conan-Kudo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5219>08:45
zygamborzecki: yes but only for the next release08:45
mborzeckizyga: ack08:45
mvojamesh: sure, let me do that right away08:45
jameshmvo: thank you!08:45
Son_Gokuzyga, don't forget to merge my changes entry into the OBS changes file08:45
zyga.33 is branched, once we are good for release we should do it in OBS as well08:45
zygaSon_Goku: ack08:46
mupPR snapd#5234 opened: [RFC] snap: add `snap list --format=...` option <Created by mvo5> <https://github.com/snapcore/snapd/pull/5234>08:46
Son_GokuI guess since I'm up already and looking at this08:46
Son_Gokumight as well add the %bcond to create the /snap symlink in the spec for amazon linux in the fedora spec08:47
ChipacaMay 30 08:17:56 arch snapd[10146]: 2018/05/30 08:17:56.829601 helpers.go:521: cannot retrieve info for snap "test-snapd-content-slot": cannot find installed snap "test-snapd-content-slot" at revision 2: missing file /var/lib/snapd/snap/test-snapd-content-slot/2/meta/snap.yaml08:47
Chipacawho was looking into the disappearing meta/snap.yaml bug?08:48
Chipacazyga: was that you?08:48
zygaChipaca: that was perdronis and to a small extent me08:48
zygais that on your system or in spread?08:48
Chipacahttps://api.travis-ci.org/v3/job/385570236/log.txt08:48
Chipacawas wondering whether I should keep that, or just blow it away and retry08:49
zygahmmm08:49
zygaI'd be much happier from a user report, our tests do so much magic I don't trust some of those failures08:49
zyga- Mount snap "test-snapd-content-slot" (2) ([start var-lib-snapd-snap-test\x2dsnapd\x2dcontent\x2dslot-2.mount] failed with exit status 1: Job for var-lib-snapd-snap-test\x2dsnapd\x2dcontent\x2dslot-2.mount failed.08:50
zygamount failed08:50
* zyga looks for the journal error08:50
mborzeckiSon_Goku: why the dislike for opensuse packaging?08:51
zygait timed out https://www.irccloud.com/pastebin/5xyF1sNO/08:51
zygaChipaca: interesting, I wonder why it can ever do that08:51
Son_Gokumborzecki, I don't generally have a problem with openSUSE packaging as a whole08:51
* zyga scans the log for more clues08:51
Son_GokuI actually do quite a lot of it these days08:51
Son_Gokubut one thing that has annoyed me a lot is that figuring out how to detect what release I'm targeting for a build has become a ton more difficult08:51
zygawoah08:51
zygaprotocol error again :) https://www.irccloud.com/pastebin/DNFrcteJ/08:52
Chipacazyga: whassat08:52
zygaChipaca: so, at this stage I'm tempted to get to the bottom of the stack to see what the hell is a protocol error08:52
zygais that kernel doing barf08:52
zygasystemd doing barf08:52
zygaor something else08:52
Chipacazyga: if it were the kernel wouldn't something in the journal say so?08:52
mborzeckiSon_Goku: heh, that version macros matrix is a bit confusing08:52
zygaChipaca: because the kernel is known for its impeccable error reporting08:52
zyga;-)08:53
zygaChipaca: I wonder if there's some logging going on that we don't show08:53
zygae.g. stuff in dmesg that doesn't end up in the journal08:53
zygaMay 30 08:18:01 arch snapd[10146]: May 30 08:17:59 arch kernel: print_req_error: I/O error, dev loop2, sector 008:53
Chipacathere shouldn't be, but ¯\_(ツ)_/¯08:53
zygaooh08:53
zygais our snap corrupt?08:53
zygathat is building and installing the snap in devmode08:54
zygaso we send the snap over a socket08:54
zygamaybe there's a race and we get garbage08:54
zygaChipaca: how would you feel if we added CRC to side-loaded snaps08:54
zygafor transfer08:54
zygaclient and server both compute on the fly08:55
zygaand then the client sends at the end08:55
zygamm?08:55
zygamore IO errors https://www.irccloud.com/pastebin/lx013vGf/08:55
Chipacazyga: if we were looking to do work in that area, I'd look instead at passing a file descriptor08:55
zygabut look, loop1 and loop208:55
zygaI wonder what's going on there08:55
zygaI wonder if this is "I cannot read the loop device"08:55
sil2100mvo: hey! I have a hacky branch that fixes running travis CI on core18 (and non-bionic systems)08:56
zygaor "I read the loop device but man this is not a valid squashfs"08:56
sil2100mvo: (the CI is failing for it as there are actual failures in the tests now)08:56
Chipacazyga: what happens if you grab a squashfs, truncate it, and mount it08:56
sil2100mvo: it's ugly, but besides being ugly currently it shouldn't have any real side-effects08:56
Chipacazyga: truncate it by a half or sth i mean, not empty08:56
zygahold on08:56
zygaChipaca: this is not a side-load08:57
zygait's from the store08:57
zygaand we apply a delta08:57
zygait's a delta https://www.irccloud.com/pastebin/6kcddRIr/08:57
zygaah, no08:57
zygaI'm blind sorry08:57
zygait's not a delta08:57
zygait's a store pull08:57
zygawe check store assertions that they match the downloaded blob, right?08:57
Chipacazyga: yes08:59
zygahmm hmm hmm08:59
pedronisyes, that's what validate-snap does08:59
zygaso we have a valid snap08:59
zygayet the kernel chokes on mounting it08:59
zygabut one out of 100s we tested08:59
zygaand randomly08:59
Chipacazyga: and if it were a delta, we hashsum the chunks, and then hashsum the resulting squash after applying the delta08:59
zygabecause of the validate I don't think the snap is corrput09:00
zygamore like a rare bug in loop devices09:00
pedronisthe store doesn't try to mount it though09:00
zygabut this is just guessing09:00
pedronisit should resquash it09:00
pedronisand compare09:00
zygapedronis: yes but here it's one of the snaps we test dozens of time a day09:00
zygaI bet if the blob arrived safely it is not the content that is at fault09:01
zygawe don't change that snap often09:01
zygaand it mounted and worked fine on all the other tests09:01
zyga(in the same run)09:01
Chipacazyga: i'm about to hit restart on the test unless you shout09:01
mvozyga: it might be that the network data is fine but it got corrupted while writing to disk09:01
zygago09:01
zygarestart09:01
zygamvo: mmmm, yes, perhaps09:01
zygamvo: that's interesting09:02
zygamaybe google SSDs are just not what they used to be09:02
pedronismvo: well we check it again in validate-snap09:02
zygaand once in blue moon we will hit this one bit flip09:02
pedronisbut the pastebin doesn't have that bit09:02
mborzeckizyga: there's your failed with result protocol: https://github.com/systemd/systemd/blob/5300857701ff5e87169f3c90c6b570c750379dfb/src/core/mount.c#L128609:02
mvopedronis: right if we read it again from disk, then my theory is bogus09:02
zygamborzecki: interesting, thank you09:03
zygamvo, pedronis: unless for whatever reason the kernel gives us some page cache but the loop device tries to read it from somewhere else09:03
zygaI don't know how the caching is layered in the kernel09:03
zygathat is, from userspace the file is ok09:03
mborzecki        /* Note that due to the io event priority logic, we can be sure the new mountinfo is loaded09:04
zygabut from the loop device's point of view the blocks don't use the same page cache that userspace reading the file is09:04
mborzecki         * before we process the SIGCHLD for the mount command. */09:04
mborzeckiheh, nice comment ^^09:04
zygamborzecki: yes :)09:04
zygawe also have our own code that goes and check _iff_ the mount was succcesful09:04
zygabut here it would not have a chance to run09:05
zygaif that systemd code is broken09:05
mborzeckiright09:05
zygaand the mount really worked09:05
zygabut systemd thinks it did not09:05
mborzeckinote that arch has a quite recent kernel09:05
zygawe could add some code to check for that condition09:05
zygaI wonder if we have enough data to see if this happens on a specific kernel more often09:05
zygaor if it's just all over the place but infrequent09:05
zygaI'll write down what I know so far on the forum09:06
mborzeckizyga: was it seen on ubuntu and fedora?09:06
zygaand let's keep watching this09:06
zygamborzecki: I don't remember09:06
pedronispstolowski: cool, let me know when I should re-review09:06
zygaI think it was09:06
mborzeckifedora should be running recent kernels too, so if it's related to recent(ish) kernels it should pop up there too09:07
* Chipaca toddles off to do physio09:11
Son_GokuFedora shipped 4.16.x to all stable releases a few weeks ago09:13
Son_Gokumborzecki, btw, here's my proposed addition to the fedora spec for amazon linux 2: https://github.com/Conan-Kudo/snapd/commit/cb60c53c4c005de8f67dd3095faccde4daf2f51809:13
Son_GokuI'd actually probably prefer not to support classic snaps for amazon linux 2, because then once I bring snapd into epel, the experience would be consistent across the board09:14
Son_Gokuand people can just install snapd from EPEL once I'm happy with the experience and we push it there09:14
zygamborzecki: https://forum.snapcraft.io/t/unexplained-mount-failure-protocol-error-what-we-know-so-far/568209:15
mborzeckiSon_Goku: thanks! i'll look into it, but have to figure out what's the current plan for amzn2 first09:15
zygathat's what I know09:15
zygaplease extend that thread09:15
Son_Gokumborzecki: that's why it's not proposed as a PR ;)09:15
Son_Gokumborzecki, but that gives you an idea of how easy it is to extend for more distros09:15
zygaChipaca: ^09:16
mupPR snapd#5223 closed: image: set model.DisplayName() in bootenv as "snap_menuentry" <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5223>09:31
pstolowskipedronis: pushed09:32
pedronispstolowski: will look in a litte bit, finishing the forum topic I promised09:33
* zyga goes to pick up his phone09:35
popey_zyga: thanks for the ping earlier09:45
=== popey_ is now known as popey
zygapopey: pleasure09:56
* zyga is picking up his phone and heads home09:56
* thresh just pushed a new stable vlc10:05
threshmany thanks everyone involved in fixing bugs :-)10:05
mvothresh: thank you for the new vlc!10:06
pedronispstolowski: did another pass10:16
pstolowskipedronis: thanks, looking10:17
=== chihchun_afk is now known as chihchun
mvopedronis: is the cumbersome/fragile bit in 5217 that it does not use the model assertion in SetNextBoot? or is there more to it?10:33
zygare10:34
zygaphone with new battery, I can take a shower and get back to work10:35
pedronismvo: it should check if the snap is the device base (using some helper)10:36
mvopedronis: ok, this is what I read from your review. so snapstate will grow a way to get the model and pass it to the backend10:37
sil2100mvo: I will be picking up making sure systemctl --failed is clean now if anything o/ I see there's one service failed there still so I'll get to it today10:37
mvosil2100: thank you10:38
mvosil2100: I will look at your UID pr after lunch10:38
sil2100mvo: if you have a moment there are 3 PRs for review, but no haste with that ones10:38
sil2100s/ones//10:38
sil2100The travis one is ugly, but it does its job at least10:39
mupPR snapd#5233 closed: client, daemon: add a "mounted-from" entry to local snaps' JSON <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/5233>10:48
cachio_mvo, hey11:10
mvocachio_: hey11:15
cachio_mvo, about the reboot issue11:15
cachio_I think it is ok the reboot11:16
cachio_the test is forcing a auto refresh11:16
cachio_and there is a new kernel snap in stable11:16
cachio_so, the reboot happens after the kernel snap is installed11:16
cachio_the same happens when the revert test is executed11:17
cachio_mvo, I still don't understand why it was not happening before11:17
cachio_mvo, any ideas?11:18
mvocachio_: maybe pure luck, if before the stable kernel in the image and the store was the same?11:21
cachio_mvo, this is my guess too11:21
cachio_I am not sure, but probably there was not any new kernel snap11:21
cachio_in stable channel11:22
* mvo nods11:22
cachio_mvo, I am testing a change to skip refreshing the kernel snap11:24
cachio_mvo I'll create a PR soon11:24
=== niemeyer_ is now known as niemeyer
jdstrandzyga, mborzecki (cc mvo): I think we should add the device cgroup by default now. it *shouldn't* break snaps since we are applying it in many places, *but* I think that is too risky to jam into 2.33 right before release. the code change would be small, but I'd like a full cycle or so to make sure11:43
zygajdstrand: ack11:43
jdstrandzyga, mborzecki (cc mvo): so I did it this way. I'll prepare another PR for master that does that after I do the PR for the spread test11:44
mborzeckijdstrand: good idea, aiming for 2.34 then?11:45
jdstrandmborzecki: yes11:45
mborzeckiok11:45
jdstrandI'll also comment in the PR11:45
jdstrandI'll prepare the 2.33 PR for 'full' now11:47
pedronispstolowski: mvo:  would like if could do a first reading  of  https://forum.snapcraft.io/t/cross-snap-operations-bases-and-concurrency/5685  , as first even before the merits, knowning whether the explanations are understable etc,  you have both written/touched code discussed there11:53
pstolowskipedronis: thanks, will do!11:54
pedronisthx11:55
niemeyero/11:56
pstolowskipedronis: i've addressed your review comments; note, i made on check stricter than before11:57
pstolowskihello niemeyer!11:58
niemeyerHeya11:59
zygahey gustavo!11:59
mvopedronis: sure, reading12:01
mborzeckioff to pick up the kids12:03
cachio_mvo, well, I know why it is happening, I changed the test code to restart the device once the core is installed12:09
cachio_the core from beta12:09
cachio_but in parallel there is an auto-refresh for the pc-kernel12:09
cachio_so I should wait until this task is finished to reboot the device12:10
Jonas_Hi, we are doing a proof-of-concept for a customer using ubuntu-core and snap. We have to mount and unmount cifs shares with our daemon. In strict mode mount works, but umount does not. What would be the best way to be able to do this? As I understood we cannot use the docker-support interface (which grants many permissions) as only the Docker project is allowed to do so.12:31
ogra_$ snap refresh core --stable12:31
ogra_2018-05-30T14:23:27+02:00 INFO Waiting for restart...12:31
ogra_core 16-2.32.8 from 'canonical' refreshed12:31
ogra_pedronis, ^^^thats on a classic system, shoujld it really talk about "restart" there ?12:32
pedronisogra_: it's the restart of snapd itself12:33
ogra_sure, still a confusing message IMHO12:33
ogra_"Waiting for snapd restart..." would be a lot clearer12:33
pstolowskiniemeyer: can you take a look at https://github.com/snapcore/snapd/pull/5162 ? that would unblock another of my PRs12:34
mupPR #5162: overlord/hookstate: support undo for hooks <Critical> <Created by stolowski> <https://github.com/snapcore/snapd/pull/5162>12:34
sergiusensgood morning12:44
sergiusensdiddledan: hey, when you have time, a misdirected gimp support request https://bugs.launchpad.net/snapcraft/+bug/177379712:44
mupBug #1773797: gimp snap app crashes <crashe> <gimp> <lubuntu> <Snapcraft:New> <https://launchpad.net/bugs/1773797>12:44
mborzeckiogra_: can you check which package /etc/X11/Xsession.d/65snappy comes from? it's not listed here https://packages.ubuntu.com/bionic/amd64/snapd/filelist makes me wonder if this was perhaps shipped by older versions of snapd12:45
zygaJonas_: hey, can you please give me more details about the mount/umount issue12:50
zygaJonas_: the best way forward, in general, would be to open a forum thread with the basic requirements (we need to mount/umount cifs) and to indicate if this should be seen only inside your snap or also in the rest of the system12:51
Jonas_I was thinking about adding an interface supporting only mount/umount cifs but if I understood correctly it is not possible to add interfaces to ubuntu-core easily. One has to fork snapd and open a pull request into the core, right?12:51
zygabased on those requirement and the follow-up discussion we would probably design a new interface12:51
Jonas_it should only be seen inside our snap12:52
Jonas_ok I will open a forum post12:52
zygaJonas_: we could come up with the code ourselves once the requirements are known12:52
zygaJonas_: yes, to add a new interface you need to alter snapd source code12:52
Jonas_ok great, I can also try to write a suggestion, as it is in go and the daemon we write is in go as well12:52
niemeyerpstolowski: Will do!12:53
ogra_mborzecki, added to the forum thread already12:54
ogra_mborzecki, it might have been dropped when we switched to wayland in 17.04, not sure12:55
mborzeckiogra_: missed that, thanks!13:00
niemeyerI'll be late to the call today, or might not make it, as we have a conflicting meeting13:01
zygaChipaca, pedronis: how about you?13:02
niemeyerActually, three of us are here13:02
zygaare you joining the main standup?13:02
zygaah13:02
zygaok13:02
niemeyerI suggest skipping today13:02
zygaok13:02
niemeyerChipaca, cachio_ ^13:02
niemeyerpstolowski: ^13:02
niemeyermborzecki: ^ :)13:02
=== cyphermo1 is now known as cyphermox
Chipacaniemeyer: we decided to have it anyway so we could talk behind your back13:13
niemeyerDamn! I'm glad I wasn't there then :P13:13
Chipacayeah, doing a hangout with your back to the computer is awkward13:14
zygachipaca was even doing tricks with his camera so that I was on screen upside-down for a sec13:14
mupPR snapd#5229 closed: interfaces: add juju-client-observe interface <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/5229>13:16
mborzeckizyga: now you know how you'd look like in australia13:18
mupPR snapd#5235 opened: interfacces/joystick: support modern evdev joysticks 2.33 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5235>13:21
zygamborzecki: hehe, I just need to add snow ;)13:21
mupPR snapd#5236 opened: interfaces: add juju-client-observe for 2.33 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5236>13:22
zygaeh, why is S_MAGIC_FUSEBLK just defined inside coreutils13:22
Jonas_zyga: I opened this topic in the forum https://forum.snapcraft.io/t/interface-mount-umount-cifs-share-permission/568913:27
zygaJonas_: thank you13:27
Jonas_zyga: if my approach in general is legitimate I could also try to implement the interface myself and open a pull request. But maybe there is a better way to do what I want to achieve, so I will wait for feedback13:28
zygaThanks, I will review it in detail, I was surprised you could actually mount anything inside your snap,13:28
zygawhich kernel were you running?13:28
Jonas_4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux13:30
mupPR #153: Add REST APIs for capabilities <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/153>13:30
zygahmm?13:31
zygaah, mup just being confused13:31
Jonas_I thought maybe by the network-control or fuse-support interfaces I was able to mount13:31
zygaJonas_: fuse-support does allow you to mount fuse filesystems in a number of places, including $SNAP_COMMON13:32
zyga(oddly it doesn't allow unmounting)13:32
zygais your filesystem a kernel one or a fuse one?13:33
Jonas_it is the kernel cifs one (I think) installed via cifs-utils package (mount.cifs)13:33
zygathat's interesting, it would look like a bug (or missing feature) in the 4.4 kernel that the rule allows mounting any filesystem because of mount fstype=fuse.* (perhaps fstype is not supported)13:34
zygajdstrand: ^13:34
zygaJonas_: in any case, we have enough information to investigate now13:34
Jonas_zyga: Ok perfect, thx13:35
* zyga needs to finish some paperwork for a flight13:35
mborzeckireally warm now, https://i.imgur.com/XyqGRyN.jpg13:41
pstolowskisame here13:45
mupPR snapcraft#2147 opened: recording: expose the version of snapcraft <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2147>13:55
=== chihchun is now known as chihchun_afk
=== pstolowski is now known as pstolowski|lunch
mvopedronis: quick "taste" question - do you think boot.SetNextBoot() should grow "SetNextBoot(model)" or should we handle it on the backend level? or just move boot/ into backend?14:16
mvopedronis: context is that SetNextBoot should only be set for kernel/base as defined in the model14:16
pedronismvo: let me think a 2nd, we also have many packages14:21
mvopedronis: yeah, I'm a bit uncertain about the layering now that we need to know the model for the next boot seting14:22
pedronismvo: yea, I think boot could be merged into snapstate/backend14:23
mupPR snapd#5236 closed: interfaces: add juju-client-observe for 2.33 <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5236>14:23
pedronismvo: mmh14:23
pedronismvo: ah, it's separate because it' used also by image14:24
mupPR snapd#5222 closed: tests: adding fedora-28 to spread.yaml <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5222>14:24
mupPR snapd#5235 closed: interfaces/joystick: support modern evdev joysticks 2.33 <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5235>14:24
pedronismvo: so, it's used exactly in one place, I think it could be refactored, no to do the check if the type is right on its own14:26
pedronismvo: and then indeed dealing with model would live backend14:26
mvopedronis: sounds good - and backend will get LinkSnap(info, model) (?)14:28
pedronismvo: yes, given that backend doesn't get state,  though looking more, the only piece of boot that is used outside of snapstate14:29
pedronisis ExtractKernelAssets14:30
mvopedronis: yes14:30
pedronisthe question woild become a bit where to put that,  if we merge the rest of boot into snapstate/backend14:30
pedronisa package to just hold one function i strange14:31
=== pstolowski|lunch is now known as pstolowski
mvopedronis: indeed. we could also leave boot/ as is for now and just teach backend to get a model in LinkSnap14:32
pedronis?14:32
mvopedronis: I mean, we don't need to move boot.SetNextBoot() into backend just now, by passing the model from snapstate -> backend things should be ok. backend can check if its a relevant snap for booting and call boot.SetNextBoot. or am I misunderstanding something?14:33
pedronismvo: no, that's fine14:34
mvopedronis: thank you, I will work on this (will need some test tweaks I think)14:35
pedronismvo: my point wsa mostly if we start splitting responsability like this,  maybe backend should do the type checks too14:36
mvopedronis: oh, interessting14:36
mvopedronis: I like that14:36
pedronismvo: it's a bit strange how SetNextBoot work, doing nothing if it's the wrong14:36
pedronistype14:36
mvopedronis: +1 lets make this an error14:37
pedronisyea14:37
pedronisand then backend should take care of this14:37
pedronisI suppose similarly for the other helpers14:37
mvopedronis: I will make it so14:37
pedronisI mean similar changes to split responsability14:37
* mvo nods14:38
sergiusensjdstrand: did we have a bug report for adding the snapcraft version to manifest.yaml? I see I affected the wrong bug (LP: #1768820) which I will fix shortly14:54
mupBug #1768820:  manifest.yaml does not indicate the release the snap was built on <review-tools:Confirmed for jdstrand> <Snapcraft:In Progress by sergiusens> <https://launchpad.net/bugs/1768820>14:54
mupPR # closed: snapcraft#1649, snapcraft#1720, snapcraft#1875, snapcraft#1905, snapcraft#2020, snapcraft#2040, snapcraft#2078, snapcraft#2105, snapcraft#2110, snapcraft#2121, snapcraft#2128, snapcraft#2135, snapcraft#2141, snapcraft#2143, snapcraft#2146, snapcraft#214715:01
mupPR # opened: snapcraft#1649, snapcraft#1720, snapcraft#1875, snapcraft#1905, snapcraft#2020, snapcraft#2040, snapcraft#2078, snapcraft#2105, snapcraft#2110, snapcraft#2121, snapcraft#2128, snapcraft#2135, snapcraft#2141, snapcraft#2143, snapcraft#2146, snapcraft#214715:04
kyrofaHuh... Travis seems a little off today15:14
kyrofaI can't view any logs15:14
kyrofaAnyone else having troubles?15:15
pedronismvo: you are off tomorrow and Fri ?15:16
mvopedronis: yes15:20
pedronispstolowski: are you off as well tomorrow?15:33
pstolowskipedronis: yes15:33
pstolowskipedronis: but i'll be working on Fri15:34
pedronispstolowski: mvo: I owe you both re-reviews, I would do them tomorrow morning, unless you think you need them today15:36
sergiusenskyrofa: no, I have been retriggering your PRs though, hit a couple of lxd and store timeouts15:38
sil2100mvo: I updated https://github.com/snapcore/core18/pull/15 to only look at removals and now we have our first green travis CI run since a long long time \o/15:40
mupPR core18#15: Update the dpkg list for the ABI test, switch to only tracking removals <Created by sil2100> <https://github.com/snapcore/core18/pull/15>15:40
sil2100We probably need more tests in the nearest time15:40
mvosil2100: \o/15:40
sil2100Sometimes travis seems to randomly fail on operations like apt install due to not being able to get the lock15:41
sil2100Looks like an issue on travis15:41
sil2100mvo: as for the task 'grub boot menu shows "Ubuntu Core 16" right now, must show "Core 18"' - this seems like something on the gadget side, or do you want to somehow hack the menu entry for core from the core18 snap?15:44
mvosil2100: this is pretty much done, sorry, let me show the PRs15:52
mvosil2100: https://github.com/snapcore/snapd/pull/5223 and the gadget updates linked in there should fix it. and a new model assertion15:53
mupPR #5223: image: set model.DisplayName() in bootenv as "snap_menuentry" <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5223>15:53
mvosil2100: would be nice to figure out why console-conf is not working, it seems like it cannot configure its network right now15:53
sil2100mvo: ok!15:57
sil2100mvo: yay, thanks o/15:57
sil2100mvo: should I remove the updates I made to the package list for the removal script? As per my comment, I left them since I thought that it might be good to update it anyway, but maybe we want to have a smaller list there, with the essentials only15:58
sil2100s/removal script/removal test/15:58
pstolowskipedronis: i don't, it still needs 2nd review15:58
mvosil2100: my gut feeling is that we only should update this list when core18 go to stable15:59
mvosil2100: I mean, that is the promise, once its in stable we cannot remove it anymore15:59
mvosil2100: but before we have some freedom :)16:00
=== pstolowski is now known as pstolowski|afk
sil2100mvo: I moved it to a cleaner PR16:24
sil2100mvo: eh, ok, I just read that even though xenial is supported as a travis dist:, it seems that the dpkg lock errors are only happening there - looks like something isn't quite stable yet16:33
sil2100So I'll just prep a PR to switch back to trusty for now...16:34
sil2100Since on xenial we'd have to re-run the CI tests from time to time16:34
jdstrandsergiusens: I thought so. let me check trello16:44
jdstrandsergiusens: ok, so the *snapcraft* version, no, or at least it isn't something that I reported. the release where stage-packages came from, yes (1768820)16:46
jdstrandsergiusens: thank you for picking that up. that will help us be more accurate16:46
* zyga fetches more water, 16:50
sergiusensjdstrand: ok, I can kill the snapcraft version one if it is not useful, I had that on the back of my mind for easier mksquashfs detection16:51
sergiusensI can kill it if it is not useful, it might even have been ev that requested this and I am just losing it :-P16:51
sergiusensjdstrand: is ID and VERSION_ID enough?16:52
kyrofaHey niemeyer, you available to meet?17:05
* cachio_ afk17:06
jdstrandsergiusens: from os-release? yes, that would be fine17:06
jdstrandsergiusens: I wouldn't worry about the mksquashfs detection at this point wrt mainifest.yaml. not everything will have manifest.yaml so it wouldn't help everywhere; besides, we want everyone squashing the same atm. *maybe* it would be useful some day, but I'd like to understand the use case better, so, afaic, I don't need snapcraft version17:09
jdstrandsergiusens: that said, it isn't a terrible thing to have in there, so if you just wanted it, I wouldn't complain17:09
jdstrandI could imagine it might occassionally be helpful when debugging17:10
niemeyerkyrofa: Ouch, sorry17:27
niemeyerkyrofa: Missed our slot17:27
niemeyerkyrofa: Just off a call with noise][, here if you are17:27
Chipacasomething's up with the lxd snap18:05
Chipaca+ lxd.lxc exec my-ubuntu dhclient eth018:06
ChipacaCannot find device "eth0"18:06
=== jkridner|afk is now known as jkridneer
=== jkridneer is now known as jkridner
kyrofaHey niemeyer, I'm available now, sergiusens are you around?18:11
sergiusenssure18:12
niemeyerCool, let's go then18:13
kyrofaSame room? Alright, hopping in18:15
Lin-Buo-RenAnyone knows why snapcraft replaces the prefix of pkg-config to $SNAPCRAFT_STAGE$originally_configured_prefix ?18:22
kyrofasergiusens, yikes, lxd issues in travis18:54
kyrofaFinally got the log to load18:55
sergiusenskyrofa: internet has been slow in general for me today18:55
sergiusenskyrofa: google docs is also playing up18:55
kyrofacan't get anything to pass anymore18:56
kyrofaTime for vacation?18:56
kyrofaLooks like we're using the lxd snap... any chance it just updated?18:58
kyrofaI'll see if I can duplicate locally18:58
kyrofasergiusens, yep, I can duplicate locally19:05
kyrofaLooks like 3.1 was released19:05
kyrofaI'll chase it down19:06
kyrofaLooks like we don't need to setup that iface19:16
mupPR snapcraft#2148 opened: travis: stop setting up testbr0 for lxd <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/2148>19:23
sergiusenskyrofa we can also stick to the 3.0 channel19:30
sergiusensand gain the benefits of stability19:30
* sergiusens will brb19:31
kyrofaOh, that definitely seems like something we'd want in CI19:40
kyrofaForgot that was available19:41
mupPR snapcraft#2148 closed: travis: stop setting up testbr0 for lxd <Created by kyrofa> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/2148>19:44
mupPR snapcraft#2149 opened: travis: use LXD from 3.0 track <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/2149>19:47
kyrofaDang... looks like 3.0 track was updated to have the same issue :(19:53
sergiusenskyrofa: so for snapcraft#2149 you set the lxd to the 3.0 track but still remove the bridge creation logic, is that desired?19:59
mupPR snapcraft#2149: travis: use LXD from 3.0 track <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/2149>19:59
mupPR snapd#5237 opened: tests: fix lxd test - in current lxd we get eth1 instead of eth0 <Created by mvo5> <https://github.com/snapcore/snapd/pull/5237>20:00
kyrofasergiusens, it's required, I'm afraid20:12
kyrofa3.0 still busts the same way as 3.120:13
kyrofaBut I still think it's worth using 3.020:13
sergiusenskyrofa: ok, no worries20:26
jdstrandniemeyer: hi! would you mind commenting on https://forum.snapcraft.io/t/camera-raw-usb-plugs-auto-connect-for-qtchildid/2917/4? (especially since you know the roadmap for dynamic hotplug)20:28
niemeyerjdstrand: Will look, thanks for the ping20:29
jdstrandnp20:29
kyrofasergiusens, bleech... so many concerns leakages between lifecycle and pluginhandler...20:35
kyrofaThey even share logging responsibilities :D20:35
sergiusenskyrofa: the pluginhandler should have its cli roots stripped out20:36
sergiusensbut we talked about this already, right?20:36
kyrofasergiusens, I know we've talked about pluginhandler, but I don't recall a conversation about lifecycle20:37
sergiusenskyrofa: we said we wanted to put all new logging in lifecycle and remove things from pluginhandler as time went by, given that anything in pluginhandler is (or should be) triggered by lifecycle20:38
kyrofaYeah that sounds right. I think I might do a little bit of that here20:39
sergiusens\o/20:44
sergiusenskyrofa: ok, going to stop for today and re-check on that lxd PR later in the evening/night to update and propose new PRs21:39
kyrofasergiusens, sounds good. LXD PR look good though? Can I merge if green?21:40
sergiusenskyrofa: oh, let me approve21:40
mupPR snapd#5238 opened: tests: skip appstream-id test for core systems 32 bits <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5238>21:40
kyrofaExcellent21:40
mupPR snapcraft#2141 closed: jhbuild plugin: allow running as 'root' <Created by diddledan> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2141>21:41
diddledan\o/21:41
sergiusenskyrofa: after merging, if I don't get to it, please update branch on the top 4 PRs on the list21:41
kyrofaI'll update em all21:42
kyrofaWell, the current ones anyway21:42
sergiusenskyrofa: well, just those 4 please :-P21:42
sergiusensyeah21:43
mupPR snapcraft#2149 closed: travis: use LXD from 3.0 track <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/2149>22:47

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