/srv/irclogs.ubuntu.com/2016/11/16/#snappy.txt

=== otis is now known as Guest71571
Guest71571I am trying to install ubuntu core on raspberry pi 3 and I am stuck at entering email address from account in store...00:11
Guest71571frustrated, I have an error message for my email, no ssh keys found...00:11
Guest71571can anyone help me??00:11
=== JanC is now known as Guest76305
=== JanC_ is now known as JanC
loolmikedougherty: Hey!00:22
loolmikedougherty: Loïc Minier here00:22
loolmikedougherty: a real Ubuntu xenial environment will be better than a docker environment albeit I had success building snaps in there (perhaps not the docker snap though)00:23
loolmikedougherty: the errors you reported wouldn't seem to relate to docker at all though00:23
mikedoughertyhiyo!00:23
loolmikedougherty: it's pretty late here (CET) and I wont be around tomorrow morning, but otherwise IRC/email are all fine00:24
mikedoughertyright, in fact very strangely i couldn't even find part of that error string in the source that i have installed00:24
loolmikedougherty: you'll also find lots of folks around here and on the snapcraft ML for generic questions not specific to docker00:24
mikedoughertyin a straight xenial environment, things seem to be working fine. i probably should have tried it sooner00:25
loolthat's good news00:25
loolmikedougherty: there were some recent changes to the docker snap that I should keep you up-to-date on00:26
mikedoughertydefinitely something with my docker env. i'll try now on the same system in a similar docker environment, if that works then i'll blame my local system. if not, then likely a snapcraft-in-docker issue.00:26
loolmikedougherty: the two main environments I'm testing it right now are: 1) plain Ubuntu Core series 16 (image made only of snaps - https://www.ubuntu.com/core)  2) Ubuntu classis – xenial + updates, comes with snapd preinstalled00:27
loolwith latest snapd (2.17), the docker interfaces get autoconnected00:27
mikedoughertyinteresting00:27
loolthere's currently a bug breaking docker snap on Ubuntu Core; we think docker is trying to access the wrong cgroup mount point and confinement breaks it00:27
loolthis is to be fixed in the confinement but could also be fixed in docker snap for now00:28
mikedoughertythat likely would have been the next thing i run into, so good to know before i run into that wall00:28
mikedoughertywhat would those changes be for the docker snap?00:28
mupBug #1642090 opened: crontab like snaps or interfaces <Snappy:New> <https://launchpad.net/bugs/1642090>00:29
loolmikedougherty: https://lists.ubuntu.com/archives/snapcraft/2016-October/001382.html was the original announcement with reference to a google doc acting as a mini knowledge base for the docker snap00:29
mikedoughertyi'll have a look through00:29
loolmikedougherty: I'm not sure how it's locating /sys/.../cgroups/cpuset from all mountpoints, perhaps try multiple ones or prefer a shorter path (both of which are a bit ugly); I haven't thought this through00:30
loolmikedougherty: https://bugs.launchpad.net/snap-confine/+bug/1626019 is a bug describing the *opposite* problematic behavior which we worked aorund int he docker snap (see dockerd launcher), but that might not be needed anymore nowadays; the original issue of the mountpoints that should be cleaned up after confinement is setup stands00:31
mupBug #1626019: Docker snap cannot start containers in Classic (but does in Core) <Snappy Launcher:In Progress by zyga> <https://launchpad.net/bugs/1626019>00:31
loolmikedougherty: (this cgroup finding issue is actually recent; this bug is much older)00:33
loolmikedougherty: got to get some sleep, tty soon00:33
mikedoughertysounds good! thanks for the info dump00:33
mupBug #1642117 opened: symlinks to snap commands no longer working <Snappy:New> <https://launchpad.net/bugs/1642117>02:36
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mupPR snapd#2266 closed: tests: run autopkgtests in the autopkgtest.ubuntu.com infrastructure <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2266>06:40
mupPR snapd#2280 closed: interfaces: miscellaneous policy updates (LP: #1639988, 1614269, 1639614, 1605216, 1629996, et al) <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2280>06:45
mupPR snapd#2282 opened: interfaces: remove LegacyAutoConnect() from the interfaces  <Created by mvo5> <https://github.com/snapcore/snapd/pull/2282>07:08
dholbachhey hey08:02
foxmaskbonjello08:05
seb128hey dholbach!08:07
dholbachsalut seb12808:07
didrocksgood morning dholbach, re seb128, hey foxmask08:07
foxmaskdidrocks: o/08:08
dholbachsalut didrocks08:08
seb128re didrocks ;-)08:08
foxmaskmince ca speak french alors ? :)08:08
didrocksfoxmask: as dholbach speaks french very well, I would say yes :)08:10
dholbachpas du tout :)08:10
didrockshéhé08:10
dholbachj'ai oublié tout :-)08:11
foxmaskok forget what I said :)08:11
zygagood morning08:14
mupPR snapd#2283 opened: osutil: make RealUser only look at SUDO_USER when uid==0 <Created by mvo5> <https://github.com/snapcore/snapd/pull/2283>08:29
mupBug #1642183 opened: GRUB shows "Trying to terminate EFI services again" and blocks boot for a while <Snappy:New> <https://launchpad.net/bugs/1642183>08:53
flexiondotorgMorning all :-)09:04
flexiondotorgdidrocks, I updated my podpublish snap last night.09:05
flexiondotorghttps://code.launchpad.net/~flexiondotorg/podpublish/+git/podpublish/+ref/master09:05
flexiondotorgAnd ran into an issue.09:05
flexiondotorgI can no longer build this snap on LP :-(09:06
flexiondotorgBecause the LP build step has no network capability.09:06
flexiondotorgAnd it appears snapcraft is trying to download requirements it already had from the the pull step.09:07
flexiondotorghttps://launchpadlibrarian.net/293608654/buildlog_snap_ubuntu_xenial_arm64_podpublish_BUILDING.txt.gz09:07
flexiondotorgI tried several things to work around this.09:07
flexiondotorgPutting everything from 'pip freeze' from my virtualenv into requirement.txt09:08
flexiondotorgChanging setup.py to not return any requirements when invoked for a bdist or build.09:09
didrocksflexiondotorg: yeah, indeed, this change was wanted by the launchpad team. You need now to refactor to have this only in the pull step as you told09:09
flexiondotorgI finally gave up at 2am and built a package locally and uploaded it to the store.09:09
didrocksI don't think that's something which is going to change in the forseable future09:10
didrocksbut, the standards plugin should already comply with this, don't they?09:10
flexiondotorgSo I did refactor setup.py to not request any requirements in the build step.09:10
didrockshum, the issue is that you have multiple requirements.txt09:11
didrocksthe python plugin will pick one and install everything for you in the pull step09:11
didrocksthen, your requirements should be there once setup.py load them, shouldn't they?09:11
didrocks(maybe your setup.py tries to be too clever?)09:11
flexiondotorgBut snapcraft appears to invoke pip bdist_wheel in the build step anyway.09:12
flexiondotorgWhich attempts to download requirement that were already gathered in the pull step.09:12
flexiondotorgAs far as I can tell, it is not possible to build a snap in LP for Python package that ships a requirements.txt.09:12
didrocksflexiondotorg: I'm pretty sure with a standard setup.py that was tested (or I hope so), sergiusens did refactor the plugin recently09:13
didrockspip bdist_wheel doesn't redownload the requirements if they were already pulled (at least, on ubuntu make)09:13
didrocksI wonder if the issue isn't somewhere else09:13
flexiondotorgDownload error on https://pypi.python.org/simple/cffi/: [Errno -2] Name or service not known -- Some packages may not be found!09:13
flexiondotorg  Couldn't find index page for 'cffi' (maybe misspelled?)09:13
flexiondotorg  Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!09:13
flexiondotorg  No local packages or working download links found for cffi>=1.4.109:13
flexiondotorgThose are lines from the build log in the build step.09:14
flexiondotorgcffi was download in the pull step.09:14
flexiondotorgI wonder if one the required packages is forcing a download.09:15
didrocksflexiondotorg: did you try to remove all the "*_requires" for now?09:15
didrocksin setup.py09:15
flexiondotorgdidrocks, Yes, I tried that last nights.09:16
didrocksto at least test this isn't what causes distutils to repull09:16
didrocksdidn't work, still the same?09:16
flexiondotorgThat was how the process used to be.09:16
zygaflexiondotorg: I saw sergio work on this issue at the last sprint09:16
zygaflexiondotorg: ask him later today09:16
flexiondotorgzyga, OK. Thanks.09:16
flexiondotorgdidrocks, To get podpublish building in LP (a couple of months back) I crippled setup.py to not return/request any requirements.09:18
flexiondotorgBut that no longer works in this case.09:18
didrocksflexiondotorg: when was the last time you tried a build on launchpad which passed btw? I don't rememer when this change was deployed, but at least, it's a couple of months (just trying to find if we had an email announcement)09:18
didrocksflexiondotorg: ok, is it exactly the same failure than th one you pasted above in that case? (without those _require statements?)09:19
flexiondotorgJune/July.09:19
didrocksok, that makes sense time-wise at least09:20
didrockslet's see once Sergio is around as it seems he already worked on this for python09:20
flexiondotorgkyrofa, Helped me do the initial publishing to LP.09:20
didrocks(I only needed to change some things on npm/bower myself)09:20
morphis__zyga: ping09:21
flexiondotorgAnd this was required, which no longer works :-(09:21
flexiondotorghttps://git.launchpad.net/podpublish/commit/?id=ba69bf886f3125173af1b0b08d2862ab2f2e27d309:21
didrocksyeah, that should be what is working still nowdays09:22
didrocksdo you have the corresponding exact launchpad build log link?09:22
flexiondotorgFor when it worked?09:22
didrocksno, the first build that failed09:24
didrockswith those requires commented09:24
mupPR snapd#2282 closed: interfaces: remove LegacyAutoConnect() from the interfaces  <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2282>09:25
flexiondotorgdidrocks, I'll drop them again and rebuild to get a log.09:27
mupPR snapd#2271 closed: snap: add support for classic confinement <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2271>09:29
didrocksflexiondotorg: thx!09:30
mupPR snapd#2284 opened: tests: add debug to all flaky expect tests <Created by mvo5> <https://github.com/snapcore/snapd/pull/2284>09:34
zygamorphis__: hey09:38
bert269I installed Ubuntu core 16 on a Raspberry Pi and need to login local. How do I do tgat?09:39
morphis__zyga: hey!09:40
bert269I do not have another host I can SSH from. I  tried my SSO credentials and it's not working either09:40
bert269Hi09:41
morphis__zyga: I am wondering if there are any plans around better process/service management inside snaps09:41
morphis__zyga: having the problem right now that I need to restart one of my services from another09:41
morphis__zyga: talking to systemd isn't possible and kill(..) too as using the process-control interface is quite too priviledged09:41
zygamorphis__: you can kill processes from your own snap09:42
zygamorphis__: I think we should allow talking to systemd to manage just the subset09:42
zygamorphis__: perhaps via snapctl09:42
zygamorphis__: but I don't know of any plans yet09:43
morphis__zyga: I get a permission denied for a kill -TERM $PID call09:43
morphis__because the kill syscall is denied09:43
zygamorphis__: odd, can you report that, I'll try to fix it today09:44
morphis__zyga: I thought that is what we have https://github.com/snapcore/snapd/blob/master/interfaces/builtin/process_control.go for09:45
morphis__zyga: so how is it supposed to work then if not using the process control iface?09:45
zygamorphis__: process control was for unconstrained process control09:46
zygamorphis__: you should be able to kill processes from your own apparmor label09:46
zygamorphis__: that's easy to do09:46
morphis__zyga: ok, that would be awsome09:46
zygas/kill/signal/09:47
morphis__zyga: using snap-confine 1.0.43 here09:47
flexiondotorgdidrocks, Here you go:09:47
flexiondotorghttps://launchpadlibrarian.net/293648430/buildlog_snap_ubuntu_xenial_amd64_podpublish_BUILDING.txt.gz09:47
zygamorphis__: that would be in apparmor profiles in snapd09:47
zygamorphis__: I don't think we need any snap-confine changes09:47
morphis__ah09:47
flexiondotorgBuilt from:09:48
flexiondotorghttps://git.launchpad.net/podpublish/commit/?id=edd30ec9016840e870f1c8e4c2fca516231b351b09:48
morphis__zyga: let me check, maybe I can fix that myself09:48
zygamorphis__: look at the base profile, it should deny signals to unconfined labels09:49
zygamorphis__: and it should also allow signals to the same label09:49
zygamorphis__: same == the label of the snap09:49
morphis__hm, it does already09:50
mupPR snapd#2242 closed: tests: do not use hello-world in our tests <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2242>09:50
zygamorphis__: what is the denial you see?09:50
morphis__signal peer=(snap.@{SNAP_NAME}.*),09:50
morphis__[73180.309289] audit: type=1400 audit(1479287611.329:127): apparmor="DENIED" operation="capable" profile="snap.wifi-ap.management-service" pid=11539 comm="ap.sh" capability=5  capname="kill"09:50
zygamorphis__: is the service running as root and the signal sender as non-root?09:51
zygamorphis__: this is a different denial09:51
zygamorphis__: right?09:51
zygamorphis__: that's CAP_KILL09:51
morphis__zyga: snap.wifi-ap.management-service is a systemd service so running as root09:51
morphis__yeah09:51
zygamorphis__: so the signal is already allowed and this is a different problem09:51
zygamorphis__: you'd need your own tiny service that kills the other one09:52
morphis__zyga: its actually mgmt-service -> fork ap.sh -> fork hostapd09:52
morphis__ap.sh calls kill -TERM $HOSTAPD_PID09:53
zygamorphis__: in any case, I think you are good09:53
morphis__zyga: why do I get then:09:54
morphis__Nov 16 10:13:31 nirvana snap[11342]: ++ read DNSMASQ_PID09:54
morphis__Nov 16 10:13:31 nirvana snap[11342]: ++ kill -TERM 1160909:54
morphis__Nov 16 10:13:31 nirvana snap[11342]: /snap/wifi-ap/x7/bin/ap.sh: line 48: kill: (11609) - Operation not permitted09:54
morphis__actually I am not dropping capabilities anywere09:54
zygamorphis__: is the sender running as root?09:55
morphis__yes09:55
zygahmm09:55
zygamorphis__: the denial above is for permission bypass09:55
zyga       CAP_KILL09:55
zyga              Bypass permission checks for sending signals (see kill(2)).  This includes use of the ioctl(2) KDSIGACCEPT operation.09:55
zygamorphis__: ah, is there an identical rule for signal reception?09:55
zygamorphis__: that a process can receive a signal from the same snap?09:56
morphis__you mean in apparmor?09:56
zygamorphis__: if not, you are invincible ;-)09:56
zygayes09:56
morphis__rule says, "Allow apps from the same package to signal each other via signals"09:56
morphis__zyga: https://paste.ubuntu.com/23484812/09:57
morphis__but looks like we need to allow cap_kill09:57
zygamorphis__: that's only half of the rule09:57
zygamorphis__: looks like a silly bug09:57
zygamorphis__: look at...09:57
zygamorphis__: no09:57
zygamorphis__: cap_kill == kill anything09:57
zygamorphis__: one sec09:58
zygahmmm09:58
morphis__isn't that the capability to call kill at all and further limitations are done through the apparmor rule?09:58
zygaI was partially wrong09:58
zygamorphis__: no, because cap_kill is like sudo, it's not something you should need here09:58
morphis__ok09:58
zygamorphis__: https://github.com/snapcore/snap-confine/blob/master/src/snap-confine.apparmor.in#L31809:58
zygamorphis__: the trouble is that signal implies singal (send,receive)09:59
zygamorphis__: so something else (not apparmor) is in the way09:59
zygamorphis__: can you tweak the profile locally09:59
zygamorphis__: make it say signal (send,receive) explicitly09:59
morphis__sure10:00
morphis__still the cap_kill deny10:00
zygamorphis__: can you triple check the UID of both processes?10:01
zygamorphis__: if this fails I'd ask jdstrand, no idea but I think cap_kill is the wrong answer10:01
morphis__zyga: both root10:01
morphis__zyga: let me open a bug for this10:02
zygamorphis__: thanks10:02
zygamorphis__: unless we drop all caps?10:03
zygamorphis__: and we're root but really without capkill10:03
morphis__zyga: can I check the caps of a process somewhere?10:03
zygayes10:04
zygapscap10:04
morphis__zyga: ah wait, there is a different problem10:06
morphis__dnsmasq switches to nobody10:07
morphis__hostapd not, but dnsmasq does10:07
zygaha10:08
morphis__let me change that10:09
morphis__zyga: one other thing I wanted to ask you about, what is the classic confinement mode going to be?10:14
zygamorphis__: similar to no confinement at all10:16
zygamorphis__: we're meeting today to discuss some aspects10:16
morphis__zyga: ok10:17
morphis__zyga: so a more official "devmode by default" thing10:17
zygamorphis__: no, many changes apart from confinement10:18
zygamorphis__: no rootfs change10:18
zygamorphis__: and also (hopefully) snapcraft logic to use core snap for linker and libraries10:18
morphis__ok10:18
zygaogra_: on bbb, the first boot tasks fail for me with10:47
zyga2016-11-16T10:46:47Z ERROR cannot deliver device serial request: unexpected status 40010:47
=== hikiko is now known as hikiko|afk
zygamvo, Chipaca, pedronis: docker seems down, this means travis fails bootstrap and we cannot test11:05
zygae.g. https://travis-ci.org/snapcore/snapd/jobs/17633541011:05
mupPR snapd#2058 closed: interfaces: add ofono interface <Created by alfonsosanchezbeato> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/2058>11:17
abeato\o/11:21
abeatoChipaca, https://github.com/snapcore/snapd/pull/2252 was approved too ;)11:22
mupPR snapd#2252: interfaces: add unconfined access to modem-manager <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/2252>11:22
Chipacaabeato: patience :-)11:23
abeatoChipaca, lol, just in case you did not see that one :p11:24
abeatoand thanks11:24
mupPR # closed: snapd#1613, snapd#2083, snapd#2087, snapd#2104, snapd#2112, snapd#2113, snapd#2120, snapd#2128, snapd#2129, snapd#2153, snapd#2193, snapd#2194, snapd#2199, snapd#2200, snapd#2202, snapd#2209, snapd#2211, snapd#2215, snapd#2223, snapd#2226, snapd#2230, snapd#2234, snapd#2236,11:24
mupsnapd#2249, snapd#2251, snapd#2252, snapd#2256, snapd#2262, snapd#2263, snapd#2264, snapd#2268, snapd#2269, snapd#2270, snapd#2273, snapd#2274, snapd#2275, snapd#2276, snapd#2277, snapd#2278, snapd#2279, snapd#2281, snapd#2283, snapd#228411:24
Chipacaabeato: currently looking at 2083, I'll get there soon enough11:24
abeatocool11:24
zygamvo: does this look good to you http://pastebin.ubuntu.com/23485134/11:28
zygamvo: you were doing some changes to make various versions of systemd test the same11:28
oSoMoNI’m trying to use the ubuntu-app-platform content interface, and getting the following error message when launching my app:11:34
oSoMoNcannot mount /snap/ubuntu-app-platform/8 at /snap/webbrowser-app/x1/ubuntu-app-platform with options bind,ro. errmsg: No such file or directory11:34
oSoMoNany idea what the problem is?11:34
renato__oSoMoN, hey11:40
oSoMoNhey renato__11:41
renato__oSoMoN, you need to install a empty directory with name "ubuntu-app-platform"11:41
oSoMoNrenato__, okay. That’s not mentioned anywhere in the instructions to use the content interface, the doc needs updating (or is it a bug that will eventually be fixed')11:42
renato__oSoMoN, the interface you mount the content inside of this dir. The interface itself does not have permission to create dir on the app side.11:42
renato__oSoMoN, yes probably the doc needs update11:42
oSoMoNrenato__, thanks for the help, I’m trying that now11:44
renato__mvo, hey could you help me with some apps that are stuck on store?11:47
renato__jdstrand, hey, I saw that you approved my apps. Thanks.11:48
Chipacamatteo: #2193 has conflicts11:49
renato__guys I am trying to remove a snap app, and I am getting this error11:59
renato__2016-11-16T08:59:06-03:00 ERROR cannot remove snap file "ubuntu-calendar-app", will retry in 3 mins: umount: /snap/ubuntu-calendar-app/x1: not mounted12:00
renato__ant it never get removed12:00
renato__zyga, any hint about this ^^^12:18
zygarenato__: looking12:23
zygarenato__: were you using snap try?12:23
zygarenato__: you can snap abort the change12:23
zygarenato__: and (if it was snap try) restory the directory and the bind mount12:23
zygarenato__: to remove the snap12:23
renato__zyga, no I am not using snap try.12:25
renato__should I use that?12:25
renato__zyga, how to use that?12:26
zygarenato__: no, if you are not using snap try then don't follow the rest of my advice12:26
zygarenato__: can you tell me what you did prior to this failure?12:26
renato__zyga, not, sure just reboot the machine12:27
renato__zyga, it is a vm12:27
renato__zyga, I was just installing and removing app as normal.12:30
renato__zyga, any workaround that I can use to continue working? :D12:35
zygarenato__: can you pastebin the output of "snap changes" please12:41
renato__zyga, sure12:41
renato__zyga, http://paste.ubuntu.com/23485397/12:42
renato__zyga, I have been trying to fix that as you can see in the changes.12:43
zygarenato__: how about "snap change 186"12:44
renato__http://paste.ubuntu.com/23485400/12:45
renato__zyga, ^12:45
zygarenato__: hmm, can you look at /snap/ubuntu-calendar-app/x112:46
zygarenato__: is that a mount point?12:46
zygarenato__: does "snap list" show it to be installed?12:46
renato__zyga, ubuntu-calendar-app             x1               broken12:46
renato__zyga, yes the dir exists12:46
zygarenato__: is it empty12:47
renato__yes12:47
zygarenato__: can you look at /var/lib/snapd/snaps12:53
zygarenato__: look for the sideloaded revision of this snap, is there a .snap file there?12:53
renato__zyga, http://paste.ubuntu.com/23485419/12:54
renato__yes there is a snap for x1 version12:54
zygarenato__: ok12:54
zygarenato__: can you do systemctl status and look for the mount unit for that snap12:54
zygarenato__: (I don't remember the name)12:54
zygarenato__: then do systemctl status name-of-that-unit.mount12:54
zygarenato__: and see what the output is12:54
zygatvoss: re, how's stuff?12:55
renato__zyga, what I should look for, exactly? http://paste.ubuntu.com/23485428/12:56
zygarenato__: ah, sorry that doesn't list mount units12:57
zygarenato__: can you go to /etc/systemd/system/12:57
zygarenato__: you will be able to see the various .mount units12:58
renato__yes12:58
zygarenato__: use that as a hint to systemctl status the right one (careful with quoting)12:58
renato__snap-ubuntu\x2dcalendar\x2dapp-x1.mount12:58
zygayes, that one12:59
zyga(crazy systemd escape requirements)12:59
renato__zyga, http://paste.ubuntu.com/23485437/12:59
zygarenato__: very insteresting13:00
zygarenato__: can you report that long with snapd version and kernel version please?13:00
zygarenato__: and don't change your system for a while13:00
renato__zyga, :(13:00
zygarenato__: one more check, look at that snap file and see if it's empty by any chance?13:00
zygarenato__: (truncated etc)13:00
zygarenato__: I have to run to a standup now, ttyl13:01
renato__zyga, yes it is empty: -rw-------  1 root root         0 nov 11 20:07 ubuntu-calendar-app_x1.snap13:01
zygarenato__: please include that in your report13:03
zygarenato__: I think this explains a lot13:03
tvosszyga: a step further, tests/upgrade/basic breaks in a different way now: http://pastebin.ubuntu.com/23485459/13:10
zygatvoss: looking13:10
zygahmm hmm13:10
zygatvoss: is everything pushed? I'll pull and see13:11
tvosszyga: yup13:11
zygak pulling13:11
renato__zyga, https://bugs.launchpad.net/snappy/+bug/164225713:11
mupBug #1642257: Fail to remove app <Snappy:New> <https://launchpad.net/bugs/1642257>13:11
zygarenato__: thank you13:12
zygarenato__: did you have a power failure or something like that?13:12
zygarenato__: I wonder why that snap got empty13:12
tvosszyga: --allow-downgrades is certainly needed in tests/upgrade/basic/task.yaml when instaling the previous version13:12
renato__zyga, welcome.13:12
mupBug #1642257 opened: Fail to remove app <Snappy:New> <https://launchpad.net/bugs/1642257>13:13
renato__zyga, I am not sure. But since this is a vm. I could kill it by mistake13:13
zygarenato__: how many times did you install that snap, what is the time snap (roughly)13:13
renato__zyga, Im testing the plataform content share. I installed a lot of snap in the last days13:14
renato__What do you mean by "time snap"???13:14
zygarenato__: time span, roughly how many hours/days13:14
renato__zyga, a lot, probably more than 20 times a day13:15
renato__not the same snappy, but different versions13:15
davidcalletimp, quick heads-up, I've changed the snapcraft docs link in your qt snap blog post, to direct to /docs instead of /docs/snaps, the latter is a pretty weak page that's pending an overhaul13:16
zygasergiusens: are you up for the meeting in 10 minutes?13:20
sergiusenszyga I am awake, yes13:23
zygasergiusens: great, see you soon13:23
sergiusenszyga thanks for the reminder, I am getting no notifications/reminders lately13:24
renato__zyga, do I still need to keep my system freeze. Or can I somehow remove the broken package?13:33
Elleojdstrand: am I right in thinking there's nothing currently that does the equivelant of APP_ID_DBUS? The helper functions you pointed to me earlier in the week do the job of APP_PKGNAME nicely, but APP_ID_DBUS makes those values usable in dbus paths (e.g. snap.podbird.podbird -> snap_2epodbird_2epodbird)13:35
jdstrandmvo: woot! nice find for the lxc bug. curious-- am I entering the container wrong?13:39
jdstrandElleo: let me check something13:40
Elleojdstrand: okay, thanks13:40
=== hikiko|afk is now known as hikiko
jdstrandElleo: when we last spoke I was thinking only of the security label and had forgotten that trusted helpers sometimes use the security label in their paths and need something like APP_ID_DBUS13:42
mvojdstrand: well, sort of. sudo -u keeps some SUDO_* vars around that confused snapd, but really its a bug in snapd13:42
pedronisjdstrand: hi, we merged removing LegacyAutoConnect btw, mvo did the work13:42
jdstrandElleo: my recollection is that this was removed from snappy because at the time nothing was using it (I mentioned we would need it for personal but it was decided we would just add it back later13:43
jdstrandpedronis: I saw that13:43
* jdstrand hugs mvo13:43
jdstrandmvo: otoh, do you know of a better way to enter the chroot as non-root?13:43
Elleojdstrand: ah right, shall I write an equivelant helper function in utils.go to handle that then?13:43
jdstrandElleo: let me get you the commit that pulled it out13:43
Elleojdstrand: ah, cool, thanks13:44
pedronisjdstrand: it was on my todo list but mvo graciously got there first13:44
jdstrandpedronis: yeah, it came up in a PR the other day that it was adding confusion13:45
mvojdstrand: alternatively you could use "su -l -s /bin/sh"13:47
mvojdstrand: "su -l -s /bin/sh your-user" of course13:47
jdstrandElleo: dbus.SafePath() was not removed. 578d0c80f71c55c7b8a9e40382b62fd25dbd836d removed APP_ID_DBUS. you can add it back in interfaces/apparmor/template_vars.go. I think you should have SNAP_ID_DBUS for snap.name.app. I don't know if you need SNAP_NAME_DBUS for SNAP_NAME or not, but if you do, start with that name13:51
jdstrandmvo: yeah-- I was more thinking of an lxc-y way of entering it. thanks!'13:51
liuxgjdstrand, I have attached the .snap file for the input method. did you see it? thanks13:52
jdstrandElleo: so SNAP_ID_DBUS -> APP_ID_DBUS and if needed SNAP_NAME_DBUS -> APP_PKGNAME_DBUS13:52
jdstrandliuxg: I haven't yet but will take a look13:52
jdstrandliuxg: thanks13:52
liuxgzyga, my colleague has a simple slot use case like http://paste.ubuntu.com/23485602/.. May I know whether it is fine for a snap app? thanks13:53
jdstrandElleo: I'm not in love with 'SNAP_ID_DBUS'13:53
liuxgjdstrand, you are welcome. I think you probably did not build it successfully. the snap file is pretty big.13:53
jdstrandElleo: lets do SNAP_LABEL_DBUS. I think that will fly better13:54
jdstrandliuxg: yeah, I ran snapcraft and a snap popped out. I didn't try to debug further13:54
liuxgjdstrand, my colleauge and I both successfully built the project. I think the source code should be fine :)13:55
* jdstrand shrugs13:55
jdstrandgit clone followed by snapcraft13:56
Elleojdstrand: okay, cool; thanks very much :)13:56
liuxgjdstrand, the UI is like http://imgur.com/a/fccq5, you can select the "search" button to input some Chinese characters. Should you have any problem with it, please let me know. thanks13:58
timpdavidcalle: okay, thanks.14:01
liuxgjdstrand, if a snap uses "slot" instead of "plug" like the way in http://paste.ubuntu.com/23485602/, the snap will be subject to manual review, right? It in fact can access the audio hardware.14:04
zygaslangasek: hey, just FYI, it looks like arm64 build of snapd in sid is not migrated/up to date14:13
matteoChipaca: I will rebase it14:13
Chipacamatteo: 'k14:13
iceyI'm trying to use the rust plugin for snapcraft on launchpad, and I'm failing builds with a lot of missing dependencies: curl and file so far; should these be added to the rust plugin or somewhere else?14:17
jdstrandliuxg: re slots-- most of the time, yes. this is all defined in the basedeclaration.go file. the reason why is that the slot side gives privileged access to the system and need a snap declaration to allow it14:19
jdstrandliuxg: is this just a theoretical example or are you trying to work around a permissions problem that the pulseaudio slot happens to give you?14:19
jdstrandI guess it is an example base on the text in the snapcraft.yaml14:20
mterryIf one of the packages in a stage-packages list is uninstallable, what does snapcraft do?  (I'm maybe seeing that it quietly doesn't include that package?)14:20
Elleo  /2214:21
flexiondotorgBest lxd name for a cleanbuild e-v-e-r - snapcraft-easily-secure-gnu14:21
iceyare the builders on launchpad restricting access to some egress? this builder grabbed the rust installer fine but couldn't resolve github.com to fetch dependencies: https://launchpadlibrarian.net/293675704/buildlog_snap_ubuntu_zesty_amd64_rust-hello_BUILDING.txt.gz14:22
liuxgjdstrand, yes, it is a demo example from my colleague.  the script is like http://paste.ubuntu.com/23485745/, from my perspective, we normally only use plug instead of slot. I want to know what is the limitation of using slot in a snap app? thanks14:25
flexiondotorgicey, There is no network connectivy during the build step on LP, only the pull step.14:25
popeymterry: in my experience it just stops14:25
iceyflexiondotorg: that's unfortunate, but not exactly surprising14:25
mterrypopey: I see that for build-packages.  But have hints that does different on stage-packages14:25
flexiondotorgicey, I'm hoping to discuss with sergiusens today.14:26
mterryAt least a silo snap build quietly skipped it14:26
flexiondotorgI've got a Python package that won't build on LP, even though I've pulled everything in the pull step.14:26
sergiusensflexiondotorg oh, really? :-)14:26
flexiondotorgo/14:27
flexiondotorgYep.14:27
flexiondotorgI discussed with didrocks earlier.14:27
flexiondotorgI have a Python project.14:27
qenghoicey: bring your dependencies in as other "part"s.14:27
flexiondotorgsnapcraft pulls all requirements.txt in the pull step.14:27
flexiondotorgAnd then pulls again in the build step.14:27
iceyflexiondotorg: what are the odds of network acecss during build? I can work around it by vendoring deps; qengho cargo (the tool used to build rust binaries) also generally handles dependency management and fetching14:28
flexiondotorgAnd the build fails.14:28
flexiondotorgicey, I've been told unlikey.14:28
iceyflexiondotorg: then I'll continue with the idea of vendoring the deps into the project :-/14:28
qenghoicey:   part: rustthing: after: [ partnamethatprovidesthethingyounormallydownload ]14:28
liuxgjdstrand, what is the fundamental difference between using a slot and using a plug?14:29
qenghoOne provides, one uses.14:29
sergiusensflexiondotorg ok, now I can type better without a baby between keyboard and parent :-)14:29
flexiondotorgsergiusens, Here is my snapcraft.yaml14:29
iceyqengho: is it possible to have a part that just runs a bash command?14:29
flexiondotorghttps://git.launchpad.net/podpublish/tree/snapcraft.yaml14:29
sergiusensflexiondotorg is it using a VCS dependency? I have a tentative solution for that14:29
qenghoicey: Yes. You might have to make your own plugin, but yes, totally.14:30
flexiondotorgsergiusens, Here is the failure log14:30
flexiondotorghttps://launchpadlibrarian.net/293648430/buildlog_snap_ubuntu_xenial_amd64_podpublish_BUILDING.txt.gz14:30
flexiondotorgWhich still happens even after doing this:14:30
flexiondotorghttps://git.launchpad.net/podpublish/commit/?id=edd30ec9016840e870f1c8e4c2fca516231b351b14:30
iceyqengho: I can pmodify the Rust plugin to pull deps in the pull step...?14:31
renato__jdstrand, hey, can I auto-connect to content-share interface? Somehow specify the auto-connect on snapcraft file?14:31
flexiondotorgsergiusens, I'm happy to help test/fix. I'm building snaps on my own computer like an animal right now ;-)14:31
sergiusensflexiondotorg hmm, I thought I resolved this bug...14:32
sergiusensflexiondotorg do we have a bug for this?14:32
flexiondotorgsergiusens, Not yet. I was waiting to talk with you first.14:33
sergiusensqengho icey we are going to allow scriplets in parts, stay tuned14:33
iceyis it possible to ship a custom plugin with a snap? I'd love to test a change on the LP builder14:33
iceysergiusens: it kind of makes more sense (I think) in the rust plugin, as it's something that every rust snap will need to do on LP14:34
sergiusensflexiondotorg I know what the problem is; I thought I had fixed it, I guess I didn't14:34
flexiondotorg:-)14:34
sergiusensicey you can add a custom plugin to your snapcraft project14:34
flexiondotorgsergiusens, Do you want a new bug for this?14:34
sergiusensnot sure what a custom plugin for a snap would mean14:35
flexiondotorgIf so, on GH or LP?14:35
sergiusensflexiondotorg there is no bug :-) LP; GH issues are closed ;-)14:35
sergiusensflexiondotorg are you subscribed to snapcraft-announce? :-)14:35
iceysergiusens: can I overwrite a normal plugin within my project? or will I have to wait on it getting into snapcraft proper?14:35
flexiondotorgYep, am subscribed.14:35
sergiusensicey copy the plugin14:36
sergiusensflexiondotorg https://github.com/snapcore/snapcraft end of page for link to tracker :-)14:36
iceysergiusens: copy to where?14:36
sergiusensicey http://snapcraft.io/docs/build-snaps/plugins14:37
qenghoicey: If you add a  parts/plugins/x-iceyplugin.py  to your project, then you can use "iceyplu" in your YAML.14:41
qenghoiceyplugin14:42
sergiusensflexiondotorg btw, any updates on the app indicator hack you had for me?14:42
flexiondotorgsergiusens, Trevinho see above ^14:43
flexiondotorgsergiusens, Trevinho has been working on it.14:43
qenghoWhen should we expect the configure hook to work in snappy on classic?14:43
* Trevinho reads14:44
sergiusensqengho once the latest snapd migrates into -updates14:44
qenghothx.14:45
flexiondotorgTrevinho, sergiusens is asking about the indicator icons in snaps.14:46
jdstrandliuxg: slots provide resources and slots consume them14:46
jdstrandliuxg: you might be interested in zyga's blog series: http://www.zygoon.pl/search/label/snappy14:47
flexiondotorgsergiusens, Here's you bug :-) https://bugs.launchpad.net/snapcraft/+bug/164228114:47
mupBug #1642281: Unable to build python based snap on Launchpad <Snapcraft:New> <https://launchpad.net/bugs/1642281>14:47
jdstrandrenato__: you cannot specify auto-connect in the snapcraft.yaml. content is supposed to auto-connect from the same publisher14:47
Trevinhosergiusens: so, I'm currently fixing the various qt-sni, appmenu-qt and libappindicators to work propery... This last one still has some problems if confined because interface didn't cover properly all the dbus methods, but jdstrand fixed it... However the idea is to save icons in readable places such as ~/.cache (or better when possible in xdg runtime dir)14:48
Trevinhoso that unity can read them...14:48
Trevinhofor themed icons, instead, we can just pass to compiz the proper $SNAP/usr/share/icons as theme path (or ~/.local/share/icons), and that will work14:49
liuxgjdstrand, yes, I have read that blog, and I even made the slot working. My question is whether it is fine to use a slot as the way in the snap example.. My understanding is that "slot" is normally used in a service provider, and it needs to be reviewed.14:50
Trevinhohowver, I'm loving how I can distribute snaps with my patched libraries without having to worry about them to reach the distro :-D.14:50
Trevinhoso sergiusens once I've the branches ready you could rebuild your telegram app properly14:50
sergiusensTrevinho oh, the telegram app uses forked Qt ;-)14:51
Trevinhosergiusens: well, appmenu-qt should be still there, isn't it?14:52
Trevinhosergiusens:  I mean the implementation of the tray icon is still a plugin14:52
jdstrandliuxg: you use a slot if you are providing an implementation for that slot. you used the pulseaudio slot. this snap would be expected to provide pulseaudio functionality such that if something on the system used 'plugs: [ pulseaudio ]' that that snap would be fully functional14:53
sergiusensTrevinho http://paste.ubuntu.com/23485830/14:53
jdstrandliuxg: think of interfaces as contracts between the slot side and the plugs side14:53
Trevinhosergiusens: I don't see any qt bit there... statically linked I guess, right?14:54
jdstrandliuxg: if the slots side isn't honring the contract (ie, in this case, using pulseaudio but (perhaps) not providing it, then it has broken the contract14:54
liuxgjdstrand, an interesting thing is that http://paste.ubuntu.com/23485745/ shows the result if "pulseaudio" slot  is used that way.14:56
zygajdstrand: hey14:56
zygajdstrand: you may have noticed I pushed some patches into your branch14:56
liuxgjdstrand, the snap does not provide the implementation for the slot, but just uses it. So, this snap breaks the contract, and it is not the normal use case of slot?14:58
iceyhow long does it generally take for a commit that lands in master to be available on the LP builders?14:59
mupPR snapcraft#908 opened: Let Rust plugin fetch dependencies in pull <Created by ChrisMacNaughton> <https://github.com/snapcore/snapcraft/pull/908>15:01
jdstrandliuxg: if the snap only uses the slot, you should use plugs, not slots15:03
jdstrandliuxg: you are correct-- a snap that does not provide the implementation for the slot should not use slots15:03
jdstrandzyga: I haven't circled all the way around yet, but yes15:04
liuxgjdstrand, what happens if a developer uses this way in the app? should we have some check for this when publishing the app?15:04
jdstrandliuxg: on upload, the snap would be flagged for manual review. then a reviewer would ask questions15:15
liuxgjdstrand, if there is no implementation of the interface, the snap will be rejected? thanks15:16
qenghoIs there a way to safely ship a snap that has a configure hook? I'm worried that the current snapd poisons configure hooks for a while. I can never know if someone has a snapd that lets a hook exist.15:16
zygaqengho: I think you can use assumes stanza15:17
zygaqengho: "assumes: ..."15:17
zygaqengho: that snap won't install unless snapd supports a given feature15:17
zygaqengho: I think there's one for hooks15:18
qenghozyga: like, it isn't selected for install from the store then, and falls back?15:18
zygaqengho: but since 2.17 AFAIR we have dynamic assumes, so you can just say "assumes: snapd-2.17"15:18
jdstrandliuxg: yes, it would be rejected15:18
zygaqengho: if you add that to a snap and try to install it snapd will give you an useful message and stop15:18
coreycbsergiusens, hi, for openstack the upstream python projects have tox targets for generating some of the config files.  they are typically just commands that are shipped either in the same source tree or in another python project.15:22
qenghozyga: so once I ship a version with a configure hook, users with some versions of snapd are stuck. The difference is they might learn why if they go type "snap {refresh,install}" in a terminal?15:22
coreycbsergiusens, we're thinking of extending the python plugin with an openstack plugin, but would be curious on your thoughts15:23
qenghoI guess if their snapd is old enough, it might also still work without configure interface.15:24
sergiusenscoreycb there's a feature coming that might help you out with this, but given you will have to copy paste this all over and an openstack plugin would be used in more than one project (it is openstack after all) a specific plugin would be just fine15:25
sergiusenscoreycb you can inherit from the python one if needed15:26
coreycbsergiusens, what's the upcoming feature?15:27
sergiusenscoreycb scriptlets for parts, prepare, build, install15:28
sergiusenserr... parts: prepare, build, install15:28
liuxgjdstrand, thanks for your explanation :)15:28
coreycbsergiusens, ah right i've heard about that.  would i be able to get my hands on a dev version of that?15:29
zygaqengho: well, core refreshes automatically15:29
zygaqengho: and they will be stuck with the old version15:29
zygaqengho: I think that is a very sensible behavior15:29
mupBug #1583514 changed: firewall-control and ip[6]table_filter module loading <snapd-interface> <Snappy:Fix Released by stolowski> <https://launchpad.net/bugs/1583514>15:37
jdstrandliuxg: yw15:39
Trevinhosergiusens: anyway telegram usess libappindicator under the hood.... https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/SourceFiles/platform/linux/linux_libs.cpp#L11916:03
zygatvoss: one observation that is interesting16:13
zygatvoss: when the test failed, I ran "mount"16:13
zygatvoss: qemu:ubuntu-14.04-64 .../tests/main/interfaces-mount-observe# mount16:14
zygatvoss: that didn't show any of the preserved namespaces16:14
zygatvoss: (the bind mounts from nsfs)16:14
zygatvoss: ah, ignore me, it's just mount being dumb (smart)16:15
zyga143 47 0:3 mnt:[4026532106] /run/snapd/ns/mount-observe-consumer.mnt rw - nsfs nsfs rw16:15
zygait's there16:15
matteoChipaca: I've refreshed the PR, but I have to edit the wiki as I had edited interfaces.md16:15
matteobut I'll do it only after the PR merge16:15
zygahmm16:15
zygatvoss: but interestignly, the /snap is not16:15
zygaqemu:ubuntu-14.04-64 .../tests/main/interfaces-mount-observe# systemctl status snapd-mount.service16:16
zyga   Active: inactive (dead)16:16
zygatvoss: maybe something eagerly cleans up16:16
zygatvoss: (purge test?)16:16
zygatvoss: and then we're broken16:16
zygatvoss: what do you think?16:16
zygatvoss: I'll remove the stop condition16:17
zygatvoss: and make this a oneshot service16:17
zygatvoss: just a longshot16:17
tvosszyga: without a stop condition, we will run into issues in snapd.postrm16:17
zygatvoss: will we? it's just a bind mount16:17
zygatvoss: though...16:17
zygatvoss: you mean removal of /snap?16:17
tvosszyga that tries to remove /snap and the removal fails16:17
tvossyup16:17
zygatvoss: did you change that to be opportunistic?16:18
tvossnope16:18
zygatvoss: ok, so when should this be applied16:18
zygatvoss: sorry, to rephrase16:18
zygatvoss: when should this unit be "up"16:18
zygatvoss: IMHO all the time (when snapd is installed)16:18
zygatvoss: but the effect is clearly undone16:18
tvosszyga: well, ideally before any snap specific mount job16:18
zygaanything in the restore scripts that might do this?16:19
zygatvoss: yep16:19
zygatvoss: maybe we can tie it to snapd.service?16:19
tvosszyga: let me check @restore script16:19
zygatvoss: before16:19
zygatvoss: that would fix it16:19
zygaas long as nothing manually changes /snap16:19
tvossare all mount units "after" snapd16:19
zygaand the unit should be oneshot and remainafterexit=yes16:19
zygatvoss: .mount units? I think before actually16:19
tvossand cleanup of /snap should be opportunistic?16:19
zygasnapd needs to read them16:20
tvossah, so we want all mount units to be after snapd-mount.service16:20
zygatvoss: well... not strtictly, rbind should handle that16:21
zygatvoss: the problem I saw right now is that the effect was undone by something16:21
zygatvoss: I switched to oneshot units so that we can at least see if the unit is up or down next time it happens16:22
tvoss+116:22
zygatvoss: but I think we should be "before snapd.service"16:22
zyga(not sure how to specify that yet)16:22
tsdgeosany reason a dbus call would fail to an existing dbus service if it's running in a non confined snap?16:22
zygatvoss: I think the restore scripts do that16:22
zygatsdgeos: yes, because confined processes cannot reach out to arbitrary dbus endpoints (including unconfined)16:23
zygatsdgeos: look for apparmor denials in the journal16:23
tsdgeoszyga: even between processes on the same "unconfined snap"?16:23
zygatsdgeos: there are no unconfined snaps16:23
tsdgeosok :D16:23
zygatsdgeos: a process in a snap cannot reach out to dbus services from outside that snap (confined or not)16:24
tsdgeoszyga: a little more help with "look for apparmor denials in the journal" ?16:24
zygatsdgeos: look for the apparmor denials16:24
zygatsdgeos: grep for DENIED :)16:24
zygatsdgeos: and there's a snapd-debug snap AFAIK16:24
zygatsdgeos: it helps but there's always the raw log16:24
tsdgeoszyga: where do i grep (yes i'm very newbie)16:25
tsdgeosi.e. where's the journal?16:25
zygatsdgeos: journalctl | grep DENIED16:25
tsdgeosah, tx16:25
tvosszyga: aha, tests/lib/reset.sh purges a lot of stuff and only starts snapd.socket again16:26
* zyga looks16:26
tvosszyga: at the very least, we should run snapd.prerm before snapd.postrm purge16:26
tvosszyga: and do a systemctl start snapd-mount.service16:27
zygatsdgeos: crashed again, different test (aaargh, the ordering)16:29
zygaer16:29
zygatvoss: ^16:29
zygatvoss: checking service status16:29
zyga   Active: active (exited) since Wed 2016-11-16 17:27:00 CET; 2min 36s ago16:29
tsdgeossorry for starting with t :D16:29
zygaqemu:ubuntu-14.04-64 .../tests/upgrade/basic# cat /proc/self/mountinfo | grep /snap16:29
zyga45 23 8:1 /snap /snap rw,relatime shared:1 - ext4 /dev/sda1 rw,data=ordered16:29
zygathis time it looks good16:30
zygabut the test still failed16:30
tvossargh16:30
zygatsdgeos: no worries :)16:30
tvosszyga: ignore upgrade/basic for now, I haven't fixed that, yet16:30
zygatvoss: so at least this much is better16:30
tvosszyga: investigating after a round of meetins16:30
zygainternal error, please report: running "test-snapd-tools.echo" failed: cannot find installed snap "test-snapd-tools" at revision 316:30
tvosszyga: yeah, thats the "snap list" reports broken packages16:30
zygabroken == snapd cannot read meta/snap.yaml16:31
zygaso unmounted or messed up mounts16:31
zygaI'll return to that test, trying the rest16:31
zygaso far, suspiciously green16:38
tvossgreen is the new black16:39
zygastill good16:42
zygajust ran 2016/11/16 17:50:33 Restoring qemu:ubuntu-14.04-64:tests/main/postrm-purge...16:50
zygaso if stuff fails now it might be related16:50
zygastill green16:52
zygatvoss: any idea if just doing this might have such a big impact?16:52
zygahttp://paste.ubuntu.com/23486289/16:53
zygatvoss: another idea, have snapd do it :)16:53
zygatvoss: before any any any operation16:53
zygatvoss: on early startup16:53
zygatvoss: read mountinfo and do the bind mount dance16:53
zygatvoss: or from snap-confine's code (we parse mountinfo already)16:53
zygatvoss: but that's after we are merged16:54
zyga(into snapd)16:54
tvosszyga: yeah, so I think the unit is fine16:54
tvossa bit ugly, but it gets the job done quite reliably16:54
zygatvoss: it may bind mount /snap twice16:55
zygatvoss: semi harmless but still ...16:55
zygatvoss: ha16:56
zygatvoss: 2016/11/16 17:54:22 Failed tasks: 116:56
zygatvoss: just the     - qemu:ubuntu-14.04-64:tests/upgrade/basic16:56
zygaI'll run another loop and commit this16:56
tvossack, great16:56
zygatvoss: if it breaks on the upgrade job again I'll dig into it16:56
zygatvoss: pushed16:56
tvosszyga: ack and thx16:57
zygathe weird and invasive change made by github is probably the biggest collaborationi booster ever in foss community16:57
tvosszyga: I'm not following for the "bind mount twice" argument16:57
zygajust push to all the pull requests!!16:57
tvosszyga: you mean actually collaborating on something?16:57
tvoss;)16:57
zygatvoss: if the service breaks after rbind /snap but before --make-rshared16:57
zygatvoss: exactly ;-)16:57
tvosszyga: hmmm, I'm taking a note, usually pitti has some good advice to offer, too16:58
zygatvoss: feels like a simple C program to write17:04
zyga(conditions apply)17:04
tvosszyga: you mean to check mount info17:04
zygatvoss: yes17:07
zygatvoss: but snap-confine can17:07
zygatvoss: (or the sources have api for that)17:07
zygagot an unrelated store failure, iterating17:08
zygatvoss: I'me EODing, tests in flight17:28
zygatvoss: what is the situation you see now?17:28
mterrysergiusens: I'm seeing a weird bug. When I'm building the u8 snap locally, webbrowser-app (directly listed in stage-packages) is included just fine.  But when building in a silo, it's not included.  Build log doesn't even mention it.  https://launchpadlibrarian.net/293688704/buildlog_snap_ubuntu_xenial_amd64_unity8-session-silo_BUILDING.txt.gz17:32
mterryDo you know of any reasons snapcraft would silently exclude a stage-package?17:32
kyleNHi. are qt apps snappable yet with strict? mine does not display without devmode and i notice devmode is common in playpen qt apps.17:36
popeykyleN: yes17:37
kyleNpopey, is there an example snapcraft.yaml you can point me to?17:37
popeynot sure, I don't really work on desktop stuff17:37
popeyI have done a couple of personal snaps which include qt17:37
popeyand they don't need devmode, I'm not sure why you'd think qt would need it17:38
kyleNpopey. because when I set to devmode it displays, when I set to strict it does not actually display.  I do add: after: [desktop/qt5]. any further tips?17:38
popeycheck what's failing with dmesg | grep DENIED17:39
popeyalso snappy-debug.security scanlog17:39
popeyrun ^ that, then start your app17:39
popey(in strict)17:39
kyleNpopey, snappy-debug.security scanlog MYAPP | grep DENIED does not show much. wherease desmg shows a lot of DENIEDs.17:42
kyleNpopey, on closer inspection I don't think the dmesg DENIEDs are related to my snap17:45
popeywhat exactly is appearing?17:46
popeyand what happens when you run the app?17:46
kyleNI see evince and docker denieds which are not related.17:47
kyleNwhen I run my app in strict, I simply do not see a window for it. in devmode I do17:47
popeystrace it?17:47
popeysee what it stops on17:48
kyleNok thanks for the tip17:49
kyleNpopey, hmm: QXcbConnection: Could not connect to display :017:52
kyleNpopey, yet I do have this:  plugs: [unity7, x11, opengl, network-bind]17:52
kyleNanyway, enough to go on for now17:53
popeyit's X11 I think?17:54
popeyI have a horrid feeling it's case sensitive17:54
=== JanC is now known as Guest70154
=== JanC_ is now known as JanC
sergiusenskyleN popey you can always run `snap interfaces` to verify it is connected18:47
tvosszyga: catching up after dinner, hang on19:01
zygatvoss: I'm spending time with kids now, sorry, just drop me messages19:14
tvossZyga, no worries, I'll keep you posted 😀19:19
mwhudsondavmor2: hey, i assume from the lack of noise that console-conf works for you now?19:31
davmor2mwhudson: no sorry got moved onto something else I'll have a look in a minute19:32
mwhudsondavmor2: ah ok19:32
iceysergiusens: when I run the apt command to install test dependencies (in hacking.md), I get unable to locate package python3-responses19:32
iceytaking that out leaves me unable to run the unit tests19:32
davmor2mwhudson: yeap works now19:36
Trevinhosergiusens: hey, how do organize a remote part?19:36
TrevinhoI mean if I've a file locally that will override something on remote, I want not to stage the remote par t bits... but how can I do it?19:37
davmor2mwhudson: damn you, you're fixing my bugs to quickly now I feel obliged to find more ;)19:48
elopio1exit20:03
mupPR snapcraft#906 closed: indicators: support TERM=dumb <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/906>20:52
sergiusensTrevinho you use stage and snap keywords, not organize, unless you want to move it out of the way instead20:54
Trevinhosergiusens: yeah, I meant organizing in a general term.. not in the keyword... But still, I can't apply a such thing to a remote part, isn't it?20:55
sergiusensTrevinho yes you can20:56
sergiusensTrevinho it overrides do, so snapcraft define <part> to see if it defines anything and aggregate to that20:56
Trevinhosergiusens: mh, I'm missing the syntax then...20:56
sergiusensicey HACKING.md does not mention python3-responses, just pip3 install -r ...20:57
sergiusensicey debian/control however does, but it is not mentioned in HACKING.md20:57
iceysergiusens: look at the top... in the section titled: Test Dependencies20:57
icey- You'll need to add the following dependencies to run the tests.20:57
icey    sudo apt install python3-flake8 python3-fixtures python3-testscenarios python3-mock python3-responses20:57
sergiusensicey oh look at that :-(20:58
sergiusensicey can I ask you to follow https://github.com/snapcore/snapcraft/blob/master/HACKING.md#installing-using-pip20:58
iceysergiusens: and I just filed a bug on LP because I apparently can't get the tests running on clean xenial either20:58
iceyusing the pip installer20:59
sergiusensicey python3-responses should be on xenial though20:59
sergiusensicey I am on xenial and reinstalled recently and did a test run on the pip instructions20:59
iceysergiusens: I first ran into that trying to test on trusty (my goto test docker box)20:59
iceysergiusens: following the pip instructions, I get AttributeError: python3: undefined symbol: archive_errno21:00
sergiusensicey oh, deb deps on trusty would be really out of date21:00
sergiusensicey you really want xenial21:00
iceysergiusens: agreed, and my real machine is on Zesty21:00
sergiusensicey oh... rpm support added that :-/21:00
iceysergiusens: so... how do I run tests now?21:00
Trevinhosergiusens: oh, so with "snapcraft define desktop-qt5" (say) i see the part definition, but... then?21:00
TrevinhoI mean I should redefine it locally?21:01
sergiusensicey can you try installing libarchive1321:01
sergiusensicey apt install21:01
sergiusensTrevinho http://blog.sergiusens.org/posts/The-Snapcraft-Parts-Ecosystem/21:02
iceysergiusens: trying now21:02
sergiusensicey if it works I'll fix hacking.md right now21:03
Trevinhosergiusens: ok, great... thanks21:03
iceysergiusens: I don't mind submitting a PR to update that :)21:03
iceypython3-pip would be a good suggestion as well, the base docker ubuntu:xenial image doesn't have it :)21:03
sergiusensicey I want to do more than add that dep21:04
sergiusenssounds good21:04
iceysergiusens: I figure it's not bad for me to update that since I'm going through installing stuff on a clean box to get it to work :)21:04
Trevinhosergiusens: just wondering why that isn't inside the official docs, though... :-)21:05
iceysergiusens: tests haven't finished yet but are running: https://github.com/snapcore/snapcraft/pull/90921:07
mupPR snapcraft#909: update dependencies for running the tests <Created by ChrisMacNaughton> <https://github.com/snapcore/snapcraft/pull/909>21:07
mupPR snapcraft#909 opened: update dependencies for running the tests <Created by ChrisMacNaughton> <https://github.com/snapcore/snapcraft/pull/909>21:07
sergiusensicey great and ^21:11
sergiusensah, icey you did 909? This is what I had in mind https://github.com/snapcore/snapcraft/pull/91021:11
mupPR snapcraft#910: Update HACKING.md <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/910>21:11
iceysergiusens: may want to look at my pull, there's 3 packages I've found so far needed to get tests happy on a clean xenial21:12
sergiusensicey just missing squashfs-tools I guess21:12
iceysergiusens: ack21:13
mupPR snapcraft#910 opened: Update HACKING.md <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/910>21:13
mwhudsondavmor2: :)21:53
mupPR snapcraft#911 opened: Remove the outdated all snaps image set up for snaps tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/911>22:16
mupPR snapcraft#909 closed: update dependencies for running the tests <Created by ChrisMacNaughton> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/909>22:40
mupPR snapcraft#910 closed: Update HACKING.md <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/910>22:40
pittisergiusens: FYI, I just implemented bug 164183 (elopio was asking about that)22:50
mupBug #164183: sata controller/drive reports exception Emask 0x10 SAct 0x0 SErr 0x40d0002 action 0x2 frozen <linux (Ubuntu):Expired> <https://launchpad.net/bugs/164183>22:50
* pitti appends a missing '1'.. bug 164183122:57
mupBug #1641831: It's not possible to select the test to run from the github integration <Auto Package Testing:Fix Released by pitti> <https://launchpad.net/bugs/1641831>22:57
sergiusenspitti nice!23:02

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