/srv/irclogs.ubuntu.com/2020/02/27/#snappy.txt

mupPR snapd#8208 opened: boot_test: add many boot robustness tests for UC20 kernel MarkSuccessul and SetNextBoot <Test Robustness> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8208>03:32
zygao/06:40
abeatomvo, morning!08:00
mvogood morning abeato08:00
abeatomvo, one question, which are the bootloader requirements for UC20? is there any documentation on that?08:01
pstolowskimorning08:01
mvoabeato: they are roughly the same as before, ideally the bootloader should be able to chainload but I think we could work without that (it means less robustness though)08:03
zygamvo: good morning08:04
mvohey zyga08:04
zygamvo: I'll be partially off today, need to get haircut and finish that pesky travel thing08:04
zygamvo: my goal for today is to publish what I did for sessions and work on prompting demo08:04
zygamvo: question08:04
zygamvo: last evening pedronis and I noticed a store review block on snapd08:04
zygamvo: due to type08:05
zygamvo: was that the auto-build?08:05
zygamvo: or something new08:05
abeatomvo, so, basically the same modifications that we need to do today (for u-boot for instance)?08:05
mvozyga: an auto-build of 2.4308:05
zygaok08:05
mvozyga: but the snap was removed from the queue, no?08:05
mvoabeato: yes, why do you ask ?08:06
zygamvo: I didn't check beyond that08:06
zygaI'm very tired lately, I try to sleep as much as I can08:06
mvoabeato: what loader do you have in mind :)08:06
abeatomvo, customers are asking :)08:06
mvoabeato: ok08:06
mvozyga: good luck, yeah, I feel also not great currently, very strange08:06
abeatomvo, same bootloaders as usual, but I did not know if UC20 required something new08:06
zygaabeato: note that core 20 is x86 driven now, arm work will happen later, my suspicion is that for full feature set you may need a better bootloader08:07
zygaabeato: but I think it's just speculation at this stage08:08
zyga(or more feature integration)08:08
mvoabeato: foundations is working on a port of uboot to uc20 currently08:08
mvoabeato: we willl discuss in FRA what the status is here08:08
mvoabeato: no plans for lk or anrdoidboot so far though08:08
abeatosil2100, do you know which is the status of that? ^^08:09
sil2100abeato: hey! I don't have a full update on that, waveform is working on the raspi port - but I know there was progress last time I checked08:10
abeatomvo, hm, lk (well, a fork of it, but we use lk support in snapd) is used by nvidia boards which seem to be polular08:10
mvoabeato: yeah, I'm sure eventually we get lk support it's just not a priority right now08:11
abeatomvo, ok, thanks for the info08:12
* zyga feels the urge to start using slack already08:13
pedronismvo: hi, in #8206 even the amd64 tests, broke ?08:14
mupPR #8206: travis.yml: run unit tests on arm64 as well <Created by mvo5> <https://github.com/snapcore/snapd/pull/8206>08:14
mvopedronis: yeah, it's confusing, I thing I got the syntax for the matrix wrong in some way08:15
mvopedronis: I'm looking at the network-retry failure first, then I will get back to this one08:15
pedronismvo: it's fine, to be understand why that one started failing just now ?08:15
pedroniss/to be/do we/08:16
mvopedronis: getent hosts www.ubuntu.com returns ipv6 now08:19
mvopedronis: and the script naively uses "http://$ip" which is invalid for ipv6 of course08:19
pedronisah08:19
pedroniscan't we fix the script ?08:19
mvopedronis: it's still a bit puzzling, we could force it to just use ipv4 but I wonder if ipv6 gives a useful error08:20
pedronisyes, same here08:20
pedronisI sort would prefer to test with boths08:20
mvopedronis: exactly08:20
abeatozyga, do you have a pointer to the grub config that will be used for UC20?08:20
pedronisand teach the script to deal with both kind of addresses08:20
mvopedronis: that was what I'm playing with right now08:20
pedronisok, great08:20
mvopedronis: the error for connect ipv6 is different but maybe I'm holding it wrong08:20
mvopedronis: I litterally got there 20s before we started talking :)08:21
zygaabeato: I'm not closely involved in uc20 work, sorry08:21
pedronisabeato: I can give you pointers, there are two configs involved (they will move inside snapd soon), but at the moment they are in the gadget08:22
pedronisone sec08:22
abeatok08:22
mvopedronis: meh, it really looks like ipv6 gives a very different net.OpError when it cannot connect, that feels a bit of a rathole "fun"08:23
pedronisabeato: here, https://github.com/snapcore/pc-amd64-gadget  grub.cfg-{recovery,boot}, recovery is the first stage,  boot is the 2nd used in run mode (vs the various recovery mode of UC20)08:25
abeatopedronis, great, thanks for the links08:26
pedronismvo: the fun never ends08:57
mborzeckimorning09:06
mvomborzecki: good morning09:07
mupPR snapd#8209 opened: tests: use ipv4 in retry-network to unblock failing master <Created by mvo5> <https://github.com/snapcore/snapd/pull/8209>09:08
mborzeckimvo: hey, anything interesting going on this morning?09:08
mvomborzecki: master red again but beside this not really09:12
mvo8209 should unbreak us and I'm looking at an equivalent ipv6 test right now09:12
zygamvo: interesting that ipv6 thing09:18
zygafor me it shows ipv6 on xenial09:18
zygaspecifically09:18
zygahttps://www.irccloud.com/pastebin/etKNfVuq/09:18
zygathere are no ipv4 addresses at all09:18
zygais that a change in the system config or a change in our domain name?09:18
zyganotably this xenial machine does not have an ipv6 global address09:19
mborzeckizyga: same here, ipv6 only ;)09:23
zygamborzecki: it's the future ;)09:24
mvoyeah, maybe it's a global change, no idea09:25
mborzeckizyga: hm maybe the response for AAAA comes back faster than for A?09:25
zygadunno, I would have expected the whole response09:25
zygait's a DNS query09:25
zygayou ask for stuff09:25
mborzeckior AAAA are queried first09:25
zygayou get stuff09:25
zyga(records)09:25
zygahttps://www.irccloud.com/pastebin/4KWXTfnL/09:26
zygacheck this out09:26
zygacurious09:27
zygadig ANY website-content-cache.canonical.com09:27
zygathat's giving me AAAA records09:27
zygabut dig ANY ubuntu.com does not09:27
zygabut hostent gives both?09:27
mborzeckiidk09:27
zygaer, hosts09:27
mborzeckimaybe the future is now09:27
zygathe future is broken now09:27
mborzeckizyga: actually quite broken, those addresses returned by getent are not really usable, i only got private and link local addresses on my interfaces09:31
zygayeah, same here09:31
zygaI wonder if IS changed something09:31
zygaor if ubuntu changed something in xenial09:31
zygalooking at dpkg.log09:31
zyganothing, it's pretty much unchanged except installs of local test packages09:32
mborzeckiimo it's a problem with glibc09:32
mborzeckiunless i'm misremembering how things work with ipv609:33
mvoI can ask in #is09:33
mvomborzecki, zyga asking our is folks09:35
zygathank you09:35
mborzeckidefinitely the year of linux desktop ;)09:38
mborzeckizyga: btw. try `getent hosts localhost`09:39
zygaI get ::109:40
zygathat's so weird09:40
zygafeels broken :)09:40
mborzeckizyga: wonder where the preference is encoded, at least i can ping ::109:41
zygaofftopic, sun and snow / hail oscillate every 10-15 minutes09:42
zygasunlight with blue sky09:42
zygathen dark gray and lots of snow09:42
zygawhat a day!09:42
mupPR snapd#8210 opened: wrappers: add mount unit dependency for snapd services on core devices  <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/8210>09:58
mborzeckimvo: ^^ do you think this is 2.44 worthy?09:59
zygamborzecki: hmm10:03
zygathe patch looks buggy10:03
zygayou have [Unit] and then immediately [Service]10:03
zygain the past [Unit] had ExecStart10:03
zygais that expected?10:03
mborzeckizyga: yeah, ExecStart is part of [Service], so i updated the tests to make them closer to real unit definitions10:07
zygaaha10:07
zygahow was it working before?10:07
zygacompatiblity in systemd?10:07
mborzeckizyga: no, it's just the test data, the actual services under data/systemd are correct and have ExecStart in [Service]10:08
zygaahhh10:08
zygaok, that clears up the mystery ;)10:08
zygathanks!10:08
mvomborzecki: probably, please tag10:09
mupPR snapd#8209 closed: tests: use ipv4 in retry-network to unblock failing master <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/8209>10:10
mupPR snapd#8211 opened: tests: run ipv6 network-retry test too <Created by mvo5> <https://github.com/snapcore/snapd/pull/8211>10:15
mupPR snapd#8207 closed: tests: fix retry network test after image update <Squash-merge> <Created by sergiocazzolato> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/8207>10:16
mborzeckimvo: tagged10:22
mborzeckihmm new kernel10:27
mborzeckibrb10:27
mborzeckiand running 5.5.6 now10:34
zygaposh10:44
zygamvo: FYI, 14.04 cnf suggests "snap" for "snap"10:53
zygacould lead to some confusioin10:53
zygamvo: what's the state of ESM snapd build?10:54
zygaI'm testing on 14.04 as well, could get it to see if anything odd pops up10:54
mvozyga: it's build in staging11:01
* zyga -> lunch11:55
zygaback,12:11
mborzeckizyga: can you remind me, when we launch snap-update-ns it's started using fexecve right?12:18
zygacorrect12:18
zygawe launch all our tools this way12:18
zygaany issues?12:18
mborzeckizyga: trying to update the centos 8 and there's weird selinux denial, let me copy that12:18
mborzeckizyga: https://paste.ubuntu.com/p/nDKbryS9tv/12:19
mborzeckizyga: i think it's ld.so tryign to poke ld cache12:19
zygamborzecki: yeah12:19
zygaI suspect so12:19
* zyga finds selinux gibberish-y12:20
zygatoday I learned one cool feature of dbus is not supported in busctl: https://github.com/systemd/systemd/issues/1495412:20
mborzeckizyga: ha, weird why busctl doesn't support that12:21
zygait's just not coded12:21
zygathere's an error branch and thats's that'12:21
mborzeckiwell, maybe nobody tried it with busctl yet12:21
mborzeckizyga: suppose there's limited use case consideing busctl is a command line tool12:22
zygamborzecki: shell is still quite versatile, plus you could open python an pass a fd this way :)12:23
mborzeckizyga: you can, but should you?12:23
zygayes :)12:23
zygabetter than python bindings and in general even bash is sufficient to handle FDs12:24
mborzeckizyga: hm why is even snap-update-ns invoked when there's no mount profile?12:25
zygamborzecki: for several years it is used to construct one12:26
mborzeckizyga: hm need to go through that code again12:26
mborzeckizyga: i keep evicing all state info afer a while :P12:27
mborzeckizyga: hm still wodnering why this isn't picked up by the other selinux specific tests, jsut this one12:30
zygamborzecki: probably because that test is fairly limited12:30
zygamborzecki: check out the aggregated denials bug on lauchpad12:30
zygamborzecki: or enable robust mount ns12:30
mvohm, ubuntu-core-18-64:tests/main/revert:remote seems to be failing currently, I wonder if it's a one-off or a new trend :(12:30
zygawhich exercises the same code12:30
zygamborzecki: there's a PR from me about that, it fails on a dozen issues12:30
zygamborzecki: I bet they are the same12:30
zygamborzecki: they routinely happen in normal use12:30
zygamvo: how does it fail?12:31
mborzeckiit fails due to unexpected denials in the log12:31
mborzeckihaaa and those happen on remove12:31
mvozyga: it says snapd wants to reboot the system12:31
zygamvo: huh12:32
* zyga is overwhelmed by complexity of snapd state handling sometimes12:32
pedronismvo: how does it fail?12:33
pedroniswe haven't changed anything in that area recently12:33
mvopedronis: yeah, it looks like there is a pc-kernel refresh that happend just now12:33
mvopedronis: so the test runs "snap refresh" and that triggered a pc-kernel refresh :/12:33
mborzeckiayy12:34
pedronismvo: ah12:34
pedronisfun12:34
pedronisall tests doing snap refresh like that are fragile12:34
mvoyeah12:34
pedronisuntil we add holding for single snaps12:34
* mvo is slightly depressed about this and gets lunch12:36
pedronismvo: heh12:38
pedronismvo: anyway we might get some extra test failures when the test snaps get moved as well12:38
mborzeckihmmmm12:41
mborzeckiso when removing a snap and disconnecting the interfaces, we keep recompiling the seccomp profiles on each disconnect12:42
mborzeckifeels like wasted cpu cycles12:42
mborzeckizyga: this also triggers snap-update-ns ^^12:42
zygamborzecki: yeah, I think that's expected in our current design12:43
zygamborzecki: we only have one optimization, for mass auto-connect12:43
pedronismborzecki: we should remember it, but it doesn't sound like something to address right now12:44
pedronis(too many other things)12:44
mborzeckipedronis: right, i'll collect a some notes and open a forum topic12:44
cmatsuokacachio: it seems that tests with the tpm-enabled branch are successfully running on the google-tpm backend, but it's very, very slow12:47
jdstrandpedronis: hey, since there were 2 force pushes in as many days for just reviews that I did, I wonder if it makes sense where when you first submit a PR in the section about the CLA if there should be something about force pushes12:49
jdstrandthat sentence could've used a couple commas12:49
=== wgrant is now known as wgrant_
=== wgrant_ is now known as wgrant
cachiocmatsuoka, ahh, ok13:11
cachiodo you have a branch to use13:11
cachioperhaps I can improve it13:12
cmatsuokacachio: I'm currently testing with the frankfurt-preview-tpm branch in my tree13:13
cmatsuokacachio: it consolidates all encryption-related branches on top of the current master13:14
cachiocmatsuoka, nice, thanks13:18
cachiocmatsuoka, is it everything slow?13:18
cachioor just a specific test?13:18
cmatsuokacachio: I've been running it for something like 1h now and it's still at 100/44713:19
cachiocmatsuoka, ok13:19
cmatsuokacachio: also I can't tell if tpm was actually used, if you can shell into the test machine you can check if there's a /writable/system-data/ubuntu-data.keyfile.sealed there. If this file exists the system booted with tpm enabled13:21
cachiocmatsuoka, nice13:27
pedroniscachio: mvo: the test snaps have been transfered, let's see if something goes wrong with some tests13:28
mupPR snapd#8202 closed: cmd/snap-bootstrap,seed: verify only in-play snaps <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8202>13:31
pedronis^ this might speed UC20 install/boot a little bit13:32
pedronis*speed up13:32
pedroniscmatsuoka: how many machines are you using?13:33
pedronisthe tpm systems have one worker,  and our runes take 40 minutes with 4-6 workers13:35
pedroniss/runes/runs/13:35
mborzeckimvo: #8083 should be fine now, i've tagged it with 2.44 since there's a tiny policy update13:36
mupPR #8083: spread, data/selinux: add CentOS 8, update policy <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/8083>13:36
mvomborzecki: thank you13:38
cachiopedronis, running tests right now13:50
cachiocmatsuoka, hey13:50
cachiohow many workers are you using?13:50
cachiobecause by default the backend is using 113:51
cmatsuokacachio: oh noes ok13:51
pedroniscmatsuoka: our runes take ~40mins with 4-6 workers13:52
pedronisruns13:52
cmatsuokacachio: I thought it was using the same number as the rest, but now it's almost finishing13:52
cmatsuokacachio: ah, it finished. With 279 tasks aborted13:53
zygamborzecki: can you check this on your box14:47
mborzeckizyga: hm?14:47
zygahttps://www.irccloud.com/pastebin/N9YISpKV/14:47
zygamborzecki: it should behave like "sudo"14:48
zygamborzecki: it has -u for picking the user14:48
zygamborzecki: it's a bit of a hack14:49
zygahmmm14:51
zygaweird14:51
mborzeckizyga: https://paste.ubuntu.com/p/pPfN4F34SK/14:51
zygait still has some warts14:51
zygaor one annoying one14:52
mupPR snapd#8212 opened: tests: updating checks to new test account for snapd-test snaps <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/8212>15:10
* zyga break15:25
pedronismmh, github is having issues for me15:33
* cachio lunch15:40
pedronisyea, status gives degraded hard to do reviews :/15:42
ijohnsonpedronis: sorry had my 1:1, but I'm editing the docs now, are you okay if I just make the edits directly or do you want me to propose changes with the suggestions thing on the doc?15:52
ijohnson(edits for what's no longer 100% accurate)15:52
pedronisijohnson: probably just do the edits, unless there is something you are unsure about, in any case they are not that long, I can re-reread them after. Also remove/resolve any stale discussions/comments bits15:53
ijohnsonpedronis: ack15:54
pedronisthank you15:54
ijohnsonpedronis: what does the green highlighting mean again? does that mean we already did it? if so perhaps we remove all the green highlighting and just use light red to mean "not done" ?16:05
ijohnsonor I guess the official name "light green 3"16:05
cjp256what are the usual suspects for seeing "broken" in the notes section for a  snap?16:07
cjp256i have lxd (stable) installed, but recently it seemed to break (after dist-upgrade?) and I'm getting errors like apparmor="DENIED" operation="exec" profile="snap.lxd.lxc" name="/usr/sbin/aa-exec" pid=5159 comm="lxc" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0.  notes section says "broken"16:08
ijohnsonpedronis: anyways I made all the edits to update those 2 docs, I'm going to work on a section in the booting"16:10
ijohnsonI'm going to work on a section "booting" doc to put details about what we discussed this morning about16:10
ijohnsoncjp256: do you have a "current" symlink in /snap/lxd ?16:11
cjp256yeah, rev 13487, which doesn't actually match the "installed" version according to snap info...16:11
ijohnsoncjp256: also what about the snap mount unit in systemd `systemctl status snap-lxd-*.mount` ?16:12
cjp256active, mounted 1348716:12
cjp256snap list shows 13522 as being installed though...?16:13
ijohnsondo you only have 1 mount unit in that command above ?16:14
ijohnsonFor me, I have 2 mount units, 13487 and 1352216:14
cjp256yeah snap-lxd-13487.mount - Mount unit for lxd, revision 1348716:14
ijohnsonhmm so that's why it's broken, snapd wanted to install 13522, but for some reason you never got a mount unit for it16:14
ijohnsonit -> that revision16:15
cjp256so in other news, irccloud also started acting up16:15
cjp256apparmor="DENIED" operation="symlink" profile="snap.irccloud.irccloud" name="/home/chris/snap/irccloud/28/.config/ibus/bus" pid=10991 comm="ln" requested_mask="c" denied_mask="c" fsuid=1000 ouid=100016:15
ijohnsonwhat does `snap list lxd --all` show? do you have other revisions listed there (perhaps ones that are disabled) ?16:15
cjp25613487 "disabled" 13522 "broken"16:16
jdstrand_cjp256: does irccloud have the desktop-legacy interface connected?16:16
=== jdstrand_ is now known as jdstrand
ijohnsontry `snap revert lxd --revision 13487`16:17
cjp256jdstrand: `desktop-legacy            irccloud:desktop-legacy   :desktop-legacy                  -`16:17
jdstrandcjp256: oh, that is down in SNAP_USER_DATA anyway. that is probably related to a refresh16:18
cjp256ijohnson: that worked like a champ! :D16:18
jdstrandcjp256: guessing current is pointing to !28 ?16:18
ijohnsonnow you could try `snap refresh` of lxd again and see how it goes16:18
cjp256well that's interesting16:19
ijohnsoncjp256: do you have experimental.refresh-app-awareness enabled ?16:19
cjp256irccloud had a similar problem16:19
cjp256--all shows 24 "diabled,broken", and 27 "-"16:19
pedronisijohnson: yes, green meant done afaiu (sorry was in a meeting)16:19
cjp256but current is a symlink to 2816:19
ijohnsonpedronis: thanks16:20
cjp256ijohnson: yes!16:20
pedronisijohnson: and yes, if it's mostly done, I would remove it and just use read for missing bits16:20
ijohnsoncool16:20
pedroniss/read/red/16:20
cjp256ijohnson/jdstrand: though in irccloud's case, a `snap refresh irccloud --stable` did restore order, current is pointed back to 2616:23
pedronisijohnson: I'll look at docs now, given that reviewing is a bit not working on github atm16:23
ijohnsoncjp256: what's `snap changes irccloud`?16:24
cjp256just `143  Done    today at 11:21 EST  today at 11:21 EST  Refresh "irccloud" snap`16:24
ijohnsonpedronis: ack there is one thing I'm unsure about is whether there's a modeenv in the image when we build it, I had a comment in the doc from a while ago that we were writing one there but perhaps we aren't and it was something else16:24
cjp256ijohnson: i did reboot earlier to see if that resolves the problem, i don't know if changes logs prior boots16:25
ijohnsonpedronis: the issue that made me write that was that I had a too old `snap prepare-image` and the image I was writing (even though it was writing a newer snapd into the image) wouldn't finish boot16:25
ijohnsonIt got stuck in install mode16:25
ijohnsoncjp256: no reboots don't clear changes16:25
ijohnsoncjp256: not sure what caused your problems but it sounded a lot like the ibus input thing jdstrand solved a while ago on irccloud and some bad refresh on the lxd snap16:26
pedronisijohnson: we don't, modeenv exists only in ubuntu-data and there is no ubuntu-data in UC20 images built (at least for now)16:27
ijohnsonpedronis: right, then I guess I will delete that, not sure what the problem was with my image a while ago but probably was an artifact of many things changing at once16:28
cjp256ijohnson: now that I have a good idea of what may be happening I can dig in a bit further next time should it happen again...  thanks!16:28
ijohnsonnp16:28
pedronisijohnson: what are the yellow highlights, were they preexisting?16:31
pedronis(me doesn't remember)16:31
pedronisI'm looking at bootenvs right now16:31
ijohnsonpedronis: yes you added those one day16:31
ijohnsonpedronis: perhaps we should consolidate the info in that highlighted section and unhighlight16:32
ijohnsonit16:32
ijohnsonmmm seems I missed some things in the bootenvs doc16:32
murthyspotify's UI freezes after sometime16:34
murthydoes that happen to any of you?16:34
murthyI had also tried reinstalling but issue still exists16:35
murthyIf someone can confirm I can try to downgrade16:36
pedronisijohnson: I made some suggestions, comments and marked some not yet done bits in light red in the boot envs one16:41
pedronisijohnson: please review16:41
ijohnsonpedronis: ok looking16:41
cmatsuokacachio: the encryption test is failing with google-tpm (/sys/kernel/security/tpm0/binary_bios_measurements: no such file or directory)16:43
murthyfellows is there a bug reporting place somewhere for a snap?16:43
cmatsuokacachio: I checked with Chris and the likely cause is secure boot not enabled16:44
pstolowskimurthy: snap info spotify - the contact field16:45
cmatsuokacachio: are you using the snakeoil nvram file (OVMF_VARS.snakeoil.fd)?16:45
murthypstolowski: checking16:46
pstolowskimurthy: it seems there is an issue similiar to yours https://community.spotify.com/t5/Desktop-Linux/Spotify-GUI-freezes-in-Ubuntu-19-10/td-p/490098316:48
murthypstolowski: Ya, I just saw that16:51
murthypstolowski: hope they fix it soon16:51
murthypstolowski: thanks for the help16:51
pstolowskiyw16:51
pedronisijohnson: I did a pass on half of booting, the update bits need some tidying up still16:51
pedronisijohnson: maybe copy some of the comments from bootstate20.go, not sure16:52
ijohnsonpedronis: ok doing that now16:52
pedronisijohnson: I left a comment about were I stopped for now16:53
pedronisijohnson: would like to eod a bit earlier today16:53
pedronisI will still try to post my reviews later tonight if github behaves16:53
ijohnsonpedronis: of course, we can look at it all again tomorrow16:53
pedronisijohnson: thank you16:53
pedronisijohnson: to be clear, feel free to accept or tweak my suggestions in the two docs16:58
* pedronis eods16:58
ijohnsonyes16:58
ijohnsonhave a good evening pedronis16:58
mvobye pedronis16:59
cachiomvo, is it ok https://paste.ubuntu.com/p/HqQP9Pfbhd/ ?17:05
cachiomvo, because this is making fail the fix for the create user 2 test17:06
mvocachio: this smeels like a bug17:07
mvocachio: if you run "snap managed" after "snap remove-user", does it report true?17:07
cachiomvo, exactly17:07
cachioand initially was false17:08
zygacachio: do you have a shell there?17:10
zygacachio: the state has all the info we need to grok that17:10
cachiozyga, sure, 1 second17:10
mvocachio: meh, that sounds like a bug, quite annoying17:11
cachiomvo, zyga https://paste.ubuntu.com/p/Q4D8nM5Hth/17:11
zygacachio: cool, it's even up front17:12
zygamvo is logged in :)17:12
cachiomvo, the good part is that we found it17:12
zygamvo: you own plenty of devices :)17:12
zygamvo: is that master or release?17:12
mupPR snapd#6708 closed: tests/main/buildmode: verify usability of PIE hardening for deb packages <⛔ Blocked> <Created by bboozzoo> <Closed by bboozzoo> <https://github.com/snapcore/snapd/pull/6708>17:14
mvozyga: master17:15
mvozyga: delete-user is not released yet17:15
zygagood17:15
mvozyga, cachio it's a bit confusing, we have code that should remove the user17:17
* mvo looks17:17
zygahttps://www.irccloud.com/pastebin/0ANbDwIR/17:17
zygagolang's brilliant array API17:18
zygan = 017:18
zygaI guess authStateData.Users becomes an empty slice17:18
zygais it possible that this is not a snapd bug17:19
zygabut a bug in the prepare/restore17:19
zygae.g. we restore a state that has auth17:19
zygacachio: is the test machine backup's copy of state.json also authenticated?17:19
cachiozyga, checking17:20
cachiozyga, I dont see it https://paste.ubuntu.com/p/2GXmN3dcv8/17:24
cachiousers":null17:25
cmatsuokacachio: tpm is (or seems to be) working in the google-tpm backend, but secure boot is disabled. are we using the snakeoil ovmf vars?17:28
=== alan_g is now known as alan_g_
zygacachio: so that limits the bug17:29
zygacachio: thanks!17:29
zygahmm17:29
mupPR snapcraft#2953 closed: meta: remove remaining `__dict__` and key list usage in snap <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2953>17:32
cachiozyga, I think the problem comes because17:33
cachiouserdel --extrausers -r mvo17:33
cachiouserdel: mvo mail spool (/var/mail/mvo) not found17:33
zygaoh17:33
zygais this test failing on core18?17:33
zygaperhaps /var/mail/ is not writable17:34
mvocachio: oh, so this command fails and we don't get an snap delete-user error?17:34
zygacachio: does userdel fail?17:34
mvocachio: I need to get dinner now, please either put what you find in the standup doc or sent a mail, I can work on this in my morning17:34
mvo(or someone else can tonight of course if someone is around :)17:35
cachiomvo, sure17:35
zygauh17:35
cachioI'll continue digging17:35
zygamvo: we do something silly17:35
zygaif output, err := exec.Command("userdel", cmdStr...).CombinedOutput(); err != nil {17:35
zygareturn fmt.Errorf("cannot delete user %q: %v", name, OutputErr(output, err))17:35
zyga}17:35
zygais err going to be != nil if command were false?17:35
zygaor is that buried in cmd?17:36
zygathere's ProcessState.ExitCode17:37
zygaI don't think we ever check that!!!17:37
zygamvo: I'm in another topic, sorry17:38
zygapaging out17:38
zygait could be a dead end, just not digging there more now17:38
cachiozyga, np, I'll leave all the findings in the doc17:40
zygathanks!17:40
ijohnsonzyga: CombinedOutput() will return non-nil err if the exit code is not 017:47
zygaijohnson: in that case I don't see any obvious bugs in that code17:47
ijohnsonyeah looks pretty typical code to me17:48
ijohnsonjust the snippet you posted17:48
ijohnsoncachio: do you want me to take a look at this too? not clear to me if this is blocking the release or what the bug is that folks are looking at now17:48
=== alan_g_ is now known as alan_g
cachioijohnson, https://paste.ubuntu.com/p/k5wqvYMXKz/17:49
cachiouserdel --extrausers is breaking everything17:49
cachiosnap remove-user works well17:50
cachiobut we have a test which uses userdel --extrausers17:50
ijohnsonooh looks like fun17:50
pedroniswell userdel will not update snapd internal status17:50
pedronisfor sure17:50
cachioand is breaking the next one17:50
ijohnsonhmm, can we have this test use a different user?17:50
ijohnsonto add/remove ?17:51
pedronisbut state restore should bring it back to sane, no?17:51
ijohnsonthat too17:51
* pedronis going to have dinner17:51
cachioill update the test to do snap remove-user instead of userdel17:51
cachioijohnson, does it make sense?17:51
ijohnsoncachio: which test is this17:51
ijohnsonremove-user ?17:52
cachioyes17:52
ijohnsonlooking17:52
cachioijohnson, also I updated the create user 217:55
ijohnsoncachio: so the problem is that this test in the restore section runs `userdel` and that breaks a different test ?17:55
ijohnsonspecifically the create-user2 test ?17:55
cachioijohnson, yes but there were also another error17:57
cachionot sure which was causing that17:57
cachiobut the create user 2 test needed another fix which I am testing17:57
cachioijohnson, do you think we can use snap remove user instead of userdel?17:58
ijohnsoncachio: I think it makes sense to have the remote-user test run `snap remove-user` instead of userdel, because as samuele mentioned, `snap create-user` does more than just manipulate extrausers, so to be safe we should undo all of the things that `snap create-user` did and the right way to do that is `snap remove-user`17:58
ijohnsonsorry s/remote-user/remove-user/17:59
ijohnsontldr yes use `snap remove-user`17:59
cachioijohnson, nice18:00
cachioI am updating the tests18:00
ijohnsongreat, let me know when there's something for me to review18:02
=== ijohnson is now known as ijohnson|lunch
cachioijohnson|lunch, sure, in few minutes it will be ready, I am still waiting for the tests18:11
=== ijohnson|lunch is now known as ijohnson
ijohnsoncachio: I see that 8212 failed on opensuse's repos being unavailable18:54
ijohnsoncachio: do you want me to submit a PR moving opensuse to unstable ?18:54
cachioijohnson, #820519:00
mupPR #8205: tests: just remove user when the system is not managed on create-user-2 test <Simple 😃> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/8205>19:00
cachioijohnson, trying once and then we try moving to unstable19:01
ijohnsonOkay19:05
ijohnsonMy internet seems to have gone down just now19:05
ijohnsonalright I'm back now, dns problem for some reason19:09
ijohnsoncachio: approved 8205 for you (again)19:11
pedronisijohnson: cmatsuoka: I submitted now a couple of reviews to PRs of yours that I failed before because of github having issues19:11
ijohnsonpedronis: ack thanks I'll look now19:11
cachioijohnson, thanks!!!19:18
cmatsuokapedronis: ack, thanks19:30
cachioijohnson, still failing on opensuse19:36
cachioijohnson, do you want to move to unstable or I can do it19:37
ijohnsoncachio: I can do it if you like19:37
cachioijohnson, sure19:37
cachioI'll approve it19:37
ijohnsoncachio: I see that opensuse 15.0 has `manual: true`, do you remember why that is there?19:39
cachioijohnson, it is intentional19:39
cachiowe are just testing on tumbleweed and leap 15.119:39
ijohnsoncachio: https://github.com/snapcore/snapd/pull/821319:41
mupPR #8213: spread.yaml: mv opensuse 15.1 to unstable <Skip spread> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8213>19:41
mupPR snapd#8213 opened: spread.yaml: mv opensuse 15.1 to unstable <Skip spread> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8213>19:41
ijohnsoncachio: are we good to merge that 8213 now then?19:58
cachioijohnson, no19:58
cachiohttps://travis-ci.org/snapcore/snapd/jobs/655836451#L64419:58
cachiotumbleweed is also failing19:59
ijohnsonoh no :-(19:59
cachiowe need to move both to unstable19:59
zygaperhaps merge one19:59
ijohnsonI'll push an update to my PR and move tumbleweed there too19:59
zygaand open the next19:59
ijohnsoncachio: then we merge my tumbelweed PR and you can merge master into your users PR?19:59
cachioyes20:00
ijohnsonk20:01
mupPR snapd#8213 closed: spread.yaml: mv opensuse 15.1 to unstable <Skip spread> <⚠ Critical> <Created by anonymouse64> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/8213>20:11
cachioijohnson, merged and pushed my branch again20:12
ijohnsoncachio: great, thanks20:12
cachioijohnson, I hope this time it is green20:12
ijohnsonme too :-)20:12
mateuszmHi guys, are you knowledgeable about Ubuntu 20.04's apparent move from deb to snap for the Software Center, and snap to dev for gnome-{calculator,logs,characters}, by any chance? I had a surprise yesterday when I apt-get updated my 20.04 pre-release install20:13
mvoijohnson, sergiusens : thanks so much for taking care of the test failures!20:14
mateuszmBasically, folks who have an up-to-date pre-release install are in the situation where they have two versions of each of the calculator, log viewer, and character apps: the snap version (old) and the deb version (new). I'm wondering if that means I have to manually uninstall the snap version? And reciprocally, if I have to manually install the snap20:17
mateuszmversion of the Software Center (i.e. the snap store)?20:17
mvomateuszm: best to ask the #ubuntu-desktop people about that, this channel is mostly about the development of snapd itself20:21
mvo(and sorry, but I have no real insights here :/20:22
mateuszmmvo Ah great, OK, thanks a lot!20:23
cachioijohnson, I'll be afk, I ned to go to the kinesiologist20:32
ijohnsoncachio: ack I'll merge if your PR goes green / push updates as necessary20:33
cachiothanks20:33
cachiootherwise I'll do it once I'm back20:33
mvoijohnson: please push a green master to all the 2.44 tagged PRs if you don't mind :)20:38
ijohnsonmvo: sure20:39
mvothank you!20:39
ijohnsonhave a nice evening mvo20:39
mvoijohnson: have a good day too20:40
* mvo waves20:40
ijohnsoncachio: just fyi the ubuntu spread test failed due to a unit test failure from pstolowski's thing that he's working on a fix for, so I restarted it, I think it should probably pass when we re-run it I think21:27
=== hggdh is now known as hggdh-msft
* zyga has more or less working session-tool, with lots of practical details right21:58
zygakind of late21:58
zygalet's move onto testing via spread21:58
mupPR snapd#8212 closed: tests: updating checks to new test account for snapd-test snaps <Simple 😃> <Created by sergiocazzolato> <Merged by anonymouse64> <https://github.com/snapcore/snapd/pull/8212>23:43

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