/srv/irclogs.ubuntu.com/2018/10/10/#snappy.txt

=== chihchun_afk is now known as chihchun
zygao/05:32
=== pstolowski|afk is now known as pstolowski
pstolowskimornings07:03
pstolowskipedronis: hey, thanks for the review! i've updated #595207:30
mupPR #5952: tests/ifacestate: moved asserts-related mocking into helper <Hotplug πŸ”Œ> <Simple πŸ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/5952>07:30
pstolowskiniemeyer: woah, thanks for the reviews on hotplug stuff!08:00
alexlarssonzyga: HAH! flatpak got a haters site before snap! i won! :)08:02
zygaalexlarsson: (insert meddling kids comment)08:04
zygaalexlarsson: I firmly believe we are both building the better future for app developers08:04
alexlarssonNo no no08:04
alexlarssonWe're evil masterminds!08:04
zygaalexlarsson: I woundn't mind that website much if the person was not anonymous08:04
alexlarssonMan, you're not following the PLAN!08:05
zygaah, where is my script :)08:05
zyga"what are we going to do tonight brain"08:05
alexlarssonI think my problem with it is that *all* the things in there all apply to .deb/.rpm too (other than potentially flathub having less resources for CVE fixing than some distros)08:07
alexlarssonSo, what do they recommend?08:07
zygastill one thing I would agree on, the sandboxing tech available in linux is still spotty, there are compromises for early usability08:07
zygaI think those are fine as long as we are 100% honest about it08:08
alexlarssonWell, *allowing* a sandbox is better than not allowing it. And if we enforced it no apps would work and people would make hater sites for that.08:08
alexlarssoncan't win the internet08:09
zygaalexlarsson: although I think flatpack could use some of the --classic prompts from snapd08:16
zygaalexlarsson: to install an app that has wide-open access to one's system requires to be explicit about it08:16
alexlarssonWe do that in the CLI08:16
alexlarssonbut gnome-software doesn't atm08:16
zygammm, I see08:16
alexlarssonorg.gnome.gedit/x86_64/stable        flathub a03b66681bce08:17
alexlarsson  permissions: ipc, wayland, x1108:17
alexlarsson  file access: host, xdg-run/dconf, ~/.config/dconf:ro08:17
alexlarsson  dbus access: ca.desrt.dconf, org.gtk.vfs.*08:17
alexlarssonIs this ok [y/n]:08:17
alexlarssonand we track it so you get deltas displayed on update08:18
zygaalexlarsson: those are super technical and end with a yes-no question08:18
zygathose are really asking "do you want this app or not"08:18
zygaI think it could still use a lot of polish and change to the final prompt08:18
alexlarssonYeah, but its *hard* though08:18
alexlarssonlike08:18
Chipacaalexlarsson: g-s doesn't? i thought we'd fixed that?08:19
alexlarssonmany of those are instant sandbox escape08:19
alexlarssonx11 => escape08:19
zygaI think we should phrase it around "do you want to give this application access to your system"08:19
alexlarssonwrite to home => escape08:19
alexlarssonwrite to dconf => escape08:19
zyganot around technojargon that even system developers may not fully grasp (the consequences of granting)08:19
zygadconf? because auto-start unconfined this way?08:20
alexlarsson(i'm sure there is a list of things that is spawned stored somewhere in dconf)08:20
zygaright08:20
* zyga wonders what we do about dconf08:20
alexlarssonWe want to do a portal for it08:20
alexlarssonbut it hasn't happened yet08:20
alexlarssonTingPing is looking at it soon08:20
alexlarssonorg.freedesktop.ibus.engine.anthy.common add-word-command ['/usr/bin/kasumi', 'kasumi', '-a']08:21
alexlarssondconf exploit08:21
alexlarssonorg.gnome.desktop.default-applications.office.calendar exec 'evolution -c calendar'08:23
alexlarssonanother one08:23
alexlarssonBasically, i think its to risky to try to describe it in non technical words and give people the feeling that they only gave "secure" access08:24
alexlarssonThe only thing i think is possible is to mark what we consider a good sandbox with some "sandbox" tag08:25
alexlarssonand then the rest is, "do you trust these guys, oh and here is some techincal gobbeligok"08:25
zygahmm, I think I recall we did apparmor for dconf somehow08:25
zygabut perhaps that didn't materialise in the end08:25
zygaone that would see the get/set arguments (normal apparmor dbus doesn't)08:26
zygaI agree on the trust aspect08:26
zygait's either strong tech or it is trust08:26
niemeyerpstolowski: np08:27
niemeyerMornings08:27
zygahey hey08:27
Chipacathere is no runuser in 14.04 /o\08:30
* Chipaca thinks SRU thoughts08:30
diddledanChipaca: careful, that kinda thinking leads to dangerous places08:31
ChipacaIKR08:31
diddledannext thing you'll be doing a version bump08:32
zygaChipaca: please update centos kernel too ;)08:32
diddledanyes. and replace yum with apt-get08:32
Chipacazyga: I'll file an SRU for that08:32
Chipacazyga: OH WAIT08:32
diddledanthat'ld be an epic project - a seamless upgrade from centos to debian or ubuntu :-p08:33
diddledani.e. one that doesn't require a separate boot disk08:33
Chipacareminds me of a conversation we had way back in the CΓ³rdoba LUG08:33
zygadiddledan: curl flash.io/whatever  | sudo dd of=/dev/sda08:33
zyga;-)08:33
Chipacaright about when macro virii became "popular", and we were building linux distros of the size of these things08:34
Chipacaanyhoo08:34
diddledanspeaking of virii /me downloads backorifice and sub708:35
diddledanI'm hip now08:35
ChipacaI guess what I need to do is make maybeRunuserCommand check the release and use sudo if runuser isn't available08:35
Chipaca… or maybe run sudo always?08:35
Chipacagrmbl grmbl grmbl08:35
diddledanI love maybe functions - maybeSaveDataThatCannotBeLost08:37
diddledanand then you get really functions - reallySaveTheData08:37
zyganiemeyer: is this for real? https://twitter.com/Zondi_Elihle/status/104955718550260940908:38
Chipacadiddledan: names are hard; suggestions always welcome08:40
Chipacai'd have a tattoo, if i did tattoos08:40
mborzeckimorning08:44
pstolowskihey mborzecki o/08:45
zygahey guys08:46
mupPR snapd#5953 closed: apparmor: create SnapAppArmorDir in setupSnapConfineReexec <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5953>08:49
zygathank you again mvo08:49
mvozyga: for what?08:50
zygafor that PR08:50
mvozyga: I mean, appreciated :)08:50
mvozyga: oh, yeah08:50
mvozyga: it was slightly tricky to find but simple in the end08:50
niemeyerzyga: That's so over the top that it's hard to believe indeed.. let me check08:53
pstolowskimborzecki: do you have a moment for https://github.com/snapcore/snapd/pull/5952 ?08:53
mupPR #5952: tests/ifacestate: moved asserts-related mocking into helper <Hotplug πŸ”Œ> <Simple πŸ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/5952>08:53
dot-tobiaszyga & niemeyer: re tweet β†’ https://twitter.com/_majubs/status/104979475816243200208:53
mborzeckipstolowski: will do08:54
zygaah08:54
mvopstolowski: I just did that one08:54
niemeyerdot-tobias, zyga: There are many non-joke programs in Multi Show, and it's a channel from Globo which tends to be trustable..08:55
pstolowskimvo: ah, thanks!08:55
pstolowskimborzecki: no need then, thanks!08:55
dot-tobiasniemeyer ,zyga: Maybe the security cam footage is real and they added a satirical β€œinterview” – his answers are just so full with double-entendre and humor πŸ˜„08:56
niemeyerdot-tobias, zyga: Yeah, it's a joke.. JS, "Satirical Journal"08:57
Chipacazyga: hey09:00
Chipacazyga: snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks09:00
Chipacazyga: what did that mean?09:00
zygait mean that snap-confine was not confined but should be09:00
* Chipaca looks for his trout09:00
zygait runs on a kernel with apparmor support that is enabled09:00
zygabut it has no profile of itself09:00
Chipacazyga: this is inside a 14.04 spread thing09:00
zygaso it chooses to stop operating09:00
zygait means that apparmor service did not load apparmor profile for snap-confine09:00
zygais this in a live CD?09:01
Chipacazyga: no, spread, using the qemu backend, on 14.0409:01
zygauname -a?09:01
ChipacaLinux autopkgtest 4.4.0-135-generic #161~14.04.1-Ubuntu SMP Tue Aug 28 11:17:49 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux09:01
zygahmmm09:01
zygamagic09:01
mupPR #161: Fix unclean tests <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/161>09:01
zygawhat is the status of apparmor.service?09:02
Chipacamup: go home, you're drunk09:02
mupChipaca: I apologize, but I'm pretty strict about only responding to known commands.09:02
Chipacazyga:    Loaded: error (Reason: No such file or directory)09:02
zygaoh, there you go09:02
Chipacazyga: um09:02
Chipacazyga: wait, this is 14.0409:02
zygaso?09:02
Chipacazyga: no systemd09:02
zygaon 14.04 it should still be there09:02
mborzeckiheh https://github.com/snapcore/snapd/pull/5951 travis status on github is still pending, but the travis job has successfuly finished 13h ago09:02
zygaaaaah09:02
zygaoh boy09:02
Chipacai mean, systemd isn't in charge09:02
* zyga thinks09:02
mupPR #5951: spread-shellcheck: fix interleaved error messages, tweaks <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5951>09:02
zygaso, ...09:02
zygaer09:02
zygaI forgot the upstart equivalent09:03
Chipacamborzecki: hi! do you remember why I switched snapshots to use runuser instead of sudo?09:03
zygaChipaca: can you please look at /sys/kernel/security/apparmor09:03
zygaand cat the policy file09:03
mborzeckiChipaca: nope, was sudo an option?09:03
zygaer09:04
zygasorry09:04
Chipacazyga: 1 sec09:04
Chipacazyga: when do we print that message, in particular?09:04
zygacat /sys/kernel/security/apparmor/profiles09:04
zyganot policy, profiles09:04
zygaChipaca: when snap-confine starts up and noticed this09:04
Chipacazyga: so09:04
Chipacazyga:  test-snapd-tools.echo hello09:05
Chipacazyga: works09:05
Chipaca# su -l -c 'test-snapd-tools.echo hello' test09:05
Chipacasnap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks09:05
diddledanwho has access to the forum? should this post be reinstated? it appears to have been flagged for some reason: https://forum.snapcraft.io/t/call-for-testing-savage-xr-battle-for-newerth-game/775409:05
zygayes09:05
zygaChipaca: because then it's not privilege ecalation09:05
zygayou were root09:05
Chipacadiddledan: too many  links on a newcomer topic09:05
Chipacadiddledan: unhidden09:05
diddledanaha09:05
diddledanthanks09:06
mborzeckiChipaca: i think we moved from a helper to a goroutine with set*uid and then to runuser09:07
Chipacazyga: I don't understand09:07
Chipacamborzecki: i did try sudo first09:07
Chipacamborzecki: in fact the variable in which I build the command is still called sudoArgs :)09:08
zygaChipaca: when you are the user test09:08
zygasnap-confine gives you root09:08
zygaso it looks for confinement09:08
mborzeckiChipaca: hah :) so something must have been off about it then09:08
zygawhen you were root, we just carry on09:08
zygait is the logic we picked a while ago09:08
Chipacamborzecki: exactly, and I remember you suggesting runuser instead, but I don't remember why09:08
Chipacamborzecki: so, I'm going to just plug sudo back in there and see what breaks :-D09:08
mborzeckiChipaca: sec, let me check the logs09:09
mvoniemeyer: when you have a moment, could you please check if the name in the system-user assertion to force a password change (pr 5949) is ok. right now it is using "force-password-change: {true,false}"09:09
mupPR #5949: osutil,asserts,daemon: support force password change in system-user assertion <Created by mvo5> <https://github.com/snapcore/snapd/pull/5949>09:09
Chipacazyga: so how do I work around this?09:09
niemeyermvo: That sounds great already09:09
zygaChipaca: well, figure out why the profile was not loaded09:09
zygait should have09:09
zygafist of all, please check if the profile is really absent09:09
Chipacazyga: how do i check that?09:11
mborzeckiChipaca: https://paste.ubuntu.com/p/jNc3bTXKDR/09:11
mborzeckii should trim the log file09:11
zygaChipaca: please look at /sys/kernel/security/apparmor/profiles09:11
Chipacazyga: snap.test-snapd-tools.echo (enforce)   (and a bunch more)09:12
zygado you see one for snap-confine itself?09:12
zygathis is about snap-confine profile, not app-specific profile09:12
Chipaca# grep snap-confine /sys/kernel/security/apparmor/profiles09:12
zygasnap-confine effectively kills itself by choice09:12
Chipacazyga: yes, two results, which irc won't show as pasted because they start with / :)09:12
zygahaha09:13
Chipaca# grep snap-confine /sys/kernel/security/apparmor/profiles09:13
Chipaca/usr/lib/snapd/snap-confine (enforce)09:13
zygayes, thank you IRC09:13
Chipaca/usr/lib/snapd/snap-confine//mount-namespace-capture-helper (enforce)09:13
zygaso that's the main profile09:13
zygawhat we are missing is the reexec profile09:13
zygathis very much feels like the bug mvo just fixed09:13
* Chipaca hugs mvo09:13
zygais /var/lib/snapd/apparmor/snap-confine present?09:13
Chipacazyga: no09:13
zygaan /var/lib/snapd/apparmor?09:14
zygamkdir it please and restart snapd09:14
Chipacawait09:14
Chipacayes09:14
Chipacayes, it's there, just empty09:14
Chipaca(i misread ls's output /o\)09:14
zygaok, restart snapd and let's see09:14
Chipacahow do i restart snapd on 14.0409:15
Chipacaman09:15
zygaha09:15
zygasudo service restart09:15
zygaAFAIR09:15
zygabut I may not remember much09:15
Chipacait looks like snapd is running under systemd09:15
zygaoh right09:16
zygawell09:16
Chipacathere09:16
Chipacarestarted09:16
zygaany new profiles?09:17
ChipacaJamieBennett: are snaps part of the 14.04 ESM offer?09:17
Chipacazyga: not that i can see09:18
JamieBennettChipaca: not that I know of09:18
JamieBennettChipaca: why?09:18
ChipacaJamieBennett: because I'd be happier if we could stop worrying about 14.04 soon :)09:18
JamieBennett:)09:18
Chipacazyga: so now what09:19
zygaChipaca: I assume you have the core snap installed09:19
Chipacazyga: i do09:20
zygaChipaca: upon restart of snapd I would expect to see the reexec profile in the places you looked09:20
zygaah09:20
zygawait09:20
zygaI'm silly09:20
zygathe reexec profile is in /etc/apparmor.d09:20
zygais there one in /etc/apparmor.d/snap.core.$NUMBER.usr.lib.snapd.snap-confine09:21
Chipacazyga: no09:21
zygaany logs from snapd?09:21
Chipacazyga: plenty09:21
Chipacathis is in spread, so all debug knobs are on09:21
zygaoh man09:21
Chipaca"all" <- most09:21
zygacan you please pastetem?09:22
Chipacazyga: as of the last restart?09:22
mborzeckipedronis: splitting validation from snap is quite a puzzle09:22
zygayeah, though no need to limit them just paste what you have09:22
mborzeckiChipaca: so sudo vs runuser was just about package dependencies?09:24
Chipacamborzecki: looks like it, but i'll need to test09:24
Chipacamborzecki: thank you for those logs :)09:24
Chipacazyga: https://pastebin.ubuntu.com/p/Mc8jwBqMXk/09:24
Chipacazyga: slightly truncated horizontally; let me know if you need the full width09:24
zygahmmm, nothing out of the ordinary09:25
zygaI don't know, why is the profile not there ?09:25
zygahmm09:25
zygaactually09:25
zygaperhaps when we installed the core snap and the directory was missing09:25
zygacan you refresh core09:25
zygato anything09:25
Chipacasure 1 sec09:25
zygathat ought to trigger the right thing09:25
Chipacarefreshing to beta09:26
Chipaca(was on edge)09:26
Chipacahmm, it hangs09:26
Chipacahmm09:26
Chipacaoh no it worked09:26
Chipacajust no progress bar09:26
Chipacawat09:26
Chipacaanyway, one wat at a time09:26
zygano progrès bar?09:26
Chipacazyga: # ls /etc/apparmor.d/09:26
Chipacaabstractions  cache  disable  force-complain  local  sbin.dhclient  snap  tunables  usr.lib.snapd.snap-confineusr.sbin.cups-browsed  usr.sbin.cupsd  usr.sbin.rsyslogd  usr.sbin.tcpdump09:26
niemeyermvo: LGTM.. couple of trivial optional suggestions only09:26
zygahola accents09:26
zygaChipaca: hmmm no idea, something is bad09:27
mvoniemeyer: thank you!09:27
Chipacazyga: :-/09:27
niemeyermvo: np and thanks!09:27
Chipacazyga: should I throw it away and hope it doesn't happen a second time?09:29
zygammm, mmm ...09:29
zygammm09:29
zygaI'm having conflicts in my head09:29
Chipacazyga: just push --force09:30
Chipacamborzecki: getting back to runuser-vs-sudo, I'll just add a check and if runuser isn't there, try to use sudo instead09:46
Chipacazyga: i'm going to take a break, and go do some physio; if there's anything I should do with this trusty vm let me know otherwise i'll be killing it when i get back09:47
zygaChipaca: ack09:48
pedronismborzecki: ah,  as I said, just an idea, might be too much of a pain to do quickly now09:49
pedronisit might be easier to have a copy of the regexp for now09:50
mborzeckipedronis: interesting idea nonetheless, but i think it's more of a followup material09:50
mborzeckipedronis: i've added snap/name package and moved some validation code there09:51
mborzeckipedronis: could be beneficial in the long run09:51
mupPR snapd#5951 closed: spread-shellcheck: fix interleaved error messages, tweaks <Simple πŸ˜ƒ> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5951>09:52
sil2100ogra: hey! Should I kick new pi3 stable images now?09:52
mvosil2100: how are things looking on the pi3b+? anything I can/should test?09:54
mvoChipaca: I'm inclined to merge 5944 and just see what will happen in adt09:56
mvoChipaca: the only open question was slow machines here09:56
mvoChipaca: and we will get tests on the pi09:56
mupPR snapd#5940 closed: store: speedup unit tests <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5940>09:58
mupPR snapd#5917 closed: cmd/snap: attempt to start the document portal if running with a sess… <Created by zyga> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/5917>10:03
pstolowskipedronis: hey, can you re-review #5952 when you have a moment?10:13
mupPR #5952: tests/ifacestate: moved asserts-related mocking into helper <Hotplug πŸ”Œ> <Simple πŸ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/5952>10:13
ograsil2100, yeah ... saw your mail, note that pi2 and dragonboard need updating too10:21
ogramvo, at least core 16 edge seems to be fine on pi3 b+ here10:22
ogra(and after the rebuild also stable)10:22
mupPR snapcraft#2327 closed: pluginhandler: remove prepare, build and install scriptlets <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2327>10:25
mvoogra: interessting, I had trouble with uc18, I will dig into it10:27
ogramvo, what kind of trouble ?10:28
ograbooting should generally work10:28
mvoogra: yeah booting is fine, I had no network10:28
ogra(not sure about preipherials with the 4.15 kernel, havent tested with it, but 4.4 is definitely fine, i'm just using it here on a b+)10:29
mvoogra: ok, cool10:30
mupPR snapcraft#2332 closed: waf plugin: support for bases <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2332>10:31
mvoppisati: hey, with uc18 and kernel 4.15 from the snap I have no networking on my pi3 b+. do you have any suggestions for me how to debug this? does 4.15 work on classic ubuntu with the 3b+?10:35
ogramvo, you said /proc/net/dev shows them ... sounds less like a kernel issue then10:36
mupPR snapcraft#2333 closed: catkin, catkin-tools: add support for bases <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2333>10:37
mupPR snapd#5871 closed: snapstate: only report errors if there is an actual error  <Created by mvo5> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5871>10:37
mvoogra: yeah, they are visible but not connected, neither wifi nor wired10:38
ograright, but the modules seem to load and init the HW ...10:38
ograwhich makes it sound suspiciously like userspace10:39
mvoogra: maybe, the same image works on the pi3 (without b+) as a dateapoint10:39
ograwell, they have the same wifi AFAIK ... but the b+ has a different ethernet NIC10:40
mborzeckipedronis: i've pushed a fix with copied snap name validation, but if you'd like to entertain the idea of a separate package, I did a quick implementation here: https://github.com/snapcore/snapd/compare/master...bboozzoo:bboozzoo/validate-name-separate-package10:40
ograso at leat wifi should work the same as in the normal pi310:41
mvomborzecki: fwiw (without having looked at the package you just linked to) I like the idea of a snap/validate package10:41
mborzeckipedronis: i actually sort of like it, probably needs some tweaking still, but could be interesting10:41
mborzeckimvo: snap/validate may be harder because some validation code touches Info and inside structs directly, so Info would have to be defined elsewhere too10:42
mborzeckimvo: that PoC is a snap/name with name validation code pulled out, so that you could import it safely in assserts10:42
mvomborzecki: aha, I see10:43
mborzeckimvo:  in that sense it's mostly the validation functions which are pure and take plain arguments10:43
* mvo nods10:44
ppisatimvo: yes, it works10:45
ppisatimvo: let me dig out my board and test it10:45
mvoppisati: ok, thank you. I guess I need to compare dtb versions and all that to see whats going on?10:46
mvoppisati: pardon my ignorance, can I just download an armhf bionic image to test this? or will I need to grab a special ubuntu image somewhere?10:46
mvoactually maybe my pi3 b+ is just broken, I need to test for this as well10:48
ppisatimvo: afaik foundation never produced a rpi3(b+) image, so you probably need to roll your own10:48
ppisatimvo: from time to time i build some classic images just for debugging, let me find one that works10:49
mvota10:50
ogramvo, just use a core 16 edge to verify the HW10:51
mborzeckiChipaca: can you do a quick pass over https://github.com/snapcore/snapd/pull/5946 again?10:53
mupPR #5946: cmd/snap: unhide --name parameter to snap install, tweak help message <Parallel installs β›“> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5946>10:53
cachiomvo,hello10:55
cachiomvo, about sru validation10:55
mvoogra: sounds sensible10:55
mvocachio: hey10:55
cachiomvo, I have seen some errors which could be related to the snapd.socket which I mentioned yesterday10:55
cachiohttps://paste.ubuntu.com/p/2Nyq9GtppF/10:55
mvocachio: thanks! hm, hm, the error looks a bit mysterious, any feedback from the checkbox/plainbox people about this?10:57
cachiomvo, I can't reproduce the same error which I see in the logs but if I could reproduce another related to the snapd.socket10:58
cachioif you restart the snapd.socket in a look it fails after several tries10:58
cachiomvo, similar error to the once which is in this log10:59
cachiohttps://api.travis-ci.org/v3/job/438978598/log.txt10:59
mvocachio: thanks, checking11:00
cachiomvo, for i in $(seq 100); do sudo systemctl restart snapd.socket; done11:01
cachiothis fails11:02
cachioif you restart the socket with some sleep time it works well11:02
* pstolowski lunches11:04
mvocachio: interessting - do you see anything in the journalctl log when this happens?11:11
mvocachio: anything that indicates *why* it fails?11:11
cachiomvo, no11:22
cachiomvo, nothing in the logs11:22
cachiooct 10 08:23:32 cachiomachineold snapd[14837]: main.go:121: Exiting on terminated signal.11:24
cachiomvo, this https://paste.ubuntu.com/p/sGzrBMt2CK/11:24
Chipacamvo: yay, thank you for merging 594411:25
Chipacamborzecki: looking at 594611:25
Chipacamborzecki: grah. Still not happy with the wording, and yet I don't like blocking on this11:28
Chipacamborzecki: I'll have a bite to eat and think about this a bit11:28
cachiomvo, this is the log what I have11:30
cachiohttps://paste.ubuntu.com/p/sfpTMSjqTC/11:30
cachiomvo, systemd could be stopping the restart11:30
cachionot sure if the error on the tests are related to the same11:30
mupPR snapd#5956 opened: image: fetch device store assertion if available <Created by pedronis> <https://github.com/snapcore/snapd/pull/5956>11:33
pedronismvo: ^11:33
ogradid #5746 land in any releae yet ?11:35
mupPR #5746: wrappers: remove Wants=network-online.target <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5746>11:35
ogra(i dont see any version tag on the PR)11:35
jdstrandzyga: fyi, re dconf-- there was the idea, design and an implementation that was never agreed to for dconf mediation11:46
mborzeck1hm a bunch of tests returns early when there's partial confinement, wonder if instead of just looking at partial we could look at specific features reported by snap debug sandbox-features11:50
Chipacazyga: so, on 14.04, refreshing core to beta _and then back to edge_ makes the error go away11:54
zygaoh11:54
zygawith the profile in place?11:54
zygaI think it was the missing dir11:54
Chipacazyga: i see no file in /etc/apparmor.d/ with a revision in it11:55
Chipacazyga: so what does refreshing back and fro do, that restarting snapd doesn't?11:56
zygainstalling core snap is speciall11:56
zygawe do per-core-rev snap-confine profile generation then11:56
zygacan you peek at the list of profiles in sysfs/11:56
Chipacaremind me where that was plz?11:56
Chipacaah found it11:57
Chipacayes11:57
Chipaca/snap/core/5694/usr/lib/snapd/snap-confine (enforce) etc11:57
zygaso that's that11:57
Chipacaso what's the fix?11:57
Chipacado we need to generate those on startup?11:57
Chipacazyga: and, why does this only hit 14.04?11:59
zygaI don't think it hits any specific release, it depends on packaging shipping a directory or not11:59
zygaperhaps we are not11:59
Chipacazyga: which is the directory that should, or shouldn't, exist?12:00
zygaone sec12:00
mupPR snapcraft#2334 opened: schema: enfore string for versions <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2334>12:01
* Chipaca goes to hang up some washing12:01
zygaChipaca: the one on 563b94dc8fd4ea10daef9e176301efc141c9c5b312:01
* Chipaca looks12:02
zygathat it is...12:02
zygadirs.SnapConfineAppArmorDir,12:02
zygaand I think that is /var/lib/snapd/apparmor/snap-confine12:02
* zyga checks12:02
zygayes, that's the one12:02
Chipacaok, i'll cycle the spread and check that12:03
cachiomborzecki, hi, to merge #5894 you need the apparmor image by default, right?12:05
mupPR #5894: many: enable AppArmor on Arch <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5894>12:05
mborzeckicachio: yes12:05
mborzeckicachio: i've switched the image there12:05
cachiook, let me update the default image with apparmor enabled12:06
cachiothat should go by default12:06
mborzeckicachio: hm i think it should be ok to update the default image, snapd will generated the profiles but s-c will not use them, so the spread suite should not be affected12:07
Chipacazyga: and does it have to exist, or does it have to not exist?12:09
zygaI think it should not exist for a broken system symptom12:09
zygasince mvo's patch creates it12:09
cachiomborzecki, ok12:09
mvopedronis: thanks, looking at your PR now12:22
=== cpaelzer_ is now known as cpaelzer
Chipacazyga: I can confirm that adding a mkdir -p /var/lib/snapd/apparmor/snap-confine early in prepare_project makes the bug go away12:31
zyga whee12:31
zygaI wonder how/why we missed it this long12:31
Chipacazyga: because we don't have many tests that do su … <something from a snap>12:32
mvoif the fix is merged, why are we still seeing this?12:32
zygaaaah12:32
zygagood point12:32
Chipacamvo: which fix12:32
zygaChipaca: the patch ID I referenced12:32
Chipacaah12:32
ChipacaI don't know :)12:32
mvoChipaca: https://github.com/snapcore/snapd/pull/595312:33
mupPR #5953: apparmor: create SnapAppArmorDir in setupSnapConfineReexec <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5953>12:33
mvoChipaca: maybe its missing in antoher place as well12:33
Chipacamvo: for extra fun, with core tracking edge, snap refresh --beta core && snap refresh --edge core makes the bug go away12:33
mvoChipaca: fun!12:34
Chipacamvo: easy to reproduce: boot a 14.04, install snapd etc etc, and then try Β«su -l -c 'test-snapd-tools.echo ohi' testΒ»12:34
mvoChipaca: sorry, I missed parts of the backtrace, what is the exact error message oyu get?12:34
mvo*you12:34
Chipacamvo:  snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks12:34
mvoChipaca: aha, ok - I think this is slightly different from my fix12:35
mvoChipaca: I think in your case setupSnapConfineReexec is not run at all12:35
mvoChipaca: again pardon my ignorance, how do I reproduce this?12:35
Chipacamvo: spread -shell qemu:ubuntu-14.04-64:tests/main/<choose one>12:36
Chipacamvo: and then, snap install test-snapd-tools12:37
pstolowskiniemeyer: i've addressed your comments to hotplug PRs; #5860 needs your re-review12:37
mupPR #5860: interfaces/hotplug: helpers and struct updates <Hotplug πŸ”Œ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/5860>12:37
Chipacamvo: and then, su -l -c 'test-snapd-tools.echo ohi' test12:37
pstolowskiniemeyer: and once it's ready it will unblock all the other PRs for landing12:38
mvoChipaca: ta12:38
Chipacamvo: 14.04 only, not 16.04, and mkdir -p /var/lib/snapd/apparmor/snap-confine in prepare_project makes it go away, as does going to beta and back12:39
Chipacamvo: that's all i know :)12:39
Chipacanow i need to propose a pr that'll fall back to sudo if runuser isn't there, because 14.0412:40
* Chipaca stashes his spread fixes12:40
mvoChipaca: ok, running this now and having a look12:41
mvo5950 needs a second review12:43
mborzeckiChipaca: https://paste.ubuntu.com/p/hVYnc6DBv2/12:45
mborzeckiChipaca: snap services with your suggestion12:45
mupPR snapd#5950 closed: tests: running the snapd tests on Ubuntu 18.10 <Created by sergiocazzolato> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5950>12:45
pstolowskimborzecki: i was 4 seconds quicker... the typo goes in ;)12:47
mborzeckihaha :)12:47
Chipacamvo: i just failed to reproduce this though :-/ dunno12:48
mvoChipaca: ok12:48
mvoChipaca: my spread is still running12:48
Chipacamborzecki: looking12:48
Chipacamborzecki: what do _you_ think of it?12:50
ChipacaI wish we had a single word that meant "see details", for one12:50
Chipacawe're abusing the hyphen a bit :)12:50
mborzeckiinquire12:50
mvoChipaca: works for me (with latest master)12:51
mborzeckiwhat was the thesaurus thing niemeyer used?12:51
Chipacamvo: as in, you could reproduce it, or it failed?12:51
mvoChipaca: it does not fail12:51
Chipacamvo: grr12:51
mvoChipaca: and I also see the right snap-confine.core.5694 profile in /var/lib/snapd/apparmor/profiles12:52
mvoChipaca: was it reliable to reproduce before for you?12:52
Chipacamvo: 4 out of 4 times12:52
mvo /o\12:52
mvohm, hm, hm12:52
Chipacamvo: but maybe all i need to do is merge master?12:53
pedronisChipaca: hi, could you look at #5956 , it's small, it's a follow up to something you already reviewed12:53
mupPR #5956: image: fetch device store assertion if available <Created by pedronis> <https://github.com/snapcore/snapd/pull/5956>12:53
mvoChipaca: worth a shoot12:53
Chipacapedronis: yep, on my list12:53
pedronisthx12:53
Chipacamvo: let me see if i can repro just doing what i did before12:53
Chipacamvo: and then i'll merge master12:53
Chipacamvo: (what i did before should be what you just did now, but … Β―\_(ツ)_/Β―)12:53
mvook12:53
* Chipaca ~> tea and standup12:54
niemeyermborzecki: Just add .com :)12:55
mborzeckidebian-9-64 prepare failing? https://paste.ubuntu.com/p/zGNDtwyKVB/13:11
mvosil2100: if I want to propose changes to console-conf for uc18, what git PR should I base it on?13:32
mvocachio: a link to a log with "13:40
mvoSergio Cazzolato3:23 PM13:40
mvosnap list13:40
mvoerror: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: read unix @->/run/snapd.socket: read: connection reset by peer" would be great13:40
mvozyga: http://people.canonical.com/~mvo/core18/core18-dragonboard-18-beta20181009.img13:56
zygamvo: thnx13:56
zyga5 minutes to download13:57
mvozyga: ta14:02
ogramvo, btw, thanks for quietening the boot, it i noticeable ... (noticeable enough that i now notice that mount seem to print "ext4" twice on startup)14:04
ogra*it is14:04
zygamvo: flashing now, the rest of the hardware is ready14:05
zygawhat do I need to test exactly?14:05
ograthis 2min timeout because we hardocde eth0 in the config is still super annoying ... i wish we could leave that hardcoded bit out :(14:06
zygamvo: check your telegram14:09
zygafeel free to push to niemeyer14:09
zygamvo: let me know if you need more testing14:09
zyganiemeyer: bottom line, it doesn't work14:11
niemeyerAck14:18
niemeyerWe just need that captured somewhere in a way people can follow up14:18
zygaI have a photo and a short clip. I can add that anywhere appropriate14:23
mborzeckicachio: just to be clear, i should switch back to the default arch image now?14:35
zygamvo: where shall I add the test result?14:35
mvozyga: let me add a bug14:41
mvozyga: thanks, this is exactly the old bug14:41
zygathank you14:41
zygawill my testimony on the bug report suffice?14:42
cachiomborzecki, yes14:47
cachiothe default one has apparmor enabled now14:47
mborzeckicachio: the problem with restarting snapd.socket reproduces in https://github.com/snapcore/snapd/pull/5948 i've pushed a commit to get more logs14:47
mupPR #5948: asserts, image: ensure kernel, gadget, base and required-snaps use valid snap names <Parallel installs β›“> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5948>14:47
* cachio nice14:55
cachiomborzecki, nice14:55
cachioI'll take a look after lunch14:55
* cachio lunch14:55
mupPR snapcraft#2331 closed: meson plugin: add support for bases <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2331>14:55
mvomborzecki, cachio I also hit it in my PR and also in debian-914:56
sil2100mvo: hey! So we don't have any git repos for what's in the images, which is a big ugh, for now you can prepare a PR for the master branch of subiquity and we'll cherry pick it to the PPA14:57
sil2100mvo: maybe it's a good idea for me to create a git repo for it14:57
sil2100For tracking14:57
sil2100console-conf/subiquity was always slightly hacked-in ;/14:57
sil2100ogra, lool: I kicked a new stable series of images for 1615:06
ograsil2100, awessome !15:06
cwaynesil2100: hm?15:07
sil2100cwayne: I think we poked you about that on the sprint, we'll be asking you for some testing of the rpi3 images since we'd like to update those15:09
sil2100cwayne: for pi3 b+ support15:09
sil2100For now I kicked the images only15:10
cwaynesil2100: righto, so those are ready to test?15:10
sil2100cwayne: not yet! Just kicked the builds, wanted to send you a poke with the image links already15:10
sil2100Those should be available soonish15:11
ograsil2100, we really want to update all arm/arm64 images, the pi2 as well as the db are also massively behind in stable15:11
ograbut they are less urgent though15:11
sil2100I guess we'll start with the pi3's for now, not sure we have enough capacity to take on all the others this week15:12
ogra(pi2 is missing thermal and power-mgmt fixe in the binary firmware and misses interface declarations in snapcraft.yaml in stable)15:12
sil2100Too much going on15:12
sil2100ogra: are those changes in the pi2 edge gadget already?15:13
ogradragonboard has a ton of changes from ondra to support the internall MMC and such that we also want to ue in customer projects15:13
sil2100Or should I kick a new build for those to be picked up?15:13
ograsil2100, yeah15:13
ograwell, they are in the git tree since ages15:13
sil2100Ok o/15:13
ogranot sure if pi2 also hass not picked them up ...15:14
ogra*has15:14
mborzeckicachio: so now it's no reproducing anymore :/15:14
ogradeclare it fixed then ;)15:15
* zyga -> post office15:15
ograsil2100, given the state of the arm builders i guess you can forget about re-building the gadget anyway for today (i had no luck with a single build all day here, started to build my snaps locally)15:22
mborzeckicachio: 3rd restart and still not reproduced15:26
ondra@ogra without resize fix, new gadget will fail when booted from internal storage (unless you are quick to call resize after first boot)15:34
ograondra, oh, ok15:35
ograsil2100, hold back on the dragonboard then15:35
kyrofaHey ondra, you around?15:41
=== slangasek is now known as vorlon
ondrakyrofa yep15:42
mvosil2100: ok, I would like to work on the experience of the console-conf-wrapper but lets catch up tomorrow whats the best way for me to do this and how we get into into the image15:42
ondraogra it works with sdcard, this only issue when booting from emmc15:42
mvosil2100: (in a meeting right now)15:42
ograondra, hmm, which we havent much promoted anyway15:43
ondraogra yep15:43
kyrofaondra, can you share a snapcraft.yaml using layouts?15:43
ogragraaaah !15:43
ograso just as i'm done doing my chromium snap build on my pi locally and finished the upload the build.s.io armhf builders come back to life !!!15:44
mborzeckiogra: how long did that take? :) a day?15:45
ograwell, it uses the binary deb ... just some snap stuff around it ... so only 1h15:46
mborzeckioh, that's cheating :)15:46
ograhahaha15:46
ograyeah15:46
kyrofazyga, are the target paths or any part of the declaration of a layout validated?15:56
kyrofaAt the string level, I mean15:58
sergiusensogra: do you even have enough ram to successfully build that from source?15:59
ograthere is always swap16:00
ograjust delays the build by another half day i guess :)16:00
ograbut i'm sure you *can* build it from source on a Pi if you wanted16:00
mupPR snapd#5957 opened: overlord/snapshotstate/backend: fall back on sudo when no runuser <Created by chipaca> <https://github.com/snapcore/snapd/pull/5957>16:01
mupPR snapcraft#2335 opened: lifecycle: remove lxd support for bases <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2335>16:04
cachiomborzecki, I was trying to reproduce it here, left some scripts running an hour and could't reproduce it16:14
mupPR snapd#5958 opened: NOT-REVIEW: tests: Add debug info main suite <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5958>16:23
zygakyrofa: yes16:26
zygakyrofa: all of it is16:26
kyrofazyga, I see logic sanity checking what the mounts actually are, but I haven't found any regex16:26
zygakyrofa: it's not a simple regex.16:26
zygathere are rules and more rules16:26
zygakyrofa: the up side is that snap validate checks that16:27
kyrofaYeah just wanted to see if there was a sanity check I could run up front, but it seems not16:27
=== pstolowski is now known as pstolowski|afk
mupPR snapd#5959 opened: systemd: extend Status() to work for socket and timer units <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5959>16:55
mborzeckicachio: dropped the debug commit in #5948 since the problem stopped reproducing, i'm quite sure it'll reproduce now that i gave up ;)16:56
mupPR #5948: asserts, image: ensure kernel, gadget, base and required-snaps use valid snap names <Parallel installs β›“> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5948>16:56
mupPR snapd#5860 closed: interfaces/hotplug: helpers and struct updates <Hotplug πŸ”Œ> <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5860>17:35
mupPR snapd#5863 closed: overlord/ifacestate: add hotplug slots with implicit slots <Hotplug πŸ”Œ> <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5863>17:37
mupPR snapd#5880 closed: interfaces/repo: two helper methods for hotplug <Hotplug πŸ”Œ> <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5880>17:39
=== vorlon is now known as slangasek
=== slangasek is now known as vorlon
mupPR snapcraft#2336 opened: schema, meta: support layout <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/2336>18:32
Chipacaooh, guess what, suse failing again18:37
mupPR snapcraft#2335 closed: lifecycle: remove lxd support for bases <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2335>18:44
* cachio afk19:03
mupPR snapcraft#2337 opened: pluginhandler: library detection instead of injection <do-not-merge-yet> <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2337>19:26
smoserhttps://bugs.launchpad.net/ubuntu/+source/snapd/+bug/179721819:49
mupBug #1797218: boot hangs in curtin vmtest <amd64> <apport-bug> <cosmic> <uec-images> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1797218>19:49
smoseris that known ?19:49
mupPR snapcraft#2336 closed: schema, meta: support layout <Created by kyrofa> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/2336>20:02
luk3yxWhen I try and build my snap on Ubuntu 18.04 (it needs newer libraries), I get this error:20:05
luk3yxThe linker version '2.23' used by the base 'core' is incompatible with files in this snap20:05
luk3yxCan I fix it without compiling with older 16.04 libraries?20:05
ijohnsonluk3yx: are you using `base: core18` in your snapcraft.yaml?20:08
luk3yxNo, do I need it?20:08
mupPR snapcraft#2338 opened: schema, meta: support layout <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/2338>20:08
ijohnsonif you are building a snap that targets using 18.04 libraries, then yes you need to add `base: core18` to your snapcraft.yaml20:08
luk3yxIf I add that, will build.snapcraft.io use 18.04 libraries?20:09
ijohnsonI believe that build.snapcraft.io was recently updated to work with core18 bases, so yes it should work20:10
luk3yxThanks.20:10
luk3yxThe build is erroring because of a missing package: CalledProcessError: Command '['lxc', 'exec', 'lp-xenial-ppc64el'...20:16
luk3yxI think that means it's not using 18.04.20:16
ijohnsonCan you link to a more complete build log? I'm not sure that means it's not using 18.0420:16
mupPR snapcraft#2339 opened: lifecycle: switch to multipass by default <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2339>20:17
ijohnsonAlso are you intending to build your snap on ppc64el?20:17
luk3yxNo, build.snapcraft.io did it for me.20:17
luk3yxCould not find a required package in 'build-packages': libluajit-5.1-dev20:18
luk3yxWhen a local apt search displays it.20:18
ijohnsonOkay, so firstly you can specify what specific architectures you want to build your snap on using the `architectures` yaml spec20:18
ijohnsonSee https://forum.snapcraft.io/t/architectures/497220:18
ijohnsonSecondly, I think I mispoke earlier, build.snapcraft.io doesn't support using core18 as a base and you need to use launchpad for it, see https://forum.snapcraft.io/t/core18-base-in-build-snapcraft-io/771520:19
luk3yxNow build.snapcraft.io is being unresponsive with removing repos, it says 'IntegrityError'.20:22
luk3yxIs there a tutorial for setting up a launchpad build?20:22
ijohnsonI don't know of any tutorials for setting up launchpad snap, but basically the process is make an Ubuntu SSO account if you haven't already, then configure your project to have an upstream remote at launchpad, i.e. for git add a new launchpad remote and push the code there. Then on launchpad.net there's a thing you can click to setup a snap package from that code you pushed20:23
ijohnsonRe: IntegrityError, I am not sure about that20:24
ijohnsonYou might try asking in #launchpad about that20:24
luk3yxThanks, I think I've created it.20:39
luk3yxIt appears to have worked.20:44
kyrofazyga, do you know of anything that changed recently on debian? https://github.com/nextcloud/nextcloud-snap/issues/74520:55
mupPR snapcraft#2340 opened: pack: restrict snap pack to just type app <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2340>21:05
mupPR snapcraft#2338 closed: schema, meta: support layout <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2338>21:53
mupPR snapcraft#2340 closed: pack: restrict snap pack to just type app <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/2340>22:44
=== vorlon is now known as slangasek
=== slangasek is now known as vorlon
mupPR snapcraft#2341 opened: schema, meta: support command-chain <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/2341>23:26
sergiusenskyrofa: did we ever merge that LD_LIBRARY_PATH you did to make trusty work?23:50
sergiusensI think this is a good opportunity to bring it back23:50

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