/srv/irclogs.ubuntu.com/2016/04/28/#snappy.txt

=== devil is now known as Guest194
=== genious is now known as genios
=== chihchun_afk is now known as chihchun
=== Guest194 is now known as devil_
svijis there no "snap update" command, or will it update automagically?07:39
zygasvij: it's snap refresh07:40
svijah I see, is there no command to update all snaps, rather than one single with refresh? (I don't need it right now, just curious)07:41
zygasvij: it will be refresh, just not implemented yet07:43
svijzyga: ah okay07:43
svijthx07:43
dholbachkyrofa, sergiusens: once you're both up, can we chat about the snapcraft sessions at UOS and get them scheduled?07:57
slvnjdstrand, zyga, about SDL2 failling with UDEV for Initialization of INIT_Joystick. That happens when calling "udev_monitor_new_from_netlink", and apparmor says :  audit: type=1400 audit(1461830101.683:1127): apparmor="DENIED" operation="create" profile="snap.MyApp.app" pid=11228 comm="MyApp" family="netlink" sock_type="raw" protocol=15 requested_mask="create" denied_mask="create"08:02
slvn(maybe I need to use the plug network ?)08:02
zygaslvn: I suspect that will stay denied for a while unless netlink support in apparmor is improved, for now I'd compile joystick support out08:02
slvnzyga, it's not blocking anyway.. joystick is just not initialized.. just report the issue08:03
zygaah, ok08:03
slvnzyga, also audio was failing, but it's not *killing* the apps, it just stays not initialized.08:06
slvnzyga, just correcting myself, in fact, audio pulse if really failling (.shm_open() failed: Permission denied). So I need to desactivate it.08:13
zygaslvn: we know about audio, we'll get something supported, if you check the backlog we discussed this issue last night08:17
zygaslvn: there are still a few things to decide before that can happen but we do know about it08:17
slvnzyga, ok08:19
ysionneauabout Mark shuttleworth's email : what's "GA" ?08:45
zygaysionneau: general release?08:48
ysionneauA for Release ? :o08:48
zygaavailability? :)08:51
zygaglobally awesome release :)08:54
Gunther_hehe we also discussed the meaning of "GA" here :)08:55
ysionneau:)08:59
vijaikumarGeneral Availability09:00
ysionneauthanks09:05
Gunther_latest allsnaps: sudo snap remove trionet error: can't remove "trionet": cannot find mounted snap "trionet" at revision 10000109:29
Gunther_:(09:29
Gunther_did work before, but at one time complained about: sudo snap remove trionet [-] Remove snap "trionet" from the system error: cannot perform the following tasks: - Remove snap "trio09:31
Gunther_and after reboot I am stuck09:31
zygaGunther_: it's known broken for now09:32
zygaGunther_: will be fixed with the next SRU09:32
zygaGunther_: you can use my script to reset snap state: github.com/zyga/devtools09:32
zygaGunther_: look at reset-state09:33
Gunther_ok thanks09:33
zygaSorry for the bad experience09:33
Gunther_no problem, I am developer myself09:33
Gunther_zyga: worked great ;-) all snaps removed including the kernel (ooops)09:38
zygaGunther_: ooops09:38
zygaGunther_: this was tested on the desktop09:38
zygaGunther_: it would need some love on devices09:39
zygaGunther_: can you look at what would be needed to make it work there and fix it please09:39
Gunther_zyga: I ll try09:39
dpmoh, I just discovered a nice snap trick: https://bugs.launchpad.net/snappy/+bug/1574829/comments/109:40
ubottuLaunchpad bug 1574829 in Snappy "snappy install requires root or login, but doesn't tell you so" [Wishlist,Triaged]09:40
dpmsnap without sudo09:40
asacpitti: where is the rename of wlan0 to wlxXXXXXX done? I couldnt find the matching rule in udev09:53
pittiasac: in xenial release it is still /lib/systemd/network/90-mac-for-usb.link09:54
asacahh... /me was already thinking maybe its in systemd09:55
pittiasac: however, that will change soon (also in xenial) to /lib/udev/rules.d/73-special-net-names.rules due to bug 157448309:55
ubottubug 1574483 in systemd (Ubuntu Xenial) "assigns MAC-based names for devices with locally administered MAC address" [High,In progress] https://launchpad.net/bugs/157448309:55
asacok gotcha... let me study the .link file a bit though so i know how that works09:55
pittiasac: see /usr/share/doc/udev/README.Debian.gz09:56
pittithat still refers to a wrong name (01- instead of 90-)09:56
qenghoMy gnome-disks UI looks pretty hilarious after using snappy for a while.09:57
zyga_morphis: hey, you should be able to rebase n-m interface on top of https://github.com/ubuntu-core/snappy/pull/1078 now10:53
_morphiszyga: awesome!10:53
_morphiswill do, thanks a lot for that!10:53
zyga_morphis: https://github.com/ubuntu-core/snappy/pull/1078/files#diff-939866a2238749d2c6989a8a757f430f10:54
keestuHi, I use ubuntu since last 5 years. I came across  about the snappy. I have dev embedded board, and i have a question now.  Is it possible to get ubuntu core into the this embedded device ?10:54
zygakeestu: yes, you need a kernel that works there and a supported bootloader10:55
zygakeestu: though right now devices (boards) are in rapid development after 16.04 release so expect a lot of changes in the next few weeks10:55
keestuzyga,  thanks, my knowledge is petty limited to this. I have a board, where we port android, linux with qt, how snappy is going to be different ?10:56
zygakeestu: if you have a working kernel, it should be not much different10:57
zygakeestu: the only requirement is a supported arch, what SoC10:57
zygakeestu: (you don't build snappy entirely from source,)10:57
zygakeestu: you just buld the kernel and gadget snaps, the rest is stock and shared by all devices10:58
keestuso, snappy is a way to get the customized desktop feel in embedded device ?10:58
zygakeestu: snappy has no desktop feel10:58
zygakeestu: anyway, please familiarize yourself with the documentation on snappy that's available on ubuntu.com now10:58
keestuzyga,  i am looking at the business perspective.  We see the customers demanding porting android to our embedded device.10:59
keestuzyga, sure.10:59
* zyga -> lunch11:00
keestu:)11:00
=== oparoz_ is now known as oparoz
keestubon appetit11:00
slvnzyga, another issue snap+SDL2+x11. At first install (after reset-state), it doesn't connect to x11. I need to remove the snap, then reinstall it. then it can connect to x11. The syslog error was "apparmor="DENIED" operation="connect" profile="snap.MyApp.app" pid=22559 comm="MyApp" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/.X11-unix/X0"11:15
slvnpeer="unconfined"11:15
ogra_ppisati, have you seen bug 1574103 ?11:20
ubottubug 1574103 in Snappy "Raspberry Pi 2 image LEDs are swapped." [Medium,New] https://launchpad.net/bugs/157410311:20
ogra_and bug 1574075 might also be interesting11:20
ubottubug 1574075 in Snappy "Snappy does not detect Sagem wifi dongle" [Medium,New] https://launchpad.net/bugs/157407511:20
sergiusensdholbach I will have to rain check on that and ask for it to be in a couple of hours; both kyrofa and myself are unavailable right now12:03
seb128sergiusens, can parts/files have dynamic values?12:08
seb128like "somelib: /usr/lib/$(ARCH)/somelib"?12:08
seb128sergiusens, hey btw :-)12:08
jdstrandslvn: fyi, you need to plugs either unity7 or x11. did it not autoconnect?12:19
slvnjdstrand, both are in the plugs list (and also opengl) of the snapcraf.yaml file12:25
slvnmaybe the reset-state script is incomplete ?12:26
jdstrandslvn: would you mind filing a bug for that? show your snapcraft.yaml, how you installed, the denial and the policy in /var/lib/snapd/apparmor/profiles/snap.MyApp.app12:26
slvnfirst install -> x11 doesn't work. then remove, and install again. it works12:27
jdstrandslvn: and please add that detail :)12:27
slvnjdstrand, yep. I go away now, but I will re-try that later and fill a report.12:28
jdstrandslvn: thanks. others have seen this but I don't think there is a bug12:28
slvnjdstrand, if first install always fail to launch, it's kind of problematic for me :)12:29
jdstrandslvn: very much indeed :)12:29
bencccan I package an erlang app with snappy and do hot code upgrade?12:29
slvnjdstrand, but i'll double check later and let you know! ++12:30
benccupgrade the code while the app is till running?12:30
dholbachsergiusens, I'll have to leave at 16:00 or 16:15 UTC today - it'd be good if we could talk about it before12:30
zygaslvn: you can always connect manually but I'm wondering why auto-connect did not work12:42
zygaslvn: thanks, I'll investigate this12:42
wesleymasonSnapcraft Q: is there a variable representing the install stage path that I can, for example, pass to a makefile to tell the target where to install into13:05
wesleymason?13:05
kgunnzyga: just confirm, if i change something in snap, go build it and snapd, copy over and fire up snapd...i should see the change i made in snap?13:07
* kgunn swears he saw this before, hopes he's not going crazy13:08
zygakgunn: in a meeting, you need to copy snapd (and restart it, devtools helps)13:08
zygakgunn: for security changes disconnect and reconnect13:08
kgunnzyga: was doing pkill -9 snapd, then starting13:08
oparozwesleymason, $SNAPCRAFT_STAGE13:08
zyganot really13:09
zygakgunn: try github.com/zyga/devtools13:09
zygathere are more bits and magic there13:09
zygaand it's all made for this use case13:09
wesleymasonoparoz: great, cheers13:09
kgunnzyga: ok13:09
kgunnso i can't just go build snap/snapd, copy over?13:09
zygayou can but you need more, devtools does all that13:10
zygaand more :-)13:10
zygatry it13:10
kgunnok, i may need help, cause my vm i use for mir isn't the standard one13:10
zygasyure13:10
zygasure*13:10
kgunnmainly ssh  config i suppose13:10
oparozIs there a recommended way to use start-stop-daemon in init scripts? Default policy doesn't allow scripts to call it13:11
ogra_first of all you would have to ship it in your snap :)13:12
ogra_(and then i dont think it would be accepted or used at all in the end ... given we use systemd in snappy )13:13
oparozogra_, I get "access denied", so it must be there, just not allowed. The way I understand it is that systemd calls whatever start script is given to it, so it shouldn't be an issue to call this command, no?13:14
kgunnzyga: actually...i got it....devtools talking to my vm, i see devtools.snap in there :)13:15
kgunnrelying on magic now13:15
ogra_oparoz, it is a tool from sysvinit scripts ... it should really not be used at all in systemd envs13:15
ssweenyjdstrand, zyga, is there a recommended way to do service logging in snappy? My location-service snap is trying to create /var/log/location-service which obviously isn't going to work13:16
zygakgunn: cool, just use refresh-bits (it has --help and is trivial to read)13:16
zygassweeny: I don't think there is one, maybe just let systemd manage logging13:16
zygassweeny: but I don't really know13:16
ssweenyzyga, ok, thanks13:16
ogra_ssweeny, "snappy service logs" used to do that ...13:16
zygakgunn: I will gladly take patches for new features13:16
kgunnzyga: hmmm, with latest tools...do i have to sudo snap for such things as "snap list" ?13:16
ogra_i would expect that to be back once the snap service command comes back13:16
zygakgunn: yes, because the socket is root-owned13:16
zygakgunn: or chmod 666 /path/to/socket (/var/snapd.socket AFAIR)13:17
zygakgunn: it's not handled by devtools because I was always lazy and using sudo13:17
kgunnthat's right...i see a note13:17
kgunnok, fully relying on devtools...and i still don't see my mod13:17
zygakgunn: if you get it supported, just send me a patch please, I was annoyed by this once and there was one bug hidden by this already13:17
zygakgunn: what's the mod about? policy change?13:17
zygakgunn: you should connect/disconnect or remove/install the snap because there is no logic that detects interface implementation changes yet13:18
zygakgunn: you should also check generated profiles (/var/lib/snapd/{apparmor,seccomp}/profiles13:18
jdstrandssweeny: if you want your own log, you need to change the path to somewhere in SNAP_DATA13:19
ssweenyjdstrand, yeah that was my other thought13:19
zygajdstrand: hey, gustavo recommended that we work on making n-m interface supported on the desktop; it would also unblock a bunch of prospective snaps; can you tell me if the current policy there is safe for desktop use?13:20
jdstrandssweeny: (if you don't want systemd to handle it-- with systemd it will capture stdout and stderr and you can use journalctl to see the output from your service)13:20
kgunnjdstrand: isn't there a command line to list interfaces?13:20
zygajdstrand: (just comment on the pull request anytime you have a moment to look at it)13:20
kgunni thot i recalled that...couldn't find the email13:20
zygakgunn: snap interfaces13:20
kgunndang it...soo simple13:20
kgunnshoulda guessed13:20
zyga:-)13:20
seb128does anyone know if parts/files have dynamic values?13:21
seb128 like "somelib: /usr/lib/$(ARCH)/somelib"?13:21
ssweenyjdstrand, ah so I can just change logging to stdout and stderr and systmd will take care of it for me? cool13:21
zygaseb128: I don't think they do13:21
seb128:-(13:21
zygaseb128, kyrofa: or sergiusens would know13:21
zygaseb128: what are you trying to build?13:21
seb128they are not around though13:21
seb128a GTK app13:21
zygaseb128: you can use $SNAP_ARCH13:21
zygaseb128: it's an env variable we set13:21
seb128to install thing?13:21
jdstrandssweeny: note, it will also show up in syslog, but yes13:21
zygaseb128: you'd have to do a wrapper for it though13:21
zyga(or patch gtk)13:21
seb128at build time?13:21
zygaseb128: no, at runtime13:21
seb128that doesn't interet me13:22
zygaseb128: for build-time i don't know13:22
zyga(I'm hacking on the other side)13:22
zygaseb128: I'd recommend starting with amd64, then working with snapcraft hackers to generalize13:22
jdstrandzyga: re nm-- we had a rather lengthy discussion on that at the eod yesterday but I didn't think we came to a conclusion. but to specifically answer your queston, no, the nm policy is not safe for confined apps-- it grants too much privilege13:22
zygaseb128: for the runtime part I think we should perhaps explore patching some bits to understand snap runtime layout13:23
zygajdstrand: ok, could we do a simple version for now that still works on the desktop and land that, iterating on a broader one using some other ways (attributes, more ifaces)13:23
seb128zyga, I'm on i386 so starting with amd64 is not going to work for me :p13:23
zygajdstrand: I think the key is to ensure that we don't leave the desktop as we progress13:23
zygaseb128: oh, sorry13:24
zygaseb128: i386 is fine though, it's just a suggestion to try to solve the simpler problem first13:24
seb128right13:24
seb128well I've the arch coded13:24
seb128but I wanted to push that so jdstrand and others can play with it13:24
jdstrandzyga: I feel like I am missing context. we left it yesterday that we need more discussion for the desktop case13:24
seb128but it sucks if everyone needs to sed the arch before building13:24
zygajdstrand: I just talked about this in the standup, gustavo recommended that we ensure it works on the desktop before it lands13:25
jdstrandwell, then I need to understand the direction13:25
jdstrandzyga: did niemeyer_ comment in the pr?13:25
zygajdstrand: checking13:25
zygajdstrand: nope13:27
zygathere's the community sync in 3 minutes13:27
zygalet's continue that after if you have time, otherwise let's do it by email13:27
jdstrandzyga: email is probably best so everyone has context13:28
seb128did anyone look at snap and translations?13:31
seb128what would be the right place to discuss the topic/put notes?13:31
seb128list? launchpad pad? spec?13:31
=== chihchun is now known as chihchun_afk
ogra_seb128, UOS ? :)13:34
ppisatiogra_: ack13:39
seb128ogra_, right, because that's going to be useful if nobody of the snappy team is interested and joining13:40
seb128is there any plan to mount some part of the snaps to normal system locations?13:41
seb128rather than trying to make everything reallocatable?13:41
seb128mvo, hey, do you know if it somebody discussed making locales part of the core image before?13:42
ogra_i think that was discussed and deemed to be to space hungry13:43
ogra_(given it was designed for embedded without actual users)13:44
zygaseb128: I doub't that13:44
zyga(not relocatable)13:44
seb128zyga, :-(13:44
ogra_seb128, i suspect we're moving into -pd territory ...13:44
seb128ogra_, are such gaps documented somewhere? launchpad bugs?13:44
ogra_not that i know of ...13:44
zygaseb128: I think that would be against the idea of snappy13:45
ogra_but i personally wouldnt see locales as something to have in core ...13:45
seb128ogra_, you would see each application needing to ship the libc locale definition?13:45
seb128+ to patch glib to allow relocating those13:46
caio1982hi there, i am snapping a system monitor tool and i wonder what plugs would be necessary to access /proc/vmstat and a given /etc file like /etc/mtab... is there one?13:47
ogra_seb128, well, a snap *has to be* completely inependend from the core system,. they always need to be separately upgradeable ...13:49
ogra_thats one of the base definitions of snappy13:49
seb128ogra_, with, snaps don't have to ship their own libc, do they?13:50
ogra_they can13:50
seb128but don"t have to?13:50
ogra_thats the one thing they could use ... but nothing stops you to ship your own13:50
seb128well, shipping your translations, fine13:51
seb128having to ship the glibc locale definitions13:51
seb128I doubt it's something any appdev is going to want13:51
seb128also glibc doesn't support relocating those13:51
ogra_well, but shipping them in core means you add a dependency13:52
seb128depends to what?13:52
seb128snaps depends on the core anywhy13:52
seb128anyway13:52
ogra_between the system and the snap13:52
ogra_i.e. what if glibc locale handling code changes in incompatible ways in the system snap13:53
ogra_you would need something liek a versioned dependency13:53
seb128ogra_, you are saying "what if glibc changed in an incompatible way", but that's already an issue since you don't force snaps to ship a copy of glibc13:59
ogra_sure14:00
seb128if you have this stance it's fine, but then be consistent and force snaps to include a libc copy14:01
dholbachniemeyer, which time between 14 and 20 UTC would work for you for an interface session next week (3-5 May)?14:01
dholbachzyga, ^ too14:01
seb128if you allow them to rely on the core one there is no point to say that can only be for some parts of libc14:01
zygadholbach: any except standups but I'm flexible14:02
ogra_seb128, right, the "it is useless on headless IoT systems without users" thing is still valid though ...14:02
ogra_we'd need two core setups14:02
seb128unsure14:02
seb128you might want your ls, etc to be in german14:03
ogra_which ls ?14:03
seb128your commands on the core14:03
ogra_on my router i only have that web UI :P14:03
seb128well, you might want that webui in german14:03
ogra_on my drone i even only have that mobnile app that talks to it14:03
* zyga checks backlog14:03
ogra_sure, but for that i dont need glibc locales necessarily14:04
seb128right14:04
seb128we need frameworks :p14:04
ogra_good idea !14:04
zygaseb128: though ogra was spot on on pocket-desktop area, I think on personal the core snap could provide you with a gtk runtime interface14:04
ogra_uh14:04
zygaseb128: so if you want that runtime to be something you depend on, great, but I don't know if that's exactly what we want to do with gkt14:04
ogra_a whiole runtime is to much imho14:04
zygaseb128: perhaps for SDK runtime first14:04
zygaseb128: we don't need frameworks, we need interfaces14:05
zygaseb128: anything that a framework could do is doable with a new interface14:05
seb128can an interface snap add files to /var and /lib in your snap mount?14:05
zygaseb128: an interface can let a snap do this14:06
zygaseb128: we still don't have hooks, when we get them from new state engine we'll be able to react to all actions (connect, etc)14:06
zygaseb128: if you tell me more about the problem perhaps I could suggest a solution14:06
seb128zyga, trying to get translations working in my snap14:07
seb128which requires to have locales generated in /usr/lib/locale/locale-archive14:07
seb128that can be relocated14:08
seb128by then gettext tries to read from /usr/share/locale:/usr/share/langpack-locale14:08
seb128which can't be relocated14:08
seb128but as an appdev I don't want to have to learn how to generate libc locales14:08
zygaseb128: the appdev part should be solved with snapcraft support14:09
seb128I guess we could teach snapcraft to generate those though14:09
seb128that still doesn't solve the fact that glibc doesn't let you relocate/specify another dir to load the .mo14:09
seb128out of patching glibc's code and rebuilding glibc as part of your snap14:10
zygaseb128: doesn't textdomaindir do that?14:10
seb128no14:10
seb128it works only for the gettext command line14:10
zygaI mean14:10
seb128https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=11446114:10
ubottuDebian bug 114461 in gettext "gettext: there is no way to control where message catalogs are found at run time" [Normal,Open]14:10
zygabindtextdomain14:10
seb128zyga, no14:10
zygawhy not? it seems to do just that?14:10
zyga(assuming you build an app from source)14:11
seb128well14:11
seb128right, I'm repackaging a deb14:11
zygaah, right14:11
seb128but then if you do that14:11
zygafor deb-repacking I agree14:11
seb128what if need also strings from libc14:11
seb128+you14:11
zygawhat is the domain used by libc?14:11
zygathis feels like a SDK runtime problem14:11
zygalocale generation is perhaps more subtle14:11
seb128libc.mo14:12
seb128SDK sort of14:12
zygabut I think a snap developer should just end up with a bunch of .mo files14:12
zygathat they can even filter out if they want14:12
seb128gettext() is not specific to a SDK14:12
zygayes, but SDK should just solve it for people14:12
zygafor just fishing parts of binary debs, it feels tricky14:12
seb128it could14:12
zygaso back to interfaces14:12
zygawe could design an interface that lets you do bind mounts and other magic14:12
zygaI just wonder if that's a solution (it doesn't feel like one)14:13
seb128yeah, maybe not14:14
seb128maybe we just make those part of pd14:14
seb128and declare that core users can't have translations14:14
zygabasic locales? I would say yes14:14
zygacore users will probably use webapps14:14
zygaand if not, they can bundle the world if they want a custom kiosk localized GUI14:14
seb128well, I guess as long as we provide easy tools to help them to bundle the world...14:15
seb128it still feels to me that locales are a base feature of the OS and shouldn't have to be bundle14:15
zygaI think we should explore both sides, patching sources to understand snap runtime layout and environment variables and reach for low-hanging fruit14:15
seb128but it's a good point that they take space and are not needed on a core14:15
zygaeventually I would hope that all important upstream projects have a getenv("SNAP") somewhere14:16
seb128is having the deb repackaging case working a goal14:16
zygaand that they just work14:16
seb128or just something hacking we play with?14:16
zygathat depends on if the upstreams support snap internally :)14:16
=== _morphis is now known as morphis
seb128yeah, I don't agree with that14:16
zygaI think our patches to n-m weren't merged14:17
seb128projects shouldn't have to getenv for platform specifc hacks14:17
zygabut if they were ,you could repackage nm (or be closer to) instead of having to build it14:17
zygaseb128: I somewhat disagree, this is a big shift14:17
zygaseb128: relocatability14:17
zygaseb128: nothing really supports that out of the box yet14:17
zygaperhaps it is not SNAP, perhaps SNAP Is in some common platform glue14:17
morphissergiusens: ping14:17
zygabut patching upstreams for native relocatability would be worth-while IMHO14:18
qenghoSpin up a new autopkgtest machine that uses "dpkg --instdir=/relocated/" to install.14:22
popeyjdstrand: I have an app doing "Bad system call" inside a snap, in dmesg I see an apparmor failure with sig=31 arch=40000003 syscall=45 compat=1 ip=0xf77e3547 code=0x0 - is this something I can work around, a bug, or something else?14:24
* zyga looks14:24
qenghoOh, popey. So innocent.14:24
popeywat wat wat14:25
zygathat's shmctl14:25
ogra_scmp_sys_resolver 4514:25
ogra_run that14:25
jdstrandpopey: on the device do 'scmp_sys_resolver 45'14:25
kyrofaHey seb128 dholbach I'm around now14:25
ogra_zyga, how do you know ? it varies between arches ;)14:25
jdstrandpopey: it must be on the device/vm14:25
zygaogra_: yes, true, I checked for amd6414:25
popeyjdstrand: inside the snap?14:26
zygabrb14:26
ogra_:)14:26
popey this is on my laptop14:26
ogra_zyga, it is brk on armhf14:26
jdstrandzyga, ogra_: note the syscall numbers are different depending on the arch14:26
popey(amd64)14:26
jdstrandpopey: ok, on amd64 that should be recvfrom14:26
popeyyes14:26
jdstrandpopey: you need to plug one of network, x11 or unity714:27
jdstrandpopey: if you are, autoconnecting isn't working for you14:27
popeyI have all 314:27
popey    plugs: [x11, network, network-bind, unity7, opengl]14:27
jdstrandpopey: right, my understanding is that removing and installing again will get it to connect14:27
jdstrandpopey: otherwise you can manually connect14:27
jdstrandzyga: I asked slvn to file a bug for that, but I think he had to step away. do you have a bug for this? ^ is it known to you?14:28
popeyjdstrand: removing "it" as in, the snap?14:28
jdstrandpopey: yes14:28
seb128jdstrand, that's 32 bits code on amd64, unsure if that makes a difference?14:29
jdstrandzyga: in other news, I figured out why the unintended bluez change ended up in my branch and have adjusted my processes14:29
seb128if I understood popey correctly14:29
jdstrandseb128: I think you just confused me :)14:29
jdstrandhe had a seccomp denial14:29
seb128right, I'm just saying that he's multiarching14:30
jdstrandso I just asked that he run scmp_sys_resolver on whatever architecture logged the denial14:30
seb128k14:30
jdstrandmultiarch doesn't matter14:30
seb128I was mentioning in case14:30
jdstrandthanks14:30
seb128np14:30
popeybah! got into the state where I have to nuke and pave again :(14:31
seb128:-(14:31
seb128hey kyrofa14:31
seb128is there a way to tell snapcraft to rebuild without wipping out the deb cache?14:32
popeyseb128: I ended up installing apt-cacher-ng on my laptop14:32
seb128popey, :-(14:32
popeyseb128: feel free to point your apt at my laptop as a proxy ã‹›14:32
seb128but thanks for the tip14:32
kyrofaseb128, you can clean individual steps of the lifecycle-- would that help?14:32
popey(I appreciate you may not want to)14:33
kyrofaseb128, instead of cleaning the pull, just clean back to build14:33
seb128kyrofa, I ended up reworking my yaml but that feels like a workaround14:33
seb128kyrofa, oh ok14:33
kyrofaseb128, essentially instead of cleaning everything, you say "don't wipe out the pulled stuff."14:33
seb128I ended up having 2 parts14:33
seb128and cleaning only one14:33
seb128I didn't know that my issue was due to "cleaning the pull"14:34
seb128or that was a thing14:34
seb128thanks14:34
kyrofaseb128, no problem! Yeah try `snapcraft clean -s build` (by default it cleans everything, including the pull step)14:34
seb128that sounds like a poor default :p14:34
seb128kyrofa, thanks!14:34
dholbachkyrofa, thanks... I was wondering if sergiusens, you and I could pick dates/times for the snapcraft UOS sessions14:36
dholbachwe're still very much free to pick times between 14 and 20 UTC on 3-5 May14:37
kyrofadholbach, yeah sounds good. sergiusens is running a few errands right now and I have a meeting in a few minutes, but after that I'm free all day14:37
popeyArgh, "sudo snap install mylocalfoo.snap" on a clean box will download ubuntu core, fail to install it, fail to download my local snap from the store, but install my local one anyway, without ubuntu-core. So next time I try something it tries to download ubuntu-core again!14:43
ogra_uh14:43
ogra_popey, so your snap is i386 ?14:44
ogra_i wonder if it tries to download the matching core14:44
popeynope14:45
ogra_hmm, k14:45
ogra_i wonder why it fails then14:45
popeyalso, you have to remove snaps before installing them again, or you get a broken snap installed.14:46
popeyrepeatedly installing the same snap over and over leads to a non-functioning snap14:46
jdstrandpopey: between those two and not autoconnecting, it sounds like you are hitting 3 bugs :\14:47
popey\o/14:47
jdstrandpopey: 4 now :\14:47
roadmra bug trifecta14:47
jdstrandpopey: would you mind filing them?14:47
popeysure thing14:47
jdstrandI don't think any are filed14:47
jdstrandthanks!14:47
* zyga confused signal number with syscall number14:51
ogra_mvo, ricmm, http://paste.ubuntu.com/16095818/ should we start with that ?14:51
slvnjdstrand, zyga : I have just retried this "auto-connect" issue with new package name, and it worked. then I did a "reset-state". the first new install was longer (installation of 64 MB ? whereas the snap is 2 Mo ...). and x11 didn't connect. re-install, it worked. To me, the issue seems something missing in the script "reset-state". Since this is non-official, should I make be a bug report ?14:52
zygaslvn: interesting14:52
zygaslvn: no, I'll experiment, thanks14:52
zygaslvn: the first time when you installed the snap it bundled ubuntu-core with it14:52
zygaslvn: when you installed the snap, was that side-loaded (locally on your FS) or from the store?14:52
zygaslvn: snap install ./foo.snap or snap install foo14:52
zygaogra_, jdstrand: How do  you lookup syscalls?14:53
ogra_scmp_sys_resolver14:53
jdstrandzyga: signal vs syscall> easy to do14:53
zygajdstrand: I know how to lookup signal numbers14:53
* jdstrand wants to get to fixing snappy-debug to help people in this regard but has a few more things to tend to first14:54
zygajdstrand: but not syscall numbers14:54
jdstrandscmp_sys_resolver ...14:54
zygaahhh14:54
jdstrand(on the device)14:54
jdstrandalways on the device :)14:54
zygathanks!14:54
jdstrand(unless you know your archs are the same of course)14:55
zygayeah, I had an index somewhere but I lost it now14:55
jdstrandseb128: hey, I saw you mention something about trying to get the tree together for me and others to test-- what is the status (just wondering if I should move to the next thing on my list and circle back or not-- no big rush)14:56
seb128jdstrand, I'm about to push14:58
slvnzyga, I have always installed the snap from my FS. I haven't played with the store yet.15:00
dholbachkyrofa, ok15:01
jdstrandseb128: thanks15:07
seb128jdstrand, ok, lp:~ubuntu-desktop/+junk/gnome-calculator-snap updated15:09
jdstrandseb128: thanks!15:09
seb128jdstrand, yw!15:09
seb128jdstrand, I'm going to file some bugs now about the issues we had/have and the workaround we did15:10
seb128jdstrand, btw got https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1576066 filed about the 32bits issue15:10
ubottuLaunchpad bug 1576066 in glibc (Ubuntu) "32bit glibc calls old socketcall() syscall, causing seccomp problems" [High,New]15:10
zygajdstrand: just curious, what's the outlook on non-enforcing seccomp landing in the kernel?15:11
seb128jdstrand, "justincornack" says that updating libseccomp to 2.3.0 should fix it15:11
jdstrandzyga: I need to work with them on it. we have a good relationship with them, it is just devmode is a couple places down the list atm15:12
zygajdstrand: sure understood15:13
zygajdstrand: is there a place where I can look at the list?15:13
jdstrandzyga: at my list?15:13
jdstrandthe security team trello board15:13
zygajdstrand: do you have a link handy by any chance?15:13
jdstrandseb128: oh interesting15:14
jdstrandseb128: thanks!15:14
seb128jdstrand, yw!15:14
seb128jdstrand, I guess we should SRU https://github.com/seccomp/libseccomp/commit/73d83e45efbe8c31067c97155162f17ca51b743515:16
seb128desrt, ^15:16
desrtthis won't help15:16
seb128oh :-(15:17
desrtthis only helps if the C library is indeed calling those new functions15:17
slvnzyga, not sure you got the message : I have always installed the snap from my FS. I haven't played with the store yet.15:17
zygaslvn: ah, thanks15:18
zygaslvn: perhaps there's some interesting bug in that case, I'll give it a try15:18
desrtactually, i may take that back.  i have no idea what this does =)15:18
desrtand maybe it does contain/improve demuxing for that call, indeed15:18
zygaslvn: I know for a fact that there are plenty of related bugs fixed in master (to be released very soon)15:18
zygaslvn: perhaps tomorrow it will be in the archive15:18
seb128jdstrand, desrt, there are also other commits in trunk that might help in fact, our version is old15:19
slvnzyga, I used the same SDL2/snap of the other bug to test it.15:19
ogra_you have high hopes about our SRU process it seems :)15:19
seb128e.g https://github.com/seccomp/libseccomp/commit/d32c3bfa4b07add90dcd04292eb4ba278dd103ba15:19
zygaslvn: right, we had a bug that didn't auto-connect in some cases, I suspect it is that, I'll check again when I have power15:20
seb128though pitti backported some of those changes already it seems15:20
zygaslvn: I'll ping you tomorrow, after the release is out15:20
slvnzyga, I'll also tomorrow if there is some update:15:20
desrthttps://github.com/seccomp/libseccomp/commit/983835f3e0fd000a42c8beaea9d7fbe726ffff6515:20
desrtthis is the one that will really help15:20
desrt" + * Convert a multiplexed pseudo socket syscall into a direct syscall "15:21
zygajdstrand: there's a micro task for home to auto-connect15:21
zygajdstrand: do you think we should set it to auto-connect and let the store flag that for review?15:21
* ogra_ wonders if we should prehaps grow the reviwers team 15:22
zygagahh, sorry, battery dies15:23
* zyga orders a new battery, power cuts are annoying15:23
zygattyl15:23
jdstrandzyga: I think autoconnecting is fine-- the store currently flags for manual review. But the topic overall has an unclear path. sabdfl said to do one thing with x11/unity7 and niemeyer another. home to me is the same sort of thing.15:26
mvoogra_: I like that, lets do it15:31
ogra_mvo, ok, will upload then15:32
seb128jdstrand, what's the right component to file the bug about "unity7 plug profile needs updating for menus"15:33
jdstrandseb128: snapd. add the snapd-interface tag15:34
seb128jdstrand, thanks15:34
mvoogra_: nice, let us try to test today/tomorrow and see how it goes15:37
ogra_yeah15:37
ogra_well, we need someone who has a uboot gadget snap for i38615:37
ogra_i was hoping ricmm has something like that handy15:37
seb128jdstrand, bug #157628715:38
ubottubug 1576287 in snapcraft (Ubuntu) "unity7 plug needs to be updated to allow menus export" [Undecided,New] https://launchpad.net/bugs/157628715:38
jdstrandseb128: thanks15:46
sborovkovHello, how do I enable classic shell now? snap enable-classic does not work15:53
jdstrandmvo: hey, does being a member of ubuntu-core on github give me commit access?15:57
mvojdstrand: hm, I actually don't know, commit access to snappy on github? just create your branch and send a pull-request16:02
jdstrandmvo: I did that, but I also got an invite not long ago nad just accepted. my branch is tagged Reviewed. I wasn't sure if I should wait or commit and wanted to ask what the commit policy was16:03
mvojdstrand: oh, ok. I think I saw that there was one outstanding question on the branch. or did that get resolved? if resolved one of us will merge it16:04
jdstrandmvo: I resolved it and made two reverts based on mailing list and bug feedback16:05
mvojdstrand: nice, let me have a look then, I can merge it16:06
mvojdstrand: usually (but not always) its branch-owner != person-who-merges16:06
jdstrandI see16:06
mvojdstrand: we also have no separate branch for xenial and yakkety (love the name)16:07
mvo(yet)16:07
jdstrandok16:07
seb128jdstrand, mvo, just for the record that's some bug reports about the issues we hit when playing with gnome-calculator https://bugs.launchpad.net/ubuntu/+bugs?field.tag=snap-desktop-issue16:07
jdstrandnice16:08
seb128jdstrand, I guess there is already one for the gsettings proxy work?16:09
seb128or is it only in specs like https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement?16:10
seb128opened one, we can close it if needed16:12
jdstrandseb128: the proper confinement for gsettings is a separate thing. snaps on classic could utilize that, but we'll likely simply need to add it and say it is a limitation of the mediation (much like X is)16:13
jdstrands/need to add it/need to add the rules for the global gsettings/16:14
seb128jdstrand, right, good, thank we can use bug #157630816:14
ubottubug 1576308 in snapd (Ubuntu) "gsettings doesn't work with snap confinement" [Undecided,New] https://launchpad.net/bugs/157630816:14
wililupyGood morning ogra_, mvo.16:15
ogra_wililupy, good evening :)16:17
seb128jdstrand, the libseccomp issue, gnome-calculator on i386 hits the bug (it needs to download currency info from internet), I can test patchs if you want, just ping me with commits or debs16:19
wililupyI got the system to boot today after adding ahci to the initrd modules in snapcraft, but I still had to edit the grubenv file on /dev/sda2 to point to my kernel snap to boot up properly.16:21
jdstrandseb128: thanks16:22
ogra_wililupy, right, and that bit is out of my territory of knowledge ... mvo might be a better counterpart here16:24
wililupyogra_ Thank you so much for your assistance on this. I now have a working Kernel snap with the modules in it, so now all I have to do is snap up the application and test it and I could be back on schedule. I still need to work on the grubenv so that install is easy and doesn't require user intervention.16:25
mvowililupy: hm, is your kernel called vmlinuz and the initird.img ? the code currently assumes that16:26
wililupymvo, do you know why the grubenv doesn't update with the snappy_kernel= variable?16:26
mvowililupy: a symlink is probably fine16:26
wililupylet me check mvo.16:26
mvowililupy: it should if the kernel snap is of type: kernel, could you paste your meta/snap.yaml please? I need to look what is going on16:27
wililupydefinitely mvo.16:27
mvowililupy: and please pastebin the output of grub-editenv right after you installed your kernel16:27
wililupysure.16:27
mvo(but before you manually adjusted something)16:27
mvocool, thank you!16:27
wililupymvo: meta/snap.yaml: https://pastebin.canonical.com/155478/16:30
ogra_oha16:32
wililupymvo: (hd,2)/EFI/ubuntu/grub.d/grubenv: https://pastebin.canonical.com/155479/16:32
ogra_why doesnt snapcraft set "type: kernel" ?16:33
mvowililupy: could you please add "type: kernel" and see if that helps?16:33
* ogra_ guesses there is your issue16:33
mvoaha ogra_ was faster :)16:33
* mvo hugs ogra_16:33
ogra_heh16:33
* ogra_ hugs mvo 16:33
wililupyI can post my snapcraft.yaml16:33
mvojust add this one line first, that sounds very likely to be the culprit16:34
ogra_but it is weird, given the snapcraft kernel plugin was used16:34
ogra_i woudl actually expect that it sets that16:34
wililupyhttps://pastebin.canonical.com/155480/16:35
wililupytype: kernel before the parts: section?16:35
ogra_in meta/snap.yaml16:35
wililupygotcha ogra_16:36
ogra_and then just "snapcraft snap" the dir16:36
kyrofaIt seems /snap/bin is not in the PATH if I try to run with sudo. This worked in rolling-- is it a bug, or is it supposed to work this way?16:37
sergiusenspopey I logged bugs about install/remove/install/remove/.../.../install16:38
wililupysnapcrafting now.16:38
sergiusensseb128 log a bug about the ARCH thing, we can support it easily16:39
seb128sergiusens, https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/157623216:39
ubottuLaunchpad bug 1576232 in snapcraft (Ubuntu) "Doesn't allow dynamic file install targets ('usr/lib/$arch')" [Undecided,New]16:39
jdstrandmvo: thanks for the merge. I'm not sure who is doing release notes, but one of those commits fixes bug #157591416:40
ubottubug 1575914 in Snappy "snaps using home interface have full access to SNAP_USER_DATA of other snaps" [High,In progress] https://launchpad.net/bugs/157591416:40
mvojdstrand: uh, thanks. a "Closes: LP#1575914" in the commit picks it up automatically16:42
sergiusensseb128 thanks, I love bugs! :-)16:43
seb128yw!16:43
jdstrandmvo: oh, whoops16:43
jdstrandmvo: I'll know for next time16:43
wililupymvo, ogra_ same error, I have to modify the grubenv to boot up properly.16:44
* jdstrand updates his notes for autoclosing snappy bugs16:44
mvojdstrand: no worries, I will add it later manually16:45
wililupyweird, it didn't update the snap.yaml...16:47
wililupyI updated it in the snap directory and then re-ran snapcraft snap.... hmmmm16:47
ogra_E: config/hooks/15-remove-grub-common.chroot failed (exit non-zero). You should check for errors.16:47
ogra_P: Begin unmounting filesystems...16:47
ogra_P: Saving caches...16:47
ogra_GRRR !16:47
wililupylooks like snapcraft snap overwrote my meta/snap.yaml with the one without type:kernel.16:49
ogra_hmm, it shouldnt do that16:50
kyrofawililupy, the snap folder it _output_, not input16:51
kyrofais*16:51
wililupykyroga, the snap directory, correct?16:52
wililupykyrofa ^16:52
kyrofawililupy, right16:53
ogra_kyrofa, we only wannt to check a one line change in snap.yaml .. and not re-build anything but the snap16:53
om26erstgraber, Hi! ChrisTownsendwas helping me debug an lxc container not starting, he suggested me to show the logs to you. Can you please take a look at these logs ? http://paste.ubuntu.com/16102061/16:53
wililupyI modified the snap/meta/snap.yaml there, then went back to my source directory and ran snapcraft snap.16:54
kyrofaogra_, try `snapcraft snap snap` then?16:54
kyrofaogra_, tell snapcraft to use the snap directory to create the snap rather than going through its lifecycle to do so16:54
wililupyI'll t ry that, can't hurt16:54
ogra_kyrofa, yeah, thats what i mean abover with <ogra_> and then just "snapcraft snap" the dir16:55
ogra_:)16:55
ogra_i should have written "snapcraft snap snap" :)16:55
kyrofawililupy, ogra_ it's also worth noting that snapcraft will re-generate the meta/ directory each time, even if the rest of the lifecycle has already run16:55
ogra_oh16:55
kyrofawililupy, ogra_ i.e. you don't need to rebuild the project just to change the meta/ dir16:55
ogra_well, he could just move the snapcraft.yaml away :)16:56
ogra_then it will just roll the dir into a snap16:56
ogra_without regenerating anything16:56
wililupymeta/snap/snap.yaml still has my changes after running snapcraft snap snap16:57
wililupyAnother u-d-f and a burn in on the device...16:57
ogra_mvo, hmm, not sure why but seems my changes to live-build/ubuntu-core/hooks/15-remove-grub-common.chroot make the world explode (on all arches)16:58
* ogra_ doesnt understand why ... very weird 16:59
ogra_http://paste.ubuntu.com/16103786/17:01
* ogra_ scratches head17:01
wililupyogra_, mvo, kyrofa: That did it!!17:01
ogra_wililupy, well, we still dont know why snapcraft.yaml doesnt add the type field17:01
ogra_it should do that by default with the kernel plugin17:01
wililupyyeah, should I put in a bug?17:02
ogra_sergiusens, ^^^ is that a bug ? (kernel plugin not setting type: kernel in snap.yaml)17:05
sergiusensogra_ you have to do that in your snapcraft.yaml17:06
ogra_sergiusens, https://pastebin.canonical.com/155480/17:07
ogra_does it need extra mentioning of type: kernel ?17:07
sergiusensogra_ yes17:12
ogra_ah !17:12
* ogra_ didnt know :)17:12
sergiusensogra_ we have no contract for plugins changing top level things17:12
ogra_pfft :P17:13
sergiusensogra_ it is a constant discussion we have internally as it would be ideal to also create apps and commands17:13
ogra_yeah17:13
sergiusensogra_ but then what happens when the use wants to do something special :-)17:13
ogra_well, if it is set at the top level you dont touch it ... if nothing is set at the toplevel the plugin takes over17:15
sergiusensogra_ what if you want to payload a kernel in a normal snap app?17:15
sergiusensfor some weird reason17:15
ogra_notmal snaps dont have a type ?17:16
ogra_*normal17:16
sergiusensogra_ implicit type 'app'17:17
wililupysergiusens, so where in my snapcraft.yaml to I tell it that it is a type: kernel snap?17:24
sergiusenswililupy same level as name, summary, ...17:25
wililupysergiusens: so after description: add type: kernel before parts:17:26
sergiusenswililupy order doesn't matter in yaml, just make it at the same level17:27
wililupysergiusens: ack. Going to try it now.17:27
sergiusensubottu hey17:41
sergiusenskyrofa hey, can you reach nodejs.org?17:42
kyrofasergiusens, yessir17:42
sergiusensdarn, what happened to my DNS?17:42
* sergiusens reboots router17:42
sergiusenskyrofa here you go https://github.com/ubuntu-core/snapcraft/pull/49018:10
sergiusenskyrofa that is the one you thought of when you thought you thought incorrectly18:11
sergiusenselopio do you know the status of https://github.com/ubuntu-core/snapcraft/pull/480 ?18:14
sergiusensogra_ so I push this (https://launchpad.net/snapcraft/+milestone/2.8.5) to yakety; wait for it to go in smoothly and then tag every bug in there to hint the SRU and then dput to xenial and wait?18:17
sergiusensis that it in a nutshell?18:17
kyrofasergiusens, ah, you're right :P18:17
ogra_sergiusens, yeah18:38
ogra_there is a wikipage too for it18:38
sergiusensogra_ I read the wiki page, twice; it assumes I know a bunch of things already :-)19:00
sergiusensogra_ thanks19:00
ogra_heh19:00
ogra_bah ...19:00
ogra_so i cant remove /boot/grub on the os snap because there is a file in it !19:01
ogra_silly stuff ...19:01
ogra_unicode.pf219:01
* ogra_ removes it anyway19:01
oparozIs there a particular reason the command wrapper changes the working dir to SNAP_DATA?19:09
ogra_it is the writable dir the snap provides ....19:09
ogra_(the default writable dir)19:09
sergiusensoparoz afaik it doesn't unless you tell it to19:10
oparozSure, but isn't it the user's responsibility to call commands from SNAP_DATA?19:10
oparozsergiusens, maybe it's because I'm still on an older rolling Snappy then19:10
ogra_the user would call from SNAP_USER_DATA ;)19:10
sergiusensoparoz yeah, not seeing it http://paste.ubuntu.com/16118454/19:11
ogra_SNAP_DATA is somewhere in /var/lib ... it is the writable bit your snap knows about and if executed without any cotext that is the place where binaries can write19:11
kyrofasergiusens, the wrapper cds into it19:11
sergiusenskyrofa not from what I am seeing here though19:12
sergiusenslook at my pastebin19:12
ogra_if you execute a snap app in context of a user, then SNAP_USER_DATA is your place19:12
sergiusensunless you are talking about a daemon19:12
oparozogra_, let's say the user wants to wget something from a folder in SNAP_DATA, the files end up in the root of SNAP_DATA instead of the folder19:12
sergiusenskyrofa the qtlaunch script does iirc19:13
sergiusensbut it is meant for UI apps, launched from a desktop file, so it should not really matter19:13
kyrofasergiusens, oh, it was services with a workingdir I think19:13
ogra_oparoz, that shouldnt happen, the stuff should end up in SNAP_USER_DATA in such a scenario ...19:13
ogra_(i know it did in the past by default when i used my unconfined wget)19:14
oparozogra_, sergiusens that's the wrapper that gets created https://paste.ubuntu.com/16118505/19:14
oparozJust before ubuntu-core-launcher, there is a cd $SNAP_DATA19:15
oparozsergiusens, ogra_ could it be because of the security policy?19:15
kyrofaoparoz, probably an old version, I don't see it in the current: https://github.com/ubuntu-core/snappy/blob/master/snappy/binaries.go#L6219:15
oparozI mean does it have an influence on the wrappers?19:15
ogra_it could well be that i'm not up to date ...19:15
* zyga smells 15.04 snappy19:16
ogra_regarding my knowledge19:16
zygaoparoz: that's 15.04 right?19:16
kyrofazyga, nah, not 15.0419:16
oparozThanks kyrofa19:16
oparozzyga, thats the mvo image from february19:16
zygaah19:16
zygaancient stuff then19:16
kyrofazyga, so rolling stable19:16
oparozIndeed19:16
zygaSNAP_APP_doesn't exist anymore19:16
ogra_february  ?19:17
ogra_you should really update19:17
kyrofaogra_, to what? A 16 image? :P19:17
ogra_yeah ...19:17
oparoz:)19:17
ogra_feb is definitely before 2.019:17
kyrofaIndeed19:17
zygaoparoz: you can use my script to build a new image using mvo's udf19:18
zygaoparoz: github.com/zyga/devtools19:18
ogra_for 16.04 only the images from the last two weeks are actually ok19:18
zygaoparoz: though images are not fully supported now, you may have to re-flash periodically as we stabliize19:18
zygaogra_: full of bugs, the next set will be okay (with next version of snapd)19:18
oparozThanks zyga, the problem is that all users of the ownCloud snap are still on that image, so I can't update yet19:18
ogra_sure, full of bugs, but up to date with the right concepts at least19:19
ogra_while all older images are simply broken19:19
zygaoparoz: I see19:19
oparozBut thanks for confirming that the change of dir doesn't happen any more19:19
zygaogra_: I agree19:19
zygathere were more changes in the last month than in the year before19:19
oparozogra_, we have enough trouble getting people to test the image. If they need to re-flash every week, we're going to lose all of them19:20
ogra_yeah, understood19:20
zygaoparoz: it would be nice to at least switch to 2.0 snappy because that old image feels like tech debt personified, it's going to bite you more the longer you wait19:20
oparozBut yeah, it's problemtic because some problems don't apply any more19:20
ogra_it is just that any development you do on them is moot ... since the design of snappy changed a lot19:20
zygayou probably require an interface, you won't find that on that old image19:20
kyrofazyga, still using old-security there. Fortunately the interfaces required are simple (network and network-bind)19:21
zygaI think you have a tough choice ahead19:21
zygakyrofa: cool, nothing fancy to access hdds?19:21
kyrofazyga, we're splitting partitions19:21
zygakyrofa: ah, interesting19:21
oparozWe're going to have to switch in the next 2 weeks anyway19:22
kyrofaSo the upgrade path is actually pretty easy. It's just that 16 a) isn't stable and b) doesn't seem to support preinstalling snaps so we can't generate a factory image19:22
kyrofaUnless mvo's new u-d-f fixed the --install and it works on 1619:23
zygawe're working on making udf saner again but it's still a roadmap19:23
ogra_i thought that was fixed a while ago19:23
zygaI mean a permanent fix19:23
zyganot another layer of duct tape19:23
* ogra_ doesnt know what everyone has against duct tape ... 19:24
* oparoz agrees :D19:24
oparozexcept when it comes to software development ;)19:25
zygaI'd hear what you say if I dind't have duct tape over my ears ;)19:25
ogra_well, at least you'll get rid of these hairs in your ears then :P19:25
kyrofazyga, anyway, we'd love to jump to 16. But we need those things19:26
kyrofaSo rolling stable is at least giving people something to test19:26
zygakyrofa: those things?19:26
kyrofastability and preinstalled snaps19:26
zygakyrofa: I'm not sure I know what you refert to now19:27
zygaah19:27
zygastability as in debian stable, that I understand19:27
zygapreinstalled snaps, soon :)19:27
zygaish19:27
* zyga loves 'ish'19:27
* ogra_ used to work for "ish" 19:27
oparozzyga, weeks?19:27
zygaoparoz: ask me after the next sprint19:27
oparozzyga, OK19:27
zygaoparoz: now I can reliably predict by looking at coffee leftovers or other wizardy19:28
kyrofaoparoz, which is in 10 days19:28
zygaish19:28
zygayep19:28
ogra_https://de.wikipedia.org/wiki/Ish_%28Unternehmen%2919:28
ogra_(not even available in english )19:28
kyrofaogra_, wait.. you were serious? :P19:28
zygaLOL19:28
ogra_yeah :)19:28
zygathat explains a lot ;)19:28
zygahehe19:28
zygalovely company name19:29
ogra_that was my last job before canonical ...  leading a tech team of 15 ppl19:29
* zyga recalls the company that makes light bulbs "osram", which is very popular in poland despite the name19:29
ogra_cable internet was the new thing in germany back then19:29
kyrofaI can hear the promo now: "Stable... fast.. _ish_"19:29
oparoz(kyrofa, 10 days is good, we can make a decision then)19:30
kyrofaHey sergiusens I figured out what was wrong with the ROS example19:43
kyrofasergiusens, it's a locale issue-- setting LC_ALL=C fixes it19:44
kyrofasergiusens, I guess something changed on xenial?19:44
ogra_should be C.UTF-8 nowadays19:44
ogra_(and iirc thats the default fallback in xenial)19:44
kyrofaogra_, setting that works too, but without it it barfs19:45
kyrofaogra_, but my ignorant american self doesn't know very much about locales :(19:45
ogra_yeah, you're i ascii-land19:45
ogra_wow, snapcraft grew some solid dependencies ...19:47
* ogra_ notes while reading image build logs that it pulls in 30 packages and eats 10MB nowadays19:47
ogra_(50MB installed)19:48
oparozIF I want to add "reload to a daemon, I simply add reload-command to the "app" in the yaml?19:56
zygaoparoz: not sure19:57
zygagimme a sec19:57
oparozhttps://developer.ubuntu.com/en/snappy/build-apps/snapcraft-syntax/19:57
oparozNo mention or reload, so I gues not...19:57
zygaone sec :)19:59
zygachecking now19:59
oparozThanks zyga :)19:59
zygaoparoz: so there's restart condition20:00
zygabut there is no restart command20:00
zygawait20:00
zygachecking services20:00
oparozzyga, I've noticed that restart works out of the box, but reload doesn't, so I thought I needed to add something to the yaml20:00
* ogra_ sighs ... livecd-rootfs doesnt like me today20:01
zygathere are ExecStop20:01
zygaExecStopPost20:01
zygaExecStart20:01
zygaand that's it20:01
oparoz:(20:01
zygathere's also Restart20:01
zygawhat are you looking for exactly?20:01
ogra_cant you send a HUP to the process if it is in the same snap ?20:02
oparozzyga, in quite a few situations, you just want to reload a config without having to bring everything down and up again20:02
zygaoparoz: do what ogra_ said20:02
oparozOK, I will give it a go20:03
oparozpkill didn't work, but kill did, thanks ogra_20:16
ogra_good20:17
wililupyogra_ adding the type: kernel to the snapcraft.yaml makes it work as designed!20:22
ogra_yay20:22
wililupyNo need to change anything manually.20:22
ogra_good you finally got everything working :)20:22
wililupyYes!20:23
wililupyNow on to building the app snap. This should be a little more straight forward.20:23
zygaoparoz: pkill would need /proc access20:23
wililupyThank you so much ogra_, mvo, sergiusens, kyrofa!20:24
zygamorphis: any updates on https://github.com/ubuntu-core/snappy/pull/103620:24
ogra_np20:24
oparozAh, thanks zyga. That was a question I had. Any daemon requesting access to /proc is hutdown, correct?20:24
zygaoparoz: not really, just denied access to pkill wound't be able to find all the details probably20:24
zygaoparoz: (depending on how pkill is written)20:24
* zyga should finish the current post on snappy security20:25
oparozzyga, OK, so denied access which some "app" may not be too happy about20:26
ogra_yay, finally ...20:40
* ogra_ has the images building again 20:40
zygaogra_: cool :-)20:43
ogra_silly stuff ...20:43
ogra_something like:20:43
ogra_[ -d /boot/grub ] && rm -f /boot/grub20:43
ogra_makes everything explode ...20:44
ogra_because on all arches where that dir doesnt exist the test exits non-zero and tears down live-build20:44
* ogra_ hates that common sense doesnt apply in some cases ...20:45
zygaogra_: like almost always?20:46
ogra_heh20:46
zygaogra_: note that common sense is just that, common, it's not really always sensible :)20:46
kgunnzyga: i was just wondering, when hacking on snap/snapd and using your tools...i was just doing refresh-bits snap/snapd/run-snapd...but should i be doing 'refresh-bits setup' first ?20:46
ogra_so true20:46
kgunni'm still not seeing any of my changes applied when i run the tools20:47
kgunnfwiw, i did try doing refresh-bits setup...but didn't make a diff20:47
zygakgunn: setup is needed once per vm boot20:48
zygakgunn: it ensures that regular snapd doesn't start by accident20:48
zygakgunn: I run setup snapd run-snapd; then only snapd run-snapd20:48
zygakgunn: what were you hoping to happen?20:49
zygakgunn: what changes?20:50
zygakgunn: after you push the new snapd to your VM you should uninstall/reinstall your mir snap20:52
zygakgunn: and observe interfaces reported by snap interfaces20:52
zygakgunn: and observe generated apparmor/seccomp profiles20:52
kgunnzyga: so question...if i don't install mir snap at all, and only run the mod'd snapd...and i type snap interfaces...i should see the mod correct?20:53
zygawhat mod?20:53
kgunnzyga: mod== addition of an interface called mir20:53
zygawhat were you expecting to see exactly, from what I remember from your branch you woundn't see anything new20:53
zygathere is no way to see the list if interfaces20:54
zygajust the list of plugs and slots20:54
zygathose come from snaps20:54
zyganote that the OS snap would *not* offer the mir slot20:54
zygait would be offered by mir itself20:54
zygaso you'd have to install new snapd, install mir (snap) and see what the rsult is20:54
kgunnok20:54
zygadoes that make sense?20:55
zygasnapd would contain the implementation of mir interface20:55
zygabut that would only show up when you install the mir snap20:55
zyganormally snappy logs and ignores unknown interfaces on snaps20:55
zygabut with your patches, mir snap would really gain the mir slot20:56
zygaand would really gain the permanent permissions resulting from that slot20:56
zygaright?20:56
kgunnzyga: ok, maybe i've been trying to see something that simply won't happen20:56
kgunni'll fiddle a bit more later with this...good to know on the setup run first time on vm tho20:57
sergiusenskyrofa sadly saying please is mandatory21:46
ogra_you could also friendly say please though21:49
ogra_:P21:49
sergiusensogra_ not to a build system that decides to fail :-P21:55
sergiusensogra_ imagine saying please to livecd rootfs ;-)21:55
ogra_i did, it helped !21:55
thekeymakerif you are building snaps using snapcraft on ubuntu 16.04, is there a easy way to try(run) them instead of installing them with the command snap install ./my-snap?22:15
zygathekeymaker: not yet22:53
zygathekeymaker: though installing them is very lightweight22:54
zygathekeymaker: we just copy and mount them22:54
zygathere are plans to add a new command that will be even better but that's not finalized22:54
zygathekeymaker: and also note that unless you run master you should remove the snap first, this will avoid hitting a number of known, fixed but (not released) bugs22:55
oparozzyga are symlinked followed when a snap is removed or purged?23:10
oparoz*symlinks23:10
zygaI'm not sure, probably23:10
zygabut I don't really know and it's rather too late for me to check now23:10
zyga(and give you an accurate answer)23:11
oparozyeah, no worries, was surprised to still see you here ;)23:11
* zyga is writing a very long article 23:11
oparozAh :)23:11
DomiHello, does anyone use Python in a snap?23:44

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