/srv/irclogs.ubuntu.com/2019/08/06/#snappy.txt

zygao/04:13
* zyga travels today04:13
mupPR snapd#7212 opened: tests: respect SPREAD_DEBUG_EACH on the main suite <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/7212>04:15
mupPR snapd#7213 opened: cmd/snap-confine: implement snap-device-helper internally <Created by zyga> <https://github.com/snapcore/snapd/pull/7213>04:15
mupPR snapd#7214 opened: interfaces/network-setup-control: allow dbus netplan apply messages <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/7214>05:19
mborzeckimorning05:32
zygaHey05:35
zygamborzecki: wish me luck :-) trying to use pkp today05:36
zygaBought ticket online, barely. I cannot understand why that system is so poor05:37
zygaNow noticed that “mandatory replacement bus service” is to be used05:37
mborzeckihahaha05:38
mborzeckizyga: *) walking short distances included05:39
zygaForeigners beware :-)05:39
zygaI sent a pair of PRs05:39
zygaStuff from yesterday05:39
zygaOnce I am on board I will ping you05:40
zyga“Opóźnienie może ulec zmianie” 😂05:40
zygaI “like” how they repeat the same announcement about each train like 10 times05:45
zygaDefinitely not confusing because there is something being said all the time05:45
zygamborzecki: ok, settled in05:50
zygafantastic service, 2 minutes late on arrival, 15 minutes wifi included05:51
zygaeh, everything is red again05:51
mborzeckizyga: why red? the sbuild task?05:55
zygayeah05:55
zygajust merged your fix05:55
mborzeckizyga: cool, thx05:55
mupPR snapd#7210 closed: packaging/debian-sid: set GOCACHE to a known writable location <Created by bboozzoo> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7210>05:55
mborzeckizyga: the year of linux desktop, apparently when logging into gnome on wayland, there's likely some race in gsd where it fails to set up your keyboart shortcuts :/ you have to log out and log in once more05:58
zygamborzecki: brilliant05:58
mborzeckiwhy am i even surprised :)05:58
zygamborzecki: just buy a mac already05:58
zygamborzecki: maybe in 10 years05:58
zygamborzecki: maybe it will work ;-)05:58
zygamborzecki: having said that, try WSL205:58
mborzeckizyga: woudl need to have windows for that05:59
zygaI think this is a transformative, game-changing development05:59
zygamborzecki: get a free eval version for 90 days05:59
zygait's well worth playing with05:59
mborzeckizyga: i'm using eval for games, though can't quite recall when was the last time i booted it06:00
zygamborzecki: switched over to my ubuntu phone for network06:01
zygamborzecki: I wonder how much of the journey will have cellular coverage06:01
zygamborzecki: I recall it's ~ 30%06:01
zygamborzecki: btw, once again I'm reaffirmed that 13" is the perfect travel laptop06:05
zygamborzecki: my 15" is at home, it's a good secondary desktop but it's not fit for travel06:05
zygait would not fit on the intercity folding table, it would not fit on the economy airline folding tray, etc06:06
mborzeckibrb, new kernel06:13
mborzeckiso, running 5.2.6 now06:24
zyganeat06:24
zygaI'm on 5.2.0 still06:24
mborzeckizyga: still on tw?06:29
zygamborzecki: tw?06:29
mborzeckitumblweed06:29
zygamborzecki: ah, no, this is eoan06:29
zygamborzecki: I'm using in on the huawei06:30
zygamborzecki: I kind of miss TW but it is just for 4 days :)06:30
=== pstolowski|afk is now known as pstolowski
pstolowskimorning07:07
mborzeckipstolowski: hey07:10
zyga123 testing07:16
zygaI'm arriving in 20 minutes, I will be online in around an hour again07:52
mborzeckibrb, quick errand, back in 3007:59
zygaI’ve arrived but will be AFK for a few more moments08:46
mborzeckire08:50
mborzeckizyga: somewhat closed to reproducing context canceled in unit tests, `while true; do : |  taskset -c 0,1 ./snap.test -test.count=1 || break; done` seems to work09:20
mborzeckizyga: somehow can't reproduce it when i replace s.tomb.Context(nil) with context.TODO()09:28
zygare09:32
zygawhat is taskset -c 0,1?09:33
zygacpu affinity?09:33
zygamborzecki: I'm not an expert on context, perhaps Context.TODO does nothing at all but Context from tomb is a real deal that need some code?09:33
zygamborzecki: ok, unless anything else interrupts I'll work on the bugfix09:45
PerkolHow do I install local package with snap?09:47
popey_Perkol: can you elaborate?09:47
popey_zyga: are you able to help with https://github.com/snapcore/snapd/pull/7129 ?09:48
mupPR #7129: userd: allow setting default-url-scheme-handler <Created by jwheare> <https://github.com/snapcore/snapd/pull/7129>09:48
jwhearerelated to that, is it possible to detect the snapd version at runtime from an app?09:58
jwheareonce that is merged, we'd only want to prompt to handle url schemes for a supporting version of snapd09:59
zygapopey_: looking09:59
zygajwheare: you can use "assumes" for that10:05
popey_jwheare: no, but you can use "assumes: 2.40" (for example)10:05
zygajwheare: though that is a static annotation on a snap, not a dynamic check10:05
popey_https://snapcraft.io/docs/snapcraft-yaml-reference10:05
mborzeckizyga: ok, i think i know what's going on, (goroutine 1) the agent calls Shutdown(ctx) with child context obtained from tomb, (goroutine 2) http.Serve() in tomb's func exits and returns nil, in t.kill() the child context get cancelled, and sets the reason to nil, rescheduled back to (1) child context is canceled, calls t.Kill(err), which sets the tomb's err context.Canceled (since it was nil as http.Serve() exited and didn't set one)10:05
zygajwheare: you can use snapctl to query for the version10:05
mborzeckimborzecki: so, a race, and perhaps a bug in use of tombs as well10:06
zygaat least I think you can, I'd have to check the API10:06
zygaI need to prioritize tasks10:07
zygasorry, settling ing10:07
zygasettling in10:07
jwheareyeah i wouldn't want to block installation of the app entirely based on that missing feature10:10
jwhearejust need to determine whether to show the prompt on first launch10:10
zygajwheare: unfortunately snapctl has missing features as compared to snap10:13
zygajwheare: technically there is the /v2 API endpoint that has this information10:13
zygait's just not exposed with snapctl10:13
jwhearecould just do a version check though10:14
zygajwheare: that's the thing, you cannot10:14
zyganothing will tell you which version of snapd is there10:14
popey_zyga: can you use curl from inside a snap to the snapd api?10:14
zygapopey_: based on a quick look, no10:15
zygapopey_: there are two sockets, if you recall10:15
zygapopey_: one is for full snapd api10:15
zygapopey_: and you cannot use it without snapd-control10:15
zygapopey_: the other one is for snapctl10:15
zygapopey_: but this one doesn't expose this10:15
pstolowskiondra: hey, thanks for yesterday's explanation of the failing first boot scenario; easily reproduced with broken gadget snap, also spotted the code responsible for this in snapd (i also looked at initrd script as well)10:16
zygapstolowski: cool, :)10:19
pstolowskii'm just wondering how to test potential snapd fix without waiting for a new core image in edge10:20
zygapstolowski: can you walk me through it?10:21
zygapstolowski: maybe that will help10:21
pstolowskizyga: quick HO?10:21
zygapstolowski: perhaps just chat, sorry, there's some distraction around here and my network is so-so10:22
pstolowskizyga: sure10:22
zygapstolowski: let's try an audio-only one?10:23
zygapstolowski: facetime audio?10:23
pstolowskizyga: ok10:23
zygacalling now10:24
jwhearehuh ok10:26
jwheareis there any info on release cadence and adoption rates for new versions of snapd?10:28
popey_Most people get their snapd version from an automatic update of the core snap (or core18), via re-exec...10:29
mborzeckizyga: https://github.com/snapcore/snapd/pull/721510:30
mborzeckipstolowski: ^^10:30
mupPR #7215: usersession/agent: use background context when stopping the agent <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7215>10:30
mupPR snapd#7215 opened: usersession/agent: use background context when stopping the agent <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7215>10:30
popey_jwheare: roughly 99.97 of snap users are on the latest 2.3910:31
* diddledan wants 2.41 already :-p10:33
zygalooking10:33
diddledanhopefully .41 will include my optical-drive/scsi-generic patch that might enable makemkv10:33
popey_Nice!10:34
zygamborzecki: s/a the/.../10:34
popey_(that 99.97 should be a percentage, of course) :D10:34
diddledanI think it was merged too late for inclusion in .4010:34
diddledanI choose to ignore that you think it's a percentage, and ask whose lost .03 of a person? :-p10:35
popey_Danny DeVito doesn't like automatic updates.10:35
diddledanwho's? which whose/who's should that be?10:35
zygamborzecki: I'm honestly quite lost by the context stuff, I need to read more upon it10:35
diddledanwhom10:35
diddledanhttps://twitter.com/natfriedman/status/115855717042361139310:36
zygamborzecki: I mean, the pathc looks good10:36
zyga*patch10:36
zygaI just feel unqualified to say so10:36
mborzeckihaha :)10:36
zygamborzecki: https://github.com/snapcore/snapd/pull/7215#pullrequestreview-27125878410:37
mupPR #7215: usersession/agent: use background context when stopping the agent <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7215>10:37
zygawe have 81 PRs10:38
zygacan we look at merging some10:38
zygawhen mvo sees 101 PRs he will smite anyone opening a new one ;)10:38
zygafor instance: https://github.com/snapcore/snapd/pull/721210:39
mupPR #7212: tests: respect SPREAD_DEBUG_EACH on the main suite <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/7212>10:39
zyga(shamelessly my own)10:39
zygacan we +1 that?10:39
zygahola cachio :)10:44
zygaI’m going for a walk11:03
cachiozyga, hey11:18
cachiozyga, buenos dias11:18
zygare11:25
zygaI tweaked the test, it should now pass everywhere11:35
pstolowskihey cachio11:35
cachiopstolowski, hey11:35
mupPR snapd#7212 closed: tests: respect SPREAD_DEBUG_EACH on the main suite <Simple 😃> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7212>11:49
mupPR snapd#7187 closed: data/selinux: allow snap-confine to read entries on nsfs <Simple 😃> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7187>11:51
mborzeckipstolowski: can you take a look? https://github.com/snapcore/snapd/pull/713711:51
mupPR #7137: gadget: support for writing symlinks <Gadget update> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7137>11:51
zygahmm, I somehow made a racy service ...12:01
* zyga thinks12:02
=== ricab is now known as ricab|lunch
diddledandon't make me run. the leg movement makes my belly turn into a pendulum and I fall over12:08
diddledanplus: seriously unfit!12:09
* diddledan eyes zyga's race..12:09
mborzeckihave i already complained that tests/main/sbuild occasionally hits spread job timeout?12:10
zygamborzecki: do we know where it spends most of the time?12:11
diddledaninteresting. python3's venv module in disco (core18) is not relocatable - it tries to, and fails to, read files in /usr/share/python-wheels12:11
mborzeckicachio: restarted https://github.com/snapcore/snapd/pull/7211 bc it didn't fail with PROTOCOL error, maybe we'll get lucky in the next run12:11
mupPR #7211: tests: add more debug information to see the root cause of the protocol error <⛔ Blocked> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7211>12:12
cachiomborzecki, thanks12:12
mborzeckizyga: idk, tbh, when debugging that task manually on gcp i managed to get 3 incomplete runs before the node was killed12:12
* zyga has issues with systemctl restart12:14
mborzeckicachio: wondering, if you have the log from when the problem happens, perhaps you could try to run the request with curl --http212:14
zygais that different from stop + start?12:14
cachiothe problem happens basically when we need to download a snap from fastly and it is not in the endpoint, so it goes to get it from a central repository12:16
cachiomborzecki,12:16
cachiomborzecki, it happens really sporadically12:16
zygaI'm trying with stop + start12:17
cachiomborzecki, yesterday verterok requested information I think12:17
cachioI don't know if there is more info about this protocol issue12:17
mborzeckicachio: mhm12:17
verterokcachio: Hi, yesterday I filed a support ticket to fastly, got a reply: they can't reproduce12:18
verterokcachio: if there is a way to reproduce, that would be helpful, otherwise I think the http2debug logs might shed some light12:20
cachiomborzecki, I added the GODEBUG=http2client=1 to te test env but logs are the same12:21
cachioafter the protocol error12:21
cachiodo you know if it is ok or I should change something?12:21
cachioperhaps display a different log on debug?12:22
mborzeckicachio: do you have the log that contains the error?12:23
cachiomborzecki, you restarted the failed log :)12:26
cachiomborzecki, last exec failed with protocol error12:26
mborzeckicachio: in 7211? that one failed because of sbuild12:26
cachiomborzecki, or perhaps someone else restarted that before?12:27
cachioyesterday I saw that12:27
cachiono worry in that case12:27
cachiolets see if fails now12:27
zygarestarting services is tricky12:31
zygasnap "run" chain takes long enough that raciness is easy12:31
zygaI wonder if we could turn all daemon simple into daemon notify internally12:32
zygawhere we only poke systemd at around snap-exec12:32
mborzeckipfff 2019-08-06 11:48:32 Error executing google:ubuntu-19.04-64:tests/main/login : read tcp 10.20.0.181:57254->34.74.6.202:22: use of closed network connection12:45
zygamborzecki: mmmmm12:46
zygaour shutdown code does not seem very reliable?12:47
zyga*yes*12:51
zygafinally it passed12:51
zyganow it will not fail, but I feel we have a problem12:52
* zyga tries on 14.0412:52
cachiomborzecki, you are right about the #7211, I saw the protocol error in another one12:56
mupPR #7211: tests: add more debug information to see the root cause of the protocol error <⛔ Blocked> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7211>12:56
cachiomborzecki, this happens when I have like 15 logs open heheheh12:58
ijohnsonhey folks, can I get another review on https://github.com/snapcore/snapd/pull/7189 ? :-)13:23
mupPR #7189: HACKING.md: update spread section, other updates <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/7189>13:23
=== Eleventh_Doctor is now known as Pharaoh_Atem
=== ricab|lunch is now known as ricab
* zyga is on the roof13:37
zygaobviously storm is coming now13:38
pstolowskizyga: don't stay with antenna in your hand13:39
ograget an umbrella so you dont get wet ...13:43
zyga-80dBm signal13:51
zygahmmm, a bit crappy13:51
zygaI need a longer pole13:52
zygaanyway13:53
zygathat's that for now13:53
mupPR snapd#7189 closed: HACKING.md: update spread section, other updates <Created by anonymouse64> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7189>13:58
ondrapstolowski cool14:00
ondrapstolowski I can point you easily to initrd code if you want14:00
pstolowskiondra: i found it14:00
ondrapstolowski cool14:00
ondrapstolowski what do you think is best way, assume seed as primary location instead of looking in vat/lib/snapd/snaps?14:01
ijohnsonthanks for the merge zyga14:02
pstolowskiondra: good question, i'm not sure we need to change initrd, making snapd more robust should fix it. but if we change initrd, we would make seed a fallback, not primary, no?14:07
ondrapstolowski I'd prefer to make initrd also more forgiving14:09
ondrapstolowski if we check snaps and seed/snaps for kernel and core snap, there should be no danger and it will make boot more reliable14:10
ondranow we are creating symbolic link only to make initrd happy14:11
ondrapstolowski if we use seed for first boot, it will be more aligned with all other snaps, now we are treating core and kernel snaps at first boot as special snow flakes :)14:12
ograwould you do the seeding from initrd then ?14:14
ogra(and gpg verification etc etc)14:14
ograthat will likely grow the initrd a lot14:14
ogra(which in turn would make the boot slower on low-end HW)14:15
pstolowskiogra: no, it's just about looking for kernel in seed/ even if there is no symlink14:18
zygaondra: https://bugs.launchpad.net/snapd/+bug/1838937 it is public now14:22
mupBug #1838937: device cgroup enforcement is partially ineffective for snap services <snapd:In Progress> <https://launchpad.net/bugs/1838937>14:22
pstolowskiondra: where is the repository for initrd code?14:30
Sheogorath[m]Hey guys, I'm currently looking into Ubuntu Core and I'm confused about the update process, because I see that apps are updated using snap, but how is the system image/kernel updated? Also via snap?14:33
ograpstolowski, https://github.com/snapcore/core-build ?14:37
ijohnsonSheogorath[m]: yes the kernel and rootfs is also updated via gadget and kernel snaps14:38
Sheogorath[m]ijohnson: Do you happen to know how unsuccessful upgrades are handled? (i.e. New kernel installed, device no longer boots)14:39
ijohnsonupdates are transactional, so if the device fails to boot, it will automatically rollback to the previous kernel14:40
Sheogorath[m]:+1: Thanks, that's what I wanted to know. Any pointer for docs on that?14:42
pstolowskiogra: thanks14:42
ijohnsonSheogorath[m]: see https://assets.ubuntu.com/v1/66fcd858-ubuntu-core-security-whitepaper.pdf14:43
Sheogorath[m]Awesome thanks!14:50
* cachio lunch14:55
ondrapstolowski reference is here https://github.com/snapcore/core-build/tree/master/initramfs15:47
ondrapstolowski but I think there is also ppa15:47
pstolowskiondra: yep, thanks, got it from ogra15:47
ondrapstolowski OK :)15:47
pstolowskiondra: btw, does any change there land automatically in core from edge? how can i test it before it lands?15:49
ondrapstolowski what would be question to ogra15:49
ondrapstolowski I do usually build own kernel snap to test15:49
ondrapstolowski you can append initrd overlay to existing initrd blob and it will overide file in question15:50
pstolowskiondra: can you elaborate or give a pointer to doc? sorry, i'm new to this..15:56
ondrapstolowski no worries15:56
ondrapstolowski see https://git.launchpad.net/~ondrak/ondras-snaps/+git/linux-kernel/tree/snapcraft.yaml?h=snapdragon-fit-dmcrypt#n14216:00
ondrapstolowski line 142 builds overlay initrd, in your case this would be likely just one file in there16:00
ondrapstolowski line 143 will then put two together16:01
ondrapstolowski actually check line 14516:02
ondrapstolowski something like this https://paste.ubuntu.com/p/2MsV3hwtyc/16:04
pstolowskiondra: got it, thanks. so looks like to test it with qemu & amd64 core image i need to rebuild amd64 kernel snap, that means assertions etc16:07
ondrapstolowski no need for new assertion16:08
ondrapstolowski you can sideload kernel snap16:08
ondrapstolowski unpack stock kernel snap, append to existing initrd.img, snap pack, and build image with --snap <path to kernel snap>16:08
pstolowskiondra: ah, allright.. will try that out, thanks!16:10
=== pstolowski is now known as pstolowski|afk
mupPR snapd#7216 opened: interfaces/misc: updates for k8s 1.15 (and greengrass test) <Created by jdstrand> <https://github.com/snapcore/snapd/pull/7216>17:16
mupPR snapd#7217 opened: interfaces/bluetooth-control: add udev rules for BT_chrdev devices <Created by kubiko> <https://github.com/snapcore/snapd/pull/7217>17:47
* zyga fell asleep18:08
zygasorry folks, I'm just exhausted by lack of sleep18:09
roadmrzyga: 💤  timezone shifting is tough. Take it easy :)18:14
cwayneroadmr: sprinting is tough even without the timezone shifting :)18:15
cwayneas I've just now learned18:15
zygaroadmr: yeah, I'm just tired18:15
roadmrcwayne: it is, yes18:15
cwayneroadmr: especially when the last lightning talk breaks your stuff 😂18:16
roadmrcwayne: I attended the snapcraft summit earlier this year - it was local (so just swapped WFH for a 25-minute commute downtown) - I was still exhausted by the end of the week18:16
cwayneroadmr: oh i believe it18:16
cwayneit's called sprinting for a reason!18:16
roadmrcwayne: haha :) popey will be happy to know we have a fix for the null snap, should be in prod in the next couple of days18:16
popey_roadmr: hurrah!18:18
zygaroadmr: what was the issue?18:19
zygaroadmr: None18:19
zyga;D18:19
zyga(it's a joke)18:19
roadmrzyga: exactly :)18:19
roadmrwe were happily assuming that if a key was present in a dict, the value would be non-none :D18:19
popey_How wrong you were!18:20
popey_(interestingly I never intended it to fail the store, it worked in my earlier test because I did it slightly differently)18:20
roadmrpopey_: remember what they say about assuming18:20
roadmrhttps://www.explainxkcd.com/wiki/index.php/1339:_When_You_Assume18:20
zygaroadmr: mypy got a new feature lately18:20
zygaroadmr: typed dicts18:20
zygaroadmr: it's super useful18:20
popey_Made for a nice end to the talk though, thanks for speaking up :D18:21
roadmr\o/18:21
roadmrpopey_: you've raised the bar, now Chipaca's challenge is to also crash the store on-stage18:21
roadmr(he's crashed it plenty, just behind the scenes mostly)18:22
popey_DEAL!18:24
popey_given the null snap is a noop effectively, it's fun to run it with --trace-exec :D18:27
popey_snap-confine will always be ~0.029s or so, even on an empty snap18:28
zygaI've sent a patch for improving that18:28
zygathough a good chunk is constant cost of go18:28
popey_Good. 0.029s is outrageous! :D18:28
zygait really is18:28
popey_huh. today I learned you can "snap info path/"18:30
popey_I just did "snap info null" and wondered why I didn't get info about channels. It was seeing the null/ folder in my home that I used to make the snap18:30
popey_that's confused me for a few moments!18:30
mupPR snapd#7215 closed: usersession/agent: use background context when stopping the agent <Simple 😃> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7215>18:38
mupPR snapcraft#2655 opened: Gnome extension <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2655>19:03
mupPR core-build#50 opened: initramfs: run recover mode if trigger is detected <Created by cmatsuoka> <https://github.com/snapcore/core-build/pull/50>19:55
kyrofaroadmr, noise][, trying to upload a  banner for my snap. Restrictions state "Min resolution: 720 x 240 pixels" and "Max resolution: 4320 x 1440 pixels". But when uploading a 4320x1440px image, I get an error: "Legacy banner (banner.png) image must be 1218x240 pixels in size"20:25
kyrofaroadmr, noise][: the stated restrictions also include "Aspect ratio: 3:1", which 1218x240 is not20:27
kyrofaWhat should we be using, here?20:27
roadmrkyrofa: either don't name it banner.png, or comply with the 1218x240 requirement20:28
kyrofa... seriously? It cares about the name I chose on a file upload?20:28
kyrofaI'm doing this through the web ui20:29
roadmr............. yes20:29
kyrofaHahaha20:29
roadmrkyrofa: there's some special handling for those "legacy" banners20:29
kyrofaThat is very confusing20:29
kyrofaBut you're right, renaming it works20:29
roadmrkyrofa: yep - that'll go away in the future and there will be a specific "banner" media type - the issue right now is that the old way of handling it relied on a specially-named screenshot named banner.png20:30
roadmr(well, I say "old" but as you can see, this is still in place - we're working on it :)20:31
noise][to be phased out legacy banner method20:35
noise][and yeah, kinda unfortunate, but here we are20:35

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