/srv/irclogs.ubuntu.com/2021/07/16/#snappy.txt

zygagood morning05:22
mardy'morning!05:46
zyga-mbphey mardy 05:51
zyga-mbpmardy how is the mount control interface going?05:51
zyga-mbpany new insights?05:51
mardyzyga-mbp: hi! I need to do a few last clean-ups, then I'll push what I have. I believe it implements all what was asked05:55
mborzeckimorning05:56
mborzeckizyga-mbp: mardy hey05:56
mardyzyga-mbp: I'll keep the PR as a draft, without unit tests, and once I have the first positive feedbacks I'll split it out into smaller PRs05:56
zyga-mbphey mborzecki 05:56
mardymborzecki: hi!05:57
zyga-mbpmardy sounds good05:57
zyga-mbpmardy may I stress the value of integration tests05:57
zyga-mbpeven in the non-split form05:57
zyga-mbpmainly to re-affirm yourself that it really works05:57
zyga-mbpand that it doesn't misbehave in ways you currently do not predict05:57
zyga-mbpI think this happened to me more than I would wish to admit05:57
mardyzyga-mbp: yes, for now I've only done manual tests, but indeed we need quite a few spread tests for this05:57
zyga-mbpmardy the mount-ns test is interesting and perhaps a good starting point as an observatory05:57
mardythanks, I'll have a look!05:58
zyga-mbpmardy: you may also consider using a feature flag to have a way to disable the new code even after it landed, but I'm not sure what's the extent where the new logic interacts with snaps not using the mechanism, so it's something you need to think about and decide yourself05:59
zyga-mbpbrb, need to change places because another storm is coming05:59
pstolowskimorning06:10
mborzeckipstolowski: hey06:18
zyga-mbphey pstolowski 06:22
pstolowskipedronis: hi, quick question, fighting with asserts mocking in a test suite that didn't do this previously; does something like https://paste.ubuntu.com/p/whH7TT2jTG/ require ReplaceStore(..) in order to be happy about can0nical public key?07:37
pedronispstolowski: not sure about the store, it might require assertstate.ReplaceDB though07:38
pedronispstolowski: ifacestate_test.go and devicestate tests need to do that for example07:39
pstolowskipedronis: thanks, i haven't looked at those, will check07:41
* pstolowski physio07:48
mborzeckiclose some PRs we don't need anymore since xdelta3 is fixed in master07:49
mvo10264 (virtual config) needs a second review, it got one +1 now07:55
pedronismborzecki: I finished reviewing  https://github.com/snapcore/snapd/pull/10510  , mostly comments about clarifications for the new test08:17
pedronismborzecki: it probably needs reviews by a couple more people08:18
mborzeckipedronis: thanks! yeah, i'll poke people08:18
pedronispstolowski: I did a pass on https://github.com/snapcore/snapd/pull/10535# thanks08:44
pstolowskire08:53
pstolowskipedronis: thanks!08:57
pstolowskipedronis: ReplaceDB solved my issue, thanks. I proposed https://github.com/snapcore/snapd/pull/10539 but there is an open question re circular dependency when this helper will be used from snapstate10:03
pstolowskiah, but maybe not, let me check something10:04
pstolowskiyeah it's good after all, i didn't notice that snapasserts doesn't create the cycle with snapstate, so regular hooking works10:08
mborzeckihm any ideas if it's possible to obtain the symbol version that ld.so resolved?10:24
mborzeckii'm wondering if there's something we could actually do about CURRENT_TAGS, but since libsystemd/libudev provides no version information i think as a last resort i could inspect the versions defined in libudev.so that ld.so picked10:25
mborzeckihmmm10:29
mborzeckibit evil, but i could dlopen() and then lookup the current tags symbol that intrdouced in 24710:29
pstolowskipedronis: re CheckPresenceRequired and CheckPresenceInvalid returning errors, do you mean this for the inner cstrs.revisions loop? at this point these would be internal errors really because we shoudn't be in that state (presence should be set to conflict afaiu)?10:37
pedronispstolowski: no, I mean for the first check10:55
pedronispstolowski: not the inner loop10:55
pstolowskihmmm10:55
pedronispstolowski: what should they return if the snap is the opposite of what expected globally10:56
pstolowskipedronis: is this to avoid having to call both CheckINvalid.. and CheckRequired.. ?10:56
pedronispstolowski: is to avoid having unclear behavior10:56
pstolowskipedronis: ok, i see your point10:57
mborzeckihmm https://github.com/snapcore/snapd/compare/master...bboozzoo:bboozzoo/s-c-current-tags this is a bit nasty, but should work10:58
pstolowskipedronis: i've updated the PR (with one open point about revisions)11:36
* pstolowski lunch11:36
zygalxd socket ownership reverted to root.root after reboot13:14
zyga$ ls -ld /var/snap/lxd/common/lxd/unix.socket13:15
zygasrw-rw---- 1 root root 0 Jul 16 14:45 /var/snap/lxd/common/lxd/unix.socket13:15
pstolowskizyga: interesting; i've had lxd snap for a long time on my box (and it gets rebooted every day) and it's root:lxd13:39
pstolowskiijohnson[m]: would you find some time to review https://github.com/snapcore/snapd/pull/10515 ? it's not super urgent so next week is fine13:40
ijohnson[m]pstolowski yes I've got in on my queue now 13:57
pstolowskithanks!13:58
zygapstolowski yeah, I'm using it all the time14:03
mardymmm... in the spread, the /usr/share directory is very different from the /usr/share directory as seen from inside "snap run --shell ..."14:04
ijohnson[m]pedronis_: thoughts on how much effort I should put into trying to write a nested spread test with cloud-init maas cfg ? I could just put config files sort of like what maas writes out onto ubuntu-seed, but I fear setting up maas in gce will be possibly a bit of effort14:13
ijohnson[m]sorry I mean I could just put the files there and check that the files get filtered and put into the right place as an easy thing, but actually checking that maas is able to provision the image will be more work14:13
pedronis_ijohnson[m]: I would avoid setting up MAAS there14:13
ijohnson[m]ack14:13
pedronis_also because I expect it would be very slow as well as fragile (and complex)14:14
=== pedronis_ is now known as pedronis
ijohnson[m]it's also unfortunate since to test this, we need to use nested vm's and my favorite nemesis, the fakestore14:14
ijohnson[m]but we have other nested cloud-init tests which use fakestore so hopefully not too bad14:14
mardyhow can I inspect a mount namespace? that is, see what are the differences compared to the outer namespace14:26
zygamardy: do you have a moment14:28
zygaI can show you around14:28
zygamardy perhaps a quick HO?14:28
mardyzyga: oh, that would be fantastic!14:30
zygamardy: if you have time now is good14:31
mardyI do :-)14:31
zygacool14:31
zygahttps://meet.google.com/twb-jidi-eii14:31
mardyzyga: that was super cool of you, thanks again!14:55
=== bandali_ is now known as bandali
=== rZZZr is now known as RzR
pedronisijohnson[m]: I reviewed https://github.com/snapcore/snapd/pull/10536 , mostly suggesting a clarification for somet preexisting behavior that was more evident with the new code18:07
pedroniss/was/is/18:07
ijohnson[m]pedronis ack thanks for the review, will take a look after my lunch 18:30
futuretimshouldn't a newly installed snapd make a serial-request?22:29
ijohnson[m]futuretim snapd only requests a serial when the device is seeded 22:34
ijohnson[m]It doesn't get a new serial when the snap is refreshed 22:34
futuretimi mean: system does not have snapd -> system has snapd -> shouldn't a serial-request be made?22:34
ijohnson[m]snapd still needs to seed itself, if you just install snapd through distro pkg, you won't automatically have any snaps so snapd just shuts itself down 22:49
futuretimhmm, still have not seen one23:11

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