/srv/irclogs.ubuntu.com/2017/01/20/#snappy.txt

mupPR snapd#2664 closed: cmd: move seccomp cleanup function to seccomp-support <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2664>00:21
mupPR snapd#2661 closed: tests: skip on untrusted keys <Created by fgimenez> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2661>00:52
=== chihchun_afk is now known as chihchun
wililupy_I just noticed something interresting. I build an ubuntu-core image with a custom kernel, and when I load the system, it boots up and I can login, but when I look at /lib/modules/`uname -r` there is no directory. Is this something new?01:44
mupPR snapcraft#1059 opened: pluginhandler: support more complex stage-packages <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1059>01:45
wililupy_nm, I think I figured it out.01:46
wililupy_just to verify in the assertion file, model and gadget are core now, or is it still pc?01:47
mupBug #1643292 changed: /snap/bin/hello - fails to execute with apparmor error. <Snappy:Expired> <https://launchpad.net/bugs/1643292>04:19
mupPR snapd#2666 opened:  Add ability to set system time zone to timeserver_control interface <Created by justincan> <https://github.com/snapcore/snapd/pull/2666>05:09
mupPR snapd#2637 closed: tests: increase retries for service up <Created by fgimenez> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/2637>08:15
mupPR snapd#2591 closed: wrappers: add DBusActivatable to the allowed values for desktop files <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2591>08:47
gbissonwililupy_: Hi! I have the same issue with latest core (893), how did you fix it?09:08
gbisson(issue being no /lib/modules nor /lib/firmware)09:09
mupPR snapd#2667 opened: tests: ensure systemd override directory is available before using it <Created by mvo5> <https://github.com/snapcore/snapd/pull/2667>09:15
=== faenil is now known as faenil_
morphis_ogra_: just tried to build the core snap from lp:core-snap, but things are failing with https://paste.ubuntu.com/23832507/09:39
morphis_ah my fault09:39
morphis_should run it as root09:39
ogra_i'ÄD guess some package is missing09:39
ogra_oh and that, yeah :)09:40
morphis_ogra_: btw. is there any testing for the core snap?09:53
morphis_or does that have to go into snapd?09:53
ogra_theer are regular image tests, yes ... for releasing something into beta/candidate as well as for releasing into stable09:54
ogra_there are zero tests for edge since that is developer playground and allowed to break09:54
morphis_ogra_: so where would I add a test for the configure hook I am adding now into lp:core-snap09:55
ogra_(i'm personally running edge on all boards here though, they auto-update and i usually nothice if they dont boot ... so there is some minimal recofnition of serious breakage)09:55
ogra_morphis_, you apply a patch to fgimenez i guess ;)09:55
morphis_hah09:55
ogra_(the automated spread tests only run for amd64 currently though)09:56
morphis_hm09:57
morphis_fgimenez: ping09:57
fgimenezhey morphis_ :) about the above question you can propose the tests to snapd itself and restrict by system09:57
morphis_sounds good09:58
morphis_fgimenez: but that would require me to get a new core snap into edge first, right?09:58
morphis_ogra_, fgimenez: https://code.launchpad.net/~morphis/core-snap/add-configure-hook-sshd-service/+merge/31520309:59
fgimenezmorphis_, well, you could use the external backend and run against a prebuilt image, that's how we are testing the board images now10:00
morphis_ah10:00
morphis_good idea10:00
ogra_morphis_, thats definitely not enough ... you need to add tests if there is a local login10:00
fgimenezmorphis_, here are the details https://github.com/snapcore/snapd/blob/master/tests/external-backend.md10:01
ogra_else any admin can accidentially completely lock himself out10:01
morphis_ogra_: sure, that is why its set as wip10:01
ogra_morphis_, i'd also use start/stop instead of restart ... but thats just a matter of taste10:02
morphis_two commands instead of a single?10:02
ogra_no10:02
ogra_start for enabled ... stop for disabled10:02
mupPR snapd#2668 opened: interfaces: abbreviate ConnRef construction <Created by zyga> <https://github.com/snapcore/snapd/pull/2668>10:03
ogra_but as a i said, matter of taste restart will indeed work fine10:03
ogra_(it is just that you trigger two actions with it instead of the one you actually want)10:04
morphis_ogra_: you're ok with the name?10:07
morphis_was wondering if I should use service.ssh or service.sshd10:08
morphis_both are the same for systemd10:08
ogra_yeah, i'm fine with either, make your pick10:09
mupPR snapd#2665 closed: cmd: more build system cleanups and a small fix <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2665>10:09
ogra_probably sshd for consistency ... after all you disable the daemon not the client10:09
morphis_yeah, but that is why it has the service. prefix10:11
morphis_let me leave service.ssh10:11
morphis_I guess niemeyer and mvo will have a opinion too :-)10:11
morphis_ogra_: what would be the best way to check for a local login?10:11
ogra_hmm10:12
morphis_passwd -S maybe10:12
ogra_the most minimal would be to check for non-zero size of /var/lib/extrausers/passwd10:12
ogra_passwd -S will only show the current user10:13
ogra_which in case of a config option will be root i guess10:13
morphis_something like10:13
morphis_test `passwd -S simon | awk '{print $2}'` = P10:13
ogra_and how do you know "simon" ?10:14
morphis_and then looping through the extrausers db and checking each user10:14
morphis_if one found with passwd then we're ok10:14
morphis_+ check if he is sudo or not10:14
ogra_ogra@localhost:~$ test -e /etc/sudoers.d/create-user-* && echo foo10:15
ogra_foo10:15
ogra_that is probably sufficient for finding out there is an admin user10:16
ogra_(console-conf creates that file)10:16
morphis_why that?10:16
morphis_ah10:16
ogra_the last bit of the filename is the login10:16
morphis_but that still doesn't give us if that user has a password set10:16
ogra_right, then check for that10:16
morphis_ah10:17
ogra_should be a cheap way to get the login10:17
morphis_however in our case that doesn't work :-)10:17
morphis_as we have a system-user assertion creating a user admin10:17
morphis_and there could be other user assertions creating different users10:17
ogra_and that doesnt enable sudo ?10:17
ogra_all you want to make sure is that there is a sudo user with a password10:18
ogra_and /etc/sudoers.d/ is the only way to create one, /etc/sudoers is readonly10:18
morphis_the other question is, this is policy, do we really want to encode this in the option? in our case a management snap will take care about the whole system and will also have access to the extrausers database10:19
ogra_even your system-user assertion needs to create a file there if there is a sudo capable user10:19
ogra_hmm10:19
morphis_so it may want to enforce that there is not a user at all10:19
morphis_but just the management snap provide a nice UI to manage everything10:20
ogra_tricky10:20
morphis_it is10:20
ogra_and also perhaps something that requires wider discussion via the ML10:20
morphis_I tend to say this is just meant to turn sshd off and the caller needs to know about the consequences10:21
ogra_i personally wouldnt allow turning off sshd through a manually toggleable option if there is no way to get in anymore ...10:21
ogra_probably there is another way to inject that during image creation10:21
ogra_i belive there will be more images like this where you actually dont want a user to exist ... but at the same time it should never be possible to lock yourself out if one exists10:22
ogra_probably the answer is to not make the option runtime switchable at all10:23
ogra_so it can only be triggered by assertion or some such10:23
morphis_maybe10:24
morphis_ogra_: let me get a first working version and then we can discuss this further10:24
ogra_+110:25
mupPR snapd#2669 opened: asserts: don't use 'context' for the path of attributes, want to reuse the concept for something else <Created by pedronis> <https://github.com/snapcore/snapd/pull/2669>10:31
mupPR snapd#2670 opened: tests: use higher version number during tests <Created by mvo5> <https://github.com/snapcore/snapd/pull/2670>10:32
=== faenil_ is now known as faenil
mupPR snapd#2667 closed: tests: ensure systemd override directory is available before using it <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2667>11:19
mupPR snapd#2668 closed: interfaces: abbreviate ConnRef construction <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2668>11:29
morphis_fgimenez: ok, I've build my own core snap now and use it to generate an image with ubuntu-image, do I have to set anything specific as snapd doesn't accept it or do I have to rebuild snapd in a special way?11:38
=== faenil is now known as faenil_
morphis_ogra_: how are you testing locally build core snaps?11:58
ogra_i boot the image ... install some snaps that use different interfaces (typically htop)11:58
ogra_and usually i leave the image running and watch it update itself daily (since i most of the time look at edge)11:59
fgimenezmorphis_, i don't think so, you can execute your tests following https://github.com/snapcore/snapd/blob/master/tests/external-backend.md, you could filter by your own test, something like 'spread -v external:ubuntu-core-16-64:tests/main/my-test'12:03
fgimenezmorphis_, the external backend doesn't make any assumption about what snapd is running, it just tries to connect and execute the given tests12:04
morphis_ogra_, fgimenez: https://paste.ubuntu.com/23833054/ is what I am running into after building an image with $ ubuntu-image --extra-snaps core_16.04.1_amd64.snap -o pc.img pc.model12:08
morphis_so wondering if there is any trick or if snapd should accept my core snap as is12:09
ogra_morphis_, and your model assertion is properly signed with a valid key ?12:10
morphis_ogra_: sure, with my developer key12:10
mupPR snapd#2670 closed: tests: use higher version number during tests <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2670>12:10
ogra_do you see any other errors during boot ? like the firstboot setup job failing or some such ?12:11
ogra_looks really like the initial device setup didnt run12:11
ogra_also, does snap list work at all ?12:11
morphis_it does but lists nothing12:12
morphis_ogra_: none of the snaps from the seed are imported12:12
mupPR snapd#2669 closed: asserts: don't use 'context' for the path of attributes, want to reuse the concept for something else <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2669>12:12
morphis_trying to get a few more details12:13
ogra_yeah, that smells like the device initialization hasnt run ...12:13
morphis_ogra_: but yeah, I passed console-con12:13
ogra_yeah, thats unrelated12:13
ogra_do you have an existing /var/lib/snapd/seed/seed.yaml and the correct content ?12:14
morphis_ah seems to be my fault12:15
morphis_Jan 20 12:13:27 localhost /usr/lib/snapd/snapd[1082]: task.go:303: DEBUG: 2017-01-20T12:13:27Z ERROR rm: cannot remove '/etc/ssh/sshd_not_to_be_run': No such file or directory12:15
morphis_that fails the the installation of the core snap12:15
ogra_just add a "|| true" to the end of the line as a quick hack12:16
popeyhm, it's not possible to build classic snaps in lxd due to it needing core installed?12:16
popeyrelated to bug 1650946 which changed the error message12:16
mupBug #1650946: unhelpful error when building a classic snap: classic confinement requires the core_dynamic_linker to be set <launchpad-buildd:Triaged> <Snapcraft:Fix Released by sergiusens> <https://launchpad.net/bugs/1650946>12:16
popeyoh, sergiusens dropped12:16
ogra_your question probably scared him :)12:17
ogra_there ... he's back :)12:19
mupPR snapd#2671 opened: add --classic support to try and revert, and make missing these things a little harder <Created by chipaca> <https://github.com/snapcore/snapd/pull/2671>12:19
oh4still having issues getting snapd started and not sure what the culprit is12:37
oh4https://www.irccloud.com/pastebin/JTrFROJh/12:37
mupPR snapd#2672 opened: cmd: ensure that all .c files have a -test.c file <Created by zyga> <https://github.com/snapcore/snapd/pull/2672>12:39
oh4mup: is that related to my issue?12:43
mupoh4: I really wish I understood what you're trying to do.12:43
popeysergiusens: is there a plan to allow building classic snaps inside cleanbuld lxd?12:44
popeysergiusens: the error message is now nicer, but... :)12:44
oh4mup: I am trying to install 'sudo snap install canonical-livepatch' but it requires snapd to be up and running. If I run that command, I get: 'error: cannot communicate with server: Post http://localhost/v2/snaps/canonical-livepatch: dial unix /run/snapd.socket: connect: connection refused'12:45
mupoh4: Unknown commands are unknown.12:45
oh4mup: so then I checked snapd and it isn't running and when I try to start it, I get the error above12:45
mupoh4: Can't grasp that.12:45
seb128oh4, what's the status of snapd.service ?12:47
popeyoh4: mup is a bot, ignore it.12:49
sergiusenspopey, I discussed on a solution, just need to work on it, it is top two on my list12:50
oh4popey: oh...lol12:51
oh4https://www.irccloud.com/pastebin/ecaBvAIR/12:51
oh4popey: ^12:51
popeysergiusens: awesome, thanks.12:52
oh4seb128: I meant you...sorry ^12:54
popeyoh4: is that on ubuntu 16.04?12:55
oh4yep12:57
seb128oh4, not snapd.refresh.service, snapd.service12:57
seb128the refresh is another job12:57
oh4oops..I meant this, seb12812:59
oh4https://www.irccloud.com/pastebin/6K03T5Rn/12:59
popeyjdstrand: filed this, but not sure if it's snappy or apparmor.. bug 165808613:03
mupBug #1658086: profile has merged rule with conflicting x modifiers <Snappy:New> <https://launchpad.net/bugs/1658086>13:03
ogra_oh4, this is a plain local ubuntu desktop or server install ?13:03
oh4ogra_: desktop13:04
ogra_oh4, i.e. not some remote cloud system or container or some such13:04
ogra_k13:04
=== faenil_ is now known as faenil
oh4yep, my workstation here at home13:04
ogra_(that should rule out any kernel issues then)13:04
mupBug #1658086 opened: profile has merged rule with conflicting x modifiers <Snappy:New> <https://launchpad.net/bugs/1658086>13:04
ogra_oh4, also using the default kernel from the install ?13:04
oh4correct, ogra_13:05
ogra_hmm, weird13:05
oh4no mods...fresh install yesterday13:05
oh4even ran full upgrade and nothing13:05
ogra_yeah, snapd should just run then ...13:06
ogra_do you see anything intersting grepping fro snapd in syslog perhaps ?13:06
ogra_*for13:06
oh4following 'egrep -nri "err|warn|fail" /var/log/syslog", I see the following13:09
oh4https://www.irccloud.com/pastebin/BfvADh36/13:09
ogra_just grep for snap or snapd13:09
mupPR snapd#2673 opened: cmd: add fault injection support code <Created by zyga> <https://github.com/snapcore/snapd/pull/2673>13:10
oh4but those errors are from when I attempted to use 'snap install canonical-livepatch', I believe13:10
oh4here some more just for snap13:11
oh4https://www.irccloud.com/pastebin/4avvevRr/13:11
oh4it looks like it started at some point?...hmm13:11
oh4or maybe it try to start when I run 'snap install <package>'13:12
oh4not sure13:12
ogra_oh4, well, looks like snapd starts but then fails when the livepatch thing comes into play13:15
ogra_does "snap list" work ?13:16
oh4nope, snap list gives the same error13:16
oh4error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: connection refused13:16
ogra_what does: dpkg -l snapd return as version ?13:17
oh4ii  snapd                                                  2.20.1ubuntu1                    amd64                            Tool to interact with Ubuntu Core Snappy.13:18
ogra_thats running here as well on all my machines ... strange13:21
popeymight need a livepatch kernel person?13:21
ogra_zyga, what were the magic commands to clear up all snap related bits on a classic install ?13:21
ogra_popey, yeah, but first we cant even have the core snap installed13:22
ogra_so first i'D like to get the livepatch snap completely ripped out and snapd into a virgin state13:22
ogra_the livepatch snap seems to be sitting in queue now so starting snapd will immediately try to run it and fall flat on its face13:23
zygaogra_: I don't know if they work now13:25
zygaogra_: just prune snapd13:25
zygaogra_: er. purge13:25
ogra_purge you mean13:25
zygaogra_: that should do the same13:25
ogra_oh4, sudo apt purge snapd13:25
ogra_then install it again13:25
zygayep13:26
ogra_and then try something like: sudo snap install htop13:27
ogra_or snap install hello or so13:27
ogra_that should install the core snap alongside13:27
ogra_after that see if snap list then works13:27
=== ben_r_ is now known as ben_r
mupBug #1658086 changed: profile has merged rule with conflicting x modifiers <eco-team> <Snappy:Confirmed> <https://launchpad.net/bugs/1658086>13:49
sergiusensdiddledan, hey, nice corebird update! Would you mind writing up on the steps you went through to get xdg-open working so others can follow your lead?13:55
mcphailI'm hacking https://github.com/nextcloud/nextcloud-snap . If I change the apache.conf file (which is from the apache-customizations part) how do I rebuild the snap with just those changes?13:56
diddledanthanks. I don't think I did anything except installing snapd-xdg-open via apt13:56
diddledanwhere would be appropriate to post that? I can pop it on my own site but that won't be very discoverable..13:56
sergiusensdiddledan, is your snapcraft.yaml anywhere I can peek at?13:57
diddledanyes, it's on launchpad git: https://git.launchpad.net/~diddledan/+git/corebird?h=master13:58
diddledanthe direct link to the yaml: https://git.launchpad.net/~diddledan/+git/corebird/tree/snapcraft.yaml13:58
sergiusensdiddledan, I wonder if it is now part of desktop-gtk313:59
diddledannot sure. all I could discern was that the apt package snapd-xdg-open was required and once installed everything "just works"14:00
diddledanI think it would be nice for snapd deb to depend or recommend that package - it's not discoverable that you need to install it for xdg-open to work14:01
sergiusensdiddledan, well I do have it installed but only yours actually gets it done14:01
sergiusensseb128, Trevinho would you have an idea about this? ^14:02
diddledanodd14:02
diddledanmaybe other snaps aren't actually using the xdg-open mechanism but trying to call things directly14:03
diddledanI can try digging into xorebird source to see whether they shell-out or call the dbus directly14:03
sergiusensdiddledan, that would explain it for some, but not all (I don't think the recent kde frameworks based apps are different)14:03
sergiusensor maybe it is a case like that14:04
oSoMoNjdstrand, when you have a minute, may I ask you to review https://myapps.developer.ubuntu.com/dev/click-apps/6219/rev/2/ ? the same warning as my webbrowser-app upload the other day is blocking publication14:07
mcphailkyrofa_: is there any reason we can't have "AllowOverride All" for the nextcloud install directory, to use the .htaccess file in there? I'm not sure the "Include" directive in your apache.conf is doing what we need it to do...14:07
jdstrandmhall119: I'll add a todo for the review tools for Exec= so at least if it hits the store, people will get the feedback14:08
seb128sergiusens, diddledan, what is the question?14:13
sergiusensseb128, xdg-open (again :-) )14:15
diddledanok, the way that corebird calls URLs is via GLib: GLib.AppInfo.launch_default_for_uri (uri, null);14:16
sergiusensseb128, corebird-diddledan works just fine, wondering why others don't and if there is some sort of guide for this14:16
seb128sergiusens, gio should work fine14:17
seb128if the snapd-xdg-open is installed on the system14:18
seb128which mvo is looking at getting installed by default I think (that was a while ago and I didn't see any update)14:18
jdstrandpopey: it is snappy. I responded in the bug14:19
sergiusensseb128, great, so if an app in snap calls xdg-open it needs to be provided in the snap?14:27
sergiusensOr is this a zyga question?14:28
oSoMoNjdstrand, thanks!14:29
ogra_sergiusens, it should be used from the core snap (where we install the script yb default)14:29
ogra_though weather snap-confine allows execution is indeed actually a zyga question14:30
jdstrandoSoMoN: yw14:30
jdstrandsergiusens: iirc, no. the xdg-open is in /usr/local/bin in the core snap and snaps have the permissions to call that14:31
jdstrandI may be misremembering-- the way we do xdg-open is a little twisty14:32
jdstrandbut I don't think the snap has to ship it14:32
ogra_in fact it breaks if you ship it14:34
ogra_because then the distro script goes to /usr/bin and overrides the core script in /usr/local/bin14:34
ogra_(or rather to $SNAP/usr/bin)14:36
mupPR snapd#2672 closed: cmd: ensure that all .c files have a -test.c file <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2672>14:49
mupPR snapd#2640 closed: interfaces: allow querying added security backends <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2640>14:50
mhall119thanks jdstrand14:52
mvoseb128: sorry, I was not pushing snapd-xdg-open recently :/14:55
seb128mvo, no worry, I just mentioned it because I think you said that it was on some of your backlog14:56
mupPR snapd#2674 opened: snap: show price in `snap info` <Created by mvo5> <https://github.com/snapcore/snapd/pull/2674>14:56
mupBug #1657752 changed: 'snap find' doesn't tell me the price of a snap I have bought <Snappy:Won't Fix> <https://launchpad.net/bugs/1657752>14:59
mvoseb128: it is still there, keeps getting pushed aside by more important tasks14:59
seb128mvo, no worry, thanks for the status update15:03
mupPR snapd#2630 closed: many: detect potentially insecure use of snap-confine <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2630>15:04
mupPR snapcraft#1060 opened: options: if host is 32bit use the relative backward compatibility architecture <Created by 3v1n0> <https://github.com/snapcore/snapcraft/pull/1060>15:13
popeyjdstrand: thanks!15:24
zygajdstrand: hey, this has been reviwed by two other people and waits for a month for a review; I think we should just merge it and carry on; I have a branch that drops privs around argument parsing and I plan on landing it before actually using this new (parser) module.15:27
zygajdstrand: https://github.com/snapcore/snapd/pull/241615:27
mupPR snapd#2416: cmd/snap-confine: add snap-confine command line parser module <Created by zyga> <https://github.com/snapcore/snapd/pull/2416>15:27
zyga*reviewed15:28
zygajdstrand: unless you critically want to review it I plan on merging it when it turns green15:28
jdstrandzyga: as agreed to earlier, this is behind a couple of other things and iirc, tyhicks and I felt it needed a review. please talk to ratliff and tyhicks if you want that prioritized ahead of the current work15:29
jdstrandalso, it is a bit unfair to characterize it in the way you did. yes, it has been open for a month, but it also has never been on the critical path for anything15:30
morphis_ogra_: Jan 20 15:29:14 localhost.localdomain kernel: audit: type=1400 audit(1484926154.100:17): apparmor="DENIED" operation="exec" profile="snap.core.hook.configure" name="/bin/systemctl" pid=1378 comm="configure" requested_mask="x" denied_mask="x" fsuid=0 ouid=015:31
morphis_that is interesting but I guess that is just normal confinement and core isn't taken differently15:31
jdstrandnot to mention, part of that month was a bunch of holidays :)15:38
ogra_morphis_, see rthe other channel :)15:40
morphis_ogra_: the above is a different problem15:45
morphis_ogra_: the access to /run/snapd.socket is a thing I've filed a bug for some weeks ago15:46
ogra_oh15:46
ogra_yeah, core has strict confinement by default15:46
kyrofa_mcphail, doing that wastes resources because it crawls looking for that file on requests. The idea was to disable it in order to obtain better performance on low-end hardware (e.g. the rpi2)15:47
=== kyrofa_ is now known as kyrofa
kyrofamcphail, my research led me to believe the Include was equivalent but had the downsides I mentioned in the comment15:48
morphis_ogra_: guess we need an interface or so15:50
ogra_could be, not sure, i think pstolowski might know more how it is supposed to work in core15:51
ogra_i'd actually not expect an interface to be needed here15:51
=== chihchun is now known as chihchun_afk
tyhickszyga: hey - I'll set aside this seccomp work and review the arg parsing PR15:58
mupPR snapd#2675 opened: asserts: implement SuggestFormat to help avoid specifying the wrong format iteration for an assertion <Created by pedronis> <https://github.com/snapcore/snapd/pull/2675>15:58
tyhicksthat code is in too critical of a section to not receive a close security review15:58
mcphailkyrofa: I'm still experimenting, but it works if I AllowOverrides but not with the Include. I'll keep hacking. Hadn't thought of htaccess causing a performance hit16:03
kyrofamcphail, yeah, check this out: https://httpd.apache.org/docs/2.4/misc/perf-tuning.html16:05
mupPR snapcraft#1061 opened: Fix Exec key in desktop files for apps named like their parent package (LP: #1658123) <Created by oSoMoN> <https://github.com/snapcore/snapcraft/pull/1061>16:07
zygatyhicks: thanks!16:08
zygajdstrand: ack16:08
mcphailLooks like we really do need to get this in the conf file if possible, although I don't think performance gains are worth the loss in functionality if we can't get it to work16:08
zygajdstrand: (I didn't think of the holidsys, sorry about that)16:09
kyrofamcphail, agreed16:10
kyrofamcphail, so it works with no other changes if you just allowoverride all ?16:10
pstolowskiogra_, i'm not sure what was the question... was it far it the backlog? looks like it's not about snapd.socket again;) ?16:11
ogra_pstolowski, yeah, that tricked me too on first sight ;) morphis_ is actually calling systemctl there from his core config hook16:12
mcphailkyrofa: i've made a few changes, including changing that alias for acme-challenge. I need to unpick them now and see what breaks16:12
ogra_pstolowski, and gets a denial ... should that work ?16:13
pstolowskiogra_, oh, sorry, i'm familiar with that.. zyga may know?16:17
pstolowski*i'm not*16:18
mupPR snapd#2676 opened: cmd: collect string utilities in one module, add missing tests <Created by zyga> <https://github.com/snapcore/snapd/pull/2676>16:18
kyrofaogra_, how does confinement work on the core snap?16:18
kyrofaogra_, obviously on a normal snap a denial would be expected16:19
ogra_kyrofa, heh, no idea, thats a snapd/snap-confine question16:19
kyrofaogra_, does the core snap have any apps?16:19
ogra_nope16:19
kyrofaogra_, that'd be a good way to experiment-- make an app and see if it's confined16:19
ogra_but it is supposed to have a config hook option16:19
kyrofaI suspect it is16:19
kyrofaBut then... it's trying to execute stuff within it so16:20
kyrofaOdd16:20
jdstranddavidcalle: hi! you probably have in your email something about a new version of the security whitepaper16:25
jdstranddavidcalle: but if not, I just updated it for a bunch of series 16 items, urls, etc16:25
davidcallejdstrand: how do you know I was going to ask you about an eta for the next update? :)16:27
jdstranddavidcalle: hehe16:27
jdstranddavidcalle: I'd been getting an inkling recently that people might have been reading that doc which had a few out of date items. I guess you had the same inkling :)16:28
davidcallejdstrand: indeed, also, we have been discussing the doc recently in the Marketing team, so, good timing :) I'll publish it on monday, I'm about to eod16:30
zygaogra_, pstolowski: how can I help?16:31
pstolowskizyga, <ogra_> pstolowski, yeah, that tricked me too on first sight ;) morphis_ is actually calling systemctl there from his core config hook16:32
pstolowskizyga, <ogra_> pstolowski, and gets a denial ... should that work ?16:32
zygapstolowski: no16:32
ogra_morphis_, ^^^16:33
jdstranddavidcalle: thanks. I'm not sure where the doc fits in wrt recent documentation discussions, but it is in the form it is in due to customer requirements (ie, PDF). if the format needs to change (eg, to markdown), I'd be happy to review the conversion but you might want to talk to awe_ about the customer requirement16:33
zygamorphis_: systemctl talks to systemd over dbus and your hook is confined16:33
zygajdstrand: I'd love to put the whitepaper on the wiki16:34
zygajdstrand: if you want I can do that16:34
jdstrandzyga: let davidcalle, marketing and awe discuss that16:34
jdstrandit is in the format it is in based on custor requirements. maybe those requirements changed or can change16:34
jdstrandcustomer*16:35
awe_jdstrand, I don't think it's a requirement that the document be in PDF form, especially when it's something public like your whitepaper.16:35
jdstrandawe_: you'd be surprised. they very specifically wanted a PDF whitepaper16:36
awe_jdstrand, I can think of some other PDFs that might be useful to land on the wiki (TPM2)16:36
awe_jdstrand, OK I'll check with Ak on where that came from16:37
jdstrandawe_ (cc davidcalle): of course, there is nothing saying the source form couldn't be markdown and that converted to PDF. at the time of the requirement, people said a google doc was better16:37
awe_jdstrand, the original document was a gdoc, so I think we need to ask Google for an "export to markdown" function16:38
awe_;)-16:38
awe_jdstrand, +116:38
jdstrandanyway, I don't think it is a big deal, just want to make sure all the stakeholders agree16:38
jdstrandawe_: hehe :)16:38
awe_sure, as mentioned I'll check with ak16:38
jdstrandthanks16:38
zygajdstrand: there's a markdown -> latex tool that could give us acceptable output16:44
mupPR snapcraft#1008 closed: Add a simple straightforward conan.io plugin <Created by Fohlen> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1008>16:46
larrypricehello! i'm trying to wrap my head around the "alias" property in snapcraft - i built/installed the my-alias snap in snapcraft/integration_tests/snaps/alias, but i don't see any aliases in /snap/bin?16:46
larrypricelatest zesty, so snapd 2.21 and snapcraft 2.2516:46
zygalarryprice: I think it's too late this week; Ask pedronis` next week16:50
larrypricezyga, ok thanks16:53
Chipacalarryprice, I think your snapd needs to be really new to get aliases automatically16:59
Chipacalarryprice, and it's possible the 'alias' snap doesn't have auto-aliases17:00
Chipacadunno17:00
larrypriceChipaca, hmm what do you mean auto-aliases?17:00
mupPR snapcraft#1017 closed: make: add support for cwd path <Created by 3v1n0> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1017>17:01
mupPR snapcraft#1018 closed: autotools: extend Make plugin instead of repeating code <Created by 3v1n0> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1018>17:01
Chipacai'm not sure right now if you need anything extra for them to happen on their own17:01
kyrofaChipaca, i.e. that's something controlled by declarations?17:01
Chipacai think so, but i'm not 100%17:01
kyrofajdstrand might be able to verify that17:02
larrypricemaybe they don't happen automatically in devmode? seems the lxd aliases are working as expected17:02
morphis_zyga: yeah feared that, somehow thought core is taken differently than other snaps :-)17:03
Chipacalarryprice, try installing test-snapd-auto-aliases17:03
jdstranda store reviewer can setup auto-aliases today. for example, the lxd snap uses it17:03
jdstrandChipaca, kyrofa: ^17:04
kyrofajdstrand, so it is an assertion-related thing?17:04
Chipacajdstrand, thanks for the confirmation17:04
larrypriceChipaca, ah ok that did install what looks like aliased snaps17:04
jdstrandkyrofa: yes17:04
kyrofaGood deal, thank you :)17:04
Chipacalarryprice, so in your snap.yaml you ask for them, but you get them from the store with human intervention17:05
jdstrandthe snap declares its aliases. the user makes them go live on the system. a snap declaration can make that automatic17:05
Chipacalarryprice, jdstrand said it so much better :-)17:05
larrypriceChipaca, jdstrand, ok this is all adding up now17:05
jdstrandlarryprice: they store isn't going to block or anything if you declare them. the user installs your snap and can decide to apply the aliases. in some cases, it might make sense to have a snap declaration in the store to tell snapd to do it automatically17:06
larrypricejdstrand, who should i contact when requesting an auto-alias for one of my subcommands (canonical-owned snap)?17:07
jdstrandlarryprice: there isn't a form to request them, so you would need to ping a reviewer: https://launchpad.net/~myapps-reviewers/+members#active17:09
larrypricejdstrand, ok good to know17:10
larrypriceChipaca, jdstrand, thanks!17:10
Chipacalarryprice, meanwhile, "snap alias" is your friend17:10
Chipacalarryprice, and "snap aliases" if your snap/d is new enugh17:11
mupPR snapd#2677 opened: snap: improve the error message for `snap try` <Created by mvo5> <https://github.com/snapcore/snapd/pull/2677>17:23
gbissonwililupy_: around?17:25
wililupy_yes.17:28
wililupy_gbisson: what can I do for you?17:28
=== wililupy_ is now known as wililupy
telelaciHi wililupy can I have a question17:31
Blu2thank you for https://tutorials.ubuntu.com/ !!17:31
wililupytelelaci: Sure17:31
telelaciyesterday you said your /lib/modules dir has disappeared17:31
telelacii have the same problem17:31
telelaci/li/modules and /lib/firware both totally empty17:32
kyrofaBlu2, has it proved helpful?17:32
telelacibut if I extract the kernel snap , the files are inside17:32
gbissonwililupy: yes, telelaci is taking over, we have the same question ;)17:32
wililupytelelaci: yes. I had this happen in the past when I built images and didn't use specific names for my kernel snap.17:32
telelaciand it this was good last week17:33
=== faenil is now known as faenil_
telelaciwhat specific names ? what do you mean ?17:33
Blu2kyrofa, not yet, but I will take a closer look at it tonight :)17:33
kyrofaBlu2, if you do, you should send a note to the list-- its authors are on a different timezone and I'm sure they'd love to see that it was helpful17:34
zygatyhicks: thank you for the review17:35
wililupyI used to say my kernel was the actual kernel_4.8.0-RC1_amd64.snap name in my assertion instead of the name: value in my snapcraft.yaml for my kernel, which was kernel. Once I put kernel: kernel and then when I built the image used the --extra-snaps=kernel_4.8.0-RC5_amd64.snap everything worked.17:35
zygatyhicks: I'll read it and try to get back to you quickly17:35
wililupyHowever, I ran into this problem yesterday becuase my model: pc needed to be changed to model: core. I'm testing it right now to verify that this fixes it. If it does, I'll let everyone here know.17:36
mupPR snapcraft#1062 opened: tour: add g++ as dependency to 01-reusable-part <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1062>17:37
telelacithank you so much I had no idea at all, because I couldn't even roll back the project on git, last week worked, today doesn't work. the same code17:38
telelaciplease share everything what you experience with this thing, because its very mysterious error17:40
=== faenil_ is now known as faenil
wililupyhmm. Interresting. I now get the lists of installed snaps, where I wasn't getting that before, but I still don't have anything mounted in /lib/modules from my kernel snap. They are all there in my /snap/kernel/x1 directory. Anyone else here in the channel have any insight?18:12
mupPR snapcraft#1063 opened: file_utils: copy symlinks to directories as symlinks <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1063>18:16
telelaciwililupy: same here. but not only /lib/modules , but /lib/firmwares as well.18:35
wililupytelelaci I see that as well.18:35
telelacido you have the /lib/firmwares in place ?18:35
telelaciwililupy: none of them mounted in your system as well, or just the modules missing ?18:37
palassohey is this website new? https://tutorials.ubuntu.com/18:37
wililupytelelaci: none mounted. and I'm not seeing any errors specific to this.18:38
telelacisame18:38
telelacibut of course the system doesn't work properly without firmware and modules18:39
mterryI notice that snapd trunk can't be built as a deb without first getting all the deps, which requires network access.  Looks like for archive builds, you folks release a tarball with all the deps built in to get around this.  Is that a desired setup, or would a pull that changes the debian packaging to Build-Dep on the various golang packages in the ubuntu18:45
mterryarchive to get the deps instead be welcome? (with the goal of being able to PPA-build a git branch directly)18:45
mupPR snapd#2678 opened: interfaces: interface to allow autoilot introspection <Created by sbaldassin> <https://github.com/snapcore/snapd/pull/2678>18:54
pedronis`mterry: the switch to vendoring was a conscious decision, it was setup the other way around before19:09
=== pedronis` is now known as pedronis
mterrypedronis: understood, thanks.  Makes playing with a patched snapd harder, but I assume there was good cause behind the change somewhere19:13
mterryjdstrand, slangasek, ratliff: Is bug 1658181 accurate?  I just noticed this, and jdstrand didn't know about it, just wanted to make sure if this was a discussion I missed19:56
mupBug #1658181: snapd bundles golang dependencies despite being in main <snapd (Ubuntu):New> <https://launchpad.net/bugs/1658181>19:56
jdstrandit looks accurate to me. JamieBennett should be made aware as well, but he seems offline atm19:59
mterrypedronis ^ can you offer any history for that decision in the bug, if you know it?20:01
slangasekmterry: yes, I raised that with the snappy and security teams when that change went through20:32
mterryslangasek: ah good cool.  Was there a satisfying conclusion and I can close that bug or is the bug still useful?20:33
slangasekmterry: I didn't really see much follow-up tbh; I passed it over to the security team, they were aware of it20:33
jdstrandslangasek: I don't recall seeing this (maybe I am misremembering). ratliff and tyhicks, did you? ^20:45
tyhicksmterry, slangasek, jdstrand: I don't recall a discussion around snapd vendorizing packages20:48
tyhicksI have had some discussions around other projects vendorizing things in stable releases when they have new upstream releases that depend on packages that aren't in the archive20:49
tyhicksI don't recall that for snapd though20:49
slangasektyhicks: I sent mail on it Oct 12 to you + ratliff20:54
slangasektyhicks: with an earlier thread Oct 6 to ratliff + JamieBennett + mvo20:55
tyhicksok, I see the Oct 12 email20:57
tyhicksjdstrand: if they're build-depending on dh-golang, is it sufficient to have just the following line in the control file for snapd:21:04
tyhicksBuilt-Using: ${misc:Built-Using}21:04
tyhicksseems like that's probably not sufficient21:04
tyhicksfor us to track everything21:04
jdstrandtyhicks: no. built using is useful for static build that use golang-*-dev packages from the archive21:27
jdstrandtyhicks: they are using embedded copies and thus can't be tracked21:27
jdstrandtyhicks: unless we put that somewhere21:27
tyhicksoh, right21:27
mcphailkyrofa: sent a PR. I think this fixes things. dav .well-known paths and let'sencrypt both seem to work22:45
mupPR snapcraft#1064 opened: pluginhandler: support colliding with directories <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1064>22:49
kyrofamcphail, thank you for reading the contributing guide :)22:51
mcphailkyrofa: hah!22:51
kyrofaYou're the first to get it right!22:52
kyrofaDang, even the commit message22:52
mcphailkyrofa: having vim set up correctly to nag makes commit messages easier22:52
kyrofamcphail, I've got a few questions-- want to chat here, or want me to comment on the PR?22:53
mcphailkyrofa: either is fine. GH may be better to keep conversation documented22:54
kyrofamcphail, alright22:54
kyrofamcphail, wait, I lied-- I answered my own question. This looks really nice, thank you :) . I'll take it for a spin22:55
mcphailkyrofa: quite late here, so I'll catch any questions in the morning22:56
mupPR snapcraft#1057 closed: godeps plugin: support for go-packages <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1057>23:22

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