/srv/irclogs.ubuntu.com/2017/03/28/#snappy.txt

mwhudsonwho can i bribe to get https://github.com/snapcore/snapd/pull/3065 merged?00:58
mupPR snapd#3065: Allow seeding a snap with classic confinement <Created by cyphermox> <https://github.com/snapcore/snapd/pull/3065>00:58
cyphermoxmwhudson: I can ping zyga in the morning to see what's missing with that merge.01:09
cyphermoxI meant to today, but when I thought of it it looks like it was too late, he wasn't online.01:09
mwhudsoncyphermox: fair enough01:12
cyphermoxmwhudson: if someone else answers before then... well we'll see here :)01:14
mwhudsoncyphermox: yeah pinging at this time of day is more in hope than expectation01:14
mupPR snapcraft#1222 opened: beta <Created by snappy-m-o> <https://github.com/snapcore/snapcraft/pull/1222>03:03
mupPR snapcraft#1222 closed: beta <Created by snappy-m-o> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1222>04:21
mupPR snapd#3089 opened: interfaces: drop udev tagging from framebuffer interface <Created by chunsangjeong> <https://github.com/snapcore/snapd/pull/3089>06:12
mupPR snapd#3083 closed: tests: move unity test to nightly suite <Created by fgimenez> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3083>06:40
didrocksubuntu-make classic snap is still not published on amd64 (but acked on all other archs) since yesterday. Is that an oversight?06:46
mupPR snapd#3065 closed: Allow seeding a snap with classic confinement <Created by cyphermox> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3065>06:47
mupPR snapd#3071 closed: many: ignore configure hook failures on core refresh <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3071>06:48
mupPR snapd#3078 closed: tests: remove stale apt proxy leftover from cloud-init <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3078>07:26
mardypstolowski: hi! I'll address the chanegs requested by Jamie -- thanks for your other updates!08:17
mupPR snapd#3090 opened: hookstate: add ability to report hook failures to the errtracker <Created by mvo5> <https://github.com/snapcore/snapd/pull/3090>08:20
pstolowskimardy, cool, yw!08:26
mupPR snapd#3064 closed: packaging: rename the file shipping snap-confine AA profile <Critical> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3064>08:31
ptrtngQuestion: How do I access data on a mounted ntfs partition from a snappy-packaged application on 16.04? paths on mounted drive don't show up.  fsstab uses fuseblk fs as per installation.08:36
ogra_ptrtng, did you try using the removable-media interface ?08:46
ogra_(assuming your partition mounts under /media this should be accessible)08:47
ptrtnghere is my current fstab entry:  UUID=XXXXXXXXXXXXXXXX /data ntfs  uid=1000,gid=1000,users,nodev,noexec,noatime  0   008:49
ptrtngnote uid and gid are from my own tries to bend the user to my username. didn't work.08:49
ptrtngthe /data dir is accessible from bash and file manager.08:50
ptrtngthe current mount entry is:  /dev/sdb1 on /data type fuseblk (rw,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)08:50
ogra_the /data dir wont be accessible by snaps ... as i said ... use something like /media/ntfsdrive to mount it and use the removable-media interface in your snap08:54
mupPR snapd#3091 opened: interfaces/seccomp: add bind as part of the default seccomp policy for hooks <Created by morphis> <https://github.com/snapcore/snapd/pull/3091>08:55
=== vigo_ is now known as vigo
ogra_ppisati, should bluetooth work on the pi3 ? did you ever test that ?08:58
ptrtngok. I removed the fstab entry. mounted using dolphin. mount says: dev/sdb1 on /media/USERNAME/data type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) .08:59
ogra_ptrtng, goo, now make your snap use the removable-media interface and your snap apps should be able to see it08:59
chaniguys i have a fundamental question08:59
ogra_*good even08:59
chanidoes snaps use os level virtualization09:00
ptrtngok.  thats why the app doesn't see the /media directory.09:00
ogra_no, snaps dont use virtualization by default09:00
ptrtngBTW its not my own. I merely try to use it.09:00
ogra_well, then you should probaly contact the developer so he/she adds that interface :)09:01
chaniso how is the isolation of snaps atchived09:01
ogra_ppisati, bug 1674509 ... and i'm not sure if it shoudl work (i definitely see the devices created in dmesg if i load the module)09:01
mupBug #1674509: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 <Snappy:New> <https://launchpad.net/bugs/1674509>09:01
chani*achieved09:02
ogra_chani, via apparmor, seccomp and namespaces09:02
ogra_chani, https://developer.ubuntu.com/en/snappy/guides/security-whitepaper/ has all the dirty details09:02
ptrtng@orgac thanks for your help.  I see me just using apt in this case. Pity.09:03
nothalptrtng: No such command!09:03
chanithanks ogra09:03
ptrtngpitty09:03
ogra_ptrtng, what app was it ? i'm sure the maintainer would like to know about your issue09:03
ogra_(i know i would if it was my app)09:03
chanii have one more issue though09:04
ptrtngthe snap in question is:  openmvs   0.7.0-2a41453-0  209:05
ptrtngsorry I was wrong the app is: mve       20170210-0       1     mardy.09:06
chanii have used apache as my stage-packages and once i have installed the app09:07
chanii want the apache to start09:07
ptrtngFrom the same people. I'll contact them by myself. Thanks for the help09:08
chanii tried to start it through my terminal it seems to use my system path rather than snap application path to search for files09:09
ogra_mardy, mind adding support for the removable-media interface to mve ? sounds like a valid addition if you want to use files from removable media09:09
mardyptrtng, ogra_: hi :-)09:09
ogra_:)09:09
mardysure, I'll do that09:09
ptrtngthanks!09:09
chanilike it fetches webpages from /var/www rather than /snap/my_app/current/var/www09:09
ogra_chthen you need to adjust the config09:10
chaniso what should i do to make the root of my apache /snap/my_app/current/09:10
ogra_choh, wait ... how do you start it ? you should have a daemon entry in your snapcraft.yaml for it and use systemctl if it is a daemon09:10
chaniso if i write a bash file and run it as a deamon it would by default use my /snap/my_app/current/ as root09:12
ogra_yeah09:12
chanidid i get it right09:12
chaniok thanks i will try that thanks :)09:13
ogra_an example is at: https://github.com/snapcore/snapcraft/blob/master/demos/webcam-webui/snap/snapcraft.yaml and https://github.com/snapcore/snapcraft/blob/master/demos/webcam-webui/webcam-webui is a script it uses to run the httpd and a cam capturing service in a loop09:13
ppisatiogra_: uhm, i don't remember testing it, and the problem on the rpi3 is that serial and bluetooth are contending the uart09:15
ppisatiogra_: i need to test it09:15
ogra_koza, see above ... we are not actually sure BT should work on the pi3 ...09:15
chanithe bash script uses #!/bin/bash as its shell right so when the deamon runs the bash file will it use bash shell to run the script09:16
chaniif so how is the root changed to /snap/my_app/current/09:17
ogra_thats done by a builtin wrapper when the snap app gets executed09:17
ogra_along with adding $SNAP/lib to your library path etc09:17
=== ycheng is now known as ycheng-afk
chaniwhere can i get the details of this implementation. just out of curiosity :P09:18
chaniis it in the whitepapers09:19
ogra_i think there is some of it, yeah ... under FHS09:20
ogra_and in "Snap security policy" too09:20
chanithanks a lot ogra i was struck on the changing root dir for a day now it would have been a day or more if you didn't clarify it. :) :) :)09:24
mardyptrtng: try "snap refresh"09:37
mupPR snapd#3092 opened: interfaces: capitalize Udev... as UDev <Created by zyga> <https://github.com/snapcore/snapd/pull/3092>09:38
mupPR snapcraft#1223 opened: kernel plugin: check_config() and check_initrd() support <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1223>09:49
morphisPharaoh_Atem: looks like we have one minor issue left for i386 builds of snap-confine10:06
morphisPharaoh_Atem: https://copr-be.cloud.fedoraproject.org/results/mrmorph/snapcore/fedora-25-i386/00533426-snapd/build.log.gz10:06
kozaogra_, hey, reading10:14
kozaunity10:15
didrocksjdstrand: unsure if it's on your plate as well or not: ubuntu-make classic snap is not published on amd64 (but acked on all other archs) since yesterday. Is that an oversight?10:25
=== hikiko is now known as hikiko|bbl
zygajdstrand: hey, can you review https://github.com/snapcore/snapd/pull/309111:22
mupPR snapd#3091: interfaces/seccomp: add bind to default seccomp template for hooks <Created by morphis> <https://github.com/snapcore/snapd/pull/3091>11:22
=== hikiko|bbl is now known as hikiko
ptrtngmardy: I just tried your meshlab-mardy snap. I am seeing the same external-disks-accessible' issue as with openmvg.  Would you care to fix that too?11:51
mardyptrtng: which version is it ("snap info")?12:15
mardyptrtng: for some reason it seems that "snap refresh" is not actually updating anything, weird12:15
zygamardy: snap refresh is not updating devmode snaps12:16
zygamardy: which OS is this?12:16
zygamardy: we had a bug where we'd mark everything as devmode unless confinement was on12:16
zygamardy: so no snaps would update12:16
zygamardy: we'd fix core as a special-case but not any other snap12:16
mardyzyga: I'm on xenial, the snapcraft.yaml has "confinement: strict", but I don't remember if I used --devmode when installing it12:18
Son_Gokumardy: check bash history :)12:18
mardySon_Goku: eh, that was long ago :-)12:18
zygamardy: snap info says tihs12:19
Son_Gokuif you didn't clobber ~/.bash_history, it should still be there12:19
zygamardy: if you see devmode there it's devmode12:19
ptrtngmardy: I used 'meshlab-mardy  2016.12-20170302-2  4'12:20
mardyzyga: oh, could it be that I installed it from a local snap? I see that "publisher" is empty: http://paste.ubuntu.com/24267528/12:21
ogra_mardy, (x2) tells you it was local, yeah12:24
zygamardy: yes12:24
zygamardy: those won't refresh12:24
mardyzyga, ogra_: ah ok, that's expected, sorry for the noise12:24
mupPR snapd#3093 opened: cmd: discard the C implementation of snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/3093>12:33
jdstranddidrocks: it was approved but not released. I don't personally release snaps after they are approved since the I don't know what channel things should go in. I think popey may have approved these yesterday though. anyway, if you want to release it still (I see you have a new upload for amd64), you can use snapcraft to do so (or just tell me here what channels it should go to)12:45
jdstrandzyga: hey, sure12:45
didrocksjdstrand: yeah, I noticed that meanwhile, it was actually done, great!12:49
zygajdstrand: thank you13:03
morphiszyga: ok, you're right, it is the missing largefile support: https://paste.ubuntu.com/24267713/13:03
zygamorphis: glad to hear that was it13:05
ogra_xfs ?13:05
ogra_why the hell is anyone using xfs :P13:05
ogra_(apart from IBM)13:05
Son_GokuIBM would be using JFS13:06
morphisogra_: its for some constants coming from xfs/xqm.h for confinement13:06
Son_GokuSGI was XFS13:06
ogra_oh, right, not IBM13:06
zygayeah, just constants13:06
morphisSon_Goku: btw. if you have a min, I've updated the templating PR13:08
mardyptrtng: done, please refresh meshlab13:09
davmor2ogra_: would it annoy you if someone did use xfs.....if so they are probably using it because I paid them to annoy you sorry ;)13:10
mardyptrtng: there's a problem though: you need to explicitly type /media/<user> in the filename field, because the /media directory itself is not actually readable13:10
Son_Gokumorphis: you need to fix snapd.system-shutdown.service too13:11
Son_Gokumvo: hey, you there?13:13
morphisSon_Goku: you mean adding template vars to it?13:13
Son_Gokumorphis: yep13:13
morphisSon_Goku: it's not going to be used on any classic system, that is why I skipped it13:14
Son_Gokuif you're going to do this, do it right :)13:14
Son_Gokuyou never know13:14
morphisand if you don't want people to use it another way than what it is supposed for then enforcement is better13:15
morphisAFAIK we don't test it anywhere else and therefor shouldn't ship it as an option13:16
morphisbut leave this up to mvo and zyga13:16
Son_Gokuyour makefile already installs it13:16
ogra_davmor2, well, the paste was showing pokey-linux ... which is usually embedded ... using something like xfs or zfs in embedded would be rather insane (memory hog)13:16
Son_Gokumorphis, and it's better to not presume that you guys will be the only "Snappy" system producers13:17
davmor2ogra_: hahahahaha13:17
Son_GokuI know zyga keeps shooting me down about it, but I fully expect that someone will want to build a snappy system on CentOS or Yocto or whatnot13:17
ogra_Son_Goku, we''ll just trademark it :P13:17
Son_Gokuogra_: you already did :/13:18
morphisSon_Goku: but you mean by "snappy" system? that word is already too overloaded :-)13:18
ogra_clever us ;)13:18
Son_Gokumorphis: I mean that a system is composed as a snap-centric system like Ubuntu Core13:18
Son_Gokuexcept not being Ubuntu based13:18
ogra_morphis, yeah, we should trademark "core" :)13:18
Son_Gokuogra_: too generic :)13:18
morphis:-)13:18
zygacoreOS ;-)13:19
Son_GokuCanonical holds trademarks for "Ubuntu Core" and "Ubuntu Snappy Core",  think13:19
ogra_yeah13:19
ogra_to specific :P13:19
Son_Gokubut if I want to make "Fedora Snappy Core", it's not particularly difficult13:19
morphiszyga, mvo: its your call on templating for snapd.system-shutdown.service or not13:19
davmor2ogra_: I think the gym guys beat you too it and intel and ..... well you know the list goes on13:19
zygaSon_Goku: fedora core, like ubuntu core, mozilla ;-)13:19
zygaSon_Goku: make it an user-agent problem13:19
Son_Gokuwell, Fedora Core was a thing :)13:19
ogra_ubuntu core was a thing since 6 years or so13:20
ogra_but not the core you are looking for :)13:20
Son_Gokuogra_: Fedora Core was the original name of the Fedora distribution :)13:20
Son_Gokuwhen Red Hat Linux was merged into the Fedora Project, "Fedora Core" represented the RHL bits13:20
Son_Gokuthat name is still trademarked by Red Hat13:21
morphisSon_Goku: btw. do you have packages for snapd-glib somewhere too?13:25
Son_Gokuin Fedora dist-git13:25
Son_Gokuthat builds fine and can be upgraded13:25
Son_Gokuit just can't be installed because snapd isn't available13:25
Son_Gokuzyga is the maintainer of snapd-glib, you'll need to request comaint privs on pkgdb13:25
morphisSon_Goku: ok, let me do that13:29
morphisSon_Goku: still waiting for the golang-* packages to be added to pkgdb here .13:29
Son_Gokumorphis: poking people in #fedora-admin might be appropriate then13:30
morphisSon_Goku: sounds like a good idea13:30
morphisSon_Goku, zyga: ok also requested admin access for snapd / snapd-glib13:33
Son_Gokuzyga, morphis: I've approved snapd-glib ACLs, but I'm going to wait on snapd ones until after you have your golang stuff13:36
morphisSon_Goku: aye13:37
morphisSon_Goku: thanks13:37
morphiszyga: ok, https://github.com/morphis/snapd/commit/26a1a4b695d608596c76ee84ee00e9ecf4188267 solves the xqm.h problem but it looks a bit clumpy13:37
zygalooking13:38
zygamorphis: you can alternatively use a custom checker and just #define the right stuff inside13:39
zygamorphis: no need to touch CFLAGS13:39
morphiszyga: no that doesn't work13:39
morphisI tried it13:39
morphisbut can't explain yet why ..13:40
morphiszyga: https://paste.ubuntu.com/24267906/13:41
zygamorphis: no idea, autotools magic13:43
morphislet me try one thing ..13:43
morphisactually that paste is wrong one .. but anyway13:44
cyphermoxmvo: ta, this will really help13:48
mupPR snapd#3094 opened: cmd: rework header check for xfs/xqm.h <Created by morphis> <https://github.com/snapcore/snapd/pull/3094>13:50
morphiszyga: ^^13:50
zygamorphis: checking13:54
steve_fiHey, I've created an Ubuntu Core LXD container and I want to be able to create users on it (which I think means I need to make the system writable) ... According to this man page (http://manpages.ubuntu.com/manpages/xenial/man5/writable-paths.5.html) I should be editing the file  /etc/system-image/writable-paths however, it doesn't exist and I cannot find it anywhere on the container, does anyone have any ideas?14:10
ptrtngmardi: I've checked out your meshlab update: Fails. See https://pastebin.com/gafuPLAg for more info.14:17
mupPR snapd#3093 closed: cmd: discard the C implementation of snap-update-ns <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3093>14:41
NicolinoCurallihi all is it possibile to bind udp/67 port in strict mode?14:43
mupPR snapd#3095 opened: cmd/snap-update-ns: add C preamble for setns <Created by zyga> <https://github.com/snapcore/snapd/pull/3095>14:51
kyrofajdstrand, if I publish a gadget and also publish a snap that uses a serial-port slot provided by that gadget, do I need an assertion to autoconnect those?15:17
jdstrandkyrofa: you may need to today, but my understanding was that the gadget snap has a voice in autoconnection, so I think the design is you shouldn't15:19
kyrofajdstrand, alright, I may be pinging you about that in a bit, then15:20
jdstrandkyrofa: if it doesn't work, I can issue a snap decl if needed, but please file a bug in that case15:20
kyrofaSounds good15:20
kyrofaYeah this has been a good exercise15:20
jdstrandI don't have the specifics on gadgets and autoconnection. I think morphis has done a few though15:20
morphisjdstrand, kyrofa: AFAIK this isn't possible today15:26
kyrofamorphis, alright, thank you15:28
morphiskyrofa: according to what I've heard from pedronis this should be possible in some way later15:29
morphiskyrofa: btw. I've started to use the nextcloud snap recently and have it now in a production environment, awesome work :-)15:34
kyrofamorphis, why thank you!15:35
morphiskyrofa: I really liked how it did everything for me including the lets-encrypt setup15:35
morphismagic :-)15:35
kyrofamorphis, yeah that took some time to work out, heh15:36
morphiscoming from a 14.04 setup where I throw everything away no because they told me to install php5.6 from some ppa to be still able to install nextcloud 1115:36
morphiss/no because/now because/15:36
kyrofaYeah it was always painful to maintain for me, too15:37
morphisbut having something coming officially from nextcloud is quite nice and is enough for my trust level :-)15:37
morphisyeah15:37
morphisits quite interesting that they officially still state they support 14.04 where they clearly don't unless you install php from a ppa which also ships a patched version of openssl ..15:37
kyrofaHaha, "we support 12.04 too!"15:38
morphis:-D15:38
morphiskyrofa: I always only believe those things when I see and feel it them15:38
kyrofamorphis, the only weirdness with the snap is that automatically updating will sometimes disable your apps15:39
kyrofamorphis, keep that in mind, if they disappear, just re-enable them, you didn't lose anything15:40
kyrofamorphis, they're working on fixing that in nextcloud itself, sounds like15:40
morphiskyrofa: yeah .. had this with the regular install too15:43
morphisalways had my dad crying his calendar and contacts disappeared :-)15:44
kyrofaYeah... annoying15:45
morphiskyrofa: but good to know they are fixing this at the root of the whole thing15:50
mupPR snapcraft#1224 opened: tests: fix name registration window limit test to latest changes  <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1224>15:55
kyrofabarry, in case you didn't notice, snapcraft v2.28 is in -updates16:18
barrykyrofa: oh cool.  i don't see them in rmadison yet, but that might just be delay.  as soon as the autopkgtests w/o -proposed passes, i can land the branch and get u-i 1.0 classic snap uploaded16:22
barrykyrofa: conveniently, it's lunch time :)16:22
kyrofabarry, hmm... indeed, I may have lied16:23
kyrofabarry, yeah it's verification-done, but not in -updates yet. I may have been fooled by an lxd container setup with proposed darnit, sorry16:27
mupPR snapd#3096 opened: many: abstract path to /bin/{true,false} <Created by morphis> <https://github.com/snapcore/snapd/pull/3096>16:30
cachiojdstrand, hey16:36
cachiojdstrand, tyhicks , I was making some changes to the dbus performance tests and I noticed the big overhead is when the confinment is not strict16:37
cachiojdstrand, tyhicks in case the confinement is strict the overhead is aroud 15 to 20 %16:38
tyhickscachio: when you say "when the confinement is not strict", are you referring to devmode, classic, or both of those confinement modes?16:40
cachiodevmode16:41
tyhicksinteresting16:41
cachiotyhicks, I used to install it with --devmode16:41
cachiothen I removed that and I started getting results with 15-20$ of overhead16:42
tyhickscachio: to make sure I understand, the dbus mediation with strict confinement mode is within our expected range (15-20%)16:42
cachiotyhicks, yes16:42
cachioagree16:42
tyhickscachio: the dbus mediation with devmode confinement mode sometimes exceeds our expected range (> 25%)16:42
tyhicksok16:42
tyhicksthat could be really helpful when reviewing the code16:42
cachiotyhicks, it is about 35% with devmod confinment16:43
tyhickscachio, jdstrand: this is starting to feel like an auditing overhead to me16:46
tyhickscachio: are audit messages being sent to /var/log/syslog for every message you send?16:47
tyhickscachio: you'll have a ton of apparmor="ALLOWED" messages if that's the case16:48
cachiotyhicks, let me see16:48
cachiotyhicks, well there are many entries for dbus in syslog16:52
cachiotyhicks, but not sure if there are so many to cause that16:52
tyhickscachio: is there one that looks to repeat a lot?16:52
tyhickscachio: if so, please paste it16:52
cachiotyhicks, this one http://paste.ubuntu.com/24268835/16:53
tyhickscachio: ok, that is definitely coming from dbus-daemon16:54
tyhicksthe in-code overhead for a devmode snap talking on dbus is two calls to this function: http://paste.ubuntu.com/24268842/16:55
tyhickshowever, if the message/signal is not allowed by the snappy policy, it'll generate an audit message through libaudit which could add significant overhead if a large number of messages/signals are sent16:56
cachiotyhicks, something that also could help you is that I am also plugging the mount-observe interface17:00
cachiotyhicks, could that affect in the results?17:00
Pharaoh_Atemmvo: would it be possible to split the vendoring for snapd into an overlay tarball?17:00
Pharaoh_Atemthat is, a tarball that is overlaid on top of an unvendored snapd tarball17:00
tyhickscachio: I don't think so17:01
barrykyrofa: cool.  if it's verification-done, it'll show up soon enough17:04
kyrofaogra_, I just noticed that the Dragonboard gadget has architectures: [armhf]17:11
kyrofaogra_, shouldn't that be arm64?17:11
zygajdstrand: hey17:12
jdstrandzyga: hey17:14
zygajdstrand: can you please try to review https://github.com/snapcore/snapd/pull/3091 today, I think mvo wants this for an SRU17:14
mupPR snapd#3091: interfaces/seccomp: add bind to default seccomp template for hooks <Created by morphis> <https://github.com/snapcore/snapd/pull/3091>17:14
jdstrandzyga: I plan to17:15
zygajdstrand: it's a workaround for golang doing "bind" and snapctl17:15
jdstrandI read it. I'm thinking about my response17:15
sergiusensbarry: kyrofa I haven't pulled the trigger yet on releasing to -updates17:15
zygajdstrand: aha, that's great, I just wanted to make sure you had an eye on this before it gets merged (it has two +1s)17:15
barrysergiusens: what's the hold up?17:16
jdstrandcachio: curious-- are you connecting the interface when in strict mode and not connecting the interface in devmode?17:17
jdstrandtyhicks: ^17:17
Pharaoh_Atemzyga: did you have a chance to talk to mvo about overlay tarballs?17:18
jdstrandpeople sometimes forget to connect their interfaces in devmode...17:18
zygaPharaoh_Atem: no, because there was no release plan decision until today17:18
zygaPharaoh_Atem: I'll ask17:18
Pharaoh_Atemzyga: cool17:18
zygamvo: Pharaoh_Atem had an idea that we could release vanilla git tree + the vendor/ directory separately as that would ease packaging17:18
zygaPharaoh_Atem: for vendorized builds we would consume both tarballs17:18
zygaPharaoh_Atem: and for de-vendorized builds just one17:19
zygaPharaoh_Atem: it shouldn't be be harder than what we do now (vendorized)17:19
zygaer17:19
zygamvo: ^^17:19
* zyga is tired17:19
Pharaoh_Atemit would make it much less painful for supporting EL7 builds along with Fedora builds17:19
zygamvo: and once we have a script for making this should be essentially free17:19
* zyga needs to walk again17:20
zyga(offline)17:20
kyrofajdstrand, could you take a look at the dragonboard-turtlebot-kyrofa gadget when you're able, please?17:22
kyrofaSame thing as the amd64 gadget (serial-port workaround)17:22
cachiojdstrand, I am connecting in both17:25
cachiojdstrand, it is the same execution17:25
cachiojdstrand, the diff is the when I install17:25
jdstrandkyrofa: done17:26
jdstrandcachio: the diff is when you install? I don't understand. you mean you see a difference between when you install and when you connect the interfaces? as such, in strict mode before connecting and complain mode before connecting?17:27
kyrofajdstrand, thank you!17:27
jdstrand(you see a difference)17:27
jdstrandkyrofa: I made a change to the review tools as well. the pc gadget should now pass automated review, but this one will be a little while for prod17:28
kyrofajdstrand, indeed I've already experienced the pc passing, thank you :)17:28
cachiojdstrand, I install, then I connect and then I run the tests17:37
cachiojdstrand, that for strict and devmode17:38
cachiojdstrand, all the steps are equal, but hte install17:38
cachiojdstrand, the diff I see is when I run the tests17:38
cachioit is once the whole snap setup is done17:38
jdstrandok17:39
jdstrandtyhicks: ^ (you probably figured all that out already...)17:39
mupPR snapd#3091 closed: interfaces/seccomp: add bind to default seccomp template for hooks <Created by morphis> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3091>18:08
kyrofaHey barry, I just hit an interesting python problem if you have a sec18:29
barrykyrofa: i do18:29
kyrofaI have a plugin that ends up pulling two dependencies, one of which is python2, the other is python318:30
kyrofabarry, which means that I have two different python installs essentially contained in my part directory18:31
kyrofabarry, however, I only have one PYTHONPATH. Is there a way for me to set an environment that says "python2 stuff look here, python3 stuff look there"?18:31
barrykyrofa: unfortunately there isn't.  $PYTHONPATH is the same envar for both python2 and python3.  you'll have to put that on the command line, e.g. PYTHONPATH=foo:bar python2 whatever.py18:32
kyrofabarry, hmm... the problem is that a third dependency drives the actual build process, so I can't get anything into the cli18:33
barrykyrofa: hmm18:33
kyrofaNasty18:33
barryyep :)18:33
barrytoo bad you can't just port the py2 bits to py3 :)18:34
kyrofaI didn't actually realize I had a python3 dependency in there until I saw a build failure happen on LP which apparently doesn't include lsb-release18:34
barrykyrofa: can you arrange for a module to get imported early in the build process?18:34
kyrofabarry, the build process is actually cmake. You would cry if you saw this18:34
barrybecause that module could test for the python version and then hack sys.path accordingly18:35
barrykyrofa: i'm tearing up just thinking about it ;)18:35
kyrofabarry, alright, thanks for the insight! I'll mull this over18:36
barrykyrofa: okay, good luck!18:36
anorgrullhi, trying to install snapd on a raspberry pi 3 running raspbian. Any shortcut from installing go and building from sources ?18:37
kyrofaanorgrull, I don't believe raspbian includes the necessary appamor kernel patches18:37
kyrofaanorgrull, zyga or morphis could probably talk you through building the necessary bits while disabling confinement, if you want to go that route18:38
zygaanorgrull: hey18:41
zygaanorgrull: hmm, raspbian is based on which version of debian now?18:41
zygaanorgrull: you may be able to just get it18:41
kyrofabarry, I suppose PYTHONPATH will still be needed even if I use .pth files?18:41
zygaanorgrull: in any case you can build snapd from source18:41
anorgrullmaybe recompiling kernel to add it seem possible, an other route is to swich to ubuntu18:41
zygaanorgrull: I'd love to know how that feels like18:41
zygaanorgrull: a while ago I wrote this: https://new.zygoon.pl/post/case-study-snapd-on-centos/18:42
zygaanorgrull: it's a centos build but the main idea holds18:42
barrykyrofa: ah, that's a good (as in evil :) hack.  if the .pth is on the normal import path you won't, but if you need to put that in a non-standard place, you will.  you can do a lot with .pth files (for better or worse ;)18:42
kyrofabarry, I seem to remember that python checks in ~/.local somewhere by default as well as the system-wide location?18:44
barrykyrofa: there are differences depending on whether you're running it interactively or not, but you can always find out definitively with `python3 -c "import sys; print(sys.path)"18:47
kyrofabarry, wait... since the part owns the python in question I can create wrappers/aliases that set the right environment. Disgusting, but the best option yet I think18:48
kyrofaIt also owns the PATH, so I can make sure those are called18:48
barrykyrofa: that's definitely the better way to go.  i've done $PATH hacking in my snapcraft.yaml (originally also needing to hack $PYTHONPATH but then found i didn't need it).  i'm not sure if the environment section can apply to a single part or to the whole thing (don't remember, didn't affect u-i)18:50
kyrofaGood deal18:51
=== E-werd is now known as beckyblack
=== beckyblack is now known as E-werd
=== E-werd is now known as rebeccablack
=== rebeccablack is now known as E-werd
sergiusensis this "ask barry"? If so, I have a question -> https://bugs.launchpad.net/snapcraft/+bug/167547918:59
mupBug #1675479: python plugin doesn't work for namespace packages <openstack> <plugin> <Snapcraft:Confirmed> <https://launchpad.net/bugs/1675479>18:59
kyrofaHahaha18:59
sergiusenswe use pure upstream pip, setuptools and wheels... any weird thing you can think of?18:59
barrypython story time with the flufl19:00
sergiusensthe fix mentioned in there involved driving the install with setup.py instead of pip btw (in case you have better ideas)19:00
barrysergiusens: that's odd because 2.7 doesn't have pep 420 style namespace packages.  it has a hacky thing but still requires __init__.pys19:02
barryor it *can* have a hacky thing if the top-level package puts stuff in __init__.py19:02
barrythe paste deploy pastebin doesn't seem related to that because it's a top level package19:03
mupPR snapd#3097 opened: interfaces/seccomp: add bind as part of the default seccomp policy (backport) <Created by zyga> <https://github.com/snapcore/snapd/pull/3097>19:03
barryah, nspkg.pth files.  yeah those are magical and problematic19:04
Pharaoh_Atemzyga: so morphis' golang packages have been approved19:05
mupPR core#30 opened: Update core snap cloud-init configuration <Created by raharper> <https://github.com/snapcore/core/pull/30>19:05
Pharaoh_Atemthey are awaiting his import of the packages19:05
Pharaoh_Atemhe should make sure that golang-sig and you are comaintainers of the golang packages19:06
Pharaoh_Atemzyga: and you should also grant golang-sig similar privileges for your golang-* packages19:06
Pharaoh_Atemonly commit privileges, not approveacls and such19:06
sergiusensbarry: any clues on how to circumvent this or have the interpreter read these?19:08
kyrofajdstrand, alright, I've got two gadgets that both provide a `kobuki` serial-port slot, and one snap that has a `kobuki` serial-port plug. I'd like to get that snap to autoconnect to both gadgets19:08
kyrofajdstrand, how do I go about this?19:08
sergiusensbarry: but bottom line is packages added with .pth don't need __init__.py ?19:08
sergiusensdid I read that correctly?19:08
jdstrandkyrofa: give me all the snap names and I'll do a snap declaration for them. please file a bug that you cannot do this with the gadget since that is the design19:09
kyrofajdstrand, will do. The app snap's name is turtlebot-demo-kyrofa19:10
kyrofajdstrand, the gadgets are pc-turtlebot-kyrofa and dragonboard-turtlebot-kyrofa19:10
barrysergiusens: i believe that's the case, although it's dependent on a properly written .pth file.  i believe the standard ones hack the top-level module object's __path__ to include the path to the sub-package, which python's import machinery uses to find subpackages19:11
zygaPharaoh_Atem: sounds good, I will look into it19:11
barry(it's kind of a trick for them to do that level of __path__ hackery)19:12
jdstrandkyrofa: I've got several things I'm working on but will ping you when I add it19:13
kyrofajdstrand, no rush, this week will make me happy19:13
barrysergiusens: it's all keyed off of sys.prefix and sys.exec_prefix.  i'm not sure what snapped python's do to those variables19:13
sergiusensbarry: nothing really to sys.prefix and sys.exec_prefix, we just rely on the interpreter figuring it out relative to its exec path19:17
barrysergiusens: in that case it *should* find .pth files relative to those paths19:17
sergiusensbut now that you mention no __init__ I'll look into running coreycb's full example and see how it goes19:17
barrysergiusens: cool.  let me know how it goes19:18
* zyga EODs19:20
zygaPharaoh_Atem: I'll work on golang-sig ACLs first thing tomorrow19:20
Pharaoh_Atemokay19:20
anorgrull<zyga>tanks for the tuto, but i'm stuck on getting some dependencies header's, will try ubuntu mate 1619:21
zygaanorgrull: good luck,19:21
mupPR snapd#3098 opened: cmd: Select what socket to use in cmd/snap{,ctl} <Created by mvo5> <https://github.com/snapcore/snapd/pull/3098>19:24
mwhudsonahem20:04
mwhudson$ snap info snapcraft | grep ^summary20:04
mwhudsonsummary:   "Single-line elevator pitch for your amazing snap"20:04
kyrofaHahaha20:04
kyrofaYou can tell it's not done yet20:05
mwhudsonthere is a certain irony here :)20:06
mwhudsonkyrofa: will launchpad use snapcraft 2.28 yet or only once it hits xenial-updates?20:06
kyrofamwhudson, depends on the pocket you use20:06
kyrofamwhudson, if updates, then yeah20:07
mwhudsonoh right20:07
kyrofamwhudson, you can of course use proposed20:07
kyrofamwhudson, but then everything comes from proposed20:07
mwhudsonyeah, that's ok for me i think20:07
mwhudsoni guess i could also copy 2.28 into a ppa and depend on that20:08
kyrofaIndeed, though that sounds annoying20:08
* mwhudson shrugs20:08
jdstrandpmcgowan: the ubuntu-app-platform issue should be resolved20:27
pmcgowanjdstrand, great thanks, what was it20:27
jdstrandpmcgowan: the review tools were correct. needed to tweak the snap decl slightly20:28
pmcgowanI guess thats good20:28
pmcgowanlet me try to republish20:29
jdstrandpmcgowan: hold on20:29
jdstrandpmcgowan: let me just rerun the checks20:29
pmcgowanholding20:29
jdstrandpmcgowan: actually can you request a manual review in https://myapps.developer.ubuntu.com/dev/click-apps/6271/rev/42/ and https://myapps.developer.ubuntu.com/dev/click-apps/6271/rev/43/20:30
pmcgowanjdstrand, 2 reviews requested20:32
jdstrandok, I triggered the autoreview20:32
jdstrandpmcgowan: ok, armhf passed. running the autoreview for arm6420:33
pmcgowangreat20:34
jdstrandpmcgowan: arm64 passed. feel free to release like normal20:35
jdstrandpmcgowan: fyi, I added a task to a card to add a simple verification tool to the review tools so this doesn't happen again20:36
jdstrand(to verify the snap decl)20:36
pmcgowanok20:36
pmcgowanthanks20:36
jdstrandthe store itself only does rudimentary checks. perhaps it could be made to use this tool when its written20:37
kyrofaHaha, eject has a security update? I must read this...20:44
kyrofaDang20:45
mupPR snapd#3074 closed: configstate,hookstate: limit runtime of the configure hook to 5 minutes <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/3074>21:19

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