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

ijohnsonsdhd-sascha: that's expected since if you copy cmd_sign.go to cmd_foo.go, then you're really just adding a `snap foo` command rather than a new command like `foo bar`01:11
ijohnsonsdhd-sascha: as for what if you misspell something that's what code review is for :-)01:12
mborzeckimorning06:16
mborzeckimvo: hey06:26
mvomborzecki: good morning!06:27
zygagood morning!07:09
mvozyga: good morning07:10
zygajust finishing my morning sandwich here07:10
zygahow are you guys?07:10
zygaI spent most of yesterday afternoon debugging issues related to gid dropping07:10
zyga(so snap-confine can stop being setgid root)07:10
zygafound a few things after sorting out the initial wave of mkdir problems07:10
zygathe spread test that finds wrong permissions on directories and files was invaluable07:11
mvozyga: nice07:11
zygaone issue still remains, in snap-update-ns, it also creates some files07:11
zygaoh well :)07:11
zygabut today I should get through all of that07:11
mvozyga: cool! I'm cleaning up boring spread tests :)07:11
zygagreat07:11
zygaupdating them to current standards?07:12
mvozyga: nah, just updating the uc20 test so that it gets pass the review feedback :)07:14
zygaI see :)07:15
zygawell, not anywhere less noble :D07:15
sdhd-saschagood morning07:19
zygahey sdhd-sascha, how are you doing?07:22
mborzeckizyga: 'standards'?07:27
zygamborzecki: some tests are really quaint07:27
zygathe older the more likely you would rewrite it just after looking at it07:28
mborzeckihah i can imagine07:28
sdhd-saschazyga: i'm fine. thank you :-) Hope you, too07:45
mborzeckisomething not right with apparmor spec in the desktop interface07:47
mborzeckiJan 08 07:35:17 jan080727-593014 dbus-daemon[18726]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/freedesktop/portal/desktop" interface="org.freedesktop.portal.OpenURI" member="OpenURI" mask="send" name="org.freedesktop.portal.Desktop" pid=18835 label="snap.test-snapd-desktop.cmd"07:47
zygamborzecki: did you change anything or can I just look at master?07:48
zygamborzecki: (to look at the rules)07:48
mborzeckizyga: master is fine07:48
zygahuh07:49
zygaso07:49
mborzeckizyga: i mean looking at the code in master is fine, not that it works on master ;) the relevant bit https://github.com/snapcore/snapd/blob/master/interfaces/builtin/desktop.go#L189-L19407:50
zygaI wonder if this works at all07:50
zyganotice that we don't say member=...07:50
zygamaybe that means member=""07:50
zygatry adding that07:50
zygamember=OpenURI07:50
zygaand if this fixes it let's look at what else needs to be there07:50
zygamborzecki: also check the confinement on the portal07:50
zygamaybe, by chance, it has a non-snap apparmor label07:50
mborzeckizyga: portal didn't even start, the request got blocked earlier07:51
zygamborzecki: can you check that the relevant rule is really there in the apparmor profile?07:51
mborzeckizyga: unfortunately the rule is in the profile :/07:52
zygahmm07:53
zygaso07:53
zygaI wonder if this is this:07:53
zyga    path=/org/freedesktop/portal/{desktop,documents}{,/**}07:53
zygathis can expand to path=/org/freedesktop/portal/desktop/**07:54
mborzeckizyga: as i udnersdtand, not specifying a member means to allow all members of the interface07:54
zygawhat if that doesn't match /org/freedesktop/portal/desktop07:54
zygamborzecki: try changing that regexp07:54
zygamborzecki: to say path=...{,/,/**}07:55
zygathough perhaps I'm wrong07:55
zygabecause it would probably match the plain expansion07:55
zygawithout /**07:55
mborzeckihmm we have other spread tests for portals too and those are passing afaik, wonder what makes this one special07:56
zygamborzecki: are you testing interactively or is there a spread test?07:56
zygamborzecki: ha07:57
zygamborzecki: one more idea07:57
zygais this really true?07:57
zygainterface="org.freedesktop.portal.OpenURI"07:57
mborzeckizyga: spread test for snapctl user-open going to a desktop-portal rather than snap userd07:57
zygais the interface really interface="org.freedesktop.portal.OpenURI"07:57
zygaor is OpenURI the method now (member)07:57
zygaif so the expression won't cover it07:57
zygait requires portal.*07:57
mborzeckizyga: we have interface=org.freedesktop.portal.*07:58
zygaright07:58
zygabut what if the audit message is not really what it seems07:58
zygaI would say that the interface is org.freedesktop.portal - full stop there07:58
zygaand the member is OpenURI07:58
zygasee what I mean?07:58
zygainterface="org.freedesktop.portal.OpenURI"07:59
zygaer07:59
zygahttps://www.irccloud.com/pastebin/As3p4zI1/07:59
mborzeckiJan 08 07:58:31 jan080727-593014 dbus-daemon[18726]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/freedesktop/portal/desktop" interface="org.freedesktop.portal.OpenURI" member="OpenFile" mask="send" name="org.freedesktop.portal.Desktop" pid=19338 label="snap.test-snapd-desktop.cmd"08:00
zygatry this08:00
mborzeckiopening a file gets blocked too :/08:00
zygais this on arch?08:00
mborzecki19.1008:02
jameshzyga: there are multiple interfaces under org.freedesktop.portal08:04
zygajamesh: hey :-)08:04
zygajamesh: do you know if the OpenURI method is on the interface called OpenURI08:04
jameshzyga: yes.  It is an OpenURI method on the o.f.p.OpenURI interface08:04
zygaaha08:04
zygain that case I have no idea why there is a denial08:05
pstolowskimornings. i need to run an errand, will start for real a bit later (in ~1h)08:06
zygagood morning Pawel08:06
mupPR core-build#58 opened: initramfs: add neccessary modules for rockchip emmc and sdcard <Created by JeffyCN> <https://github.com/snapcore/core-build/pull/58>08:08
jameshmborzecki: one idea: does it work if you manually start xdg-desktop-portal from outside of confinement first?08:09
jameshI'm wondering if this is a "missing AssumedAppArmorLabel" problem08:09
zygammmm08:10
zygagood hunch08:10
mborzeckijamesh: good catch, yeah, it's different now, not getting blocked08:11
zygaha08:11
zygaI wonder if we didn't notice that before08:11
zygabecause snap run activates one of the portals on startup08:11
zygaso it would be activated by an unconfined program08:11
jameshI am surprised we aren't hitting that denial in the other desktop-portal-* tests08:11
jameshI don't see anything that would start it before hand08:12
mborzeckijamesh: not entirely sure, but test-snapd-portal-client activated the portal, but doing the same via xdg-open gets blocked08:12
jameshmborzecki: the problem is that we don't know the AppArmor label xdg-desktop-portal will run with prior to it starting.  So the AppArmor rule allowing communication with peer=(label=unconfined) doesn't match08:14
jameshmborzecki: are the interface plugs of test-snapd-portal-client different to whatever snap you're using to call xdg-open?08:15
mborzeckijdstrand: nope, they're the same, only desktop plug08:16
mborzeckijamesh: ^^08:16
jameshmborzecki: is there any difference in the order of operations in preparing the test?08:17
zygamborzecki: which other portal test passes?08:19
jameshzyga: tests/main/desktop-portal-*08:19
zygahttps://github.com/snapcore/snapd/blob/master/cmd/snap/cmd_run.go#L69108:19
mborzeckizyga: that's document portal08:20
zygathose tests are interesting08:20
zygathey set up fake portals up front08:20
zygaso the portal is never activated08:20
* zyga checks to be sure08:20
zygaI take that back08:21
zygathe portal is fake08:21
jameshif xdg-document-portal causes xdg-desktop-portal to start, then we wouldn't hit the activation problem08:21
zygabut seems to be activated08:21
jameshhmm.  If portalsUnavailableFile has leaked from a previous test using the snap in mborzecki's test, then we might not try to start the document portal08:21
zygawhere is that file stored?08:21
jameshnothing outside of the desktop-portal-* tests use test-snapd-portal-client08:22
jameshit would be $XDG_RUNTIME_DIR/snap.$SNAP_NAME/.portals-unavailable08:22
zygaI doubt we clean that up08:22
zygaperhaps we ought to08:22
jameshand that would be XDG_RUNTIME_DIR for  uid 100008:22
mborzeckijamesh: don't think it's the cause, i stop the deskto portal, then run test-snapd-portal-client open-uri and it gets activated, but doing the same with test-snapd-desktop.cmd xdg-oopen gets blocked08:23
jameshuid 1234, even08:23
mupPR snapd#7943 closed: tests: add core20 tests <UC20> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7943>08:23
sdhd-saschazyga: hey, what are you testing. And how can i reproduce it? Seems to be interresting for wayland-server snaps too08:23
jameshmborzecki: does /run/user/1234/snap.test-snapd-desktop/.portals-unavailable exist?08:24
zygasdhd-sascha: it's mborzecki, not me08:24
zygasdhd-sascha: xdg portals and some apparmor interactions08:24
sdhd-saschai see, is `test-snapd-desktop` in the store?08:24
sdhd-saschaor, in the tests?08:25
mborzeckijamesh: nope08:25
zygasdhd-sascha: most of the snaps are in the snapd repo08:25
jameshzyga: also: the tests are running against the real xdg-desktop-portal service: they're just faking the UI service that the snap doesn't communicate with08:25
zygaand only some are in the store, usually if they 1) require compilation 2) require being from the store08:25
zygajamesh: I see08:25
sdhd-saschaCan i ask, if we could merge this #7927 ?08:44
mupPR #7927: interfaces: x11 allow apparmor on classic <Created by sd-hd> <https://github.com/snapcore/snapd/pull/7927>08:44
pstolowskire08:50
zygaaha09:00
zygaI know what fails now09:00
zygaman09:00
zygasuch a complex sooup09:00
zygasoup09:00
mborzeckijamesh: so it looks to me that the python dbus client actually starts the service https://paste.ubuntu.com/p/42ZWnBHwxN/09:04
mborzeckijamesh: looking at apparmor profile, sending org.freedesktop.DBus.StartServiceByName is allowed via included dbus-session-strict abstraction09:08
jameshmborzecki: interesting.  That kind of makes the whole AssumedAppArmorLabel thing a bit pointless if you can arbitrarily start services anyway09:10
mborzeckijamesh: i've updated #7963, the spread test will fail atm until we figure out what's wrong09:19
mupPR #7963: xdgopenproxy: forward requests to the desktop portal <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7963>09:19
jameshcool.  I'll have a look09:19
zygabrb09:30
zygare09:42
zygasdhd-sascha: it needs to be reviewed by jamie09:43
zygaand after xmas break we have a larger backlog of things to catch up with09:43
zygaexpect maybe mid next week09:43
zygaperhaps earlier but I cannot speak for jamie's timetable09:43
sdhd-saschazyga: it's not urgent. just saw the many PRs and thought this one, could be simple09:44
zygasdhd-sascha: anything involving interfaces is tricky and needs to have a review from jamie09:44
sdhd-saschaok09:45
mvo7953 needs a second review (and is pretty trivial now)09:50
zygalet me look quicky09:51
zygaI resolved my blocker and now need to just code the solution09:51
zygaso good time to switch gears for a second09:51
zygamvo: is that the right number? it has two +1s already09:52
zygamvo: the commit and service name don't match09:53
zygamvo: personally I prefer the shorter name (snapd.spread-tweaks.service)09:53
zygamvo: but I think it's fine to just change the commit message to talk about snapd.spread-tests-run-mode-tweaks.service09:53
zygamvo: I hope this makes sense09:54
mvozyga: indeed, nice catch09:54
mvozyga: thanks, I overlooked it had a second +1 already, silly me09:54
mupPR snapd#7962 closed: tests: cherry-pick fixes for  snap-set-core-config/ubuntu-core-config-defaults-once <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7962>10:20
mborzeckiinteresting but unrelated to 7953 https://paste.ubuntu.com/p/XG8tpZcG3s/11:05
zygamborzecki: I saw that a number of times11:13
zygaat random11:13
zygafeels like something is racy11:13
zygabreak11:26
mupPR core20#19 opened: static: add /etc/environment to writable-paths <Created by mvo5> <https://github.com/snapcore/core20/pull/19>11:34
mborzeckicmatsuoka: hi, there were some conflicts in https://github.com/snapcore/snapd/pull/7958 i've merged master and pushed, can you double check it looks ok?11:37
mupPR #7958: snap-bootstrap: refactor partition creation <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/7958>11:37
cmatsuokamborzecki: thanks, checking...11:38
mvoijohnson: hey, you asked about docker-smoke failing on uc20 the other day - here is the full log https://paste.ubuntu.com/p/Z2JStRP6sw/11:39
* zyga takes the dog out 11:39
zygattyl11:39
cmatsuokamborzecki: it's good, thanks for resolving the conflict11:41
mborzeckicmatsuoka: cool, hope the travis job will be green :)11:42
mupPR snapd#7953 closed: tests: use new snapd.spread-tests-run-mode-tweaks.service unit <UC20> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7953>11:53
zygaback12:06
mupPR snapd#7966 opened: tests: first core20 test fixes <Created by mvo5> <https://github.com/snapcore/snapd/pull/7966>12:35
cachioSaviq, hey12:35
cachioI am trying to create some snaps with base: core2012:36
cachioand I am getting this error related to multipass12:36
cachiolaunch failed: Unable to find an image matching "core20"12:36
Saviqcachio: there wasn't a build environment for them last year ;)12:36
cachioany idea about when that image will be published or if is there any workaround for that?12:36
cachioll12:37
cachioSaviq, any idea when it should be ready?12:37
Saviqsergiusens: got any pointers for cachio ^? Is there an image yet that we could hook up to core20 builds?12:38
Saviqcachio: you could try launching daily:20.04 named snapcraft-<yourproject>, but there's some setup you might need12:39
SaviqThat, or upgrade the one snapcraft launches for you12:39
cachioSaviq, ok, I'll try that, thanks!!12:39
mborzeckicachio: hi, do we have regular updates of centos spread images?12:40
cachiomborzecki, yes12:41
cachioweekly12:41
cachiomborzecki, this is the last one 2 days ago12:41
cachiohttps://travis-ci.org/snapcore/spread-cron/builds/63327656612:41
mborzeckicachio: thanks, i was hoping some updates for systemd landed, but apaprently not12:44
cachiomborzecki, long time waiting for that landing :(12:45
sergiusenscachio: Saviq build-base is what you could use12:47
Saviqsergiusens: but that would only accept "core18" and "core16", right?12:47
SaviqI'm thinking we could have a Multipass branch that does have "snapcraft:core20"12:48
sergiusensSaviq: yes, but even if you provide a core20 base quickly for multipass our plugins would need to gain support for core2012:48
sergiusensSaviq: which is a task I am going to start next Monday12:49
Saviqsergiusens: ack, let me know if we can help12:50
SaviqI'll bake a Multipass that has a core20 pointing somewhere sane-ish12:50
sergiusensSaviq: if you add it to "mainline" multipass no harm should be done since snaps built with it will be marked grade devel12:51
Saviqsergiusens: yeah but it would suggest it's something real, which it's not atm :)12:52
pedronismvo: when #7939 is green it can be landed, reminder about #7947 needing a pass from you13:05
mupPR #7939: boot,o/devicestate: refactor MarkBootSuccessful over bootState <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/7939>13:06
mupPR #7947: boot/many: support new UC20 style kernel extraction <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/7947>13:06
sdhd-saschasomewhere, i had a patch for meson and core20. Don't know why i have closed the PR 279713:09
mupPR #2797: tests: stop tying setting up staging store access to the setup of the state tarball <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2797>13:09
sdhd-saschai will recreate that PR. It was easy for meson to enable the plugin on core2013:10
* zyga fires spread, hoping to see some progress13:18
sdhd-saschai found my private changes - but i there is sure some refactor needed https://github.com/snapcore/snapcraft/pull/2854/commits13:21
mupPR snapcraft#2854: Core20 <Created by sd-hd> <https://github.com/snapcore/snapcraft/pull/2854>13:21
mupPR snapcraft#2854 opened: Core20 <Created by sd-hd> <https://github.com/snapcore/snapcraft/pull/2854>13:21
mupPR snapd#7958 closed: snap-bootstrap: refactor partition creation <UC20> <Created by cmatsuoka> <Merged by cmatsuoka> <https://github.com/snapcore/snapd/pull/7958>13:24
sdhd-saschazyga: "fires spread" - i didn't understand the context13:25
zyganiemeyer: hey, I'm sorry I haven't pinged you yet - still working on uid/gid bug13:26
zyganiemeyer: not sure how your day looks like with regards to meetings, I'll have the standup in half an hour13:26
zyganiemeyer: after that I'm free, we can quickly chat about snap run --explain either now or after if you have the time for that today13:27
zygasdhd-sascha: as in run spread tests13:27
zygasdhd-sascha: I'm chasing an annoying fix that takes some time to code right13:27
sdhd-saschazyga: yeah - there i have to check if my local spread is working. Without time, i like to use my github repo and my patches for that ;-)13:28
zygasdhd-sascha: I develop locally for most of the time but I run a specific set of tests to see if my understanding of the code matches reality13:29
sdhd-saschazyga: yeah, i want to test locally too. But currently dive into so many git-repo's to understand Xwayland, ubuntu-image, ... And my wife... So i have still a todo on setting up the spread locally. (I know it's started last year, but it was so slow, so that i abort it before all tests was run...)13:31
zygasdhd-sascha: my recommendation would be to start with small test that you can run via spread13:32
zygasdhd-sascha: even if that test needs to pull snaps from the store or from other places13:32
zygasdhd-sascha: this allows you to have some kind of reproducibility13:33
zygasdhd-sascha: so you can be more sure about changes than "it worked on my $complex_local_setup yesterday"13:33
sdhd-saschayes13:34
=== ricab is now known as ricab|lunch
zygabrb, so cold, need to get something warm13:39
zygasee you at the standup13:39
ijohnsonmorning folks13:55
zygahey Ian, how are you doing!13:55
zygaI miss snow, did you get any this winter?13:56
niemeyerzyga: I should be free around 4 UTC14:01
mupPR snapd#7967 opened: overlord/snapstate: improve snapd snap backend link unit tests <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7967>14:12
mborzeckicachio: do you have a debug shell to a node with arch image by any chance?14:20
abeatosergiusens, hi! I was wondering, is there a way to stage packages for a snap without the dependencies? (that is, to strictly stage only what is specified in stage-packages)14:24
mupPR snapcraft#2855 opened: project: remove unused errors <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/2855>14:24
sdhd-saschaHey, if someone is interested. I found why "ubuntu-image" always create a too small rootfs-partition on my system. https://github.com/CanonicalLtd/ubuntu-image/pull/18214:30
mupPR CanonicalLtd/ubuntu-image#182: rootfs: sync before measure size <Created by sd-hd> <https://github.com/CanonicalLtd/ubuntu-image/pull/182>14:31
cachiomborzecki, no14:31
cachiomborzecki, this is the erro https://travis-ci.org/snapcore/spread-cron/builds/633276548#L144614:32
mupPR snapcraft#2855 closed: project: remove unused errors <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2855>14:33
mborzeckicachio: heh, so there's some changes in keys apparently, and it looks like the prompt doesn't work too well when input is not a tty14:34
zygacachio: please ping me later about that machine state checker from before the break14:35
Chipacamvo, degville: https://forum.snapcraft.io/t/behaviour-change-sticky-and-default-tracks/1497014:36
zygaI completely forgot about it but I did work on it a bit more to get to the point where it can ship a standalone version14:36
cachiozyga, sure14:36
mborzeckicachio: hm weird, i have pacman -Syu in spread prepare section for arch, and got a shell just fine, so an update must have been applied without problems14:36
mupPR snapcraft#2852 closed: wstool: don't rely on host git <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2852>14:36
pedronisChipaca: mvo: also it seemed you didn't want to ship snap known --remote using snapd but not download, but that's the state in 2.43 I think, no?14:37
cachiomborzecki, this is the file which we use to update arch https://github.com/snapcore/spread-images/blob/master/tasks/google/update-arch-linux/task.yaml14:38
cachiomborzecki, could be caused by pacman-key --populate ??14:39
mupPR snapcraft#2842 closed: rust: add support for workspaces <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2842>14:39
mupPR snapcraft#2845 closed: remote-build: configurable timeout/deadline for starting and monitoring build <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2845>14:42
mupPR snapcraft#2767 closed: rust plugin: add rustup profile <Created by dalance> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2767>14:45
mborzeckicachio: hm i've never used it14:50
mborzeckicachio: what's the starting image that you use?14:50
cachiomborzecki, an old one14:50
cachiomborzecki, it is called arch-linux-64-base14:50
cachiomborzecki, I update it every 6 months aprox14:51
mborzeckicachio: ok, so the keys that are there may have expired14:51
cachiomborzecki, ok, I'll update the base image and try again14:52
mborzeckicachio: reading the manpage, --populate reloads the keys from keyring, but if those are expired, you still end up with outdated keys?14:53
mvopedronis: uh, indeed14:53
cachiomborzecki, ah14:53
mborzeckicachio: could use just use the current image as base and update that to become the next snapshot?14:54
cachiomborzecki, well, I try to dont do it  because our current image has a lot a packages installed14:54
cachioI think best solution is to update weekly the base image14:55
cachiodoes it make sense?14:55
cachiocurrently we are updating the images using the bases14:57
cachioso, perhaps we should update the base image and then the test image14:57
cachiousing the already updated image14:58
cachiothe scripts that update the base images just make update/upgrade and reboot14:58
cachiothe scripts that update hte test images so the same + creation ¿/deletion of users, management of service, etc14:59
cachioand install packages for snapd testing as well14:59
cachiomborzecki, the errror happens when we do this pacman -Suq --needed --noconfirm git jq python2 unzip wget15:01
mborzeckicachio: yeah, we should probably the base image and then the spread one using the new base15:01
cachiothose are dependencies that we have for spread image project to run the scripts15:02
=== ricab|lunch is now known as ricab
cachiomborzecki, I'll skipped those to see if it works15:04
cachiomborzecki, I am going to pick my daugther, I'll be back in 20 mins15:05
* cachio afk15:08
Chipacamvo: should we revert the 'known' change, then?15:08
Chipacamvo: for .43 i mean15:08
mborzeckicachio: got it to work15:09
mvoChipaca: yeah, I think that is sensible15:12
mborzeckicachio:  https://github.com/snapcore/spread-images/pull/2415:14
mupPR spread-images#24: tasks/google/update-arch-linux: update archlinux-keyring before other packages <Created by bboozzoo> <https://github.com/snapcore/spread-images/pull/24>15:14
pedronisChipaca: given how far 2.44 is atm, this feels a bit premature to me: https://forum.snapcraft.io/t/behaviour-change-sticky-and-default-tracks/14970 , not sure if it was discussed at standup15:32
Chipacapedronis: it does say TBC fwiw15:33
pedronisChipaca: I got a bit worried about you liking sparkiegeek answer about how to set it now, which is kind of too early I feel15:36
Chipacapedronis: ah15:37
Chipacapedronis: it's useful if somebody wants to play with it15:38
pedronisChipaca: anyway I clarified what will happen atm if they do that15:39
Chipacayou really didn't :) but now that you gave me extra context i understand what you meant15:40
pedronisChipaca: feel free to incorporate my comment expanded at the top or something then15:42
pedronisChipaca: it should probably say that snap where this is not set will still use latest, and snapd <2.44 will still ask for latest anyway15:43
pedroniszyga: mvo: I got weird failures here: https://api.travis-ci.org/v3/job/634225161/log.txt15:47
zygalooking15:47
zygaaha, I saw this like around 5 times maybe in total15:48
zygaI was never able to reproduce this with a shell15:48
zygait seems that some of the setup, perhaps of just the test, is racy and the container runs before it can really execute15:48
zygamaybe just after we install snapd the profiles are not really ready yet15:49
zygabut the service is up15:49
zygaas in systemd thinks we are good15:49
zygaso we install a snap and that explodes15:49
zygawould be good to check if the first-setup we is done before or after systemd considers us to be up15:49
ijohnsonpedronis: off-topic but I've seen that snapd-failover task fail before as well, I added an additional debug section to one of my PR'15:50
ijohnsons to see what the issue was with that15:50
zygabecause if it is after then this is clearly racy in that regard15:50
zygato be precise: the setup of the snap-confine profile happens as a side effect of getting core/snapd snaps15:50
zygaand snap-confine actively checks if it has a profile, this is the failure that was printed here:15:51
zyga+ lxd.lxc exec my-ubuntu -- su -c '/snap/bin/test-snapd-sh.sh -c '\''echo from-the-inside'\''' ubuntu15:51
zygasnap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks15:51
pedroniszyga: we are up for systemd before we do various things15:53
zygaI see15:53
zygahmm, that's not great15:53
zygabut it seems that there's a 2nd depth to explore here15:53
zygabecause why would snap-confine from core execute15:53
zygawhen snap-confine is not set up yet?15:53
zygaperhaps we do the switch over incorrectly15:53
mvopedronis: hm, that log does not even download for me :/16:06
zygamvo: I still have it in my browser16:06
zygaI can probably copy paste it16:06
mvozyga: would be nice if you could paste relevant bits, it loads only until something like 2020-01-08 16:11:20 Executing google:ubuntu-16.04-32:tests/main/snap-run-hook:reexec1 (810/3347)... for me16:11
zygasure16:12
zygathe lxd failure is16:12
zygahttps://pastebin.ubuntu.com/p/C5Vp8N6zMR/16:13
zygathen the failover test16:13
zygahttps://pastebin.ubuntu.com/p/bR5pfQDxgK/16:13
zygathere's one more failure but it looks like regular journal error16:14
zygaI need to take a break now16:14
zygasee you around chaps16:15
niemeyerzyga: How're things going there?16:18
mupPR snapd#7957 closed: snap-bootstrap: mount the correct snapd snap to /run/mnt/snapd <UC20> <Created by mvo5> <Merged by cmatsuoka> <https://github.com/snapcore/snapd/pull/7957>16:28
mupPR core20#19 closed: static: add /etc/environment to writable-paths <Created by mvo5> <Merged by xnox> <https://github.com/snapcore/core20/pull/19>16:31
mupPR snapd#7939 closed: boot,o/devicestate: refactor MarkBootSuccessful over bootState <UC20> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/7939>16:33
zyganiemeyer: Hey, I can have a quick call, just making coffee16:35
niemeyerzyga: https://meet.google.com/nej-iory-rpy16:35
pedronisijohnson: mvo: #7940 is ready for review16:40
mupPR #7940: boot: implement SetNextBoot in terms of bootState.setNext <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/7940>16:40
ijohnsonpedronis: ack16:45
mvopedronis: thanks, in a meetng right now, I will try to look at it16:49
pedronismvo: please if you have time do first Ian's one16:50
* mvo nods16:51
pstolowskipedronis: hey, i've made 2nd pass over #7934, would love to land it, a few small remarks16:51
mupPR #7934: o/ifacestate,o/devicestatate: merge gadget-connect logic into auto-connect <Created by pedronis> <https://github.com/snapcore/snapd/pull/7934>16:52
pedronispstolowski: thx, I will look in my morning16:52
pedronisit might be time to start a new standup document, it's using 0.5G here16:57
pstolowskiheh, +116:57
ijohnsonmvo: pedronis: having just finished a review of #7940, I think I'm ready to start working on uc20 implementation of all that, matching what's been done for uc16, is that okay?17:11
mupPR #7940: boot: implement SetNextBoot in terms of bootState.setNext <UC20> <Created by pedronis> <https://github.com/snapcore/snapd/pull/7940>17:11
ijohnsonon that topic, it feels like in bootStateFor we may need to know the model to tell if it's a grade unset model in order to figure out we should use the (as of yet non-existent) bootState20, is that logical ?17:17
mvoijohnson: sounds good to me17:17
zyganiemeyer: summarized as https://github.com/snapcore/snapd/pull/7728#issuecomment-57216918017:18
mupPR #7728: cmd: implement snap run --explain <Created by zyga> <https://github.com/snapcore/snapd/pull/7728>17:18
zyganiemeyer: thank you again :)17:18
mvocachio: I uploaded a new systemd to focal and fixed the /etc/environment not writable, so hopefully a bunch of less failures with tomorrows uc20 core edge update17:18
pedronisijohnson: yes, that's what my proposal mentions as adding a HasModeenv to boot.Device17:28
ijohnsonpedronis: ah okay sorry I had forgotten about that proposal17:28
ijohnsonsounds good!17:28
pedronisijohnson: to be clear that can be implemented in terms of checking the model17:29
ijohnsonright17:29
pedroniszyga: the plan to have a structured output api sounds good17:30
zygaI agree17:30
pedronisijohnson: that will be implemented in devicestate/devicectx.go in the end17:32
pedronisplus a few test places17:32
ijohnsonpedronis: yep that makes a lot of sense17:32
ijohnsonwill work on that after I finish up the tests for my kernel extraction PR17:32
pedronisijohnson: great17:33
pedronisijohnson: I answered mvo wonderined in your kernel PR, which relates to this work as well17:35
pedronis*wondering17:35
ijohnsonpedronis: ah right I hadn't seen that mvo had reviewed the PR yet (thanks mvo!)17:38
ijohnsonalso I am going to merge in master to this PR since the uc20 spread tests are in master now so we have those tests too17:39
cachiomvo, nice, just saw the message17:45
pedronisijohnson: yes, good idea. I added another comment there about the work17:50
ijohnsonyes that's a good point, thanks17:56
=== ijohnson is now known as ijohnson|lunch
pedronisijohnson|lunch: we might not need though, because try-kernel is really relevant if try status is set18:03
pedroniswe might just force disable things in some cases to cleanup18:03
pedronisbut not sure18:03
ijohnson|lunchpedronis: I'll find out soon enough I think18:04
pedronisijohnson|lunch: yes :)18:04
* zyga made more progress and EODs18:27
=== ijohnson|lunch is now known as ijohnson
mupPR snapcraft#2840 closed: plugs: plugs can have no element <Created by sd-hd> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2840>19:16
mupPR snapcraft#2853 closed: meta: do not set snapcraft-runner when adapter is "none" <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2853>19:16
sdhd-saschasergiusens: hey, i come back later, and fix the comments about "core20"19:20
pedronisijohnson: thinking a bit about the discussion in your kernel branch about the symlinks, it might be better if setNext in my PR taks a snap.PlaceInfo19:21
mupPR snapcraft#2856 opened: meta: convert Application's `adapter` from string to enum <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/2856>19:22
ijohnsonpedronis: hmm19:23
pedronisijohnson: because that's what we use in the bootloader interfaces to refer to snaps19:24
ijohnsonyes that makes sense now that I think about it19:25
ijohnsoncause right now it's just a string19:25
ijohnsonbut it would be more meaningful as a snap.PlaceInfo19:25
pedronisijohnson: yes, it can be parsed, but it's awkward19:25
pedronisand it's easy to get back that string19:25
ijohnsonright19:25
pedronisif it's what is needed19:25
pedronisto be clear we didn't so far but if added some method to get the revision from PlaceInfo19:26
pedroniswe could stop needing boot.NameAndRevision19:26
pedronisI'm tempted to finally do that, but that's not really an immediate concern19:26
pedronisbut it's related19:26
pedronisijohnson: I'm going to push the setNext change to my PR together with the comment fixes19:27
ijohnsonpedronis: ok19:28
pedronisin a little bit19:28
ijohnsonyeah I think it would be nice if we could use PlaceInfo instead of NameAndRevision, but looking at that interface it's a bit heavy for what we need in boot I think19:28
ijohnsonmaybe that's ok19:28
pedronisijohnson: boot is taking it as input anyway19:29
pedronisand it's easy to make instances19:29
ijohnsonright I was just thinking about places where we would need to construct a PlaceInfo in boot19:29
ijohnsonperhaps it's not a big deal19:29
ijohnsonah well if it's easy enough to create a PlaceInfo instance then nvm19:30
* ijohnson doesn't remember that code19:30
pedronisijohnson: there's snap.MinimalPlaceInfo19:30
pedronisnot any harder to make than NameAndRevision19:30
pedronissame input19:30
ijohnsonahhh perfect19:30
pedronisimport wise nothing changes19:30
ijohnsonif I had scrolled down from the file I literally had open I would have saw that :-)19:31
pedronisnp, it's not used a lot to be fair19:31
pedronisijohnson: the original purpose of PlaceInfo is mostly for remove-like operation in which we wanted to make sure we didn't assume we could get a lot of info on the snap19:31
pedronisbecause it might be broken to start with19:32
ijohnsonI see19:32
pedronisijohnson: if you are interested, that's why some methods in snapstate managerBackend interface take PlaceInfo vs Info19:35
ijohnsonijohnson: that makes sense19:35
ijohnsonerr19:35
ijohnsonpedronis: that makes sense19:35
pedronisijohnson: anyway a bit of context is probably useful now that you will work with this19:36
ijohnsonyes, very much so thanks for sharing19:36
mupPR snapcraft#2857 opened: meta: enable Snap to be fully initialized with __init__ parameters <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/2857>19:37
mupPR snapcraft#2821 closed: meta: remove __dict__ usage in Snap  <Created by cjp256> <Closed by cjp256> <https://github.com/snapcore/snapcraft/pull/2821>19:40
mupPR snapcraft#2838 closed: add support for system-usernames <Created by cjp256> <Closed by cjp256> <https://github.com/snapcore/snapcraft/pull/2838>19:49
mupPR snapcraft#2858 opened: schema: add support for system-usernames <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/2858>19:49
pedronisijohnson: pushed19:53
ijohnsonpedronis: k, I'll take a look in a bit, in the middle of something right now19:55
pedronisijohnson: np19:55
cachiocmatsuoka, hey20:46
cmatsuokacachio: hello20:46
cachiocmatsuoka, do you know if the file /boot/efi/foo.cfg should exist on core20?20:47
cachioI have a test failing because of it is trying to read it20:49
cmatsuokacachio: like grub.cfg? I think it should be in /EFI/ubuntu, let me check here...20:49
cmatsuokaah, you mean literally foo.cfg?20:49
cmatsuokamaybe some test is creating it?20:49
cachiocmatsuoka, yes, the test is20:50
cachiogadget-update-pc20:50
cachioand it should leave that file20:50
cachiobut is not doing that20:50
cmatsuokahmm, let me check here...20:50
cmatsuokacmatsuoka: I think we can leave this disabled until we check with mborzecki tomorrow20:53
cmatsuokacachio: I think we can leave this disabled until we check with mborzecki tomorrow20:53
cachiook20:53
cachionp20:53
cachiocmatsuoka, any idea why the file /var/lib/snapd/seed/seed.yaml does not exist on core20?20:54
cachioit is braking another test20:54
cmatsuokathere are things that are different there, I don't remember if this specific file should be there or not20:57
* cmatsuoka checks the docs20:57
cachioijohnson, hey21:06
cachiothe netplan test is failing on core2021:06
cachiohttps://paste.ubuntu.com/p/fTcVRFPqdT/21:06
cachiothe test is ubuntu-core-netplan21:06
cachioI have a debug session open if you want to take a look21:06
cmatsuokacachio: yep, the structure is different21:22
cachiocmatsuoka, right21:23
cmatsuokacachio: maybe you can check for something in /var/lib/snapd/seed/systems?21:23
cachiosnap repair is failing because of this21:24
cmatsuokacachio: hm, I think we can check this with mvo tomorrow21:24
ijohnsoncachio: hey21:24
cachiocmatsuoka, yes21:25
ijohnsonsorry I missed your ping21:25
ijohnsonlet me look21:25
cachioI'll leave a note in the doc with the details21:25
cachioijohnson, do you want the credentials?21:26
ijohnsoncachio: I'm kinda in the middle of working on other uc20 stuff, so I don't have the time to look into this, but I will look into it tomorrow21:27
ijohnsoncachio: but out of curiosity are other dbus tests passing on uc20?21:27
cachioijohnson, yes21:27
cachiomany of tehm21:27
cachiothem21:27
ijohnsoncachio: that error message is from dbus and not specific to netplan (though the netplan test might have broken somehow)21:27
ijohnsoncachio: okay that's what I would have thought from this error message21:28
ijohnsoncachio: please just leave a note in the SU and I will look tomorrow if nobody else beats me in their AM21:28
ijohnsonthanks21:28
cachioijohnson, sure, thanks!!!21:28
ijohnsoncachio: thanks21:31
mupPR snapcraft#2859 opened: meson plugin: add support for core20 <Created by sd-hd> <https://github.com/snapcore/snapcraft/pull/2859>23:02

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