=== chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun [06:25] PR snapd#3344 closed: cmd/snap-confine: use SNAP_MOUNT_DIR to setup /snap inside the confinement env [06:26] mvo: thanks! [06:27] morphis: thank you, that was a really useful fix! [06:27] :-) [06:28] morphis: want a hand with 3307? I can apply the simplifications if you want, otherwise the branch looks good so I'm keen to get it in soon(ish) [06:29] mvo: ah you approved it, was waiting for another review to get this further before I rework this [06:29] mvo: let me do that now [06:29] ta [06:31] mvo: pushed [06:32] mvo: while we're on it, what are we doing now with https://github.com/snapcore/snapd/pull/3308 [06:32] PR snapd#3308: tests/lib: introduce pkgdb helper library [06:32] mvo: I will work on getting it through the tests today but would like to have a final agreement on how we implement this [06:34] good morning [06:36] morphis: looking again [06:36] zyga: morning! [06:37] zyga: I would like to get to an agreement for https://github.com/snapcore/snapd/pull/3308 [06:37] PR snapd#3308: tests/lib: introduce pkgdb helper library [06:38] zyga, mvo: maybe we can quickly discuss anything left here [06:41] morphis: sounds good [06:42] morphis: I think I made my statement, I will respect whatever mvo decides [06:42] and if it doesn't work down the line (whatever we choose), it's just a commit away to change :) [06:42] true :-) [06:42] PR snapd#3346 opened: [WIP] allow access to nm-dispatcher scripts [06:47] zyga: I added another comment, but I agree, I think we just move forward we can always revisit the decision [06:48] ok, let's merge it then [06:49] mvo, zyga: thanks! [06:49] anymore real code-review comments? [06:51] morphis: I just had a look but I think that's all for now [06:51] zyga: ok, then let me see that tests are passing [06:59] mvo, zyga: https://github.com/snapcore/snapd/pull/3337 can have another review too [06:59] PR snapd#3337: errtracker: try multiple paths to read machine-id [07:16] zyga, hi, what is this system-shutdown command for? when is it used? [07:16] abeato: it used internally to ensure everything can be unmounted on shutdown [07:16] abeato: it's used on shutdown of a core system, it exists because systemd cannot by itself untagle the mount situation [07:17] zyga: snap :) [07:17] :D [07:17] zyga, hmm, so it is called by the shutdown/reboot command? [07:18] abeato: not really, it is called by systemd from initrd on shutdown [07:18] abeato: why? [07:19] zyga, I need to do some changes to how we reboot on core/kernel updates. I need to add an argumento to the reboot syscall so nex reboot goes to the recovery partition [07:19] so I¡m trying to understand how the reboot process works [07:20] abeato: aha [07:20] zyga, for instance "reboot -f recovery" does the desired thing, but "shutdown +10 recovery" does not [07:20] abeato: well, I think this is useful [07:21] abeato: well the reboot command above is special as "recovery" is not a term normally parsed [07:22] zyga, it is passed directly to the kernel: https://linux.die.net/man/2/reboot [07:22] abeato: but the good thing is that you can patch system-shutdown to reboot the way you need [07:22] zyga, yep, seems like a feasible hack [07:22] abeato: I know the man page, 'recovery' is not there [07:22] abeato: my point is that the command you quoted is custom [07:22] zyga, that is why I say it goes straight to the kernek [07:23] abeato: right [07:23] yep [07:23] abeato: so if you can express the desired reboot semantics via the system call you can do what you want [07:23] abeato: but note that you cannot pass any argument to system-shutdown [07:25] zyga, so how does it worl when I run "reboot"? first systemd, then initrd is mounted again and then system-shutdown is called? don't really know the details [07:27] abeato: I don't know for certain (read systemd code to know); I believe what happens is that when a special systemd unit is present (we make one) systemd ensures that shutdown is terminated from initrd using this executable [07:28] zyga, ok, I will pull the thread from there, thanks! [07:29] quote of the day for me: [07:29] from LWN [07:29] "and thus Torvalds is not sure if it a mount point can be tested if it is a bind mount or not" [07:29] jdstrand: ^^ :DD [07:29] * zyga has +1000 karma [07:32] zyga, the call to shutdown when there is a core/kernel update happens in daemon.go:Start(), is that right? [07:34] abeato: atm yes [07:34] ok [07:35] I mean, the code is there, it doesn't happen there, that code is setting a callback [07:36] pedronis, yes yes :) [07:37] how hard would it be to have snaps installable as a non-root user, ie: a I could install a snap (without sudo) for myself? [07:45] icey: for yourself, not planned [07:45] icey: without sudo, just "sudo snap login" once ;) [07:45] icey: but the per-user install case is not anywhere on the roadmap [07:45] zyga: I mean that I wish I could fo per-user snaps :-P [07:45] it would be fairly involved [07:45] even into something like $HOME/snap [07:45] would be awesome :) [07:46] add additional user level restrictions on top of the snap security model [07:46] icey: I agree with pedronis, it's not anything trivial [07:46] icey: on many many levels [07:46] mvo: hi, did you see my question in snapd#2592 ... do we need to skip creating /snap/foo links for those ? [07:46] PR snapd#2592: many: add support for session dbus services via snaps [07:47] I get that it's not trivial, but it would be *awesome* [07:47] so, wishlist ;) [07:47] pstolowski: hi, you haven't created that topic in the forum yet about interface hooks , right? [07:47] icey: well, it needs to fit design; right now it's not part of the design, even as a whislist item [07:48] icey: I would recommend to open a forum thread to describe it [07:48] icey: how you envision it might work, including services, confinement and what not [07:48] pedronis, that's right but I didn't forget about it, I'll do today [07:48] zyga: I'll do some thinking about it and post something, I don't really think it'd work with services unless systemd supports per-user services [07:49] rather, services owned by a specific user [07:49] icey: it does but it doesn't mean something can run as that user [07:49] icey: e.g. an "apache" snap [07:49] icey: it's a different beast entirely [07:50] zyga: right, services would be tough to model, which is why I want to think about it some more; I'm considering more from a tool perspective [07:50] icey: and there's ongoing for for user services but only as a part for "regular" snaps [07:50] icey: for tools it might be doable, just not sure why interesting [07:50] zyga: consider a user downloading something like nginx, and running it (on no priv port) as their own user [07:50] could be nice to use a snap instead of just running `nginx -{}` [07:51] icey: it feels like a rat's nest of issues [07:51] zyga: there are a lot of wishlist snaps that are just tools, inkscape, picasa, etc [07:51] icey: would all snaps work well this way? [07:51] icey: do you want them to run as yoursel? [07:51] and it would be very interesting to be to be able to install those without root [07:51] icey: you *can* install *anything* without root [07:51] icey: if you sudo snap login first [07:51] icey: that tells us you managed to be root once [07:52] icey: is the no-root thing some special requirement? [07:52] icey: e.g. on a machine you don't have root on otherwise? [07:52] there's a snap that managed to break apt a bit ago, no idea if it still does since I have removed it, but it would have been unable to if instaleld without root ;-) [07:53] icey: that was classic-confinement snap [07:53] the `snap install $SNAPNAME` for that snap messed around with the global system in unfortunate ways [07:53] icey: so it can do anything [07:53] zyga: now imagine if it didn't have root on install ;) [07:53] icey: and that snap would not work at all then [07:53] icey: "--classic" [07:53] well that snap managed to break because it needed lots of privileges in the first place [07:53] icey: you want impossible things [07:53] it would not have worked anyway [07:53] and it was bad that it made a mess of apt [07:54] pedronis: I'm curious about that, I kind of want to isntall it into a virtualenv and see if it still works ;-) [07:54] pedronis: yeah, made me sad because I like that tool, haven't had it on my computer since then [07:54] icey: virtualenv? what has that to do with anything? [07:54] fortunately, I haven't needed it [07:54] the tool is written in python [07:54] icey: anything that installs with --classic is just like a typical deb/rpm, it has full access to everything on the system [07:54] so I want to actually try using it from source, to see what these functions it "needs" are :) [07:54] agree zyga [07:57] icey: I really encourage you to think about how it should work, it might be possible to create a per-user install of certain kinds of snaps (pure apps, no services), but there are lots of quirks to figure out first [07:57] icey: a forum thread is a way to explore that [07:57] zyga: certainly, I bet that classic snaps could work too, but services would be really hard (and probably not worth it?) [07:57] icey: maybe with the session snapd deamon it might be doable but still many hard things there [07:58] icey: (e.g. imagine encrypted $HOME) [07:58] zyga: yeah, it'd have to be something that was entirely after $USER was logged in fully, I think that services for a user level snap would be not worth it [07:58] but being able to `snap install inkscape` without having root would be cool :) [07:59] pedronis: checking that question now [08:01] pedronis: is the question if wrappers.IsService need to take into account if its a dbus activatable service? [08:03] mvo: yes, which means though that we would not create /snap/svc for those [08:05] pedronis: no /snap/bin/svc ? not doing those is actually desirable [08:05] yes [08:05] sorry [08:05] no /snap/bin/svc [08:06] pedronis: slightly interessting how to organize the code so that we know in wrappers.IsService() if it is a dbus activated service [08:07] icey: well, you only need root once [08:07] (good morning peeps!) [08:07] icey: 'sudo snap login', and then you don't need sudo to snap install stuff [08:07] Chipaca: but snaps installed thereafter would have root access during install yeah? [08:07] yep [08:08] Chipaca: my wish would be to have non-root snaps as well [08:08] hey Chipaca, good morning [08:08] icey: ah [08:08] icey: to the forum! :-) [08:08] Chipaca: I'll thinkabout it and put something on the forum once I've thought it through a bit more :) [08:08] mvo: how's things? [08:08] icey: fair [08:08] Chipaca: good, thank you. how are you? [08:08] mvo: not bad [08:08] i opened my big mouth and promised a patch for go, it seems :-) but that's not necessarily *bad* [08:09] (in https://github.com/golang/go/issues/19546) [08:10] Chipaca: \o/ [08:12] I hadn't noticed IsService [08:12] why is it not a method of AppInfo? [08:13] Chipaca: a good question. it is pretty recent [08:14] Chipaca: so yeah, we should have a look at moving it [08:14] I can do it as part of this service and wrappers shuffle i'm doing [08:14] in fact I can piggy back it into snapd#3342; nobody's reviewed that yet :-) [08:14] PR snapd#3342: many: refactor in preparation for 'snap start' [08:16] Chipaca: because it's not clear snap should have opinions on that, indeed with dbus service the logic gets quite complicated for being in snap [08:17] pedronis: how so? [08:17] Chipaca: have you looked at the dbus activation branch? [08:17] anyway [08:17] pedronis: yeah, I'm actually not super happy about the complexity we have there currently already [08:18] pedronis: snapd#2592? [08:18] PR snapd#2592: many: add support for session dbus services via snaps [08:18] Chipaca: also Services would need to be something else, because now we have services that are not dbus services [08:18] I mean your new method [08:18] pedronis: and I much agree about snaps opinion about dbus etc [08:18] * mvo scratches head [08:18] Chipaca: you should probably look at it [08:19] so, if we need to call them daemons instead of services, fine [08:19] because it has influence at on names of stuff and where wrappers.IsService should go [08:19] Chipaca: unrelatedly, a 2nd review for snapd#3322 would be appreciated :) [08:19] PR snapd#3322: overlord: make config defaults from gadget work also at first boot [08:19] but so far "services" are things that systemd starts [08:20] Chipaca: now we have dbus activated "services", like classic classic classic [08:20] as you see from {Add,Remove,Start,Stop}SnapServices [08:20] and start-snap-services [08:20] etc [08:21] Chipaca: I'm happy not to care, and let you and mvo figure it out ;) [08:22] Chipaca: what pedronis said is true, there is the potential to have dbus services (user session) now and systemd unit that are dbus activated (soon) [08:22] pedronis: hehe [08:23] Chipaca: but maybe for your branch yu can mostly ignore it, the only thing I will need is some way to figure out that its a dbus service so that I don't write a /snap/bin/foo-dbus-activated file that is useless to the user [08:23] mvo: as things stand there's a lot of places where we use "service" to mean something that has a systemd unit [08:23] Chipaca: indeed, so maybe a new term? dubsActivated or somesuch [08:24] having a systemd unit that is dbus-activated instead of socket-activated or type=notify is just a variant, it's the same thing [08:24] but having a service that does not have a unit associated would be strange [08:24] Chipaca: right, the user session will not have a unit [08:24] we *could* split it int SystemdService and DbusService [08:24] OTOH... are you sure the user session will not have a unit? [08:24] Chipaca: I mean, we could implement it via systemd but 16.04 has no systemd user session so things will fall apart there [08:25] i mean, do we support user services on things that don't use systemd for the user session? [08:25] Chipaca: dbus activation works fine without systemd user sessions, its an older concept [08:25] i know [08:25] upstart alos works fine [08:25] the question is whether we want to support it :-) [08:26] Chipaca: heh :) fair enough. if we don't we exclude 14.04 and 16.04 and possilbly 16.10 (have not checked this one) [08:27] Chipaca: or maybe we need to spawn our own systemd user session with snapd [08:27] Chipaca: no idea if that is feasible but if it is it might be nice way out [08:27] mvo: anyway, backpedaling from the "do we want to do this" question, _if_ we do this, we should split service in two [08:27] * mvo nods [08:27] or call them daemons vs servcies [08:27] or daemons and sprites, and confuse everybody [08:27] * Chipaca grins evily [08:28] Chipaca: sounds resonable, I will look into it in a little bit [08:29] mvo: I haven't looked at your branch in detail; is there any place where you need to grab all services, both dbus and systemd? [08:30] looks like you implement a separate isDbusService, and use that [08:31] Chipaca: yeah, I think that will be sufficient for now [08:31] mvo: also you don't do things from start-snap-service and related tasks [08:31] afaict [08:33] so, for now, i'm leaving Services in snap, and moving IsService in there [08:33] and afaict (but tell me if i'm wrong), at most we'll be renaming them to SystemdServices/IsSystemdService, not making them more complex [08:33] (or to Daemons/IsDaemon) [08:33] (or Vegetable/IsVegetable) [08:34] (or ..) [08:34] Chipaca: well, no, we need IsService to return true for the things mvo is working on, that's the matter [08:35] pedronis: those things don't have daemon set [08:35] Chipaca: indeed [08:36] pedronis: and dbus-activated systemd services are services in the current sense [08:36] but we don't want to create /snap/bin/foo for them [08:36] at the moment IsService decides whether the thing should have a /snap/bin entry [08:36] pedronis: right, so the current code in binaries would change from IsService to IsService || IsDbusService (or whatever) [08:36] (and consequently whether to support aliases) [08:36] pedronis: but what I'm wanting is to drop all the _other_ app.Daemon == "" [08:36] Chipaca: there are usages in snapstate too [08:37] in aliasesv2 [08:37] yup [08:37] yes [08:37] it would be saner if they didn't all have to call two helpers [08:37] but that's my 2cts [08:38] we could add wrappers.IsBinary maybe? [08:38] pedronis: so maybe as part of the dbus branch we IsService -> IsSystemdService, have IsDbusService, and have IsService that ||s the two [08:38] mvo: yea, maybe that [08:38] mvo: that would be confusing, at least to me, because I'd expect IsBinary to be !IsService, always [08:39] bah [08:39] hmm [08:39] Chipaca: it would be [08:39] if I understand things [08:39] pedronis: if IsService is the || above, yes [08:40] mvo: why would it be wrappers.IsBinary and not snap.(*AppInfo).IsBinary? [08:41] because the logic for IsDbusService is complicated [08:41] rharper: ping [08:41] and about policies that are 5 layers away from the basics of snaps [08:42] but you can read it both ways [08:42] Chipaca: yeah, what pedronis said, probably in wrapper as its complex(ish) [08:42] I mean the issue is mostly not to have that logic in many places [08:42] +1 on that [08:43] agreed that that's #1 [08:43] Chipaca: completion timeout that doesn't seem related to create-key: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-yakkety-snappy-dev-image/yakkety/amd64/s/snapd/20170518_083559_ce30f@/log.gz [08:43] OTOH that you can't tell whether an app is a dbus service from looking at the app, to me is a red flag [08:44] or at least a bright yellow flag :-) [08:44] pedronis: not only, no [08:44] waaait [08:45] that's a different completion [08:45] Chipaca: we could make it more explicit. right now its entirely based on the dbus slot, however we could add something explicit to the app yaml part [08:45] Chipaca: 2592 has an example of the current syntax, maybe we move the "service: true" part up to the app level (and rename it to something sensible or fold it into daemon:) [08:47] pedronis: that timeout makes no sense :-( [08:47] zyga, hey, I think you are the only one missing in https://github.com/snapcore/snapd/pull/3324 :) [08:47] PR snapd#3324: partition,snap: add support for android boot [08:48] mvo: what would one on the system dbus look like? [08:49] mvo: does it running on the system dbus mean it runs as root? [08:49] Chipaca: that is not decided yet, probably exactly the same excep tthat bus: session becomes bus: system [08:49] Chipaca: correct [08:50] mvo: how is a dbus-activated system dbus service different from a bus-activated systemd service [08:51] the manpage points me to /usr/share/dbus-1/system-services/org.example.simple-dbus-service.service which doesn't exist. Hrmph. [08:51] Chipaca: I have not looked into the details for the system dbus services, but I expect that we want to do the systemd unit route here [08:52] Chipaca: i.e. there may be very little for us to do [08:52] so they'd be quite different in that case? [08:52] or would it still need a plug and etc? [08:52] Chipaca: the user session was the most interessitng one to me as there are some gnome apps that use this mechanism and we can not support them ucrrently [08:53] Chipaca: AIUI there is still a plug needed to ensure appamor allows all the dbus things that the dbus activated service wants to do [08:53] (but take it with a grain of salt, I have not looked into the details for dbus in system services) [08:53] hi, how do I remove a snap that's marked as broken,disabled? [08:55] ackk: snap remove snapname? [08:55] ackk: (how did it get into that state?) [08:55] Chipaca, I had installed locally 2 versions of a snap, when I tried to sudo snap remove it hang for several minutes removing one of the versions [08:56] Chipaca, I C-c'd it and after that it was broken [08:56] Chipaca, fwiw it's a snap installed in an LXD container [08:56] zyga: you want to look at this? [08:57] Chipaca, uhm, it seems it eventually deleted itself, I don't see it anymore now :/ [08:58] ackk: 'snap changes [08:58] agh [08:58] ackk: 'snap changes' should be able to shed light on things [08:58] Chipaca, I see a series of "install" and a "remove" at the end [08:59] ackk: snap tasks [08:59] [08:59] 2017-05-18T08:47:55Z ERROR cannot remove snap file "basic-auth-service", will retry in 3 mins: umount: /snap/basic-auth-service/x1: not mounted [08:59] 2017-05-18T08:50:55Z ERROR cannot remove snap file "basic-auth-service", will retry in 3 mins: umount: /snap/basic-auth-service/x1: not mounted [08:59] Chipaca, ^^ [09:01] ackk: where's that from? (and what did 'snap tasks' say?) [09:01] pedronis: I updated the repair capability with a new "running repairs" proposal based on the ideas from gustavo. feedback welcome [09:02] ackk: ('snap tasks' used to be 'snap change', if your snapd is slightly old try that instead) [09:04] zyga, hey, any objections to expose rm_rf_tmp from ns-supoort-tests to utils-test or similiar? I need to cleanup tmp stuff in my new test [09:04] s/expose/expose and move/ [09:04] mvo: I'm not quite sure why we need --probe ? [09:04] that wasn't part of Gustavo proposals [09:06] mvo: also is not clear, but we still need the the latest good in snapd/gadget, otherwise we will download all assertions since forever [09:06] pedronis: thats fine, I can change it. it felt slightly cleaner to make it explicit but I guess its an unneeded extra step [09:06] mvo: well it begs questions about the state after the real run [09:07] pedronis: ok, let me update it [09:07] for when it's unknown [09:08] basically bigger state machine [09:21] pedronis: updated it yet again [09:24] mvo: fixed the when repair section [09:26] mvo: I think with this approach the every 4h seems reasonable, later we could have some approach that do it as well if snapd is down since a while [09:29] pedronis: great [09:33] pstolowski: no, go ahead [09:33] Chipaca: yes, gladly [09:34] * zyga is back, sorry, some unexpected stuff at home [09:34] ackk: ah, LXD [09:34] ok, I might as well explore LXD, this would fit nicely in my mount namespace layout tests [09:34] abeato: looking [09:34] * zyga refrains from reading the rest of the backlog [09:36] Chipaca, it's from snap tasks [09:40] ackk: could you pastebin the whole output of the relevant 'snap tasks'? [09:40] Chipaca, http://paste.ubuntu.com/24597955/ [09:41] Chipaca, fwiw it was eventually removed correctly [09:41] pedronis, https://forum.snapcraft.io/t/interface-hooks-attributes/673 [09:41] abeato: some things are still not documented (golint) [09:41] a bit nitpick but I think it's relatively easy to do [09:42] zyga, I tried golint, but I got no output [09:42] abeato: in that directory? [09:42] zyga, yes [09:43] $ golint *.go [09:43] androidbootenv_test.go is in package androidbootenv_test, not androidbootenv [09:43] zyga, this is the only output I see *^^ [09:44] zyga, thanks [09:44] abeato: commented again [09:44] abeato: let me look, that's still wrong :) probably [09:45] abeato: but check my feedback [09:45] zyga, sure, thanls [09:46] ogra_: is rsyslog already removed in edge? [09:46] morphis: yes [09:47] mvo: hm, so is the journal sync'ed to disk? [09:47] pstolowski: thanks, it seems to capture the discussion points, I added a comment there [09:48] pedronis, yes, saw it, thanks [09:49] woohoo [09:49] I see core edge :) [09:50] * zyga sees the content interface changes work :D [09:50] I'd say woot but that's be self serving [09:50] still [09:50] very happy :) [09:55] morphis: aiui it is not [09:55] morphis: it is only if the /var/log/journal dir exists or something [09:55] hm [09:56] zyga: what content interface chagne is that? [09:58] zyga, answering your comment, I do not care about deterministic order [09:58] zyga, were the test you proposing about that? If that is the case, it is not needed either [10:01] abeato: yes, I think we want that [10:01] abeato: it's almost always desirable IMO [10:01] zyga, not in this case [10:02] zyga, it is a hurdle we do not really care about [10:04] Hi guys, is it now possibile revoke a gpg key on the Store? [10:06] abeato: can you justify that? [10:09] zyga, neither the bootloader or snapd cares about the orde in which env vars are stored [10:09] so no reason to enorce that [10:10] *enfroce [10:10] enfroce [10:47] heh [10:47] make a file called '<' by accident [10:47] then remove it [10:47] fun :) [10:49] zyga: “rm \<” ? [10:56] Chipaca: yes but it took me a second to find that :) [10:56] Chipaca: this is both you vs shell as well as you vs program parsing it :) [10:56] zyga: the program shouldn't be doing parsing of the filename [10:56] unless it were "-foo" or something [10:56] hmm [10:56] (for which "--" exists) [10:57] building something for snapcore via build.snapcraft.io requires additional organization access :/ [10:57] * ogra_ wonders why ... given my GH account already has readonly access to the branches which should be enough to build it [11:00] Chipaca: yep, I tried with -- but that was just my naive idea ;) [11:05] PR snapd#3347 opened: snap-confine: moved rm_rf_tmp to test-utils [11:06] zyga, ^ something for you ;) [11:07] ogra_: BSI needs admin access to the repo in order to install a webhook [11:07] I think we even explain that on the GH permission request page nowadays [11:08] * zyga looks [11:09] cjwatson, well, the GH page itself is a bit confising ... telling me at the top that it has readonly access and requesting additional organization access at the bottom ... the snapcraft.io page is better designed but i get redirected first [11:10] there's a limit to how much we can do about that; best we can do is explain it in the bits of text we get to control [11:10] yeah [11:11] we should just rent out mpt to GH for a redesign ;) (for most of the UI actually IMHO) [11:12] thx zyga [11:12] ogra_: it has its good points [11:13] some. yeah ... [11:27] did somebody say lunch [11:29] Chipaca: DEFCON-1 LUNCH!!!! [11:29] actually a siesta might be what i need [11:29] but no! onwards! [11:29] zzmmmhyeah [11:31] mvo: wrote something in the forum about the last-refresh unset question/"issue" [11:32] Chipaca: question, sir, how would you suggest to tweak this: http://pastebin.ubuntu.com/24598370/ [11:32] (apart from fixing s/slots/snaps/) [11:33] zyga: “access the network as a client” reads wrong, and is fluffy and imprecise [11:33] fluffy is what we had in a comment so far :) [11:33] suggestions welcome [11:33] I made it possible to expose meta-data about interfaces [11:34] and shoved them through the pipeline to the CLI [11:34] zyga: lets apps do ? [11:34] Chipaca: acccessing the network as a client is exactly what the doctor ordered though [11:34] Chipaca: I know it's techy but not sure how to make it better [11:34] but but [11:34] this is not that thing I asked about [11:34] my point is it's not techy enough :-) [11:34] how would you display information about an interface [11:34] aaah [11:34] zyga: what did you ask me about :-) [11:34] (not the particular wording) [11:35] ah! that seems fine [11:35] I just print the description if you ask via -i ifacename [11:35] i assume you're using wrap() there? [11:35] oh, no [11:35] nice! let me look [11:35] maybe use wrap then [11:35] the patch is not long, I'll post it in a moment [11:35] wait was it wrap() [11:35] * Chipaca digs [11:35] zyga: fill() [11:36] might need tweaking as it's only for errors right now (so it assumes an indent) [11:36] PR snapd#3348 opened: tests: add core revert test [11:37] Chipaca: hmm, wonky [11:37] oh? [11:37] zyga: how so? [11:39] http://pastebin.ubuntu.com/24598396/ [11:39] Chipaca: (offtopic) bash completion for http would be lovely ;) [11:40] zyga: main problem there is the indent, which i warned you about :-) [11:40] Chipaca: how do I make http talk to snapd again? [11:40] http snapd:///v2/system-info [11:40] snapd:// is a thing?! [11:40] wow [11:40] it is in the snap :-D [11:40] I tried unix:// [11:45] Chipaca: ok, a bit better now [11:47] zyga: http://pastebin.ubuntu.com/24598417/ [11:48] en nu, lunch [11:49] Chipaca: I did something like that [11:58] zyga: note you can kill filledError; it slipped in by accident (was going to use it, didn't in the end) [12:00] Chipaca: yep, I killed it [12:00] * Chipaca goes back to his leftovers [12:01] PR snapd#3235 closed: overlord/hooks: make sure only one hook for given snap is executed at a time [12:01] yay :) [12:02] thanks pedronis! [12:02] pstolowski: all red on the rm-rf test move [12:03] morphis, oops, sorry, missed your ping ... yes, rsyslog is gone for good in edge so we get potential feedback before next release [12:03] ogra_: actually what I missed today was that I was booting an image in kvm which failed and I didn't got access, then stopped kvm, mounted the image and missed the syslog for inspection [12:03] morphis, if you want a persistent journal you can create /var/log/journal, journald will drop its blobs in there then and they persist across reboots [12:04] morphis, hmm, we should probably allow a cmdline option that creates that dir from the initrd for debug purposes [12:05] (not sure how else we could do it) [12:05] ogra_: yes, that would be nice [12:05] zyga, seems to be about formatting.. looking [12:05] pstolowski: make fmt [12:05] would you comment on the forum thread ? i'd like to get gustavos input on it before starting to hack on anything [12:05] pstolowski: feel free to force push this, I hate things like that breaking bisect [12:06] Chipaca: how did you get around that terminal width issue in testing? [12:07] zyga: regular expressions [12:08] zyga: MATCH -z "${expected// /[[:space:]]+}" [12:10] Chipaca: ah, I used unit tests [12:10] wanna see? [12:10] zyga: even easier then :-) [12:10] Chipaca: look at zyga/feature/iface-metadata please [12:13] zyga, ok, pushed [12:13] * zyga loves how this works [12:18] zyga: looks good; the level of nits i have are probably not worth it =) [12:19] zyga: there's a bug there though [12:19] yes? [12:19] zyga: probably because it's doing something unGo-ly [12:19] zyga: it does `ifaces, err := Client().Interfaces()` [12:19] zyga: and then a super long block of `if err == nil` [12:20] zyga: and then outside of that block, it uses ifaces [12:20] Chipaca: aha, let me look [12:20] ah, in cmd_interfaces.go [12:20] thanks [12:20] suggest switching that to a `err != nil`, exiting early, and so on [12:21] Chipaca: diff would be longer [12:21] I'll change that but separately [12:21] zyga: code would be better [12:22] Chipaca: fair enough [12:22] I wrote it like that for 100% coverage (I was cheating) [12:23] Chipaca: fetch again [12:24] or maybe just look here: https://github.com/snapcore/snapd/pull/3349 [12:24] PR snapd#3349: many: model and expose interface meta-data [12:24] PR snapd#3349 opened: many: model and expose interface meta-data [12:24] tput reset; GOPATH=~/canonical/snappy goctest -coverprofile .coverage/profile.out -v github.com/snapcore/snapd/cmd/snap && GOPATH=~/canonical/snappy go tool cover -html=.coverage/profile.out [12:25] oops, wrong paste :-) [12:25] zyga: you didn't get 100% anyway :-D [12:25] Chipaca: it used to be 100% [12:26] I just reall why it was written this way before [12:26] I think this will be a welcome feature [12:26] I'd like to document interfaces on the forum [12:26] and add a forum URL to meta-data :) [12:27] zyga: i thought the github wiki was the place for docs [12:27] zyga: 91.7% coverage as it stands now [12:27] zyga: 93.6% before [12:28] zyga: when you say 'add a forum URL to meta-data' you mean structuredly? [12:28] also: http://imgur.com/a/IeRjS [12:29] Chipaca: I think docs now go to the forum doc category [12:30] Gustavo was planning to move over bits from the wiki and then close it [12:30] Yeah, this is gradually happening already [12:30] (good morning) [12:30] A handful of documents have been moved [12:31] zyga: I stand corrected :-) [12:31] https://forum.snapcraft.io/c/doc [12:32] well, 'stand' is a manner of speaking [12:33] Chipaca: yes [12:33] niemeyer: oh, nice [12:34] We just need to be careful to not overload the forum with mechanical posts [12:34] That's part of the reason why I'm not just taking things and moving over [12:36] woah ... popey ! 2.2k views for your wishlist post [12:37] ogra_: it's been busy :-) [12:37] yeah [12:37] * Chipaca 's finger hovers over [Spam] [12:37] heh [12:37] but then i posted there, so shouldn't complain :-D [12:38] Send-pings-after-midnight [12:38] zyga: i think that PR will fail static check btw [12:38] * zyga tries [12:39] zyga: if you hurry you might beat travis :-D [12:40] ah damn simplify rulels [12:40] rules* [12:40] I need to teach vim to do that [12:40] or your eyes :-p [12:42] Chipaca: yes, I wrote that after all :") [12:43] zyga: here, try these: 8 [12:43] offtopic, today I installed a webcam in a T530 (not mine) [12:43] I must say, damn, thinkpads are fantastic :) [12:44] tooking the LCD bezel apart was trivial, I found official docs online, the panel had the connector cable installed already, all with proper tape to ensure it is held in place [12:44] the connector was keyed so it was easy to get it right [12:44] and the whole procedure took 10 minutes including the part where the machine was turned off and disconnected from battery [12:45] I thought we'd 1) fail 2) take long time 3) buy more parts 4) succeed next time, maybe [12:45] super happy with the result :) [12:46] i guess i've been spoiled by my e-series latitude [12:46] is that a dell? [12:46] yeap [12:46] on the other hand the camera-less laptop is pretty rare for me [12:46] single-screw access to all the guts [12:46] (feels like government stuff) [12:47] (well, not all, but the most common) [12:47] nice :) I took many laptops apart but I never touched the screen bezel or internals [12:47] and now I'm thinking of swapping a panel (on that same laptop) to a highere res one [12:47] anyway. i'm going to go get some tea, let's see if it wakes me up [12:47] otherwise some of us might be asleep at the standup [12:47] enjoy :) [12:47] can't have that [12:49] mvo, zyga: can you have a look at https://github.com/snapcore/snapd/pull/3337 again? [12:49] PR snapd#3337: errtracker: try multiple paths to read machine-id [12:49] niemeyer: you had time to look at https://github.com/snapcore/snapd/pull/3222 already? [12:49] PR snapd#3222: many: fix test cases to work with different DistroLibExecDir [12:50] morphis: sure [12:50] zyga: thanks [12:51] morphis: cannot find? [12:51] morphis: cannot read [12:51] ? [12:51] +logger.Noticef("cannot find %s: %s", id, err) [12:51] fine for me [12:51] morphis: fix that and LGTM [12:52] zyga: done [12:52] Would anyone have a plausible explanation for this: [12:53] root@worker-c:/root# ls -l /bin/mount [12:53] -rwsr-xr-x 1 root root 40152 Dec 16 15:40 /bin/mount [12:53] root@worker-c:/root# /bin/mount -h [12:53] bash: /bin/mount: Permission denied [12:53] morphis: thanks! [12:53] This is inside a devmode snap [12:53] niemeyer: one sec [12:53] niemeyer: I think I know why [12:53] niemeyer: do you have any denials? [12:53] Well, I must do [12:54] Checking [12:54] zyga: if [[ "$USER" =~ niemeyer ]]; then exit EPERM; fi [12:54] niemeyer: hmm, no my idea is not there [12:54] [ 421.101403] audit: type=1400 audit(1495111946.792:42): apparmor="DENIED" operation="open" profile="snap.discourse.shell" name="/bin/mount" pid=1630 comm="bash" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [12:54] niemeyer: we used to have an explicitly deny for mount [12:54] aha [12:54] iiinteresting [12:54] * zyga looks [12:54] Yeah, I assumed that was the case [12:54] What I don't understand is why [12:55] niemeyer: cna you look at the profile, is it really a complain-mode profile? [12:55] niemeyer: there's nothing that explains this for me so far [12:56] Nope [12:56] I think we have a bug in the profile generation [12:56] niemeyer: can you pastebin the head of the profile? (or the whole thing) [12:56] I've already enabled and disabled the snap, which removes the case of something being left over [12:57] https://www.irccloud.com/pastebin/R0nWdOwZ/ [12:57] zyga: ^ [12:58] snap list confirms it's devmode, FWIW [12:58] pstolowski: do you still have a todo about CheckChangeConflict and connect/disconnect ? [12:58] ogra_: yeah, bit sad cafe isn't surfaced on the front page [12:59] zyga: I had observed this problem yesterday, but I thought it was related to reverts.. but now I managed to reproduce it without a revert [12:59] niemeyer: interesting, this is *not* devmode [12:59] Right [12:59] niemeyer: hop into the standup [12:59] niemeyer: we can chat [12:59] omw [12:59] popey, well, probably niemeyer can change that [12:59] niemeyer: snap list says it is devmode? [13:01] pedronis, I need to refresh my memory. last time I checked I couldn't really see what was wrong with it [13:17] pstolowski: oh, I though you understood the problem [13:18] pstolowski: Connect/Disconnect check but CheckChangeConflict don't consider disconnect/connect tasks [13:18] pstolowski: so you can run install why you are trying to Connect/Disconnect [13:18] * Chipaca crosses “hear mvo describe something as «gnarly»” from his bucket list [13:19] pedronis, yes, but the I looked at this method and as far as I remember it doesn't care about task type, it just looks for another task affecting same snap [13:19] s/the/then/ [13:20] pstolowski: ? [13:20] pstolowski: there's a full map of task types [13:21] the issue is that the connect/disconnect carry two snaps [13:21] so there's a bit more to do [13:21] pedronis, you're right, i see [13:21] ogra_, hey, I'm trying to update https://developer.ubuntu.com/en/snappy/guides/mir-snaps/ a bit - it mentions rpi3 gpu support "not in stable yet" - I suppose this note should go away now? [13:22] zyga (cc niemeyer): fyi, we don't have any explicit denies for mount in any of the policy (we avoid explicit denies as much as possible) [13:23] jdstrand: it's a different bug [13:23] jdstrand: the profile is for strict [13:23] some state is mixed up [13:23] Saviq, nope, it is a gadget thing and we can not update gadgets yet [13:23] ogra_, ack, leaving it be, then [13:23] Saviq, so we only have it in !stable channels [13:23] zyga: I know, but I didn't want the idea to propagate that we have explicit denies for mount [13:23] jdstrand: aha [13:24] jdstrand: I have a branch I'm sure you will like [13:24] https://github.com/snapcore/snapd/pull/3349 [13:24] PR snapd#3349: many: model and expose interface meta-data [13:29] popey: The point of cafe was for things that are usually pretty offtopic ("look at that sun set!"), which is not what people expect when they go to forum.snapcraft.io.. [13:30] popey: If you have an entry that you wish was presented in the front page, that's likely not something to be discussed on the cafeteria :) [13:31] mvo: could we support C coverage via codecov as well? [13:31] zyga: I think so, I have not looked into it [13:31] mvo: I'll look at that [13:32] zyga: oh that's nice. note that 'The core snap provides the slot that is shared by all the snaps' is handy, but that is defined elsewhere (implicit.go and the base declaration). this makes a third spot to keep in sync. I'm not sure how to fix that, but wanted to mention it [13:32] jdstrand: yes, that will go away too :) [13:32] jdstrand: I'll make implicit.go just ask for meta-data :) [13:32] jdstrand: but I didn't want to clobber it here [13:33] jdstrand: initially I also folded Name into meta-data but I think not doing so is just easier [13:34] jdstrand: I could also fold base declaration but I think you were against that [13:34] niemeyer: I didnt expect that thread to blow up like that tbh. Thought it might be a casual conversation with 2 or 3 comments [13:35] popey: Ah, on that thread, it really doesn't feel so coffeey.. I moved it to the snap category earlier today already, so it is now in the front page [13:35] Sweet, thanks! [13:36] zyga: I'm ok with folding the base declaration into it cause that makes a good bit of sense, but it would be handy to be able to dump the entire base declaration with a command [13:36] jdstrand: aha [13:36] jdstrand: that's doable via snap debug interface, I'll look at that as well then [13:36] zyga, hey, is there a GH issue or PR we can reference about https://bugs.launchpad.net/snappy/+bug/1646333 ? [13:36] Bug #1646333: bind mounts related to content interface plugs remain stale on snap disconnect/connect or snap updates [13:36] jdstrand: so with this interfacecs would become 100% self-contained [13:36] Saviq: ha [13:36] Saviq: use edge [13:37] Saviq: that's fixed now :) [13:37] zyga: really, I think defining everything within the interface file is good, since you can see everything in one place [13:37] jdstrand: yes, I agree, I think this will be nicer for everyone [13:37] zyga, is cjson back in edge yet? ;) [13:37] Saviq, yes [13:37] Saviq: I didn't check but I think ogra_ pushed it [13:37] zyga: what I was against is the policy being spread out over multiple file and thus making it hard to see. this is making things easy to see :) [13:37] * zyga nods [13:38] ogra_, zyga thanks, that's helpful [13:38] zyga, morphis: snapd 2.26.3 and snapd-glib 1.12 are building [13:38] Saviq: this will be in 2.27 (mount changes) [13:38] Saviq, i was actually greeted with a running kisok-app when entering my office this morning ;) thanks to auto-update [13:38] Son_Goku: nice! [13:38] morphis: I had to drop the libexecdir test fixes patch because it wouldn't build [13:38] hey Son_Goku, sounds great :-) [13:38] and the changes were too drastic [13:38] ogra_, :) [13:38] Son_Goku: a simple rebase didn't work? [13:38] Nope [13:38] there were way too many changes [13:38] anyway, tests are still not enabled in the Fedora packages anyway [13:39] right [13:39] that thing needs to be merged for 2.27 [13:39] need to follow up with the various bugs I filed to get packages updated and AFAIK you still need to review one :-) [13:42] fgimenez: can you tell me more about that test that you just mentioned? [13:43] zyga: of course thanks, let me push the last changes https://github.com/snapcore/snapd/pull/3348 [13:43] PR snapd#3348: tests: add core revert test [13:43] fgimenez: thank you [13:51] zyga: last changes pushed [13:51] fgimenez: looking [13:52] thank you zyga [13:55] zyga: you can execute it with "spread -v qemu:ubuntu-16.04-64:tests/nested/core-revert" [13:55] PR snapcraft#1322 closed: state: ignore the 'any' architecture in the build packages apt cache [13:55] zyga: anyway i'm not sure if just installing network-manager is enough for surfacing the problem, maybe it should be configured somehow? [13:57] zyga, morphis: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46 (F26), https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03 (F25), https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8 (F24) [13:57] Son_Goku: can you add those to the forum thread? [13:57] I don't know which one to add it to, and I have to go to work [13:58] morphis: here [14:00] fgimenez: let me show you what CE did [14:03] zyga: jdstrand: notice that there was still the open idea to let the base declaration be updateable from the store [14:03] splitting it might make understanding that flow harder, don't know [14:06] Chipaca: we found the issue [14:06] pedronis: aha [14:06] zyga: is it potatoes [14:06] pedronis: I thought that was ony about the snap declaration, not the base declaration [14:06] Chipaca: it's snap list, [14:06] Chipaca: snap is not in devmode in state [14:06] Chipaca: but notesFromLocal has some logic that is probably stale [14:06] that's a relief (in that at least that bug i got) [14:06] Chipaca: I'm going to look at that now [14:06] ok [14:16] * zyga actually should eat lunch first [14:17] niemeyer: the kernel change is one thing, the snapd change is another thing [14:17] niemeyer: when we change core, that core's snapd needs to do the setup [14:17] niemeyer: (like 2-phase setup really) [14:18] niemeyer: maybe we should re-exec into new core snapd even on core systems [14:18] niemeyer: then shutdown will need to care after the kernel part of the problem only [14:19] zyga: we wait for reboot on core systems before doing the 2nd phase [14:19] pedronis: reboot yes but I mean we should restart and reexec snapd on core as well [14:19] pedronis: I don't think we do that [14:19] zyga: ? [14:19] we don't finish the install [14:19] pedronis: (so that the incoming snapd gets to finish profile generation before boot) [14:19] until we are after reboot [14:19] pedronis: yes, and that is also part of the problem [14:19] one of the thing we planned to change is not too wait for the reboot long [14:19] pedronis: don't get me wrong, just one of many options [14:20] pedronis: the bug is that on boot the profiles are stale [14:20] pedronis: and they can be stale because kernel or core changed (or maybe gadget too, I didn't think about it) [14:20] pedronis: gustavo suggested to update profiles on shutdown, this would allow us to do kernel changes correctly [14:20] pedronis: but core changes cannot be handled this way [14:21] I also wonder what this means for attribute hooks [14:21] well we cannot restart snapd [14:21] because core is the full root [14:21] isn't unclear things would work in all casses [14:21] pedronis: aha [14:22] pedronis: well, we could make it work [14:22] but I think the general case needs to be investigated more [14:23] ok, i'm off to a parents' evening (a.k.a. teachers' nightmare). Bbl... [14:23] Chipaca: will there be tapas? [14:23] Chipaca: enjoy :) [14:24] I don't think there'll be anything to eat [14:24] but i could be wrong [14:24] but i won't eat it anyway [14:24] because, waste time [14:24] zyga: anyway moving starting snapd as early as possible on the core would also solve the problem, no? [14:25] I early in the boot sequence [14:26] pedronis: yes [14:26] pedronis: though it is unclear what happens if, say, snapd fails and things go south [14:26] pedronis: or how long will that slow down the boot sequence [14:27] well on a core device [14:27] all interesting things will be snap [14:27] so they need those profiles [14:27] pedronis: also we probably want to say "hey snapd, start but hold it there for most activities as, you know, we're still booting" [14:27] pedronis: then say "ok, GO" later [14:28] could be pretty nice actually [14:28] snapd could hold a mode (in memory only) [14:28] booting, running, shutting-down (or something) [14:28] and could react to requests [14:28] and alter ensure as appropriate [14:28] maybe, we don't a lot at all [14:28] there [14:29] under normal circumstances [14:29] profile rewriting is probably the biggest bit [14:29] but also the one we want [14:29] I'd like to avoid things like bootup, super early, just out of initrd and we run refresh or what not [14:29] yes, I agree [14:29] well refresh is scheduled [14:30] yes, but it will run if we're unlucky [14:30] we can do things about that [14:30] yes [14:30] that's my point about the mode variable [14:30] not do things that are not appropriate [14:30] anyway sounds a forum topic [14:30] very much so [14:35] PR snapd#3350 opened: interfaces,overlord/ifacestate: make sure installing slots after plugs works similarly to plugs after slots [14:54] zyga, mvo: https://github.com/snapcore/snapd/pull/3308 is ready for merging if you don't see anything else [14:54] PR snapd#3308: tests/lib: introduce pkgdb helper library [15:11] morphis: commented, there is another micro opitmization you could do, but I can also merge and propose this later [15:12] morphis: tests are green so [15:12] morphis: I will just merge and push my diff later [15:12] Lunch [15:12] PR snapd#3337 closed: errtracker: try multiple paths to read machine-id [15:13] Can someone offer a solution to this error I get when trying to run an installed snap? https://paste.ubuntu.com/24599229/plain/ [15:13] PR snapd#3351 opened: errtracker: small simplification around readMachineID() [15:14] receiving: "cannot create lock directory /run/snapd/lock: Permission denied" running as root or via sudo [15:14] * zyga goes to handle some errands [15:14] running Ubuntu 16.04.2 LTS [15:16] davhou, stop doing that as root, and dont use sudo [15:26] mvo: sounds good! thanks [15:27] PR snapd#3308 closed: tests/lib: introduce pkgdb helper library [15:27] PR snapd#3352 opened: interfaces/log-observe: allow using journalctl from hostfs for classic distro [15:30] PR snapd#3347 closed: snap-confine: move rm_rf_tmp to test-utils [15:34] niemeyer: do you saw https://github.com/snapcore/snapd/pull/3274 already? [15:34] PR snapd#3274: cmd/snap,tests/main: add force-devmode switch instead of spread system blacklisting [15:41] can I change privacy of a snap after I've registered a name, but before I've uploaded anything? does it matter before I publish anything? [15:44] morphis: If there are no comments there from me probably not [15:44] we should really fix the openvswitch test [15:44] I'll check out why it keeps timing out :/ [15:45] niemeyer: references to you are there, asking for your comments :-) [15:45] morphis: So you'll get them.. [15:46] * zyga moved to the pier to observe uncommon event of two cruise ships departing [15:46] I can obviously do code reviews at the same itme [15:47] jdstrand: I posted a question on https://github.com/snapcore/snapd/pull/3352#pullrequestreview-38977547 [15:47] PR snapd#3352: interfaces/log-observe: allow using journalctl from hostfs for classic distro [15:51] jdstrand: and replied to myself :) [15:51] sorry for the noise [16:07] Saviq, I don't even think you get a snapd ID before you upload anything [16:07] Err, snap ID [16:08] Saviq, for example, you can't add collaborators until you've uploaded at least one revision [16:08] (at least, last I checked) [16:17] * Chipaca returns from the void [16:18] Chipaca, lost in time and space? (arkham horror reference /me hopes someone gets) [16:18] * Chipaca hugs kyrofa [16:19] kyrofa: nobody gets it, but we like you anyway [16:19] :-p [16:19] :( [16:19] :-D [16:19] * kyrofa hugs Chipaca back anyway [16:21] kyrofa: in my defence, I've just been through 11 interviews with as many teachers in an hour and a bit, so I'm feeling slightly evil [16:22] and ? are your kids hired [16:22] ? [16:22] it's a bit of a record I've only had to censor myself with one of them [16:22] Chipaca, oh brutal [16:22] ogra_: I think they go to the next phase because of audience votes [16:22] lol [16:22] ogra_: the jury definitely voted them out [16:27] * Chipaca wonders if he should bling up his PR so it gets reviews [16:28] Chipaca: is the service refactor reviewable? or does it need changes because of this morning discussions? [16:28] pedronis: it's reviewable [16:29] pedronis: it includes what I think is the outcome of this morning's discussions, already [16:29] ok [16:29] Chipaca: snapd#3322 needs a 2nd review [16:29] PR snapd#3322: overlord: make config defaults from gadget work also at first boot [16:29] Chipaca, I hear ALL CAPS and containing "you won't believe what happens" helps [16:29] kyrofa: http://www.commitstrip.com/en/2014/08/07/our-cto-has-discovered-an-incredible-way-of-making-developers-read-his-commit-messages-you-wont-even-believe-how-he-did-it/? [16:30] pedronis, boo ... now you made us all miss the opportunity to see how a blinged up Chipaca PR looks like [16:30] ogra_: so. much. unicode [16:30] haha hands and all ? [16:31] Chipaca, hahahahaha, EXACTLY what I was talking about [16:31] ogra_: the only limit is the version of unicode people have [16:31] "This was the most stupid bug in the world, fixed in the smartest way ever" <- how I feel about much of my work, but no one realizes it was my bug in the first place [16:32] ogra_: like, if i want to use an avocado, i'd better hope people are on yakkety [16:32] kyrofa: :-D [16:32] dang ... no avocados for me then [16:32] ogra_: 🥑 [16:32] :( [16:33] ogra_: 🤘? [16:33] trapped in 16.04 .... only square avocados [16:33] that one works ! [16:33] see? that one's in unicode 8 :-) [16:37] Chipaca: we never have services so far in snapstate tests ? === chihchun is now known as chihchun_afk [16:37] pedronis: correct [16:37] pedronis: ARE YOU SCARED [16:38] no, but I need to say something in the review [16:38] ok :-) [16:43] Chipaca: reviewed [16:43] woo [16:44] psh! tests [16:44] Chipaca: I think now I understood your question from the ther day, and I answered it, the alias tests have a similar problem [16:44] they needed actual apps [16:44] at Info-level actual apps [16:45] yeah [16:45] s/at/at least/ [16:45] ah well, I'll dig into that tomorrow [16:45] sorry [16:45] was going to have to do it at some point anyway [16:45] no problem! you're probably right :-) [16:45] (otherwise i'd argue back -- you know i do) [16:45] but you need to change all the tests anyway [16:45] so :/ [16:46] ¯\_(ツ)_/¯ [16:46] I mean is not like you managed not to touch them there [16:47] I did say I had 21 failing tests :-) [16:47] pedronis: thank you for the review! [16:50] [Ubuntu core question] Does Ubuntu core supports any library to deploy the built-in GPS in DB410c, just as android has? [16:50] [Ubuntu core question] Is there a way to "convert" existing SW applications installed via RPM or apt-get, to snappy packages so I can install them on DB410c? [16:52] ogra_: is that the dragonboard we support? [16:53] * Chipaca never remembers [16:53] Chipaca, indeed [16:53] Chipaca, yes, but we dont have any userspace snaps for GPS or anything [16:53] ogra_: what interface is it? [16:53] (i'm not even sure we have a snap interface for GPS yet) [16:54] no idea ... never used it [16:54] i mean, usb? i2c? potato-over-carrier-pidgeon? [16:54] ah [16:54] (i rarely carry moy board outside, to even get a sattelite fix) [16:54] *my [16:54] sdrobertw, I'll let these guys debate over your first question, but your second question: you can tell snapcraft to unpack debs into a snap using `stage-packages` [16:55] sdrobertw, but that needs to be done on a machine with those debs available via their sources.list configuration. If this is just a deb you have, you can supply it directly via the `source` keyword [16:55] sdrobertw, https://github.com/ogra1/laidout is a very ugly but working way ... (pretty old snap i guess there are better ways to get rid of the wrapper.sh nowadays) [16:57] indeed, if you want to just use a deb from the ubuntu archive, just stage-packages shoudl eb enough [16:57] *should be [16:57] sdrobertw, the one complication you can run into by essentially packaging a deb as a snap is that a snap is mounted in a particular directory: where the deb might be configured to reach out to /usr/share, it now need to to use $SNAP/usr/share [16:57] Just depends on the application [16:58] will you join OpenHours real quick? [16:58] Sure! [16:59] * ogra_ sadly can't ... on my way out the door, only Chipaca's ping stopped me [16:59] http://link.linaro.org/openhoursjoin [16:59] * Chipaca hugs ogra_ [16:59] Thanks! [16:59] ogra_: have a good one [16:59] * ogra_ hugs Chipaca [16:59] you too [16:59] Those germans, always leaving at the beginning of the day [16:59] kyrofa, but we also dont sleep til afternoon [16:59] ! [16:59] Hahaha [16:59] 943216362 [17:00] * ogra_ looks around in case there are any asian earlybirds still up :P [17:08] * Chipaca fades into the bushes [17:33] sdrobertw, you know where to find us if you have questions when making those tutorials-- always happy to help! [17:40] Thanks for all of your help ogra_ and kyrofa [17:41] sdrobertw, any time [17:47] mvo: https://github.com/snapcore/snapd/pull/3307 is ready for merging too :-) [17:47] PR snapd#3307: tests: abstract common dirs which differ on distributions [18:06] PR snapd#3351 closed: errtracker: small simplification around readMachineID() [18:07] morphis: ping [18:07] niemeyer: pong [18:07] morphis: Heya [18:07] hey! [18:08] morphis: Quite note on PR process: we avoid rebasing while changes are in review, otherwise we lose track of what was reviewed [18:08] s/Quite/Quick [18:08] morphis: snapd#3222 as one example [18:08] PR snapd#3222: many: fix test cases to work with different DistroLibExecDir [18:09] niemeyer: fine for me, trying to keep my git log clean but if that is preferred I will follow that [18:09] morphis: Without the rebase, I could click on "View changes" since my last review and get an idea of where we are [18:10] morphis: Feel free to keep it anyway you want before pushing for review.. after that, it's more important that people can track what is being done, otherwise it's a full review every time [18:10] aye [18:11] niemeyer: what are you referring to with "I would actually prefer the original approach. "? [18:11] niemeyer: what I implemened or what mvo suggests? [18:11] morphis: Neither.. the original one, in the tree [18:12] morphis: systems: -debian* feels pretty good to me [18:12] niemeyer: the thing is that we want to run portions of these tests [18:12] as we have a bundled situation with seccomp enabled but AppArmor not [18:13] so we want at least verify the connected part of the interfaces tests works fine [18:13] but leave out the parts which verify the interface denies things [18:13] (the disconnected case) [18:14] morphis: Ah, I see [18:15] Okay, let me provide a new review then [18:16] niemeyer: thanks! [18:28] morphis: np, review updated === JanC is now known as Guest79336 [19:22] PR snapcraft#1323 closed: state: search for the build package that provides a virtual package [20:10] PR snapcraft#1315 closed: lxd: mock platform in the FakeLXD fixture [20:11] * ahoneybun wonders when the filesystem bug would be fixed [20:11] elopio: ^ [20:12] ahoneybun, which filesystem bug? [20:13] well all the snaps show as loop devices in file managers [20:13] dolphin and nautilus [20:15] @ogra, OK, so back to my id, can you tell me what the folder ownership should be for /run/snapd? [20:15] davhou: No such command! [20:16] ogra_, OK, so back to my id, can you tell me what the folder ownership should be for /run/snapd? [20:17] ogra_, it was root:david although I am getting the same error message as id david when i try to run the snap [20:19] davhou, mine is the same [20:20] kyrofa, the ownership on folder? [20:20] davhou, yeah [20:20] (but no errors here) [20:21] Though that surprises me a bit... what happens with multiple users? [20:35] noise][, is transferring snap IDs to other publishers easy these days? Or still a yucky manual process? i.e. should I still be giving the "register -" advice? [20:41] kyrofa: easy [20:41] noise][, excellent! [20:41] we still want reasonable commitment / justification to take a reserved name, but we've been a lot more free with them since transfers got easy [20:42] Of course, makes sense [20:44] noise][, okay, a harder question: if I was starting today, I'd request the upstream name. However, I'm not, and I have thousands of users (well, downloads anyway) of my snap. Do we have a process for renaming snaps? [20:51] noise][1, looks like your internet flaked there, not sure if you saw my question [20:53] nope, sorry [20:55] kyrofa: fwiw, i recently renamed a snap by adding a wrapper to my old snap's yaml that replaced teh comamnds with 'please don't run this, use this snap isntead' [20:56] nacc, yeah... I don't want to do that to my users though [20:56] kyrofa: i wish there was some sort of rename op at the store level, but it would force the store to carry historical state (forever?) [20:56] and i'm not sure if it's organized in that way (i have no idea, i mean) [20:56] nacc, not really: nothing in snapd cares about the name, it uses a snap ID [20:56] That's not quite true, the name is used to form file paths [20:57] So that sounds hard [20:57] So the store would probably be fine with it, but snapd will probably barf [20:57] I'll just live with my namespaced snap name [20:57] kyrofa: oh i didn't realize it was all via IDs [20:58] so it could in theory have a lookup table for IDs [20:58] (the store) [20:58] but yeah, snapd would need to dtrt [20:58] Indeed