/srv/irclogs.ubuntu.com/2020/08/19/#snappy.txt

zygagood morning06:48
zygatoday was way more efficient06:48
zyganot even 9 and Lucy is 100% taken care of :)06:48
zygaand I had an hour-long morning walk to exercise06:49
zygamvo o/06:52
mvogood morning zyga06:55
pstolowskimorning07:02
zygapstolowski please check the message I sent on tg last evening07:02
zygamvo https://listed.zygoon.pl/17533/measuring-execution-coverage-of-shell-scripts07:02
pstolowskizyga: looking07:03
zygapstolowski I think the first thing to establish is if the generator really works on 16.0407:03
zygaif it does not we need to focus on that problem firsst07:03
zygaif it does, we just need to understand what's broken in the test (on 16.04) and fix the image (on 20.04)07:03
pstolowskizyga: got it, thanks for the clues, i'm investigating07:11
zygasuper, thank you!07:11
mvogood morning pstolowski07:15
mvozyga: I guess I still need to merge 9174, right?07:19
zygayes07:19
zygaand we need to deal with the fallout07:19
mupPR snapd#9174 closed: tests: fix lxd test wrongly tracking 'latest' <Test Robustness> <⚠ Critical> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9174>07:20
mupPR snapd#9178 closed: secboot: document exported functions <Simple 😃> <Skip spread> <UC20> <Created by cmatsuoka> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9178>07:20
mvohm, arch is also broken in the interfaces-udisks2 test it seems07:21
zygaI noticed last night07:22
zygamaybe an interface changed upstream07:22
zygaI wrote so many udisks2 tests in this company :P07:22
mupPR snapd#9177 closed: tests: remove support for ubuntu 19.10 from spread tests <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9177>07:25
mvozyga: we can probably disable it on arch for now, it's mostly relevant for  core anyway07:27
zygaarch is the harbinger of doom on remaining systems07:29
mvozyga, pstolowski fwiw, systemd 229 (xenial) should support system generators, it ships systemd-fstab-generator so the functionality itself should be there07:33
zygathat's reassuring, so the question is - why is the test failing to observe the generator data07:33
zygamaybe it doesn't support something else, like /run/systemd/container?07:34
mvozyga: yeah, a good question07:34
pstolowskimvo: also Dmitri was saying they way it's implemented would work all the way back to xenial07:34
mvozyga, pstolowski fwiw, inside my lxc xenial I see /run/systemd/container - but maybe it's racy or something?07:34
zygainteresting, maybe07:35
mvoalso we should check if we have the snap.mount in lxd, this is what the old generator was generating07:37
zygaI did see that one07:39
mvoand when I run it manually inside lxd it work, puzzling07:39
zygawhich is even more puzzling07:39
zygalike half of it ran07:39
zygabut that was in the 20.04 container so that was a bit optimistic07:39
zygaI didn't re-check 16.0407:39
jameshLooks like the Go latest/edge snap is broken based on CI results07:44
zygamvo, pstolowski: if that's okay, I'll focus on features for now, if you need me please just say so07:44
zygajamesh oh, I think mwhudson may want to know07:44
zygahi :)07:44
jameshmwhudson: ^^^ I get a failure when it tries to copy a file to /snap/go/6312/pkg/linux_amd64/runtime.a -- maybe the library is missing from the snap or out of date?07:46
pstolowskimvo, zyga yeah i just concluded the same. manual run creates dropins. but daemon-reload only creates snap.mount 🧐07:46
pstolowskiah wait silly me07:46
pstolowskiscratch that; yes daemon-reload doesn't have the effect, weird07:48
zygapstolowski maybe time to dig into systemd source07:49
mvopstolowski: I am making some progress, fails with exit code 207:49
mvopstolowski: if I put systemd into debug mode inside lxc and call daemon-reload07:50
pstolowskimvo: right i see exit 2 in journalctl07:50
mvopstolowski: I bet PATH is unset07:50
mvopstolowski: we have a null check for that07:50
mvopstolowski: there you go07:51
pstolowskimvo: ha, that's great finding07:51
pstolowskimvo: i'll test a quickfix by hardcoding things07:51
zygaso PATH is unset?07:52
zygathat's, interesting07:52
mvopstolowski: yeah, http://paste.ubuntu.com/p/mphVQNCqKK/ fixed it for me07:53
zygamvo so another place to bake path ;-) ?07:53
mvopstolowski: in my quick test, I have a meeting now so can't work on this, thanks for taking over \o/07:53
zygaI wonder if this was fixed in future systemd07:53
mvozyga: yeah, fun07:53
mvozyga: it is evidently07:53
mvozyga: or it would fail in the same way07:53
zygawhat's the path we get there?07:53
mvopstolowski: I had this suspicion during the review that the environment maybe totally blank but then did not mention it. oh well :/07:54
mvozyga: no idea07:54
mvozyga: I remembering looking at this a while ago but it's even hard to see debug prints when generators run :(07:54
zygamvo open(/tmp/foo) and redirect stderr there07:54
zygato be clear, I'm mainly asking about the path drive this problem to a clear solution07:55
zygaand not bake a slightly wrong path by accident07:55
zygaI'd love to double check both the value of PATH and the method systemd computes it07:55
pstolowskiso yes hardcoding a path there makes it happy08:01
mvo\o/08:02
pstolowskimvo, zyga: what do you think about a fallback with a predefined path08:03
mvopstolowski: I don't think we have an alternative :)08:03
zygaI think it's unavoidable, I just want to use a correct value08:03
mvozyga: which one of the correct values ;P08:03
zygabrb, let me fetch something to drink08:03
zygait's finally not so hot today but I just had a small sip in the morning08:03
pstolowskizyga: this is only for 16.04, we don't have preseeding for non-ubuntu08:03
pstolowskiand therefore we don't need dropins elsewhere08:04
zygapstolowski you say that but it's only a bit of code that will not be looked at in 6 months when something changes, let's just spend the extra 30 minutes to understand how PATH is provided in 18.04+ and what the value is08:04
pstolowskizyga: it's not strictly about PATH but where snapfuse is installed, that's not going to change in 16.0408:11
zygamy point is that we should not make this about 16.0408:19
zygawe either need path and we need to provide it somehow (and maybe only conditionally for old systemd)08:19
zygaor we don't need path and we bake something else in08:19
pstolowskiof course man pages doesn't say anything about env and path08:33
mvozyga, pstolowski meeting is over - I think we should simply use a sanitized versoin of /etc/environment PATH in the generator08:49
mvozyga, pstolowski i.e.08:50
mvoPATH="/usr/sbin:/usr/bin:/sbin:/bin"08:50
mvodo you see any downside?08:50
pstolowskimvo: do you mean hardcoded? or do you think we should parse /etc/environment?08:53
mvopstolowski: hardcoded08:54
mvopstolowski: not more parsing code08:54
zygaI think hardcoded is ok if PATH is NULL08:54
pstolowskimvo: that's what i'm running right now08:54
pstolowskiyes that's what i hae08:54
pstolowski*have08:54
mvopstolowski: also the PATH in /etc/environment is silly - it include /usr/local and /games and stuff which I think we don't want08:54
mvopstolowski: \o/08:54
pstolowski+108:54
zyga(although the exact string should be picked up from systemd most likely)08:54
mvozyga: from systemd?08:56
zygaeven if we copy-paste the string, yeah08:56
mvozyga: from the systemd source you mean?08:56
zygayes08:56
mvozyga: which version of systemd? with unified /usr/bin,/bin or without? not sure about the advantage over /etc/environment which is the "canonical" thing for ubuntu08:57
pstolowskii looked at systemd, starting from manager_run_generator and didn't see any explicit paths08:57
mvo systemd uses a fixed value of08:58
mvo           "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"08:58
mvothat's what the manpage for systemd.exec tells me08:58
mvoWhen compiled for systems with "unmerged /usr" (/bin is08:58
mvo           not a symlink to /usr/bin), ":/sbin:/bin" is appended.08:58
pstolowskiah, i didn't look into that man page :/08:59
pstolowskijoys of a dozen of manpages08:59
mvo                m->transient_environment = strv_new("PATH=" DEFAULT_PATH);09:00
mvopstolowski: no worries, it's really hidden09:00
pstolowskity!09:00
mvoand https://github.com/systemd/systemd/blob/master/src/basic/path-util.h#L1309:01
mvoso we could include "local" given that systemd is also doing this09:01
mvozyga, pstolowski thanks, I think that's indeed the best option, stick to what systemd is using with unmerged-usr09:02
mvo(and we should document it in the code why we picked the particular values)09:03
pstolowskiyes doing09:03
mvothank you!09:03
pstolowskiamazing how many things can go wrong. starting with lxd test issue the hid the problem09:07
mvoindeed09:10
mvothe joy of complexity!09:10
zygamvo we should move off latest go09:20
zygago test runtime: copying /home/runner/.cache/go-build/63/633155d8056ad255f77968645705b93d20bb3173db582e095c1d93bb6cdab259-d: open /snap/go/6312/pkg/linux_amd64/runtime.a: read-only file system09:20
mupPR snapd#9179 opened: cmd/snapd-generator: use PATH fallback if PATH is not set <⚠ Critical> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9179>09:25
mvozyga: oh, where do you see this?09:32
mvofwiw, I'm debugging the udisks2 arch failure right now09:32
zygamvo our unit test action09:32
zygahttps://github.com/snapcore/snapd/pull/9175/checks?check_run_id=100191662509:33
mupPR #9175: tests: find -ignore_readdir_race when scanning cgroups <Simple 😃> <Test Robustness> <Created by zyga> <https://github.com/snapcore/snapd/pull/9175>09:33
mvozyga: ok09:33
mvozyga: we can temporarly disable, I can look once I resolved udisks209:34
pstolowskijust saw "go test runtime: ... open /snap/go/6312/pkg/linux_amd64/runtime.a: read-only file system" on my PR09:34
jameshpstolowski: the edge channel of the Go snap seems to be broken, yeah09:40
mwhudsonjamesh: hmm haven't looked at the go-tip snap for a long time09:45
mwhudsonjamesh: can you tell when it broke?09:45
mwhudsontil snap refresh --edge does not change tracks09:47
jameshmwhudson: it looks like it was working 10 hours ago when edge was version devel-77a11c0.  It's broken now on devel-84a624509:47
mwhudsonoh ok09:47
mwhudsonthat at least narrows things down :)09:47
jameshmwhudson: this is based on browsing through snapd's CI logs09:48
mwhudsonhmm very very light testing has it still working09:48
jameshmwhudson: This is an example failed run: https://github.com/snapcore/snapd/pull/9168/checks?check_run_id=100154445309:49
mupPR #9168: o/hookstate/ctlcmd: make is-connected check whether the plug or slot exists <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/9168>09:49
jameshit looks like it's trying to copy a compiled version of the runtime.a package to $GOROOT, and tripping up on the read only file system error09:50
mwhudsonhmm09:50
jamesh(since $GOROOT is obviously a squashfs)09:50
mwhudson$ go_edge list -f '{{ .Stale }}' runtime09:51
mwhudsontrue09:51
mwhudsonseems bad09:51
jameshclearly that would fail with EACCESS as a normal user.  But the CI is running as root, so gets EROFS instead09:53
jameshmy mistake: this wouldn't be running as root.  It's still getting EROFS though09:54
mwhudsonstalereason is "not installed but available in build cache"09:54
mwhudsonwhich doesn't make a lot of sense09:57
=== benfrancis2 is now known as benfrancis
mwhudsonwill have to look tomorrow09:59
mupPR snapd#9180 opened: github: use latest/stable go, not latest/edge <Skip spread> <Created by zyga> <https://github.com/snapcore/snapd/pull/9180>10:05
mvothe arch thing is strange, I can manually mount it but mounting via udevctl (without a snap in between even) fails. so udisks is wonky there it seems10:08
zygamvo ^ this seems to be working10:11
zygamvo shall I look?10:11
zygapstolowski and ideas on the 20.04 image?10:12
mupPR snapd#9181 opened: tests: disable udisks2 test on arch linux <⚠ Critical> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9181>10:15
mvozyga: look at what?10:15
zygaarch10:15
mvozyga: I think it's fine, I pushed a PR10:17
zygagreat10:17
zygaah, I see it10:17
zygajust above10:17
mvozyga: hm, latest/stable is 14.07 but there is a 1.15 too10:18
mvozyga: oh well,10:18
zygamvo how many things shall we debug today? :)10:18
zygaI would stick to something that works for a few days and let mwhudson look10:18
mupPR snapd#9180 closed: github: use latest/stable go, not latest/edge <Skip spread> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/9180>10:20
zygamvo you need to force merge https://github.com/snapcore/snapd/pull/9181#pullrequestreview-47031975210:20
mupPR #9181: tests: disable udisks2 test on arch linux <⚠ Critical> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9181>10:20
mvozyga: yeah10:21
mvopstolowski: one comment in 917910:22
mupPR snapd#9181 closed: tests: disable udisks2 test on arch linux <⚠ Critical> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9181>10:25
mupPR snapd#9182 opened: tests: re-enable udisks test on debian-sid <Simple 😃> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9182>10:25
zygapstolowski one more comment from me10:26
pstolowskity10:26
pstolowskizyga: re 20.04 i can't reproduce, i don't remember what i did yesterday..10:26
zygapstolowski boot 16.04 and use a 20.04 container10:26
zygaor boot 20.04 and boot a 20.04 container10:27
zygainside the container check if snapd seeded and has correctly installed snaps10:27
zygaand if any snap is broken10:27
pstolowskiso yeah 20.04 + 20.04 works10:29
mvoI booted a qemu with the failure but I have a meeting now10:29
pstolowski16.04 + 20.04 container also worked10:46
zygapstolowski when it works10:47
zygacan you look at the hash of the rootfs squash10:47
zygamaybe it just got fixed there10:47
zygathe one we saw fail was ....10:48
pstolowskiwhere is it stored?10:48
zygalook at /var/snap/lxd10:48
zygait's the big file there10:48
zyga-x240pstolowski: 97c470e427c425cf2ec4d7d55b6f1397ea55043c518b194a58fc6b9da426f540.rootfs10:50
zygaI'm going to grab some coffee and think about a problem10:50
zygapstolowski feel free to telegram/facetime me if you want to talk10:51
zygamvo  same ^10:51
pstolowskizyga: https://paste.ubuntu.com/p/ZQgyZ9tkjd/10:52
pstolowskii have that + some newer10:52
pstolowskihmm but 97c470e427c4 is being used (i think)10:54
* mvo is in a meeting11:04
=== benfrancis3 is now known as benfrancis
=== benfrancis4 is now known as benfrancis
zygare12:12
zygapstolowski is 9* rootfs something that was pre-seeded?12:12
zygaI spent a while thinking about possible ways to handle ~/snap and I have some experiments to run12:13
zygabut first lunch, then standup, then experiments and then PT12:13
pstolowskizyga: no, not preseeded12:14
pstolowskiseeded the old way12:14
zygaok, so it should seed normally12:14
zygaand with your generator fix12:14
zygadoes it work?12:14
pstolowskiit doesn't have any of my generator changes, that's unrelated. but  i tested my generator fix on 16.0412:17
zygabut does it seed normally or are snaps broken12:18
zygaif it works that's good12:18
pstolowskii can't repro anymore for some reason. i don't remember if it seeded fine or not, but all snaps were broken. i'd like to understand what's different today or what am i missing (and why you can reproduce)12:21
mvoI have a meeting in 2min but I'm inside the nested lxd container and it looks like /snap is not mounted at all12:28
mvono mount units generated but "snap changes" tells me that the seeidng was successful12:29
zygamvo hmmmmm12:30
zygaperhaps nesting is the key12:30
zygapstolowski there were two containers in the lxd test, the one that had more problems was indeed the nesting one12:30
mupPR snapd#9176 closed: cmd/snap: use ⬏ instead of ↑ where applicable <⛔ Blocked> <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/9176>12:51
pstolowskizyga: ok, reproduced with lxd test in my-nesting-ubuntu12:52
zygathat's great12:53
zygaI wonder why nesting matters12:53
zygaI guess we'll learn ;)12:53
zygamvo, pstolowski: I guess we should force-merge https://github.com/snapcore/snapd/pull/917912:55
mupPR #9179: cmd/snapd-generator: use PATH fallback if PATH is not set <⚠ Critical> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9179>12:55
zygato reduce the number of failures and have a clear picture of what's what as we iterate12:56
pstolowski+112:56
mvozyga in a meeting12:56
zygak12:56
mvozyga meeting overruns13:01
zygak13:01
mvozyga I will be slightly late13:01
zygashould we wait or start13:01
pstolowskizyga: i wonder where is this coming from in this failing container https://pastebin.ubuntu.com/p/vGBtq6YCGc/13:01
zyga-x240pstolowski: quick idea, change snapd to log anything we log in any case via tasks to systemd13:05
zyga-x240we'd get time-correlated logs13:05
zyga-x240and that would be a very welcome change in general13:05
mupPR snapd#9179 closed: cmd/snapd-generator: use PATH fallback if PATH is not set <⚠ Critical> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9179>13:21
zyga-x240thanks for merging that13:23
pstolowskizyga-x240: that's an interesting idea13:27
pstolowskizyga-x240: one other observation in the meantime13:27
zyga-x240yeah?13:27
pstolowskizyga-x240: this unmounting of snaps appears 2 seconds after 12:44:13 my-nesting-ubuntu systemd[1]: snapd.seeded.service: Succeeded.13:28
pstolowskizyga-x240: and after snapd restart13:28
zyga-x240why does snapd restart?13:28
zyga-x240for the seeding?13:28
zyga-x240I mean snapd + core18 model?13:28
pstolowskiyes i think so13:31
pstolowski2020-08-19T12:43:20Z INFO Requested daemon restart (snapd snap).13:31
pstolowski2020-08-19T12:43:20Z INFO Waiting for automatic snapd restart...13:31
pstolowskithat's from our change 1 log13:31
zyga-x240can you check if systemd knows about the mount units?13:32
zyga-x240systemctl status snap-snapd-1234.mount13:32
pstolowskizyga-x240: it doesn't13:32
zyga-x240pstolowski: and journald, it should remember13:33
pstolowskizyga-x240: indeed, but nothing interesting, mounts followed by unmount13:34
zyga-x240pstolowski: so the key question is why did systemd stop it13:35
zyga-x240pstolowski: can you paste the log?13:35
zyga-x240(everything in the nested container)13:35
pstolowskisure13:37
pstolowskizyga-x240: https://paste.ubuntu.com/p/9jgxNM5ZDz/13:41
zygapstolowski note that the log doesn't say anything about the mount units being stopped13:43
zygaI suspect it's not that13:43
zygacan you do a test please13:43
zygacraft a quick unit for whatever snap13:43
zygastart it with systemd13:43
zygacheck the log to see what it says13:43
zygathen unmount that by hand13:43
zygathen check the unit status13:43
pstolowskizyga: these umounts appear right after  "Stopped Snap Daemon.", isn't that weird?13:44
mvopstolowski, zyga it looks like prep-snapd-in-lxd.sh fails in "apt autoremove --purge -y snapd" because it cannot unmount /snap directory13:44
zygaohh, wait a second13:44
mvo(or are you guys at this point already?)13:44
zygano!13:45
pstolowskinope13:45
mvo*but* that does not make the test fail, the following "apt update" is run13:45
zygaheh13:45
mvowhich is super strange13:45
mvo*gar*13:45
mvobecause we do "lxc exec -- bash /root/prep...13:45
mvobut theere is a "#!/bin/sh -e" in the script but no set -e13:45
mvo*fail*13:46
zygaah13:46
zyganice13:46
mvoso that's the first thing we need to fix13:46
pstolowskioh13:46
mvoso that it at least fails at the right point :)13:46
mvoI push a fix for this in 2min13:47
ijohnsonsorry folks that's my fault13:47
zygamvo I guess the bash -e is not needed13:47
zygajust invoke it13:48
* ijohnson is bad at lxding13:48
zygamvo and the error is repeated below13:48
zygafor the inner case13:48
pstolowskihmm isn't it messing up with seeding when it removes snapd deb initially?13:48
zygaI think that's an existing issue13:49
zygathere's an open PR13:49
zygawe should look at it and maybe land it13:49
zygathere was some discussion so it never moved13:49
mupPR snapd#9183 opened: tests: use "set -ex" in prep-snapd-in-lxd.sh <Created by mvo5> <https://github.com/snapcore/snapd/pull/9183>13:51
* pstolowski short lunch break13:52
zygamvo commented13:52
zygaI can push a patch if you want and agree with my suggestion13:52
mvozyga: I wonder if it is using bash because 755 mode is not transfered on "lxc file push" or something, but I'm too lazy to test. if it works +113:53
zygayes13:53
zygait's that13:53
zyga;D13:53
zygamvo yeah, I'll get it to work and push13:53
ijohnsonnow that you mention it, yes I think that's why I did that13:54
ijohnsonbecause the mode was lost when pushing it13:54
mvozyga: let's not overcomplicate it, if we need a bunch of chmods I think it's fine13:54
zygayeah, and lxd file push mode is broken (or was last time)13:54
zygayeah13:54
mvozyga: but I have no strong opinions, just a bit tired that it's red :)13:54
zygaso it's like a rock13:54
zygayou turn it over13:54
zygaand there's a new rock attached to it13:54
zygaand it's another problem13:55
mvoheh13:55
zygaand we turn it over and, guess what,13:55
zygait's a rock13:55
mvohaha13:55
mvoI really want to also get to the bottom of what is actually broken before my next meeting :(13:55
pstolowskilol13:55
zygait's a quarry13:55
zygawife back, afk13:56
mupPR snapd#9182 closed: tests: re-enable udisks test on debian-sid <Simple 😃> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9182>13:56
mvozyga, pstolowski /snap is mounted inside lxd - does http://paste.ubuntu.com/p/h95HbBjKqk/   make sense?14:10
cmatsuokaijohnson: are the existing disk cross-checks enough to validate that name-enc comes from the right disk, and name, if encrypted, comes from name-enc (and therefore from the right disk)?14:11
ijohnsoncmatsuoka: with my PR, we do the following things: https://www.irccloud.com/pastebin/B549qart/14:13
zygalooking14:14
zygamvo yes it makes sense14:14
zygamvo containers don't use MS_SHARED /14:14
zyga(for whatever reason)14:14
cmatsuokaijohnson: so the answer seems to be yes. I'm asking because you left a TODO comment about doing these checks in secboot_tpm14:14
zygathe systemd generator we have used to emit a mount unit to do just that14:15
zygamake /snap -> /snap bind mount14:15
zygaand then change sharing14:15
zygaall to allow snaps to mount into derivative mount namespaces via mount event propagation14:15
ijohnsoncmatsuoka: I left a TODO about doing these checks in secboot_tpm ? it's probably left over with my PR that should implement all the cross-checking we want14:15
zygaotherwise things appear to work until you refresh and then the view in the container disagrees with the view in the per-snap mount namespace14:15
mvozyga ok, so we need an extra umount in purge?14:17
* mvo tries that14:17
zygaI think it's more complex than that14:17
zygawe had issues with this14:17
zygaand I think we have something in purge but it may not work14:17
zygaor we may not have, I honestly don't recall14:17
zygaI would say we want systemctl stop snap.mount14:17
zyganot an unmount14:17
pstolowskire14:18
zygaand only if this is a container14:18
cmatsuokaijohnson: why are the checks in the paste just for run mode? aren't we cross-checking in recover mode as well?14:18
ijohnsoncmatsuoka: all those checks are for run and recover mode (or should be at least), but for run mode, we use ubuntu-boot as our reference mountpoint/partition, where as for recover mode we use ubuntu-seed as our reference mountpoint/partition - that should be the only difference14:19
zygamvo: I pushed to https://github.com/snapcore/snapd/pull/9183/files14:19
mupPR #9183: tests: use "set -ex" in prep-snapd-in-lxd.sh <Created by mvo5> <https://github.com/snapcore/snapd/pull/9183>14:19
cmatsuokaijohnson: ah right, thanks14:20
zygaafk again14:20
mvozyga and that works, i.e. mode is preserved?14:26
mupPR snapd#9184 opened: [RFC] packaging: umount /snap on purge for good measure <Created by mvo5> <https://github.com/snapcore/snapd/pull/9184>14:31
jdstrandmvo: hey, fyi PR 8301 has two approvals but fails the 4 lxd tests (unrelated failure). PR 8920 also has the same failures and has all comments addressed. these are both ones we discussed for 2.46. by my eod, I will have my misc updates PR done (ie, easy reviews). Depending on the speed in which I do that, I may have a separate very small, policy updates only PR for k8s-support (for microk8s strict on14:34
mupPR #8301: interfaces/many: deny arbitrary desktop files and misc from /usr/share <Created by jdstrand> <https://github.com/snapcore/snapd/pull/8301>14:34
mupPR #8920: interfaces: update cups-control and add cups for providing snaps <Needs Samuele review> <Created by jdstrand> <https://github.com/snapcore/snapd/pull/8920>14:34
jdstrandfocal). I know what is needed, but I want to document why and that might take a moment (but it will only be like 3 rules, so fast to review)14:34
mvojdstrand: we are debugging/fixing this lxd things as we speak14:35
jdstrandmvo: ack, let me know if you want me to merge master14:35
mvojdstrand: not quite there yet, also I have a super busy afternoon with meetings so there maybe little progress, but maybe my team will pickup 9184 (if it's green)14:37
jdstrandmvo: have you decided if you are going to pull master back to 2.46? (you mentioned you may not; if you do, hopefully 8301 and 8920 will be applied and I won't need to do separate PRs for 2.46 (though, if that is what you want, that is of course fine)14:37
ijohnsoncmatsuoka: thanks, for the comment, I see the TODO and just pushed a commit to remove it14:38
pstolowskiijohnson: since you worked on this area of main/lxd test -14:40
ijohnsonpstolowski: s/worked/broke/ but yes14:41
pstolowskihaha14:41
cmatsuokaijohnson: thanks, I'm building an image from this branch to run a minimal test before +1'ing it14:41
pstolowskiijohnson: why do we push snapd deb into the nested container to test that snapd isn't working if there is snapd already there?14:41
ijohnsonpstolowski: that is to ensure that we don't regress and actually start working in that nested container, because if that started working it would very very very likely be a confinement bug somewhere in the stack14:42
ijohnsonpstolowski: or it would mean that snapd stopped doing all the checks that it should be doing14:42
pstolowskiijohnson: ah ok, so we want to test the current snapd code for this, makes sense14:43
pstolowskithx14:44
ijohnsonyes14:47
mvojdstrand: pretty sure I will (90%) just merge master into 2.46 at this point, so many fixes went into that15:19
* cachio lunch15:31
pstolowskii've been trying to improve prep-snapd-in-lxd.sh in the lxd test but no luck so far and i'll soon stop for today, need to take my daughter for the training15:58
ijohnsonpstolowski: where did you get ?15:59
ijohnsonpstolowski: I am happy to take another look at improving it, I have some modifications I made locally yesterday that probably help quite a bit and may overlap with your work that I could propose16:00
pstolowskiijohnson: i don't have anything tangible to share, i tried to stop snapd service before apt-get remove.., now also trying apt-get remove without --purge16:08
ijohnsonpstolowski: ack I will propose something on top of what 9183 already does then16:08
pstolowskiijohnson: mvo is also experimenting in 9184, but i haven't tried that16:09
ijohnsoncachio: why is BUILD_SNAPD_FROM_CURRENT false for tests/nested/manual ?17:01
ijohnsonit seems to me that even though we use the HOST: ... trick for that env var for the manual suite it doesn't take effect when we run nested spread tests as part of a PR with that label17:02
ijohnsoncachio: see https://github.com/snapcore/snapd/pull/9102/files#r473185796 for example, that duplicate system key makes the test fail for me now on master, but it somehow passed on that PR17:03
mupPR #9102: corecfg: add "system.timezone" setting to the system settings <Run nested> <Squash-merge> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9102>17:03
=== ijohnson is now known as ijohnson|lunch
mupPR snapcraft#3254 closed: tests: restrict colcon / ros2-foxy test to amd64 & arm64 <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3254>17:05
cachioijohnson|lunch, it is because SPREAD_BUILD_SNAPD_FROM_CURRENT=true is defined for the github actions workflow17:07
ijohnson|lunchcachio: yeah I wonder if that is working though17:07
cachioI'll update that value in the PR to make sure we allways use it17:07
ijohnson|lunchcachio: have you seen other issues like this before ?17:07
cachioijohnson|lunch, I'll update PR 9098 with this17:07
mupPR #9098: tests: new organization for nested tests <Run nested> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9098>17:07
cachiothanks for the heads up17:08
ijohnson|lunchwhere the nested spread test passes on the PR but then immediately after merging fails ?17:08
cachioijohnson|lunch, just pushed the update17:12
=== ijohnson|lunch is now known as ijohnson
mupPR snapd#9185 opened: secboot: use the snapcore/secboot native recovery key type <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9185>18:32
mupPR snapd#9186 opened: interfaces: add vcio interface <Created by jdstrand> <https://github.com/snapcore/snapd/pull/9186>18:37
jdstrandogra_: hey, that is for you ^18:38
ogra_whee !18:38
* ogra_ dances18:38
* cachio -> kinesiologist18:45
ijohnsonjdstrand: small comment on that vcio PR19:17
jdstrandijohnson: thanks, responded20:09
ijohnsonjdstrand: how did you check?20:09
ijohnsonI don't see that device in the device cgroup on my rpi running uc20 for a snap that uses an interface that puts it into the device cgroup20:10
jdstrandijohnson: I logged into an rpi UC device and /dev/vcio was present20:10
jdstrandoh, the device cgroup, sorry, I was thinking of kmod20:10
jdstrandijohnson: you are right about udev20:10
ijohnsonjdstrand: don't we need `connectedPlugUDev: ...` rules to ensure that the device gets added to the device cgroup ?20:10
* jdstrand adjusts20:10
ijohnsonah ok, I see20:10
jdstrandijohnson: ok, pushed20:28
ijohnsonack20:28
ijohnsonjdstrand: one more comment on that PR, but otherwise lgtm20:39
ijohnsoncachio: hey I noticed the tests/nested/core/core-snap-refresh-on-core test fail on uc1620:58
ijohnsoncachio: the test is currently flaky and needs to be updated20:58
cachioin my pr?20:58
cachiobecause I already updated that20:58
ijohnsoncachio: oh sorry I just saw it fail on master20:59
ijohnsoncachio: which PR did you fix it in ?20:59
cachio#909821:00
mupPR #9098: tests: new organization for nested tests <Run nested> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9098>21:00
ijohnsoncachio: no you need to make more changes in addition to that PR21:00
ijohnsoncachio: the function refresh_to_new_core is coded wrong right now21:00
ijohnsoncachio: that function currently does this:21:00
ijohnson            execute_remote "sudo snap refresh core --${NEW_CHANNEL}"21:01
ijohnson            execute_remote "snap info core" | grep -E "^tracking: +latest/${NEW_CHANNEL}"21:01
ijohnsoncachio: it should wait for a reboot immediately after the `snap refresh` command, then get the info for the tracking channel after the reboot21:01
ijohnsoncachio: right now the test is racing with snapd, if snapd finishes quick enough then it won't respond to `snap info` and it will hang21:01
cachioijohnson, ah, I just saw that depending on the var it was trying to refresh to the same revision and failed21:03
ijohnsoncachio: here's an example failure log https://pastebin.ubuntu.com/p/Wbgq47BYRg/21:03
ijohnsoncachio: yes that's an independent issue21:03
cachioijohnson, ah, nice, I'll fix it in that case21:03
ijohnsonthanks!21:03
cachiothanks for that21:03
ijohnsoncachio: I also saw google-nested:ubuntu-20.04-64:tests/nested/manual/refresh-revert-fundamentals:snapd fail in github actions21:04
ijohnsoncachio: but I don't see an obvious reason why that failed yet21:04
cachioijohnson, do you have a link?21:05
ijohnsoncachio: yes one moment21:05
ijohnsoncachio: https://pastebin.ubuntu.com/p/Yskh9yqNZH/21:06
cachiothanks21:08
cachioI'll insvestigate that one too21:08
jdstrandijohnson: nice! done21:24
ijohnsoncachio: if you could look at https://github.com/snapcore/snapd/pull/9187 that would be great21:24
mupPR #9187: tests/lib/nested.sh: use more robust code for finding what loop dev we mounted <Run nested> <Test Robustness> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9187>21:24
cachiosure21:24
ijohnsonjdstrand: thanks, +1d, we still need pedronis to review the iface name, he is back next week I think21:25
* jdstrand nods21:25
mupPR snapd#9187 opened: tests/lib/nested.sh: use more robust code for finding what loop dev we mounted <Run nested> <Test Robustness> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9187>21:28
cachioijohnson, seems to be ok the change21:31
cachiolets see the results21:32
cachiothanks!21:32
ijohnsonthanks cachio21:32
ijohnsonit passed for me once locally so 🤞21:32
cachionice21:33
mupPR snapd#9188 opened: interfaces: misc policy updates xlvi <Created by jdstrand> <https://github.com/snapcore/snapd/pull/9188>22:48
mupPR snapcraft#3255 opened: remote-build: use requests.get() instead of urlopen() <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3255>23:31

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