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

zygagood morning05:05
zygahey mborzecki05:10
mborzeckizyga: morning05:11
zygaI have some changes to make in https://github.com/snapcore/snapd/pull/740005:11
mupPR #7400: cmd/snap-update-ns: don't propagate detaching changes <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/7400>05:11
zygaand then another round ad 2.41 suse package05:11
mborzeckizyga:  yeah, i saw jstrand's review05:12
mborzeckimvo: morning05:52
mvomborzecki: goooood morning! how are you?05:53
mborzeckimvo: cold ;) +11C outside05:54
mvomborzecki: yeah, same here. but much better than the ~40 before :)05:54
mvo(at least IMO)05:54
zygagood morning mvo05:57
zygamborzecki: +11 wow05:58
mvohey zyga05:59
zygaI'm debugging something that I changed that causes seeding to fail05:59
zygait's pretty frustrating because there's no output06:00
mvomborzecki: hm, I think we have +9 outside06:00
zygaI'll try to de-focus and advance some other stuff later, maybe around noon06:00
mborzeckimvo: wow, my preference is +20 all day round :P06:00
zygamborzecki: check out spain ;)06:00
zygamvo: do we have any stats on spread usage?06:24
mvozyga: stats in what sense?06:25
zygamvo: number of vm/hours used per account06:25
zygasomething like that06:25
zygajust as trivia06:26
zygaI wonder what's our record06:26
mvozyga: I'm sure gustavo has them, maybe sergio - I don't06:26
mupPR snapd#7158 closed: tests: part5 making tests work on ubuntu-core-18 <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7158>06:35
mborzeckioff to take my son to school and take some paperwork to my accountant06:37
mborzeckibbl06:37
zygao/06:51
pstolowskimorning07:03
zygagood morning pawel07:03
mupPR snapd#7418 closed: many: pass the rootdir and options to bootloader.Find <Created by pedronis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7418>07:29
zygawow, small success07:43
* zyga tries the other test now07:43
zygaI'm on the way towards addressing the thing that made MS_SHARED bugfix be more complex in tests07:47
zygacaused by particular core16 behavior07:47
mborzeckire07:48
zygamborzecki: hey07:48
zygamborzecki: I added syslog to snap-confine07:49
zygait helps when things faily mysteriously07:49
zygaadded some draft code to unmap /writable from snaps POV07:49
zygathat could be the thing to cut the duplicated mount entries on core16 upsetting tests07:50
mborzeckizyga: syslog? as in syslog(3)?07:53
zygayes07:53
zygait shows up even if the invocation is otherwise hidden07:53
zygamade me realize a mistake earlier07:53
mborzeckizyga: got some cleanups in s-c unit tests07:56
zygamborzecki: send them over and ping me07:58
pedronismvo: morning, I looked at #6404 again08:18
mupPR #6404: snapstate: auto transition on experimental.snapd-snap=true <Created by mvo5> <https://github.com/snapcore/snapd/pull/6404>08:18
mvopedronis: thanks, I check it out08:30
mvopedronis: I updated the LK one, let me know if you want to go one step further08:30
pedronismvo: I answered, yes, I think we should, but the change is smaller than what you thought I think08:31
pedronismvo: we don't use InstallBootConfig at runtime08:31
pedronisI can look myself in a little bit08:31
mvopedronis: also 7181 is green, I think we can merge it, yes?08:32
pedronismvo: you mean 7381 ?08:32
pedronisyes I will merge it and make 7416 smaller08:33
mupPR snapd#7381 closed: seed,image,o/devicestate: extract seed loading to seed/seed16.go <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/7381>08:34
zygayay08:34
zygaI identified the core16 + core16 but that duplicated some entries that caused the MS_SLAVE test to fail originally08:34
zygathe fix is super easy and obviously so08:35
zygacoming up in 30-60 minutes after some more testing08:35
mvopedronis: ok, I will leave the LK one for you then, thank you :) and yes, I did mean 738108:36
mvo(fat fingers)08:36
zygait's almost over, the whole thing is aligning :)08:36
pedronismvo: done, now #7416 is it's proper size (still big, again because tests), also is not the whole thing as I said, more like ~1/3 maybe08:37
mupPR #7416: seed/seedwriter: start of Writer and internal policy16/tree16 <Created by pedronis> <https://github.com/snapcore/snapd/pull/7416>08:37
pedronis*its08:37
mvopedronis: ok, I try to get to it soon08:38
zygamborzecki: it passed :D08:46
zygamborzecki: mwahaha, the bug is fixed08:46
zygarunning full run across all systems on that test08:47
zygaI'll start polishing the patch for submission08:47
pedronismvo: I pushed changed to the LK PR, please have a look when you can09:20
pedronis*changes09:20
mupPR snapd#7419 opened: cmd/snap-confine: add unit tests for sc_invocation, cleanup memory leaks in tests <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7419>09:20
mborzeckizyga: ^^09:21
mborzeckizyga: tried to use glib goodies in test_argc_argv() and fix memory leaks there, but gave up eventually as we modify the resulting argv in sc_nonfatal_parse_args()09:21
pstolowskipedronis: i'm cleaning up per-revision config stuff a bit and add some more tests09:22
pedronispstolowski: ok, thx09:23
mborzeckiok, heading back home09:24
mupPR snapd#7420 opened: cmd/snap-confine: fix /snap duplication in legacy mode <Created by zyga> <https://github.com/snapcore/snapd/pull/7420>09:37
pstolowskipedronis: i thought i found a bug in that we only restore revision config on revert but not on refresh; but we explicitely test this behavior in config-revisions spread test. i'm not sure why we wanted that10:04
pedronispstolowski: you mean a refresh to old revision?10:12
pedronisit makes sense to me though that we don't reapply old config in that case10:13
pstolowskipedronis: yep, snap refresh --revision=.. foo10:13
pedronispstolowski: we don't go find the old data either I think10:14
pedronisrevert is really the only op that says please get me back in time10:14
pstolowskipedronis: ah i see what you mean10:14
pstolowskithanks, all clear10:15
pstolowskigood i had a spread test; i've added explicit unit test now10:15
mborzeckire10:17
mborzeckizyga:  updated #741910:28
mupPR #7419: cmd/snap-confine: add unit tests for sc_invocation, cleanup memory leaks in tests <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7419>10:28
zygamborzecki: thank you10:31
zygamborzecki: https://github.com/snapcore/snapd/pull/742010:33
mupPR #7420: cmd/snap-confine: fix /snap duplication in legacy mode <Created by zyga> <https://github.com/snapcore/snapd/pull/7420>10:33
zygamborzecki: +1, can you please push a change to include it in the new format10:40
zygaand reformat10:40
zygait will have clang formatting (the -test.c file) so it will be a little bit nicer10:40
mborzeckizyga: in the same PR?10:40
zygayeah, the -test file is new10:40
mborzeckiok10:41
mborzeckihmm we should be putting emacs formatting spec in *.[ch] files like systemd does10:42
mborzeckifwiw emacs and vim10:43
zygamborzecki: +110:48
zygathoguh I'm not using emacs, not sure if that is picked up universally10:49
zygamvo: I need to do an errand downtown today, I will bring my laptop with me but not sure if I will have conditions for the call10:57
zygamvo: my update is that I'm zeroing on the re-submission of MS_SHARED bug fix10:57
zygamvo: I identified two causes of the failure of the integration test in the original pull request10:57
zygamvo: one is under review now10:57
zygamvo: the other was sent yesterday and +1'd but -1'd by jamie (code ok, comment tweaks requested)10:58
zygamvo: I'll address those and try to propose the fix for MS_SHARED later today if I can10:58
mvothanks for the update zyga11:07
Psil0Cybincans omeoenm help me get snap working on kali linux?11:39
zygaPsil0Cybin: hey, perhaps11:40
zygawe did this enough times to have some experience11:40
mupPR snapd#7421 opened: cmd/snap-confine: unmount /writable from snap view <Created by zyga> <https://github.com/snapcore/snapd/pull/7421>11:41
zygamborzecki: one more https://github.com/snapcore/snapd/pull/742111:41
mupPR #7421: cmd/snap-confine: unmount /writable from snap view <Created by zyga> <https://github.com/snapcore/snapd/pull/7421>11:41
zygaI made it a draft as it will be probably discussed longer and I want  to perform some more analysis11:41
Psil0Cybinzyga, tank you becasue i was having problems that my home directory is in /username and not in /home/username11:47
Psil0Cybinand it would not let me run any appliations installed etc11:47
zygaPsil0Cybin: that's a known limitation and it is not supported11:47
Psil0Cybinshojld i provide the erorr logs?11:47
zygait's not related to the distribution11:48
Psil0Cybinso how do i go bout gtting snap.d packages11:48
zygaPsil0Cybin: no need, we know about this and there is no solution now11:48
Psil0Cybininstalled11:48
Psil0Cybindang11:48
zygayou must use the regular location11:48
Psil0Cybinso im completely out of luck11:48
zygathat's the only outcome11:48
zygano, just put it in /home/username11:48
zygait's not a big deal, is it?11:48
Psil0Cybinshould not be i just installed kali and created a non root account as per guide11:48
Psil0Cybinso what would i do now?11:49
zygaPsil0Cybin: I don't know much about kali11:49
zygaI cannot help with that directly11:49
zygaso what's your actual username?11:49
zygaand user home directory on the system?11:49
cmatsuokamvo: I see in the spike code that ubuntu-image is actually installing the recovery bootloader files, is it supposed to work that way in the final code, or prepare-image should do that?12:10
=== ricab is now known as ricab|lunch
zygajdstrand: good day12:11
zygajdstrand: I have updated the comment and replied tyo your question on https://github.com/snapcore/snapd/pull/740012:11
mupPR #7400: cmd/snap-update-ns: don't propagate detaching changes <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/7400>12:12
zygajdstrand: I also opened two additional PRs as we discussed12:12
zygajdstrand: only one is something I'd like you to review12:12
zygajdstrand: it is https://github.com/snapcore/snapd/pull/742012:12
cmatsuokamvo: I'm playing with snap-image to generate an image, after patching prepare-image to generate recovery (mostly from the spike code)12:12
mupPR #7420: cmd/snap-confine: fix /snap duplication in legacy mode <Created by zyga> <https://github.com/snapcore/snapd/pull/7420>12:12
zygajdstrand: the other one is something that I want to experiment more with, you can see it in https://github.com/snapcore/snapd/pull/7421 if you are curious12:12
mupPR #7421: cmd/snap-confine: unmount /writable from snap view <Created by zyga> <https://github.com/snapcore/snapd/pull/7421>12:12
zygaas soon as 7400 and 7420 land I will propose a v2 of the MS_SHARED fix12:13
zygamborzecki: if you can, please do a pass over  742012:14
cmatsuokamvo: (also checking snap-image details with mborzecki)12:14
zygamvo: perhaps as well, it's something you should know about12:14
mupPR snapd#7422 opened: interfaces: allow reading mutter Xauthority file <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/7422>12:24
mupPR snapd#7423 opened: overlord/snapstate: config revision code cleanup and extra tests <Created by stolowski> <https://github.com/snapcore/snapd/pull/7423>12:35
pstolowskizyga: https://bugs.launchpad.net/snapd/+bug/1828354 didn't have solution, right? or was it fixed elsewhere?12:43
mupBug #1828354: mount event propagation on snapd-mounted tmpfs is incorrect <snapd:In Progress by zyga> <https://launchpad.net/bugs/1828354>12:43
mupPR snapd#7415 closed: tests: fix mountinfo-tool filtering when used with rewriting <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7415>12:48
zygapstolowski: it has a solution but we were unable to land it, my update above (for mvo) was about that12:52
zygapstolowski: this is the MS_SHARED bug12:52
zygapstolowski: it's close to being fixed now12:52
zygapstolowski: I need to land two prerequisites and I can reopen the fix12:52
pstolowskizyga: ok, thanks12:54
pstolowskizyga: i'm keeping the bug 'in progress' then12:55
tomwardillhello! store team here, we've got some slowness issues that are causing timeouts, etc. Info will be here: https://status.snapcraft.io/13:28
zygathank you for sharing tomwardill13:28
zygathank you jdstrand!!!13:32
jdstrandnp13:35
zygaI'll adjust the git commit message and the comment before landing13:36
zygajdstrand: adjusted and squashed for simplicity13:40
=== ricab|lunch is now known as ricab
jdstrandmvo, cachio: thanks for 7288, 7346 and 7350 (system-usernames cleanups)! sorry they were needed13:50
cachiojdstrand, looking13:50
mvojdstrand: no worries, the world is complicated13:50
cmatsuokamvo: I thought you would stay a bit to discuss snap-image details?13:50
mvojdstrand: thank you for making the system-user happen, 2.41 will make a few teams quite happy13:50
mvocmatsuoka: yes13:50
mvocmatsuoka: sorry, brain13:50
jdstrandmvo: 7346 was a particularly nice one13:51
jdstrand(validate before create)13:51
mvocmatsuoka: I'm back again13:51
jdstrandmvo, cachio: hope it didn't cause too much trouble13:51
jdstrandcachio: no need to look them up. just you two working through testsuite issues after the feature landed13:52
cachiojdstrand, everything merged :) snap_daemon did not you13:52
cachiotroubles13:52
pstolowskijdstrand: thanks for looking at my apparmor backend PR!14:18
pstolowski(k14:20
pstolowskiijohnson and pedronis  - thank you too!14:20
pstolowskii think with the general approval for the direction of this PR i'll work on new tests & the feedback14:21
ackkhi, out of curiosity, why is that any user can call "snapctl set-health"?14:35
ijohnsonpstolowski: you're welcome :-)14:48
pstolowskiackk: i think that's because any app can set health status of own snap (and doesn't need euid 0 to do that). note you cannot do anything useful by running snapctl set-health manually because of missing context14:48
ackkpstolowski, you mean it would only show up in snap info?14:49
pstolowskiackk: it would show in snap info, yes (not sure why "only"?) - see https://forum.snapcraft.io/t/health-checks/1060514:56
ackkpstolowski, I see thanks14:58
ackkpstolowski, fwiw I meant, if you run it manually from a snap run --shell, you can still set it so that it shows in the status14:58
mupPR snapd#7270 closed: overlord/snapstate: save disabled snap svcs on unlink snap tasks <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/7270>15:00
ackkpstolowski, what would be the context you're referring to?15:00
pstolowskiackk: yes. but that's interesting case, i didn't think about it15:02
ackkpstolowski, I was wondering a malicious user could just snap set-health error "everything is broken"15:03
pstolowskiackk: yes i see what you mean15:03
* cachio lunch15:10
zygare15:14
* zyga reads backlog15:14
zygaackk: snap run --shell gives you a cookie15:14
roadmr🍪15:15
zygaackk: snap run --shell15:15
zygaecho $SNAP_COOKIE15:15
zygaAFAIR15:15
ackkzyga, indeed15:16
mupPR snapd#7420 closed: cmd/snap-confine: fix /snap duplication in legacy mode <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7420>15:17
mupPR snapd#7422 closed: interfaces: allow reading mutter Xauthority file <Bug> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7422>15:23
zygamaster moved by 64 revisions15:25
zygaman, today is busy15:25
mvozyga: oh yes!15:30
jdstrandpstolowski: you're welcome!15:31
mvocode review for https://github.com/snapcore/spread/pull/69 would be great, probably needs some tweaks but a early test would be amazing15:39
mupPR spread#69: Manage pagination retrieving images from google backend <Created by sergiocazzolato> <https://github.com/snapcore/spread/pull/69>15:40
pedronisijohnson: are you are aware of this bit of code: https://github.com/snapcore/snapd/blob/master/overlord/snapstate/backend/link.go#L15215:43
pedronis? (I was almost forgetting myself)15:43
pedronisit's called by link-snap15:43
=== pstolowski is now known as pstolowski|afk
mupPR snapcraft#2703 opened: build provider: allow configuration of primary apt mirror <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/2703>16:33
pedronisijohnson: I left this comment: https://github.com/snapcore/snapd/pull/7270#issuecomment-52894117617:25
mupPR #7270: overlord/snapstate: save disabled snap svcs on unlink snap tasks <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/7270>17:25
mupPR snapd#6697 closed: interfaces/daemon_notify: add {net,sys}_admin capabilities, update spread test <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/6697>18:09
ardaguclu_run_checks first executes gofmt and in my local machine each time it returns "formatting wrong in following lines;..."18:17
ardaguclu_Am I doing something wrong, because each time I manually run gofmt to complete run_checks and see results18:18
ardaguclu_I am running it 1.13, is it something because of that?18:20
zygaardaguclu_: it's a known flaw18:32
zygaardaguclu_: ignore it18:33
zygaardaguclu_: you can go test ./...18:33
zygaand that's just as good18:33
zygaardaguclu_: there's a few things it doesn't do but you can check the script to see what's that18:33
mupPR snapcraft#2703 closed: build provider: allow configuration of primary apt mirror <Created by cjp256> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/2703>18:33
zygaardaguclu_: go fmt has changed behavior across versions18:33
ardaguclu_zyga: thanks, I am going to check it.18:37
mupPR snapcraft#2704 opened: extensions: create the gnome-platform directory <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2704>18:39
mupPR snapcraft#2705 opened: extensions: rename extension classes to known names <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2705>18:39
ijohnsonthanks pedronis, sorry was afk for a bit, that makes sense18:43
mupPR snapcraft#2706 opened: extensions: improve docsting (used in the cli) <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2706>18:54
mupPR snapd#7400 closed: cmd/snap-update-ns: don't propagate detaching changes <Bug> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7400>18:54
mupPR snapd#7424 opened: fixme: move snapfrompid into osutils <Created by ardaguclu> <https://github.com/snapcore/snapd/pull/7424>19:04
mupPR snapd#7425 opened: channel: introduce Resolve and ResolveLocked <Created by pedronis> <https://github.com/snapcore/snapd/pull/7425>19:10
* ijohnson reboots19:15
jdstrandijohnson: I went to update trello for the "rainy day list" to add 6697 and recalled from my notes something: https://github.com/snapcore/snapd/pull/6697#issuecomment-52898780819:40
mupPR #6697: interfaces/daemon_notify: add {net,sys}_admin capabilities, update spread test <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/6697>19:40
ijohnsonthanks jdstrand I'll take a look19:41
* cachio EOW20:59
mupPR snapd#7426 opened: cmd/snap-update-ns: clarify sharing comment <Simple 😃> <Created by zyga> <https://github.com/snapcore/snapd/pull/7426>22:01
* zyga goes to sleep22:20

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