/srv/irclogs.ubuntu.com/2021/05/13/#snappy.txt

mborzeckimorning06:32
mardyhI!06:41
mborzeckimardy: heya, i see you pushed some tests to raw-input, let me look at those06:55
mardymborzecki: I mostly copied them from those for the joystic interface, but please don't tell anyone ;-)06:58
mborzeckithat's fair, there are some repeated patterns in the tests06:59
pstolowskimorning07:05
mborzeckipstolowski: hey07:08
mborzeckimardy: btw. there's a spread-shellcheck tool, which is a tiny wrapper around shellcheck that takes a spread.yaml|task.yaml file, extracts the bits that execute under shell and feeds them to shellcheck07:10
mborzeckimardy: https://github.com/snapcore/snapd/pull/10251#issuecomment-84038087307:37
mupPR #10251: interfaces/builtin: introduce raw-input interface <Needs security review> <Created by mardy> <https://github.com/snapcore/snapd/pull/10251>07:37
mardymborzecki: thanks, will fix07:53
=== ackk is now known as ack
mardymborzecki: it's still failing, but this time I don't think that the failure is due to my changes: https://github.com/snapcore/snapd/pull/10251/checks?check_run_id=257375759908:49
mupPR #10251: interfaces/builtin: introduce raw-input interface <Needs security review> <Created by mardy> <https://github.com/snapcore/snapd/pull/10251>08:49
mardymborzecki: is that kind of failure familiar to you?08:49
mborzeckilooking08:53
mborzeckimardy: ah yes, the mystery gpg problem, we've been hitting it randomly, but so far the source of the problem has not been identified, we suspect that it had something to do with running out of entropy08:54
mborzeckimardy: then pedronis suspected there may be something in the go stdlib implementation of gpg08:55
pstolowskimardy: all tests passing is unfortunately very rare :/ due to the number of tests and systems (some of which constantly move), and external factors (store or gce hiccups etc)09:11
mborzeckimeh cherry-picking the whole kernel command line branches into 2.5009:25
mborzeckiseems like we missed it, or decided to push it to 2.51 (which i don't recall, but that wouldn't be the first time my memory is bad)09:25
mardypstolowski: hi! The Status() method in systemd/systemd.go, is it the one you said I should avoid using?09:34
mardypstolowski: the getUnitStatus() is private; I'll make it public as QueryUnitStatus()09:36
pstolowskimardy: no, feel free to use it if it's usable (I was talking about getUnitStatus but Status() uses it)09:36
mardyah, ok09:38
mardypstolowski: I will apply the same logic to both "restart" and "reload" operations, right? Or should only "restart" be affected by my changes?09:41
pstolowskimardy: i think both should have same logic09:46
mupPR snapd#10265 opened: many: backport kernel command line for 2.50 <Run nested> <⛔ Blocked> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10265>10:10
pstolowski#10182 and #10187 for refresh control need 2nd reviews10:56
mupBug #10182: Can not logout of gnome when xcompmgr is running <gnome-panel (Ubuntu):Invalid by fabbione> <https://launchpad.net/bugs/10182>10:56
mupPR #10182: o/snapstate: autorefresh phase1 for refresh-control <Needs Samuele review> <Refresh control> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10182>10:56
mupBug #10187: debconf fails to install <debconf (Ubuntu):Fix Released> <debconf (Debian):Fix Released> <https://launchpad.net/bugs/10187>10:56
mupPR #10187: o/hookstate, o/snapstate: print revision, version, channel with snapctl --pending <Needs Samuele review> <Refresh control> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10187>10:56
mardypstolowski: is there a snap command to disable a service, or should I use systemctl (the context is the spread tests)?11:28
jameshmardy: snap stop11:29
jamesh"snap stop --disable", even11:30
pstolowskiyep11:30
jameshit doesn't maintain any extra state outside of systemd though, so using systemctl on a snap service shouldn't break anything11:31
mardythanks! But I don't want to stop the service, so I guess I'll use systemctl11:41
mupPR snapd#10266 opened: wrappers/services.go: do not restart disabled or inactive services <Created by mardy> <https://github.com/snapcore/snapd/pull/10266>11:55
mardyThe unit tests are failing in my branch: https://github.com/snapcore/snapd/pull/10266/checks?check_run_id=257513272512:31
mupPR #10266: wrappers/services.go: do not restart disabled or inactive services <Created by mardy> <https://github.com/snapcore/snapd/pull/10266>12:31
mardyI've added some debug info, and I see that the systemctl command being run is: show --property=Id,ActiveState,UnitFileState,Type snap.test-snap.foo.service snap.test-snap.bar.service snap.test-snap.abc.service12:31
mardythe output is: [65 99 116 105 118 101 83 116 97 116 101 61 105 110 97 99 116 105 118 101 10]12:31
mardyand the error generated by snapd is: cannot get unit "" status: missing Id, UnitFileState in ‘systemctl show’ output12:32
pstolowskimardy: have you mocked snapctl?12:33
pstolowskimardy: sorry, systemctl12:33
mardypstolowski: no, but I didn't touch these tests12:33
mardyso I don't get why they are failing now12:33
pstolowskimardy: you changed RestartServices impl to get statuses, you now need to update all existing tests that use restart to mock systemctl accordingly12:35
cachiomborzecki, hi12:36
cachiomborzecki, I see https://paste.ubuntu.com/p/VyRynqBcfW/12:36
mborzeckicachio: let me see12:36
cachiowhen running tests on fedora 3412:36
pstolowskimardy: because the existing mock doesn't expect extra systemctl callsą12:36
cachioit is getting stuck on reset12:36
cachiomborzecki, this is an example https://paste.ubuntu.com/p/s8nGk8vKnr/12:37
cachiomborzecki, I have a debug session open12:44
cachioif you want to take a look12:44
mborzeckicachio: yeah, send me the ip and password12:44
mupPR snapd#10267 opened: snap-bootstrap: start drafting run-cloudimg mode <Created by xnox> <https://github.com/snapcore/snapd/pull/10267>13:20
mborzeckicachio: hm no idea yet13:27
mborzeckicachio: is it reproducible after this test?13:27
cachioif you run few tests it is reproducible 100%13:27
cachiomborzecki, this is the log for that machine https://paste.ubuntu.com/p/nMgJPm8JJG/13:28
mborzeckihmm w8, so that's diferent13:29
mborzeckicachio: hm not sure what's happening, so snapd is started and is active, but that nc command sometimes get stuck (i could reproduce it a couple of times), it gets the response from snapd but then hangs13:35
cachiomborzecki, weird13:36
cachionc is hanging :)13:36
mborzeckicachio: fwiw, this is the backtrace: https://paste.ubuntu.com/p/Bz4ssw8cJ2/13:37
mborzeckiit's waiting on poll, i suspect the connection shoudl be closed next, but isn't13:38
mborzeckihm maybe it's something systemd related ? or new go idk13:39
cachioperhaps we can use13:40
cachio-w timeoutTimeout for connects and final net reads13:40
cachioas a workaround13:41
mborzeckicachio: can't reproduce it anymore13:42
mborzeckiheh13:42
mborzeckilooks like a race13:42
mborzeckicachio: this is enough to trigger it sometimes `systemctl stop snapd snapd.socket;systemctl start snapd.socket; sleep 0.1; printf 'GET / HTTP/1.0\r\n\r\n' | nc -U  /run/snapd.socket`13:45
cachiofor some systems we use -q 113:45
mborzeckiand i can reproduce it locally too13:46
mborzeckicachio: yeah, that seems to work, can you try to push a patch?13:47
mborzeckiworks even locally13:47
mborzeckicachio: the failure with selinux denials, do you know which test was it?13:48
cachioI thinks yes13:48
cachiomborzecki, I mean, I'll create a patch13:49
cachiomborzecki, denials are for google:fedora-34-64 .../tests/regression/lp-185236113:50
mborzeckihm so layouts13:50
=== alan_g_ is now known as alan_g
mborzeckicachio: hm i think i'm confused, we do not fail a test when there's selinux denials (or just fail a few chosen tests)14:00
cachiomborzecki, don't know14:13
mborzeckicachio: do you have a full log of the failure?14:14
mborzeckicachio: we do list it as part of the debug section, but the failure was something else afaict14:14
cachioI have this log14:16
cachiohttps://paste.ubuntu.com/p/K6rYDrVDym/14:16
cachiomborzecki, this is the only one14:16
cachiomborzecki, about nc, using the -w param it is working very well14:17
mborzeckicachio: this one failed on the nc problem too14:17
mborzeckicachio: i think we want -q rather than -w14:17
cachiomborzecki, -q is not available on fedora14:18
cachiomborzecki, I just pushed the change for nc14:21
cachiolet's see the errors now14:21
pstolowskii tried to reproduce https://forum.snapcraft.io/t/snap-refresh-broken-when-output-is-piped/24385/2 but couldn't14:28
mborzeckipstolowski: fwiw, i can't reproduce it either14:30
pstolowskimborzecki: nice... maybe was a red herring, temporary store hiccup14:31
mborzeckiah right, we saw something like this didn't we?14:31
pstolowskisure14:31
=== RzR is now known as rZr
* cachio_ lunch15:52
mupPR snapcraft#3521 opened: build providers: set hostname for lxd <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3521>16:23
mupPR snapcraft#3522 opened: python v2 plugin: update pip properly <Created by MrCarroll> <https://github.com/snapcore/snapcraft/pull/3522>17:13
=== dariball_ is now known as dariball

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