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

ogra_kyrofa, i'm  pretty sure we could just add a serial interface to all gadgets by default, lets talk tomorrow01:34
mupPR snapd#2939 closed: cmd/libsnap: add sc_string_append_char <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2939>06:41
mupPR snapd#2949 opened:  cmd/libsnap: add sc_string_append_char_pair <Created by zyga> <https://github.com/snapcore/snapd/pull/2949>07:00
=== caribou_ is now known as caribou
=== tinwood_swap is now known as tinwood
=== JanC is now known as Guest13435
=== JanC_ is now known as JanC
=== JamesTait is now known as Guest52630
RoninDevHello! Can you help me please. I try to make snap using github sources. Github sources contains perl scripts. I need to run perl build script and after it copy all directory into the snap. But my prime and stage folders are empty. I use plugin dump, scriptlet "build: perl build.pl". If i comment build scriptlet, all sources persists in destination stage and prime. But if I uncomment it, destination folders are empty09:51
=== Guest52630 is now known as JamesTait
mupPR snapd#2950 opened: interfaces: use spec in kmod backend, updated firewall_control, openvswitch_support, ppp <Created by stolowski> <https://github.com/snapcore/snapd/pull/2950>09:52
mupPR snapd#2899 closed: interfaces: use spec in kmod backend, updated firewall_control, openvswitch_support, ppp <Created by stolowski> <Closed by stolowski> <https://github.com/snapcore/snapd/pull/2899>09:53
mupPR snapd#2951 opened: interfaces: use seccomp specs <Created by stolowski> <https://github.com/snapcore/snapd/pull/2951>09:55
mupPR snapd#2940 closed: interfaces: use seccomp specs <Created by stolowski> <Closed by stolowski> <https://github.com/snapcore/snapd/pull/2940>09:56
=== JamesTait is now known as Guest48538
=== Guest48538 is now known as JamesTait
=== zsombi_ is now known as zsombi
om26erHi! where can I get snapcraft lxd image ?10:25
om26erdo we maintain one ?10:25
ogra_om26er, iirc a "snapcraft cleanbuild" downloads it, it should show the download location it uses (i could be wrong though)10:47
om26erogra_: hmm, seems snapcraft downloads a normal ubuntu image and installs packages afterwards10:53
kalikiana_om26er: what else do you expect? regular snapcraft also builds on your classic ubuntu11:32
om26erkalikiana_: just an image with upto date snapcraft preinstalled :)11:32
kalikiana_om26er: You don't need snapcraft in the image. It copies itself11:33
mupPR snapd#2952 opened: release: detect if we are in ForcedDevMode by inspecting the kernel <Created by mvo5> <https://github.com/snapcore/snapd/pull/2952>12:09
=== tedg_ is now known as tedg
mupPR snapd#2953 opened: release: detect if we are in ForcedDevMode by inspecting the kernel <Created by mvo5> <https://github.com/snapcore/snapd/pull/2953>14:48
mupBug #1667844 changed: r1325 core snap candidate rebooting every 7 min without iTCO_wdt module loaded <Snappy:Fix Released> <https://launchpad.net/bugs/1667844>14:50
mupPR snapd#2954 opened: wip: 2nd setup-profiles done after restart for installing core <Blocked> <Created by pedronis> <https://github.com/snapcore/snapd/pull/2954>15:14
=== iliv_ is now known as iliv
mupPR snapd#2955 opened: cmd: fixes to run correctly on opensuse <Created by mvo5> <https://github.com/snapcore/snapd/pull/2955>15:33
=== dgadomski_ is now known as dgadomski
Pharaoh_Atemwut15:40
Pharaoh_Atemmvo: openSUSE?!15:40
Pharaoh_Atemoh, these are zyga commits in disguise15:42
mupBug #1642581 changed: Livepatch checkState: check-failed <Snappy:New> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1642581>15:53
kyrofaHey ogra_, I don't think the serial-port interface has an "all" option, does it?16:10
ogra_kyrofa, no, but if your plug defines it and the device is fixed it should still work16:11
kyrofaogra_, judging from this comment, the definition of individual devices actually needs to be slot-side right now: https://bugs.launchpad.net/snapd/+bug/1645445/comments/216:12
mupBug #1645445: Turtlebot needs /dev/kobuki <snapd-interface> <snapd:Confirmed> <https://launchpad.net/bugs/1645445>16:12
kyrofaogra_, i.e. in the gadget itself16:13
ogra_kyrofa, so we could define two at least .... /dev/ttyS0 and /dev/ttyUSB016:14
kyrofaogra_, yeah that's the best we could do I think, and it doesn't help I'm afraid. Not only does it not work for multiple devices, but the inability to determine which device is which means even if we expanded that it's not very helpful16:19
kyrofaogra_, we have udev as an interface backend. I don't understand why the serial-port is slot-only16:20
ogra_why ? if you have a single usb dongle attached it will always be USB016:20
kyrofaogra_, as soon as you have more than one that breaks down16:20
ogra_and if there is a local serial port the first one is always ttyS016:20
ogra_indeed16:21
ogra_but it works for a single serial port device, either native or USB16:21
ogra_and you can add more slots ... USB1 ttyS116:21
ogra_for USB that becomes kind of tricky indeed16:21
ogra_since the order wont be fixed16:22
kyrofaogra_, yeah that's what I mean by the inability to determine which device is which16:22
ogra_and you have multiple in all your cases ? ?16:22
kyrofaFor my specific use-case, no. I'm currently only using one. But in the systems I've used in the past we had several16:23
threshso... "\Adjusting snap declaration for the slot side to include "deny-auto-connection": "true" since it was mistakenly omitted.รข" what does that mean?16:25
kyrofathresh, where are you seeing that?16:56
lazyPoweris there a way to skip the fetch phase of the dump plugin? My upstream source seems to be having flakey connectivity issues today, i have the .tar.bz2 source already fetched, seems like it should just take that unless i clean it?18:27
kyrofalazyPower, if the pull step has already completed it shouldn't be trying it again18:27
kyrofalazyPower, are you cleaning it each time?18:27
lazyPowerkyrofa: :| thats unfortunate. its attempting to fetch etcd over and over18:27
lazyPoweri was, however i've placed the release tarball its expecting in $PWD and it seems to think thats not good enough, its still attempting to fetch it.18:28
kyrofalazyPower, yeah snapcraft does its own state tracking18:28
kyrofalazyPower, stop cleaning the pull step, then. You can clean each step of the lifecycle individually. If you don't want to pull again, just clean back to the build step: snapcraft clean -s build18:28
lazyPowerahhhh ok18:29
kyrofalazyPower, you can do that per-part as well: snapcraft clean <part> -s build18:29
lazyPowernow i just need to get past this connectivity issue and we should be golden once i've got the package fetched again18:29
lazyPowerthanks for the details kyrofa18:29
kyrofalazyPower, it's why I'm here! Any time18:29
lazyPoweroh, also! I discovered what my issue seems to have been wrt snap refresh bailing... (i think it was zyga that followed up actually... but i pinged you instead. derp!) https://bugs.launchpad.net/snapd/+bug/166865918:30
mupBug #1668659: Using snaps in lxd can be problematic during refresh (using squashfuse) <snapd:New> <https://launchpad.net/bugs/1668659>18:30
lazyPowerlooks like squashfuse works great until you go to refresh and the apparmor profile steps in to create schenanigans18:30
kyrofaAh interesting18:30
lazyPowerso its isolated to lxd, i gave it some additional love on clouds and things were working as expected18:30
lazyPoweri expected to find dragons in there tbh... snaps in lxd is still experimental no?18:31
kyrofalazyPower, as far as I know, yes. But that's a better question for stgraber18:31
lazyPowerfair enough, consult with the oracle of containers18:31
kyrofaIndeed :)18:31
lazyPowerkyrofa: i just need to edit a shellscript to resolve some syntax errors i built with the last push. is it going to set off alarms if i just edit the wrapper in place?18:44
lazyPoweron the installed unit (not sure if we tripwire or crc check or whatever integrity checks in snaps... but i know its a big deal)18:45
kyrofalazyPower, "in place" meaning what... within the installed snap itself? You will quickly become sad if so18:45
lazyPoweroooookay, thats why i asked before i hozed it :)18:46
kyrofalazyPower, haha, so yes, that's what you meant?18:46
kyrofalazyPower, we don't check the integrity within the snap as it's immutable-- it's a squashfs image, you can't actually change it18:47
kyrofalazyPower, so: you won't be sad because things will break, but because you won't actually succeed18:47
lazyPowerooo18:47
lazyPowerokay, well that makes sense18:47
lazyPowersorry still wrapping my head around the tech and poking it with progressively longer sticks to see what it does18:48
kyrofalazyPower, squashfs is a compressed filesystem that is by definition read-only18:48
mupPR snapcraft#1164 opened: tests: run the master tests against the staging server <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1164>18:49
kyrofalazyPower, and no apology necessary, sorry if I came off as abrasive there, I'm just messing with ya18:50
lazyPowerno way :) you're good kyrofa18:51
kyrofalazyPower, are you still developing this snap? Or when you say "[...] with the last push" did you release something?18:51
lazyPowernot to the store, no. I'm picking up where sabdfl left off with etcd and massaging it into the charm18:51
kyrofalazyPower, do you know about `snap try`?18:52
lazyPoweri do not18:52
kyrofalazyPower, well, squashfs images being read-only is a cool, important part of the snap story. But it's incredibly annoying when you're still developing your snap, as you may have noticed18:52
lazyPoweryeah, this looks like the devmode stuff from before but minus the squashfs bits18:52
lazyPowerinteresting18:52
kyrofalazyPower, snapcraft's 'prime' step creates a `prime` directory that is literally the final snap, but not put into the final image18:53
kyrofalazyPower, instead of running all the way through snapcraft's lifecycle, you could stop on `prime` and just `snap try prime`18:54
kyrofalazyPower, then instead of installing/mounting the squashfs image (which would be read-only), snapd will bind-mount the `prime` directory into place and treat it as the snap18:54
lazyPowerok, i'll give this a go once i can unblock snapcraft (s3 is down \o/)18:54
kyrofalazyPower, which means it's no longer read-only. As you change stuff in `prime`, you change the snap18:54
kyrofalazyPower, s3 is only down in us-east I think18:55
kyrofalazyPower, us-west-2 is working here18:55
lazyPowerseems to be what i'm routing to :(18:55
kyrofaPoor guy18:55
kyrofalazyPower, anyway, consider that your snappy lesson of the day18:55
lazyPowerthanks kyrofa :) its very helpful18:56
kyrofalazyPower, any time18:57
mupPR snapcraft#1155 closed: beta <Created by snappy-m-o> <Merged by elopio> <https://github.com/snapcore/snapcraft/pull/1155>19:04
lazyPowerkyrofa: one additional question you might have insight into19:04
kyrofalazyPower, sure19:05
lazyPowerkyrofa: We have user requests to support durable storage for applications. /var/snap/$snap/$revision is a versioned fs path, i cant just bindmount the block device to a specific version. The only way to work around this would be to take over the /var/snap/$snap path?19:05
kyrofalazyPower, durable storage = remains when the snap is removed?19:06
lazyPowerwell, think AWS EBS volumes.19:06
lazyPoweryeah19:06
kyrofalazyPower, ah sure19:06
lazyPoweryou could nuke the application, and restore from that data dir and dump + restore19:06
lazyPowerbut snap remove would effectively wipe that out wouldn't it?19:06
kyrofalazyPower, I suggest using the `removable-media` plug19:06
kyrofalazyPower, that would allow access to disks in /media/19:07
lazyPowerhmmm ok19:07
lazyPowerhttps://github.com/CanonicalLtd/snappy-docs/blob/master/reference/interfaces.md - that appears undocumented19:07
* lazyPower files a bug19:07
kyrofalazyPower, I see it there19:08
lazyPowerargh darn me and my typos19:08
lazyPoweryou are correct its inline19:08
jsolanohello, any freelancers out there in Germany or Switzerland with experience with Ubuntu Core and snaps on ARM hardware?19:39
jsolanoor any hint at where to find them? Somebody I know is looking for an engineer for a short placement with this kind of experience19:40
diddledanjdstrand: I got a notification that you made a change to corebird-diddledan to a slot declaration. Do I need to make any changes to my snapcraft.yml at all for future uploads to automatically have that or is the fix entirely store-side?19:40
jdstranddiddledan: no. just a store side thing19:40
kyrofajsolano, have you mentioned this to Canonical? They might be able to help you19:40
diddledanthanks19:41
jdstranddiddledan: np19:41
jdstranddiddledan: I just wanted you and other reviewers to know I did it19:41
diddledancool :-)19:41
jsolanokyrofa, yes, I checked with them and I think they posted the information on linkedin, but no luck so far19:41
kyrofajsolano, did you speak to them about a commercial engagement for them to do the work?19:42
balloonsif i snap refresh --revision, what happens when the next refresh happens?19:43
kyrofaballoons, I have that same question. Chipaca, are you around to answer that one?19:43
jsolanokyrofa, actually not, I didn't think about that route, perhaps something worth considering19:43
kyrofajsolano, direct message your contact info to me, I can put you in touch with the right people19:44
kyrofa(if you're interested, of course)19:46
balloonskyrofa, I think it would require you to be the owner to do it? I'm not sure. The same question exists if you revert to a specific revision. I imagine either way you'll be bumped forward again by the next one19:54
kyrofaballoons, indeed, I know that in order to use specific revisions you need to be a developer for the snap in question19:54
kyrofaballoons, but the question about what happens by an update, no idea19:54
mupBug #1668738 opened: core snap with configure hook fails for some people <Snappy:New> <https://launchpad.net/bugs/1668738>19:55
bdmurrayIs there something equivalent to cronjobs in snaps?20:53
mupPR snapd#2945 closed: interfaces: miscellaneous policy updates for unity7, udisks2 and browser-support (LP: #1667480) <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2945>20:55
lazyPowerIs there a way to query the snap package listing in a format other than smart output? I need to surface some data and >>> check_output(split('snap list | grep rclone')).strip().split(b'\n')[-1].split(b' ')[2] seems like a really ugly and brittle way to do this20:56
mupPR snapd#2946 closed: interfaces: consistently use 'const' instead of 'var' for security policy <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2946>20:57
threshhow do I ship logrotate files and systemd service files in snap packages?  I want to package a server-side software.20:57
lazyPowerthresh: so snappy creates systemd files for you when you declare daemons in the snapcraft.yaml20:58
lazyPowerthresh: for example i'm working with the etcd snap and it creates a 'snap.etcd.etcd' service which is the etcd systemd job that controls ensuring the daemon is up and running.20:58
threshkyrofa, I believe jdstrand did something to my VLC snap that is uploaded to the store :)20:58
threshlazyPower, aha, nice, thanks!20:59
lazyPowerthresh: regarding the logrotate jobs, i'm not positive on that front, might be worth a ping to the snapcraft ML if nobody pipes up here20:59
jdstrandthresh: I did not touch the snap. I adjusted its snap declaration21:02
threshjdstrand, do we have to do anything on our side?21:02
jdstrandthresh: nope21:02
threshIt was a bit weird, though.21:02
jdstrandthresh: just wanted people to know the change was made21:03
threshOK, thanks!21:03
mwhudsoncan i build classic snaps in launchpad yet>21:05
mwhudson?21:05
kyrofamwhudson, I haven't tried lately, but I _think_ so21:08
mwhudsonah heck, i can't use the same snap name for two branches21:16
mwhudsonalthough maybe that doesn't actually matter here21:17
mwhudsonSetting up '/home/buildd/.cache/snapcraft/projects/snapcraft-core/snap_hashes/ppc64el/d8e9e73dabe243321f9df8b09e270bccfde6f273f05d90a21365aa6f77574127274479af8033389c0be076797c74a595' in '/snap/core/current'21:19
mwhudsonlooks promising21:19
kyrofamwhudson, yeah, the snap name in LP is specific to LP. When it comes to uploading it, it uses the one declared in the YAML21:36
mwhudsonkyrofa: makes sense, if i a bit confusing at first21:36
kyrofaIndeed21:36
mwhudsonkyrofa: i guess support for auto pushing to tracks from lp is on some trello board somewhere but not yet done?21:38
kyrofamwhudson, yeah no idea on that one21:38
mwhudsonpaging cjwatson wgrant etc21:39
mwhudsonhmm would also be nice if snap builds dumped out the build environment like sbuild does21:47
mwhudsonoh right i guess cleanbuild works with classic snaps now too21:47
kyrofaIt should, yes21:48
wgrantmwhudson: Yeah, we're a bit busy atm, but it's on the agenda.21:50
mupPR snapd#2956 opened: interfaces: 'getent' by default; add /etc/ethers to network_{control,observe} <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2956>21:52
jdstrandkyrofa: fyi ^21:53
kyrofajdstrand, hey thanks!21:55
jdstrandnp21:55
kyrofajdstrand, did you see on the mailing list that I finally learned what was going on with the DNS issues?21:55
jdstrandkyrofa: I did. a cname bug. annoying :\21:55
kyrofaIndeed21:55
jdstrandkyrofa: but at least the mystery is solved21:56
kyrofajdstrand, no kidding. Man was I ever confused21:56
jdstrandssweeny: fyi, this is committed now: https://github.com/snapcore/snapd/pull/2945/files#diff-52246fa9c4d8b0b81c71014fbec7b1b6R9122:03
mupPR snapd#2945: interfaces: miscellaneous policy updates for unity7, udisks2 and browser-support (LP: #1667480) <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2945>22:03
cjwatsonmwhudson: yep, I'm due to talk with Facu about it when not entirely swamped with MWC22:04

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