[01:34] kyrofa, i'm pretty sure we could just add a serial interface to all gadgets by default, lets talk tomorrow [06:41] PR snapd#2939 closed: cmd/libsnap: add sc_string_append_char [07:00] PR snapd#2949 opened: cmd/libsnap: add sc_string_append_char_pair === 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 [09:51] Hello! 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 empty === Guest52630 is now known as JamesTait [09:52] PR snapd#2950 opened: interfaces: use spec in kmod backend, updated firewall_control, openvswitch_support, ppp [09:53] PR snapd#2899 closed: interfaces: use spec in kmod backend, updated firewall_control, openvswitch_support, ppp [09:55] PR snapd#2951 opened: interfaces: use seccomp specs [09:56] PR snapd#2940 closed: interfaces: use seccomp specs === JamesTait is now known as Guest48538 === Guest48538 is now known as JamesTait === zsombi_ is now known as zsombi [10:25] Hi! where can I get snapcraft lxd image ? [10:25] do we maintain one ? [10:47] om26er, iirc a "snapcraft cleanbuild" downloads it, it should show the download location it uses (i could be wrong though) [10:53] ogra_: hmm, seems snapcraft downloads a normal ubuntu image and installs packages afterwards [11:32] om26er: what else do you expect? regular snapcraft also builds on your classic ubuntu [11:32] kalikiana_: just an image with upto date snapcraft preinstalled :) [11:33] om26er: You don't need snapcraft in the image. It copies itself [12:09] PR snapd#2952 opened: release: detect if we are in ForcedDevMode by inspecting the kernel === tedg_ is now known as tedg [14:48] PR snapd#2953 opened: release: detect if we are in ForcedDevMode by inspecting the kernel [14:50] Bug #1667844 changed: r1325 core snap candidate rebooting every 7 min without iTCO_wdt module loaded [15:14] PR snapd#2954 opened: wip: 2nd setup-profiles done after restart for installing core === iliv_ is now known as iliv [15:33] PR snapd#2955 opened: cmd: fixes to run correctly on opensuse === dgadomski_ is now known as dgadomski [15:40] wut [15:40] mvo: openSUSE?! [15:42] oh, these are zyga commits in disguise [15:53] Bug #1642581 changed: Livepatch checkState: check-failed [16:10] Hey ogra_, I don't think the serial-port interface has an "all" option, does it? [16:11] kyrofa, no, but if your plug defines it and the device is fixed it should still work [16:12] ogra_, 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/2 [16:12] Bug #1645445: Turtlebot needs /dev/kobuki [16:13] ogra_, i.e. in the gadget itself [16:14] kyrofa, so we could define two at least .... /dev/ttyS0 and /dev/ttyUSB0 [16:19] ogra_, 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 helpful [16:20] ogra_, we have udev as an interface backend. I don't understand why the serial-port is slot-only [16:20] why ? if you have a single usb dongle attached it will always be USB0 [16:20] ogra_, as soon as you have more than one that breaks down [16:20] and if there is a local serial port the first one is always ttyS0 [16:21] indeed [16:21] but it works for a single serial port device, either native or USB [16:21] and you can add more slots ... USB1 ttyS1 [16:21] for USB that becomes kind of tricky indeed [16:22] since the order wont be fixed [16:22] ogra_, yeah that's what I mean by the inability to determine which device is which [16:22] and you have multiple in all your cases ? ? [16:23] For my specific use-case, no. I'm currently only using one. But in the systems I've used in the past we had several [16:25] so... "\Adjusting snap declaration for the slot side to include "deny-auto-connection": "true" since it was mistakenly omitted.รข" what does that mean? [16:56] thresh, where are you seeing that? [18:27] is 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] lazyPower, if the pull step has already completed it shouldn't be trying it again [18:27] lazyPower, are you cleaning it each time? [18:27] kyrofa: :| thats unfortunate. its attempting to fetch etcd over and over [18:28] i 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] lazyPower, yeah snapcraft does its own state tracking [18:28] lazyPower, 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 build [18:29] ahhhh ok [18:29] lazyPower, you can do that per-part as well: snapcraft clean -s build [18:29] now i just need to get past this connectivity issue and we should be golden once i've got the package fetched again [18:29] thanks for the details kyrofa [18:29] lazyPower, it's why I'm here! Any time [18:30] oh, 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/1668659 [18:30] Bug #1668659: Using snaps in lxd can be problematic during refresh (using squashfuse) [18:30] looks like squashfuse works great until you go to refresh and the apparmor profile steps in to create schenanigans [18:30] Ah interesting [18:30] so its isolated to lxd, i gave it some additional love on clouds and things were working as expected [18:31] i expected to find dragons in there tbh... snaps in lxd is still experimental no? [18:31] lazyPower, as far as I know, yes. But that's a better question for stgraber [18:31] fair enough, consult with the oracle of containers [18:31] Indeed :) [18:44] kyrofa: 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:45] on 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] lazyPower, "in place" meaning what... within the installed snap itself? You will quickly become sad if so [18:46] oooookay, thats why i asked before i hozed it :) [18:46] lazyPower, haha, so yes, that's what you meant? [18:47] lazyPower, we don't check the integrity within the snap as it's immutable-- it's a squashfs image, you can't actually change it [18:47] lazyPower, so: you won't be sad because things will break, but because you won't actually succeed [18:47] ooo [18:47] okay, well that makes sense [18:48] sorry still wrapping my head around the tech and poking it with progressively longer sticks to see what it does [18:48] lazyPower, squashfs is a compressed filesystem that is by definition read-only [18:49] PR snapcraft#1164 opened: tests: run the master tests against the staging server [18:50] lazyPower, and no apology necessary, sorry if I came off as abrasive there, I'm just messing with ya [18:51] no way :) you're good kyrofa [18:51] lazyPower, are you still developing this snap? Or when you say "[...] with the last push" did you release something? [18:51] not to the store, no. I'm picking up where sabdfl left off with etcd and massaging it into the charm [18:52] lazyPower, do you know about `snap try`? [18:52] i do not [18:52] lazyPower, 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 noticed [18:52] yeah, this looks like the devmode stuff from before but minus the squashfs bits [18:52] interesting [18:53] lazyPower, snapcraft's 'prime' step creates a `prime` directory that is literally the final snap, but not put into the final image [18:54] lazyPower, instead of running all the way through snapcraft's lifecycle, you could stop on `prime` and just `snap try prime` [18:54] lazyPower, 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 snap [18:54] ok, i'll give this a go once i can unblock snapcraft (s3 is down \o/) [18:54] lazyPower, which means it's no longer read-only. As you change stuff in `prime`, you change the snap [18:55] lazyPower, s3 is only down in us-east I think [18:55] lazyPower, us-west-2 is working here [18:55] seems to be what i'm routing to :( [18:55] Poor guy [18:55] lazyPower, anyway, consider that your snappy lesson of the day [18:56] thanks kyrofa :) its very helpful [18:57] lazyPower, any time [19:04] PR snapcraft#1155 closed: beta [19:04] kyrofa: one additional question you might have insight into [19:05] lazyPower, sure [19:05] kyrofa: 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:06] lazyPower, durable storage = remains when the snap is removed? [19:06] well, think AWS EBS volumes. [19:06] yeah [19:06] lazyPower, ah sure [19:06] you could nuke the application, and restore from that data dir and dump + restore [19:06] but snap remove would effectively wipe that out wouldn't it? [19:06] lazyPower, I suggest using the `removable-media` plug [19:07] lazyPower, that would allow access to disks in /media/ [19:07] hmmm ok [19:07] https://github.com/CanonicalLtd/snappy-docs/blob/master/reference/interfaces.md - that appears undocumented [19:07] * lazyPower files a bug [19:08] lazyPower, I see it there [19:08] argh darn me and my typos [19:08] you are correct its inline [19:39] hello, any freelancers out there in Germany or Switzerland with experience with Ubuntu Core and snaps on ARM hardware? [19:40] or any hint at where to find them? Somebody I know is looking for an engineer for a short placement with this kind of experience [19:40] jdstrand: 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] diddledan: no. just a store side thing [19:40] jsolano, have you mentioned this to Canonical? They might be able to help you [19:41] thanks [19:41] diddledan: np [19:41] diddledan: I just wanted you and other reviewers to know I did it [19:41] cool :-) [19:41] kyrofa, yes, I checked with them and I think they posted the information on linkedin, but no luck so far [19:42] jsolano, did you speak to them about a commercial engagement for them to do the work? [19:43] if i snap refresh --revision, what happens when the next refresh happens? [19:43] balloons, I have that same question. Chipaca, are you around to answer that one? [19:43] kyrofa, actually not, I didn't think about that route, perhaps something worth considering [19:44] jsolano, direct message your contact info to me, I can put you in touch with the right people [19:46] (if you're interested, of course) [19:54] kyrofa, 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 one [19:54] balloons, indeed, I know that in order to use specific revisions you need to be a developer for the snap in question [19:54] balloons, but the question about what happens by an update, no idea [19:55] Bug #1668738 opened: core snap with configure hook fails for some people [20:53] Is there something equivalent to cronjobs in snaps? [20:55] PR snapd#2945 closed: interfaces: miscellaneous policy updates for unity7, udisks2 and browser-support (LP: #1667480) [20:56] Is 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 this [20:57] PR snapd#2946 closed: interfaces: consistently use 'const' instead of 'var' for security policy [20:57] how do I ship logrotate files and systemd service files in snap packages? I want to package a server-side software. [20:58] thresh: so snappy creates systemd files for you when you declare daemons in the snapcraft.yaml [20:58] thresh: 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] kyrofa, I believe jdstrand did something to my VLC snap that is uploaded to the store :) [20:59] lazyPower, aha, nice, thanks! [20:59] thresh: regarding the logrotate jobs, i'm not positive on that front, might be worth a ping to the snapcraft ML if nobody pipes up here [21:02] thresh: I did not touch the snap. I adjusted its snap declaration [21:02] jdstrand, do we have to do anything on our side? [21:02] thresh: nope [21:02] It was a bit weird, though. [21:03] thresh: just wanted people to know the change was made [21:03] OK, thanks! [21:05] can i build classic snaps in launchpad yet> [21:05] ? [21:08] mwhudson, I haven't tried lately, but I _think_ so [21:16] ah heck, i can't use the same snap name for two branches [21:17] although maybe that doesn't actually matter here [21:19] Setting up '/home/buildd/.cache/snapcraft/projects/snapcraft-core/snap_hashes/ppc64el/d8e9e73dabe243321f9df8b09e270bccfde6f273f05d90a21365aa6f77574127274479af8033389c0be076797c74a595' in '/snap/core/current' [21:19] looks promising [21:36] mwhudson, yeah, the snap name in LP is specific to LP. When it comes to uploading it, it uses the one declared in the YAML [21:36] kyrofa: makes sense, if i a bit confusing at first [21:36] Indeed [21:38] kyrofa: i guess support for auto pushing to tracks from lp is on some trello board somewhere but not yet done? [21:38] mwhudson, yeah no idea on that one [21:39] paging cjwatson wgrant etc [21:47] hmm would also be nice if snap builds dumped out the build environment like sbuild does [21:47] oh right i guess cleanbuild works with classic snaps now too [21:48] It should, yes [21:50] mwhudson: Yeah, we're a bit busy atm, but it's on the agenda. [21:52] PR snapd#2956 opened: interfaces: 'getent' by default; add /etc/ethers to network_{control,observe} [21:53] kyrofa: fyi ^ [21:55] jdstrand, hey thanks! [21:55] np [21:55] jdstrand, did you see on the mailing list that I finally learned what was going on with the DNS issues? [21:55] kyrofa: I did. a cname bug. annoying :\ [21:55] Indeed [21:56] kyrofa: but at least the mystery is solved [21:56] jdstrand, no kidding. Man was I ever confused [22:03] ssweeny: fyi, this is committed now: https://github.com/snapcore/snapd/pull/2945/files#diff-52246fa9c4d8b0b81c71014fbec7b1b6R91 [22:03] PR snapd#2945: interfaces: miscellaneous policy updates for unity7, udisks2 and browser-support (LP: #1667480) [22:04] mwhudson: yep, I'm due to talk with Facu about it when not entirely swamped with MWC