/srv/irclogs.ubuntu.com/2020/03/05/#snappy.txt

mupPR snapd#8221 opened: ovelord/snapstate: update only system wide fonts cache <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/8221>08:33
mupBug #1866168 opened: Calls to org.freedesktop.DBus.Introspectable get blocked by AppArmor <Snappy:New> <https://launchpad.net/bugs/1866168>10:09
mupPR snapd#8222 opened: wrappers: import /etc/environment in all services <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/8222>10:45
mupBug #1866168 changed: Calls to org.freedesktop.DBus.Introspectable get blocked by AppArmor <snapd:New> <https://launchpad.net/bugs/1866168>12:10
zygajdstrand: FYI, I noticed we have failures on opensuse that are not captured by spread (though IIRC the systems were disabled recently)12:56
zygahttps://build.opensuse.org/package/live_build_log/system:snappy/snapd/openSUSE_Tumbleweed/x86_6412:56
zygaall related to seccomp12:56
jdstrandzyga: did they update libseccomp or golang seccomp? if so, sounds like there might be a regression12:57
zygajdstrand: they might have, I left all non-ubuntu systems back home12:58
zygajdstrand: I'll file a bug to track this down next week12:58
zygajdstrand: just FYI in case this shows up in ubuntu12:58
jdstrandcool, thanks12:58
jdstrandiirc, they did but a new release12:59
jdstrand(or are about to...)12:59
* jdstrand -> meeting12:59
zygaoh13:00
zygaoh boy13:00
jdstrandzyga: https://github.com/seccomp/libseccomp/commit/fcb1395979f784387984e34752c07a5e8530c02313:02
zygahmm13:02
zygathanks13:02
zygadoesn't seem like what we're seeing13:03
zygaperhaps it's the kernel too?13:03
zygajdstrand: we should eventually look at enabling the binary tree optimizer https://github.com/seccomp/libseccomp/commit/a3732b32b8e67a5c466a625f0e1e0d0bfde5ee0b13:19
ackkhi, isn't "snap stop --disable ${SNAP_INSTANCE_NAME" supposed to stop all services for the snap?13:37
zygaackk: what are you seeing happen?13:39
zyga(if that's grammatically correct)13:40
mborzeckizyga: wonder how different that optimizer is from the patches we've tried in https://forum.snapcraft.io/t/concerns-about-performance/12194/8 is it the same patch?13:46
ackkzyga, I'm testing a change in the maas snap to split services. I have a "install" hook which ends with that stop command, but then I see: https://paste.ubuntu.com/p/H6V2vXKGCn/13:51
ackkzyga, right after install13:51
jdstrandzyga: can you have someone add a meeting link for the compression meeting?14:00
jdstrandijohnson: ^14:00
jdstrandroadmr: ^14:01
ackkzyga, side question, I assume there's no way (yet) to tell snapd not to autostart services on install?14:01
ijohnsonjdstrand: ack14:02
roadmrjdstrand: yes, a sec14:03
jdstrandI'm in14:04
jdstrandthanks14:04
roadmrjdstrand: O_o14:05
roadmrjdstrand: still waiting for others to arrive (snapd folks)14:06
roadmrI am apparently an idiot :)14:11
jdstrandheh14:24
mupPR snapcraft#2961 opened: build providers: remove over use of -i in sudo <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2961>14:31
zygaackk: this is a question to ijohnson15:07
ijohnsonackk whats the problem15:07
zygajdstrand: oh, sorry, I missed your ping15:07
ijohnsonalso I'm at a sprint so intermittently available15:07
ackkijohnson, so my first question is whether this is the correct status (from snap info) when the install hooks runs "snap stop --disable $SNAP_INSTANCE_NAME" at the end: https://paste.ubuntu.com/p/H6V2vXKGCn/15:12
ackkijohnson, some services are actually running15:12
ackkijohnson, side question was whether it's possible to prevent them from starting up at all at snap install (I know it wasn't, just wondering if there's any progress in that direction)15:12
ijohnsonackk: yes it is possible to stop services from starting at all15:13
ijohnsonackk: what you do is call `snapctl stop --disable` exactly like you're doing during the _install_ hook specifically15:13
ijohnsonackk: the install hook runs before any services are started15:13
ijohnsonackk: also note that the install hook does not run on refresh, for that you need to use the post-refresh hook15:14
ackkijohnson, I'm doing that in the install hook15:14
ijohnsonackk: are you testing this with the snap already installed ?15:14
ijohnsonthe thing I am currently checking on for you is whether you can disable all services with just the snap name15:15
ackkijohnson, no, first install15:15
ijohnsonI don't remember if that works or is supposed to work15:15
ackkijohnson, I'm pretty sure services used to be started by default before install hook runs. but running stop --disable used to work stopping there15:17
ackknot sure why it's not working in this case15:17
ijohnsonackk: I don't think it has ever been the case that services were started before the install hook15:17
ijohnsonackk: perhaps you're thinking of the configure hook?15:17
zygaijohnson, ackk: just thinking about what you guys are discussing, I wonder if there's anything we could learn from systemd presets that could be, somehow, represented in snapd15:19
ijohnsonackk: AFAICT I don't think `snapctl stop --disable $SNAP_INSTANCE_NAME` should work, I think it always has to be `snapctl stop --disable $SNAP_INSTANCE_NAME.$SVC_NAME`15:19
zygaeven if there's just one preset and that preset is "the service is disabled"15:20
zygahaving a way to express that with a common language might be useful15:20
ackkijohnson, it used to work, we are using it elsewhere15:21
ijohnsonackk: can you show me an example ?15:21
ackkijohnson, and indeed if you look at the paste services are all disabled15:21
ijohnsonof where it used to work ?15:21
ackkijohnson, just some of them aren't stopped15:21
ijohnsonI am confused how it could work15:21
ackkijohnson, why wouldn't it?15:22
ackksnapctl runs those commands at the end of the hook15:22
ijohnsonackk: because the install task is and always has been ordered before the start-snap-services task15:22
ijohnsonthis is internal to snapd15:22
ijohnsonackk: so I have tested and actually what you have with `snapctl stop --disable $SNAP_NAME` should work fine, indeed it does in my very simple example snap15:25
ijohnsonackk: so since you say this isn't working, can you file a bug on bugs.launchpad.net/snapd ? I need to start another meeting shortly and will not be able to debug this much more with you unfortunately15:26
ackkijohnson, sure, I'll try to get more info and then file it15:27
ackkijohnson, thanks15:27
ijohnsonzyga: https://bugs.launchpad.net/ubuntu/+source/libseccomp/+bug/186117715:41
mupBug #1861177: seccomp_rule_add is very slow <patch> <server-next> <snapd:Triaged by anonymouse67> <libseccomp (Ubuntu):Triaged> <https://launchpad.net/bugs/1861177>15:42
jdstrandijohnson: hey, do you have different numbers tacked onto anonymouse dependent on the site login? :)15:44
jdstrandanonymouse64, anonymouse67...15:45
* jdstrand is going to map these out15:45
ijohnsonjdstrand: yes, it's a long story15:47
ijohnsonI am both of those15:48
jdstrandijohnson: I've yet to meet anonymouse65. I've heard great things about that guy15:48
jdstrand:)15:48
ijohnsonhaha :-)15:49
mupPR snapcraft#2961 closed: build providers: remove over use of -i in sudo <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2961>16:14
mupPR snapd#8223 opened: interfaces/u2f: Add Titan USB-C key <Created by stgraber> <https://github.com/snapcore/snapd/pull/8223>16:19
JuJUBeeI installed a snap application in an LTSP environment.  My user home dir is /home/admin.  My students are /homes/username  I can run the snap app but they cannot.17:37
zygaJuJUBee: this is a known limitation17:38
zygaJuJUBee: such home directories are sadly not supported17:38
JuJUBeezyga, does https://forum.snapcraft.io/t/how-can-i-use-snap-when-i-dont-use-home-user/3352/2  suggest otherwise?17:44
zygaJuJUBee: no, it's not, it talks about certain things that we could eventually do; today if you want a user to use snaps their home directory must really be (as in directory inode) in /home17:45
zygayou can bind mount it or mount it there17:45
zygabut it cannot be a symlink17:45
zygathe rest about HOMEDIRS is irrelevant for /homes (note the plural) because /homes is invisible from the point of view of a snap application17:46
zygait's a long thread but I generally know what happens at runtime and I can only summarize that /homes/$LOGNAME is not supported17:47
JuJUBeezyga, so should I just mount the disk that is /homes on /home instead?18:09
zygaJuJUBee: yes18:09
zygaJuJUBee: can you also leave me a message as to why you chose this layout18:09
zygawe will try to support arbitrary home directories better18:09
zygabut understanding the use cases helps18:09
JuJUBeezyga, where would you like me to leave it?  pm?18:10
zygaJuJUBee: just here18:10
zygaI'm getting dinner in 5 minutes18:10
zygaso I won't respond18:10
zygabut I'm online 24/7 so I will read it and respond later, if you are available18:10
* zyga is AFK18:12
JuJUBeezyga, OK, so I usually keep my users on a separate volume so upgrades are easier.  I used to use local_homes for the local admin account and /home for my users but it was easier to use /home during the install and mount the extra volume on /homes after the fact.18:14

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