=== chihchun_afk is now known as chihchun === JanC is now known as Guest16348 === JanC_ is now known as JanC [06:16] good morning [06:23] tvoss: morning! [06:23] o/ [06:23] @pedronis happy new week :) would be great if you would find some time for https://github.com/snapcore/snapd/pull/3130 [06:23] tvoss: No such command! [06:23] PR snapd#3130: overlord/devicestate: switch to keygen for device key generation [06:51] thresh: ah, good that it's reported. I believe it may require some snapcraft changes to be able to properly bypass the problem, like having conditional packages. [06:51] /usr/lib/snapd/snap-confine: error while loading shared libraries: libudev.so.1: failed to map segment from shared object [06:51] ^^ anyone know what is going on there? [06:52] Inside a xenial lxd container, hosted under xenial [07:02] Its a classic snap, so it should certainly be able to access stuff. And the same snap was working two weeks ago. [07:10] Bug #1681328 opened: classic snap now failing with udev errors [07:11] morning distro [07:16] good morning seb128 [07:16] hey zyga ;-) [07:17] distro->snappy (in fact I was typing on another channel, don't do that when xchat-gnome loads, it moves focus to newly joined channel as it does) [07:23] hey ara [07:23] hey zyga [07:51] zyga: good morning. I'm seeing a test failure for main/static, with the test complaining about CGO being unexpected for overlord/devicestate. where would I need to adjust the build/test setup to change that expectation? [07:55] tvoss: good morning [07:56] tvoss: not sure I understand, can you please post a log? [07:57] mvo: good morning [07:58] zyga: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/amd64/s/snapd/20170410_072000_9284e@/log.gz [07:59] hey zyga [08:00] tvoss: hmmm [08:01] tvoss: I honestly don't know [08:03] zyga: okay, the test checks that snapd can be built without cgo. that's certainly not true anymore :) [08:03] tvoss: ah, I just had a look at the test [08:04] tvoss: yes, feels like something that should be removed now [08:04] zyga: okay, let me remove it and see what the infrastructure thinks [08:05] tvoss: I will look [08:07] pedronis: thx [08:19] Son_Goku, zyga: looks like all packages are published now [08:36] morphis: nice, I had issues with f26 installation on Friday but I will give it a test as well and commit the changes to ship tab completion [08:36] zyga: what kind of issues? [08:36] morphis: with f26 installer, not with snaps [08:36] ah [08:36] morphis: not sure, it would freeze; I rebooted a few times before it finished [08:36] Son_Goku: you want to blog about this today? [08:36] Chipaca: hey, good morning! I had a look at the hashsum issues this morning because quite a few of the current branches fail with it - I suspect we just don't handle an EOF during download not correctly, i.e. we do not set the right resume point. I think somehting like http://paste.ubuntu.com/24353432/ help - what do you think? is that something you invesitgated yet? [08:37] zyga: if I remember well I had problems last week too with F26 [08:37] Chipaca: i.e. I hope I did not duplicate some reaseach :/ [08:37] mvo— heh. I was just starting with this. [08:37] mvo: nice! [08:38] mvo— that does seem correct to me :-) [08:38] Chipaca: it needs a test to be certain but I don't see that we handle the seeking but maybe I'm wrong [08:38] mvo— we do a SEEK_END i think [08:39] Chipaca: yeah, I think the problem is that we don't do the hashsum update, its some lines above. without a test just a theory for now [08:40] Chipaca: whats funny is that all the hash errors are the same, wonder if there is a too-short file on some of the cdn server somewhere [08:40] mvo— oh? [08:42] * zyga eats breakfast, sorry for not coding yet, I was checking email all morning [08:43] Chipaca: e.g. https://github.com/snapcore/snapd/pull/2833#issuecomment-292874676 matches the one in https://forum.snapcraft.io/t/hashsum-failures-during-tests/198 [08:43] PR snapd#2833: many: allow core refresh.schedule setting [08:47] mvo— maybe it's the hash of "503 Go away I'm Comfy" [08:48] Chipaca: haha, possible [08:49] Chipaca: I'm writing a test, lets see how that goes [08:50] Chipaca: no more like Oh not you again, what do you want now? [08:54] mvo, zyga: if I define in my spread.yaml a new system debian-9-64 is spread/linode able to spawn up a machine with the right image just with this automatically or do we need someone adding an image on the Linode setup itself? [08:55] morphis: you will need niemeyer to create this machine for you AFAIK [08:55] mvo: ok [08:58] mvo: I'm not so sure, with our credentials we can spawn any machine [08:58] morphis: just try it [08:59] zyga: nice! I was not aware of that [09:00] zyga: lets see .. [09:01] zyga, mvo: https://github.com/snapcore/snapd/pull/3156 [09:01] PR snapd#3156: WIP: debian support for spread testing [09:02] PR snapd#3156 opened: WIP: debian support for spread testing [09:03] morphis: do you know you can try it locally? [09:03] morphis: with spread linode:... [09:03] zyga: if I would have an API token, yes [09:03] zyga: need to ask niemeyer for one [09:03] morphis: ah, definitely [09:03] qemu sucks for these things [09:04] morphis: s/qemu/network at home/ [09:05] yeah both [09:05] mvo, zyga: 2017-04-10 09:04:12 Allocating linode:debian-9-64... [09:05] looks like its working [09:05] morphis: I don't think qemu is any worse than linode [09:06] morphis: nice [09:06] ah no [09:06] 2017-04-10 09:04:24 Cannot allocate linode:debian-9-64: no Linode image or distribution for "debian-9-64" [09:10] morphis: quick idea: add internal snap command like `is-confined` or `is-forced-devmode` or something like that [09:10] morphis: and use that in spread tests to skip confinement parts [09:10] zyga: yeah I was thinking about the same [09:10] morphis: this way we don't have to maintain the exclusion lists [09:11] morphis: and we can really test a lot of useful functionality at the same time (only parts of each test would be skipped) [09:11] PR snapd#3152 closed: store: make hash error message more accurate [09:11] morphis: I think you got the ID of the system wrong, drop the kernel line and give me a sec, I'll give you the right ID [09:12] zyga: followed what is described on https://github.com/snapcore/spread [09:13] zyga: would you mind restarting the travis run for https://github.com/snapcore/snapd/pull/3130 [09:13] PR snapd#3130: overlord/devicestate: switch to lib(open)ssl for device key generation [09:13] zyga: timedout [09:15] morphis: there's no `debian-9-64`, you can do `debian-8` (sans -64) [09:16] zyga: were we do not support debian-8 [09:16] however worth a try [09:17] morphis: yeah, I'm just telling you that's what is supported on linode now :/ [09:18] yeah, we may have to do our own debian-9 image [09:18] same for fedora 24 and 26 [09:18] morphis: fedora 24 is available AFAIR [09:18] morphis: but yeah, [09:19] https://www.linode.com/distributions doesn't have f24 [09:19] maybe there is an outdated image still and not listed there [09:20] morphis: https://blog.linode.com/2016/06/22/introducing-fedora-24/ [09:20] I think the distributions page is outdated [09:20] morphis: maybe we could reach out to linode and ask [09:20] morphis: e.g. add a debian-9 image, fedora-25 image [09:20] morphis: maybe they will refuse [09:21] morphis: but maybe it's cheap for them and they will just do it [09:21] zyga: just checked, they have on for f24 but listed under "old" [09:22] zyga: you can easily do your own images on linode [09:22] so linode doesn't have to care at all [09:23] morphis: it's easier if someone else cares :) [09:23] morphis: but I think we will need our images anyway [09:23] zyga: it is :-) [09:32] mvo— you wouldn't happen to have the whole journalctl output of one of those hashing failures would you? [09:33] Chipaca: of course [09:34] Chipaca: https://travis-ci.org/snapcore/snapd/builds/219559725#L1320 [09:34] Chipaca: and https://travis-ci.org/snapcore/snapd/builds/219416996#L994 [09:34] cheers [09:35] Chipaca: I struggle a bit with the test, I can get a test working but I need to send enough data that the first batch of data is commited to disk so that we trigger the rety. when I do that I get a strange errTrailerEOF error when I cut the connection in the middle (might be a new go 1.7 thing, I'm on zesty :/) [09:36] mvo— how're you injecting the failure? [09:38] Chipaca: http://paste.ubuntu.com/24353606/ is the test with a small amount of data, the amount is too small to get flushed to the local tempfile so when I check what position we are in our temp file I still get "zero" [09:38] Chipaca: i..e I use a full mock server and close the client connections (trying to be close to the real problem) [09:44] mvo— what's missing there is that you're not setting the ContentLength, you're letting go do that [09:44] Chipaca: I tried that too, but maybe not hard enough - let me do that again [09:52] Chipaca: hm, making progress with the test now (yay) but look like the resume case is actually handled down below, so its not that [09:54] mvo— i think it properly is the cdn returning some error page instead of the content [09:54] but I'm not sure [09:54] mvo— do we check the response status before hashing? [09:54] Chipaca: yeah, actually I think you are right, its probably something like "range-requests are not supported" [09:56] that should be some 4xx though? [09:56] are we really not checking error codes? [09:56] hence my question about whether we check the status before just hashing [09:56] :-) [09:57] tvoss: done [09:57] i'm afraid we've made the download code too smart [09:57] heh [09:58] re [09:58] * zyga is grumpy today, woke up at 5:00 AM [09:59] why I know? [09:59] because modem company resets modems at 5AM [09:59] PR snapd#3157 opened: store: add more logs around retry in download [09:59] and the relay clicking woke me up for some reason [10:11] PR snapd#3158 opened: store: add download test with EOF in the middle [10:11] Chipaca: my theory is wrong, I think our code is fine. unless I miss someting in -^ [10:15] pedronis: thx [10:31] mvo, thank you very much for this test! btw, just in the meantime there was a comment on this bug: https://bugs.launchpad.net/snapd/+bug/1677557 [10:31] Bug #1677557: EOF not properly retried under some circumstances [10:31] mvo, I'm going to look at provoking 'unexpected eof' in the test and retrying it [10:32] mvo: can you have a look at https://github.com/snapcore/snapd/pull/3154 [10:32] PR snapd#3154: many: rename two core plugs that clash with slot names [10:32] pstolowski: wait a sec [10:32] pstolowski: there is a new ranch comming [10:32] branch [10:32] mvo: I'm trying to come up with a fix for the clashing plugs, as you know [10:32] mvo: I was thinking about spitting this branch so that connections are in separate PR [10:32] mvo, sure... not going to look at this today, maybe tommorrow-ish [10:32] mvo: as it may not land in the end [10:33] (specifically this one https://github.com/snapcore/snapd/pull/3154/commits/a69290f0c7836738c41da6f87f859e2971576630 ) [10:33] PR snapd#3154: many: rename two core plugs that clash with slot names [10:39] PR snapd#3159 opened: store: retry once on hashsum mismatches in a Download() [10:40] pstolowski: -^ [10:40] pstolowski: but I think the EOF case in download() is hanlded, no? the test at least indicates it is [10:40] pstolowski: or is EOF and unprovoced eof different? [10:41] zyga: sure, I have a look after lunch, I was under the impression you are discussing this with gustavo still, what the best fix is. or is there agreement? [10:42] mvo: gustavo discussed if the fixup function should be public or private so I made it private at his request [10:42] mvo: as for my feeling on how this should be fixed, we can do it without touching state at all if we pull out the patch I referenced above [10:57] PR snapd#3160 opened: overlord/ifacestate: automatically rename connections on core snap [11:00] Chipaca: hey, I'm seeing this timeout in completiontest [11:00] Chipaca: is this something expected of all expect-based tests? [11:00] Chipaca: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/amd64/s/snapd/20170406_130441_94744@/log.gz [11:01] zyga— [11:01] no [11:01] wtf [11:02] zyga— how does a telephone get in there [11:02] ???? [11:02] wat? [11:02] snap buy [11:02] hah [11:02] maybe it's my browser being silly [11:03] browsers are like humans [11:03] zyga— there's a real bug somewhere [11:03] we see faces in ascii, browsers see calendar events and phone numbers [11:03] zyga— expect times out when it fails to match something [11:03] so all epect errors are timeouts [11:03] you need to look at the output to determine what didn't match [11:04] zyga— that's the same error [11:04] zyga— that test is checking that "snap buy " tab-completes with purchasable snaps [11:05] zyga— and it's not [11:05] * zyga reads the output carefuly [11:05] aha [11:05] zyga— so somehting's broken (probably something changed in the store?) [11:05] so is that a store bug, snapd bog? [11:05] Chipaca: can we log from tab completion handlers [11:05] Chipaca: adding a debug section that collects such logs could be useful [11:06] zyga— the snapd-side of completion looks just like a regular search [11:06] zyga— and that will be in the journalctl output [11:06] Chipaca: aha, perfect, let me read the debug section then [11:07] : DEBUG: Retrying https://search.apps.ubuntu.com/api/v1/snaps/details ... [11:07] maybe it is just another EOF [11:07] finished after 1 retries, elapsed time=136.412205ms, status: 200 [11:07] zyga— what store is it looking at? and does that store have a purchasable test-assumes and test-snapd-tools? [11:07] pstolowski: ^ does that mean we got what we asked for or that we didn't and we gave up? [11:08] Chipaca: I don't know how to check [11:08] right now me neither [11:08] Chipaca: this is just tests/main/completion [11:08] (meaning it requires some more context that i haven't loaded) [11:08] the logging would be easier to grok if it said "after 1 try and 0 retries" for instance [11:09] Apr 06 12:44:13 autopkgtest snapd[5022]: 2017/04/06 12:44:13.129725 daemon.go:176: DEBUG: uid=0;@ GET /v2/find?name=test-%2A 5.359029622s 200 [11:09] *five seconds* [11:10] a query to the store took *five* *seconds* [11:10] Chipaca: aha, I see it [11:10] but the reply is 200 [11:10] stop using GSM [11:11] ogra_: but I like my nokia :D [11:11] :D [11:11] Chipaca: so do you think this is it? [11:11] Chipaca: store having a unbelievably slow reply? [11:12] if it comes to core you can drop "unbelivable" from that sentence [11:12] zyga— that test's expect timeouts at exactly 5 seconds [11:12] anything over 5 seconds will fail [11:13] Chipaca: interesting, thanks [11:13] realistically, any response from the store over ~200ms is too slow [11:13] Chipaca: I'll open a store thread about this [11:13] rendering the myapps.u.c page for core can easily take a min, there are simply many revisions ... processing them takes a while [11:13] so i wouldnt be surprised if the download request takes longer too [11:13] ogra_— myapps.u.c is a different service though [11:14] same backend, no [11:14] nope [11:14] ? [11:14] ah, k [11:14] the thing we hit for searches is a wrapped elasticsearch [11:14] probably to elastic then :P [11:15] (so elastic, it streches time) [11:15] ogra_— I think I need to have lunch to appreciate your sense of humour :-) [11:15] https://forum.snapcraft.io/t/chasing-unreliable-tests/158/8 [11:15] heh [11:16] Chipaca: thanks for your assistance! [11:18] fg [11:26] zyga, yes, 1 retry and 200 means we got the data [11:27] zyga: 3160 is also needed for 2.24 ? are all of your PRs that deal with the connection thing marked? [11:28] morphis, did you request whatever golang library does the progress thing to get updated in Fedora? [11:28] I recall zyga mentioned something about an issue with that in the bodhi updates [11:29] zyga: are all your PRs needed? also having them split out, doesn't that mean the testing is only partial? [11:31] zyga: so what needs to land? the core PR that renames the plugs on the core side and your three PRs? [11:31] mvo: I think it may not be needed in the end [11:32] mvo: the question is this, when we revert, do we auto-connect the reverted snap? [11:32] mvo: is it just like an install? [11:32] zyga: I think we do but we need to double check [11:32] mvo: if it is just like an install then we can land this branch, it matters little in practice because other branches will automatically connect core plugs anyway [11:33] mvo: and on refresh new connections will be made [11:33] mvo: I left it out specifically because it is a gray area and just a cleanup on top of the rest [11:33] zyga: it sounds like something we can test relatively easily? even a manual test would help to give me confidence in this [11:34] zyga: so its 3145,3154 and 3153 that we need to land for 2.24? [11:34] mvo: checking [11:34] zyga: could you make the forum entry for this a wiki ? then I can add a checklist [11:35] mvo: 3145 yes, for sure, 3154 (gee that was super confusing for my mind that swaps last two things around) yes; 3153 yes but I think it can only land after the others have helped [11:36] mvo: done, https://forum.snapcraft.io/t/duplicate-plug-slot-names-inside-the-core-snap/184 is now a wiki [11:36] a snap I've been working on in bits for a while is now stuck with: https://pastebin.ubuntu.com/24354062/ [11:37] mvo: are you going to edit it or should I? [11:37] zyga: please go ahead [11:37] the very first line of my main() function should also print out: "Main!" to stdout [11:37] icey: this is a bug in golang [11:37] zyga: a todo with the minimal fix we absolutely need for 2.24 would be great [11:37] such fun, it's running a compiled Rust binary :-/ [11:37] zyga: any ETA on a fix for that? [11:38] icey: it's fixed in ubuntu now I think but it needs to be fixed in other places that use go [11:38] icey: I think Chipaca is the person to ask [11:38] mvo: doing now [11:38] zyga: people ask about 2.24 and its not fully clear to me what we need to do now for the fix and what we can do later [11:38] zyga: in ubuntu now == 17.10 on Thursday? [11:38] zyga: thank you [11:38] icey: not sure really, sorry [11:38] 17.04 rather [11:38] zyga: talking about releases too much today [11:39] zyga do you know what version of snap it's fixed in? https://pastebin.ubuntu.com/24354069/ is what I'm on now [11:44] mmh, getting this kind of errors in autokpkgtest atm: error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received. [11:45] mvo: I'm seeing a lot of tihs [11:45] Cloning into '/tmp/go/.cache/govendor/gopkg.in/mgo.v2'... [11:45] zyga: also is https://github.com/snapcore/snapd/pull/3145#discussion_r110329005 still relevant in 3145? i.e. do we need those plugs on the core snap afterall? or will the followup branches DTRT? sorry that I have so many questions [11:45] error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received. [11:45] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [11:45] context: # cd .; git clone https://gopkg.in/mgo.v2 /tmp/go/.cache/govendor/gopkg.in/mgo.v2 [11:45] Cloning into '/tmp/go/.cache/govendor/gopkg.in/mgo.v2'... [11:45] something wrong with gopkg.in? [11:45] mvo: yes, I think we still want to rename them, the internal rename in snapd is just a fixup but we should correct the actual yaml on disk later [11:45] pedronis: ha [11:45] pedronis: funny that we both reported it :) [11:46] yes, looks like something wrong, what is mgo.v2 [11:46] zyga: so the internal rename does not have to be in sync with the core snap? so 3145 is fine as is? [11:47] mvo: yes [11:48] mvo: collecting PRs [11:48] mvo: only one left [11:48] zyga: mgo.v2, mongo driver but actually where we get bson encoding support from , I think was added recently [11:48] mvo: please check https://forum.snapcraft.io/t/duplicate-plug-slot-names-inside-the-core-snap/184 again [11:49] see errtracker stuff [11:49] pedronis: aha, makes sense [11:49] right, I remember that [11:49] mvo: have a look at that and tell me if it makes sense [11:53] mvo: trivial fix on https://github.com/snapcore/core/pull/32#pullrequestreview-31819934 [11:53] PR core#32: Rename core-support,network-bind plugs to make them unique [11:58] * Chipaca back from lunch [11:58] icey, zyga, what's the question again? [11:58] Chipaca: golang bug with clone+exec [11:59] Chipaca: https://pastebin.ubuntu.com/24354062/ [11:59] Chipaca: pthread_create doesn't work while execing [11:59] icey— what're you running there? [11:59] Chipaca: alacritty :) [11:59] a snap I've been working on in bits for a while now [11:59] alright [11:59] icey— so, *most* of that family of errors are just warnings [11:59] it builds fine, but hangs when running; if I leave it long enough, I get that output [11:59] icey— but not all of them :-( [12:00] if I run the binary itself without snapd, it runs fine [12:00] the confined version never runs the first line of the main() function [12:00] icey— but none of it involves hanging [12:00] this particular binary also does exciting things with opengl and such [12:00] and is a classic snap [12:00] icey— that is: either it'll work (sometimes printing a spuriouos warning) or it won't (with something silly about permissions) [12:00] yeah, this one will literally hang forever (as far as I can tell) and periodically output that line [12:01] icey— so, the pthread warnings are *probably* ignorable; you're probably getting denies in dmesg [12:01] Chipaca: with a classic sna? :-/ [12:01] icey: with any kind IMO [12:01] icey— any snap can get denies [12:01] classic just means the jail is built differently (wider, roomier, but still a jail) [12:02] even decmode, hah (but harder to do) [12:02] zyga: Chipaca I'm getting https://pastebin.ubuntu.com/24354169/ in dmesg every time I start it [12:03] icey: are you connected over ssh? [12:03] zyga: I'm running locally [12:03] hmmm [12:03] odd [12:03] bash on laptop [12:03] I don't think this would work well over ssh, it [12:03] * zyga looks at the leet PID [12:03] it is a terminal using GPU acceletarion :) [12:03] acceleration* [12:04] icey: can you please report that bug [12:04] icey: it feels like something else now [12:04] icey: I recall seeing this somewhere, I'll talk to the security team about it [12:04] zyga: what data would you like on the bug? this dmesg output? [12:04] icey: please open a bug on launchpad.net/snap-confine [12:04] icey: that denial is key, please describe the context, maybe how to reproduce it [12:04] icey: does it happen with other snaps? [12:04] icey: or just this? [12:05] zyga: not that I have experienced. This snap has hit show-stopping bugs every time I've tried to move forward with it :) [12:05] icey— have you looked at snappy-debug.security scanlog? [12:05] Chipaca: ... no ... ? [12:05] Chipaca: how can I do that :) [12:06] icey— snap install snappy-debug [12:06] icey— snappy-debug.security scanlog your.service [12:06] icey— then start the service [12:06] icey— see if it says anything [12:07] jdstrand— ping [12:08] icey— or, snappy-debug.security --help [12:08] icey— for more details [12:08] * zyga AFK for a moment [12:09] although, the aduit log being on snap-confine might mean that it's bug#1672819 [12:09] Chipaca: running "snappy-debug.security scanlog alacritty", followed by starting `alacritty` in a new tab shows no output [12:09] zyga: 3154 has test failures that look real [12:09] ahem [12:09] * Chipaca pokes hal [12:09] bug 1672819 [12:09] Bug #1672819: exec'ing a setuid binary from a threaded program sometimes fails to setuid [12:09] mup— thank you [12:10] icey— and you get that audit log every time? [12:10] as requested zyga: bug 1681421 [12:10] Bug #1681421: snap-confine dmesg error and snap hangs [12:10] yeah Chipaca [12:10] as far as I can tell [12:11] Chipaca: only thing that changes is the timestamp and PID [12:19] Son_Goku: no, didn't looked into that yet [12:22] Son_Goku: https://github.com/cheggaaa/pb you mean, right? [12:22] yeah [12:23] Son_Goku: that is interesting, its not yet in your BuildRequires: list [12:23] it is, though [12:23] ah no [12:23] there it is [12:25] Son_Goku: yeah looks a bit outdated, so there is a bodhi request already to get it updated or what did you mean with your second comment? [12:31] morphis: like we did with the other one [12:31] file a bug to request it to be updated [12:31] sure, but for what do we need an update? [12:33] Son_Goku: I don't see any direct commetn from zyga on this [12:33] https://bodhi.fedoraproject.org/updates/snapd-2.23.6-4.fc25%20snapd-glib-1.10-1.fc25#comment-587757 [12:34] ok, lets give a newer version a try and see if that fixes the problem [12:34] the progress bar package (https://apps.fedoraproject.org/packages/golang-github-cheggaaa-pb) ships code from 2015 [12:35] Son_Goku, zyga, dunno if you knew but the socket is no longer needed [12:35] Chipaca: wut [12:35] why? [12:35] Chipaca: /run/snapd.socket is dropped? [12:35] no [12:35] re [12:35] the .socket is no longer needed [12:35] then how is it socket activated? [12:35] mvo: looking [12:35] snapd listens to /run/snapd.socket and /run/snapd-snap.socket automatically if it hasn't been activated on startup [12:36] Chipaca: I know [12:36] ah ok [12:36] geez, you scared me for a sec [12:36] it's still useful, because the .socket can start up earlier than the .service [12:36] and queue stuff for us [12:36] Son_Goku— i'd love to be able to say i did it on purpose, but not this time [12:37] mvo: aha, I will have some silly test fixups to do [12:37] mvo: thank you! [12:37] the socket and timer units are enabled by default in Fedora [12:37] mvo: this is just a list of grep patterns to correct [12:37] Son_Goku— enabled but not started? [12:37] well, the snapd package will start them if distro policy says they are enabled on install [12:37] Son_Goku: right, I think the socket is relevant as before but what Chipaca meant is that we no longer require it strictly speaking [12:37] so for Fedora 25 and newer, that will be the case [12:38] Fedora 24 and EL7, it won't be [12:39] Chipaca, zyga: so you guys basically don't require systemd to pass you a socket fd anymore, correct? [12:41] zyga: thanks for looking into it [12:42] zyga: silly question, is there anything in 3145 that can be observed from the outside? i.e. I will not see anything in snap interfaces or similar? [12:42] morphis— dude, you can run snapd directly, for testing and stuff. Hence https://github.com/chipaca/bin/blob/master/run-snapd-srv [12:43] morphis— (when testing stuff i usuall “go build -o /tmp/srv ./cmd/sanpd && sudo ~/bin/run-snapd-srv” [12:43] ) [12:43] sure but there was a time when we had to do something like https://github.com/teknoraver/snap-openwrt/blob/master/snapd/src/snapd-wrapper.c explicitly to get snapd running [12:43] morphis— yes; no more [12:44] good [12:44] morphis— if you look at the history of run-snapd-srv, before it used to call systemd-activate [12:44] same thing really, but easier [12:44] niemeyer: your input on https://github.com/snapcore/snapd/pulls?q=is%3Aopen+is%3Apr+milestone%3A2.24 would be great, 3145 needs a re-review [12:44] niemeyer: and the other two need to land for 2.24 as well [12:44] morphis— you'll see lines like “2017/04/10 13:44:33.800749 daemon.go:211: DEBUG: socket "/run/snapd.socket" was not activated; listening”, which means it's doing this that we're discussing [12:45] very good [12:46] mvo: thinking [12:46] mvo: yes, it wil be seen in snap interfaces [12:46] mvo: this is why those tests fail [12:53] Chipaca: hey [12:53] jdstrand— snappy-debug is yours, yes? [12:54] jdstrand: when would snap confine need /dev/tty ? [12:54] zyga: hm, sorry, I'm still not seeing the full picture - 3145 in isolation will not work because it needs a core snap with core-support-plug. either by renaming the meta-data or by landing the followup branch 3154. is that correct? so the order would be 3154, 3145, 3153? [12:55] mvo: correct [12:55] zyga: typically if it is trying to write debug output [12:55] jdstrand: aha, interesting [12:56] zyga: https://bugs.launchpad.net/snap-confine/+bug/1681421/comments/1 [12:56] Bug #1681421: snap-confine dmesg error and snap hangs [12:56] zyga: well, or error, info, etc [12:56] jdstrand: right [12:56] Chipaca: well, I guess, yes [12:56] jdstrand— :) [12:56] jdstrand: should we add that to the profile then, I didn't see it today [12:56] zyga: did you read my comment? :) [12:56] jdstrand: yes [12:56] jdstrand: you said you'd add it [12:56] "I'll add this to the snap-confine profile" [12:57] jdstrand: since 2.24 is being pushed out we could add this today still [12:57] jdstrand— i ask because running 'strings' on the .swp file you ship in there is interesting [12:57] zyga: if you want to do that this second, feel free [12:57] meh [12:57] Chipaca: :\ [12:57] jdstrand— :-D [12:59] jdstrand— not *that* interesting, otherwise I would've reached out in private [12:59] Chipaca: yep, thanks for letting me know. I'll also be adding a test to the review tools (I thought I had this already tbh) [12:59] Son_Goku: https://bugzilla.redhat.com/show_bug.cgi?id=1440773 [13:00] jdstrand— I'd poke sergiusens to add .swp files to the ignore list, but he's not around [13:00] jdstrand— if only we had a place to write down issues we had so we could keep track of them asynchronously [13:00] Chipaca: haha [13:02] zyga: so I can get to the /dev/tty thing in a few minutes if that would help. if you are going to do it, let me know [13:02] jdstrand: your change to the apparmor profile removed the dmesg warning, unfortunately the snap's behaviour hasn't otherwise changed [13:03] morphis: was the progress bar thing the one that caused the build to fail on ppc64? [13:03] icey: are you using snappy-debug? [13:03] Son_Goku: no [13:03] icey: or just dmesg? [13:03] I have, it gave no output earlier [13:03] icey: I mean just now [13:03] Son_Goku: we didn't found out what the problem is with ppc64 [13:03] ah [13:03] jdstrand: running `$ sudo snappy-debug.security scanlog alacritty` just now gives no output when I run `alacritty` in another tab [13:04] icey: ok. in another window, do 'grep DEN /var/log/syslog' [13:04] jdstrand: I'm in the standup now, if you can do it I'll merge that for 2.24 [13:04] icey: snappy-debug doesn't yet understand dbus denials (it will, just doesn't yet) [13:04] jdstrand: thank you! [13:04] just multiple lines of the rw on /dev/tty [13:04] jdstrand: (I'm still working on the plug rename thing) [13:05] nothing new [13:05] icey: ok, then yeah, it is something else. I'll fix the the /dev/tty denial [13:05] zyga: [13:05] zyga: ok [13:05] jdstrand: I'm going to see if a simple rust snap still works :) [13:08] jdstrand: looks ike a no go on a super simple rust program as well [13:08] weird === Son_Goku is now known as Conan_Kudo [13:09] icey: is this classic, devmode or strict confinement? === Conan_Kudo is now known as Son_Goku [13:09] jdstrand: classic, I can try devmode / strict with this minimal one too [13:09] the thing I'm actually trying to snap will require classic though, it's a terminal :) [13:09] well jdstrand , building it in classic works perfectly [13:10] (the test one) [13:10] Son_Goku: is there an easy way to use a source dir instead of a tarball for an rpm build? [13:10] sergiusens: hey, can you take a look at backscroll when you're around to help icey with a rust program that isn't running in classic? [13:10] jdstrand: I've got 2 rust programs not running in classic now [13:10] icey: in addition to that irc ping, you might bring this topic up in the forum [13:10] jdstrand, sure, icey and I have been looking at this here and there [13:11] morphis: I think you can use rpmbuild -bb --in-place [13:11] ah [13:11] it skips %prep stage [13:11] ok, I'll step back then [13:11] Son_Goku: let me try [13:11] forum or rocket, irc is sort of dead to me :-P [13:11] and ignores source and patch [13:11] sergiusens: it's the same snap too :) [13:12] sergiusens: alacritty will /try/ to start with strict mode on, but with classic mode, it hangs [13:12] icey, yeah, I figured, GL drama and I still need to pass in those flags that were mentioned in the rust plugin [13:12] as does my super simple, no dependency rust program [13:12] sergiusens: it's not just gl... [13:12] icey, is this xenial build, xenial run [13:12] ? [13:12] sergiusens: yakkety [13:13] and sergiusens, this program has the same problem: https://is.gd/wDGfHt [13:13] super tiny and exhibits the same symptoms [13:13] icey, mind reminding me in which issue we got the recommendation on flags to pass to rust? [13:14] icey, most likely a program loader issue [13:14] sergiusens: https://github.com/rust-lang/cargo/issues/3694 [13:14] sergiusens: I'm working on a tweak to the rust plugin to set RUSTFLAGS to LDFLAGS [13:15] sergiusens: this classic mode + rust thing is killing me though [13:15] strict + rust works fine [13:15] (if the program can do strict) [13:15] icey, yeah, so most certainly program loader related [13:16] icey, so RUSTFLAGS format isn't really documented, is it 1:1 with LDFLAGS? [13:16] no clue sergiusens :)I was literally just trying shoving ldflags into rustflags [13:16] but I can't even test since it can't run [13:16] right, let me ask on the Issue [13:17] sergiusens: I'm also updating the snap-confine bug with a bit more info [13:18] sergiusens: looks like we may want something like : RUSTFLAGS = -C link-args="$(LDFLAGS)" [13:18] icey, oh, "Note that the exact linker that the compiler invokes isn't guaranteed to not change over time, so there's not always a valid interpretation of LDFLAGS even if it exists." [13:19] icey, can you figure out what linker it is using? === jgrimm-away is now known as jgrimm [13:21] pedronis: trying to figure out what your comment about the lib version means :) [13:22] sergiusens: I suspect that on linux it's using ld, but cargo (and rust) can also compile on all sorts of other systems (windows) so that may be what he's referring to [13:23] sergiusens: https://www.reddit.com/r/rust/comments/58z5xx/does_rust_use_gnu_or_llvm_linker_on_linux/ [13:31] PR snapd#3161 opened: snap-confine,browser-support: /dev/tty for snap-confine, misc browser-support for gnome-shell [13:31] Son_Goku, zyga: we still have "/usr/bin/ld: cannot find -lcap" for rpm builds in latest master [13:31] :S [13:31] sergiusens, getting "GPG error: http://ports.ubuntu.com/ubuntu-ports xenial InRelease: Could not execute 'apt-key' to verify signature" [13:31] tvoss: it's the command that doesn't like -b < 1024, or it's the library? [13:32] zyga: fyi, https://github.com/snapcore/snapd/pull/3161 [13:32] PR snapd#3161: snap-confine,browser-support: /dev/tty for snap-confine, misc browser-support for gnome-shell [13:32] Son_Goku: let me try to fix this [13:32] cachio, on what? [13:32] sergiusens, when I make apt-get update on classic in my dragonboard [13:32] cachio, oh, ask ogra_ [13:32] sergiusens, ok, tx [13:32] pedronis: it's the library ultimately [13:32] jdstrand, is https://forum.snapcraft.io/t/would-someone-create-an-electron-snap-for-this-forum/78/16 related [13:33] pedronis: libssl refuses b < 1024 [13:33] tvoss: ok, that was my wondering [13:33] jdstrand, i noticed that i see the mmap denial only on systems with newer kernels [13:33] ogra_, hey, getting "GPG error: http://ports.ubuntu.com/ubuntu-ports xenial InRelease: Could not execute 'apt-key' to verify signature" when I make apt-get update on classic in my dragonboard [13:33] tvoss: you need a 2nd snapd review and input again from tyler I suppose [13:33] jdstrand, same app works fine on a bare 16.04 with the original 4.4 [13:33] pedronis: I was thinking about erroring out, but just raising to working level seems to be more reasonable [13:33] ogra_, any idea why? [13:33] cachio, yeah, rthere is a bug open for that ... [13:33] not yet [13:33] pedronis: yup, will give Tyler a ping now [13:34] ogra_, ok, thanks [13:35] cachio, bug 1670475 [13:35] Bug #1670475: apt-secure complaints with classic snap on arm64 (dragonboard) [13:35] ogra_, great, tx [13:35] (this isnt actually dragonvboard only, i see it on pi2/3 too now) [13:35] i'll try to make up some time for it this week [13:36] it is old enough that it starts to smell :) [13:37] ogra_, good [13:46] sergiusens: is there anything I can do to help with diagnosing / fixing this classic rust snap issue? [13:46] I've got a nive 25mb strace output of trying to run it [13:47] icey, let me wrap up working on yarn support and then look into this. We have a rust integration test demo which I will turn into a classic confined snap for testing out [13:47] sergiusens: we have to ensure that it runs too, it builds just fine but will never run [13:48] icey, bottom line is that, `readelf -a `'s output under program loader needs to have the core snaps ld instead of the one on the system or you are in for trouble [13:48] icey, yeah, in our demos suite we test that they run ;-) [13:49] Son_Goku: ok, this seems to be more my fault but wondering what I am doing wrong with my in-tree build [13:50] sergiusens: looks like the ld is: [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] ? [13:51] jdstrand: thank you [13:52] sergiusens: it looks like, when snapcraft is calling build, that env['LDFLAGS'] is _not_ set [13:53] icey, it is, you just don't see it... under snapcraft.internal.common.run (or run_output) there's this wrapper script that gets created [13:54] this was in snapcraft 0.2, before my time (I took over on 0.3) and never managed to improve this logic [13:54] sergiusens: I'm trying to do something like: https://gist.github.com/ChrisMacNaughton/475882f81acab077e5e693e7df5e433e to get the RUSTFLAGS setup but LDFLAGS isn't present :-/ [13:55] niemeyer— I think I left a dangling Spread-19 [13:55] Chipaca: Not a great problem these days.. it should get cleaned up automatically without any ill side effects [13:55] k [13:56] niemeyer— i mean, started spread with -reuse, and then deleted the .spread file :-) [13:56] Chipaca: Aha, yeah, that might make it hard to reuse it ;) [13:56] jdstrand: looked again [13:56] niemeyer— so flaky [13:58] niemeyer— hopping subjects, from mwhudson on https://bugs.launchpad.net/snappy/+bug/1638537: [13:58] Bug #1638537: snapd eats 100% CPU for about 5 minutes on first boot causing a load of >2.0 [13:58] AIUI, generating an RSA key ends up benchmarking montgomery multiplication, and I know there are SIMD tricks you can use for that. Go doesn't seem to be using anything in this area but it looks like ssh-keygen is using openssh's routines for this and I bet they are optimized nearly as much as is possible. [13:58] * zyga looks at failing tests on various "rename" branches [14:00] tyhicks: hey there, would be great if you could have another pass on https://github.com/snapcore/snapd/pull/3130 [14:00] PR snapd#3130: overlord/devicestate: switch to lib(open)ssl for device key generation [14:00] tvoss— question for you about that [14:01] tvoss— are you using locking_function and threadid_func? (how/where?) is that even needed? [14:01] Chipaca: shoot, btw: ssh-keygen uses openssl ultimately [14:01] tvoss— yeah i know, the above was to give gustavo some context about this [14:01] Chipaca: I haven't looked into threaded behavior, yet, as I was just looking at device key generation. [14:02] Chipaca: making generateRSAKey available within all of snapd (and investigating into thread-safety) is on my list next [14:04] Chipaca, tvoss: Heya, reusing ssh-keygen really looks like the best alternative there [14:04] niemeyer— that's one to talk with tyhicks, as he's the driver of the move to libssl [14:04] jdstrand, did you find any workaround for this bug https://bugs.launchpad.net/snappy/+bug/1670475 ? [14:04] Bug #1670475: apt-secure complaints with classic snap on arm64 (dragonboard) [14:04] at least afaik [14:05] Son_Goku: was my fault [14:05] niemeyer: based on tyhicks feedback, I adjusted the PR to use rsa_generate_key_ex from openssl directly. ssh-keygen uses the same call [14:06] tvoss: your PR builds fine on fedora [14:06] morphis: ack [14:06] zyga, Son_Goku: https://paste.ubuntu.com/24354626/ that is what fails currently on fedora with latest master [14:07] yeah, something is being linked statically [14:07] mvo: based on the discussion in the call I'd like to add https://github.com/snapcore/snapd/pull/3160 to the 2.24 milstone if that is okay [14:07] PR snapd#3160: overlord/ifacestate: automatically rename connections on core snap [14:08] morphis: I had this problem before and fixed it [14:08] morphis: static linking + fortify = incompatible [14:08] morphis: do a patch that allows us not to build it (it's useless on classic systems) [14:08] Son_Goku: curious to know what you did [14:08] it builds fine in 2.23.6 with all the current patches [14:09] aha [14:09] but in 2.23.5, I had to do some sed magic to make it build [14:09] zyga: I know this isn't supposed to work but we landed all changes in 2.24 and that one fails [14:09] to get rid of it requesting static library preferences [14:09] Son_Goku: aha [14:09] Son_Goku: hmmm [14:09] Son_Goku: I think we need that still [14:10] Son_Goku: I'd like to find a solution where it can stay and we can link [14:10] yes [14:10] Son_Goku: (and on fedora the build is entirely dynamic) [14:10] yep [14:10] anyway, I'm sure we can [14:10] just wanted to say this [14:11] zyga: did the build for the shutdown helper change between 2.23.6 and 2.24? [14:12] morphis: perhaps, the point is that hardedned static builds just don't exist yet AFAIK [14:12] morphis: maybe we now apply hardening... well, harder [14:12] zyga: we do on fedora [14:12] cachio: only the crappy one in comment #1 [14:13] jdstrand, ok, thanks [14:14] morphis: I know but this was disabled so that it could link [14:14] morphis: same was true in debian/ubuntu BTW [14:14] zyga: were was this disable? [14:14] s/disable/disabled/? [14:14] morphis: with cflags overrides [14:15] zyga: we don't do this for 2.23.6 [14:15] morphis: not sure if this is there now, the point is that just static hardened linking doens't exist AFAIK [14:15] morphis: I'm lost in which-version-had-what [14:17] zyga: that is fine, however something change in the build of the shutdown helper between 2.23.6+patch and 2.24 so that it now doesn't work anymore [14:18] morphis: git diff on the makefile to check :) [14:19] yeah, checking that already [14:21] zyga: didn't you integrate https://github.com/snapcore/snapd/pull/3108 in yours as said on that PR? [14:21] PR snapd#3108: cmd: use libtool for the internal library [14:21] sergiusens: just posted some fun in #rust that you may enjoy: https://gist.github.com/ChrisMacNaughton/a81233e05995013ebb9a0c333c157b76 [14:25] zyga: sure, its ok - sorry for the delay, I was in the releae meeting [14:26] mvo: that's okay [14:26] mvo: any changes/ [14:27] zyga: just that we need validation from the CE team when we do 2.24 to stable [14:27] ok, that's good [14:28] niemeyer: hey, we're seeing some mgo.v2 errors related to git [14:29] niemeyer: e.g. http://pastebin.ubuntu.com/24354760/ in https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-yakkety-snappy-dev-image/yakkety/amd64/s/snapd/20170410_141305_8a2e6@/log.gz [14:29] niemeyer: do you have any ideas if that could be related to gopkg.in? (any spike in load) [14:30] zyga: No idea.. let me see [14:32] zyga: Doesn't seem extraordinary.. it's doing ~10mbps in and ~10 out, which is even below what it has been sustaining recently [14:33] niemeyer: anything odd in logs? this particular repo failed numerous times today; maybe it's just coincidence [14:35] zyga: Nothing special I can see.. this is requested about ~10 times every minute [14:36] zyga: I just fetched it locally as well from my crappy network without issues [14:37] zyga: Process is up since Feb 21.. RSS at 22MB.. load at 0.2.. can't see much to be worried about yet [14:39] zyga: The fact this is also an EOF makes me worried that perhaps the networking of those machines is not as healthy as it should be [14:39] niemeyer: thanks for checking, I'll keep monitoring [14:39] niemeyer: yeah [14:39] niemeyer: the only possiblity is linode itself now [14:40] zyga: Well.. :) [14:40] zyga: I'm far less optimistic about my abilities to guess problems like that :) [14:43] tvoss, niemeyer asked me to carry the keygen issue over to the forum, i opened https://forum.snapcraft.io/t/ubuntu-core-key-generation-slowness/229/1 [14:43] please take a look [14:43] ogra_: ack [14:43] niemeyer: did you have a chance to walk through the PR? [14:44] tyhicks, jdstrand ^^^ same for you two :) [14:46] tvoss: No, sorry, I should have done that. That said, I have a reasonable idea of where things stand. The reason I asked ogra_ for some details on that particular piece is just that it feels like ssh-keygen is the best way forward, and there's some disagreement about that which isn't entirely clear, so would like to have a thread for us to talk [14:48] zyga: you saw my message about https://github.com/snapcore/snapd/pull/3108 ? [14:48] PR snapd#3108: cmd: use libtool for the internal library [14:49] morphis: yes, I won't have time to touch this before 2.24 though [14:49] zyga: ok, let me see if I get this quickly up [14:50] jdstrand: you can ignore the ssh-keygen topic - it was being discussed by mdeslaur, sarnold, and myself [14:50] I've responded in the forum [14:51] tyhicks, thanks [14:51] np [14:51] tyhicks: Thanks! Will follow up there [14:52] tyhicks: ack, thanks [14:54] PR snapcraft#1241 closed: help: replace dashes with underscores when printing plugins help [14:56] Chipaca: re https://forum.snapcraft.io/t/declaratively-defining-environment-variables/175> what am I missing? I thought we have all the bits needed in master now? [14:58] mvo— we do? [14:58] mvo— let me look :-/ [14:58] Chipaca: I replied to that forum thread [14:58] I'm having problems with snapcraft daemons. It looks like if I have a 'notify' daemon defined in my snapcraft.yaml, snapd is waiting for the notification before starting other daemons. Is this known behavior? [14:58] Chipaca: unless I miss something of course :) [14:59] Chipaca: but I think the example from sergio works, at least we have a very similar spread test and I remember fixing things there [15:00] niemeyer: hi! I found an issue in the mailing list functionality of the forum. where is the best place to report that, the forum? [15:01] jdstrand: Yes, there's a "forum" category [15:01] mvo— which is the test that tests this? [15:02] Chipaca: https://github.com/snapcore/snapd/blob/master/tests/main/snap-env/task.yaml [15:02] Chipaca: https://github.com/snapcore/snapd/blob/master/tests/lib/snaps/test-snapd-tools/meta/snap.yaml [15:02] Cloning into '/tmp/go/.cache/govendor/gopkg.in/check.v1'... [15:02] error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received. [15:02] niemeyer: ^ now on check.v1 [15:03] Chipaca: check the EXTRA_CACHE_DIR: $SNAP_USER_DATA/ there [15:03] Chipaca: thats the case that we want, right? [15:03] mvo— note that what I'm saying we should support is [15:03] zyga: Network seems pretty busted [15:03] mvo— command: foo $BAR [15:03] zyga: Let me try restarting the process just in case [15:03] mvo— which we don't [15:03] afaik [15:03] Chipaca: aha, yes, this one is indeed missing [15:04] Chipaca: good point, sorry that I misunerstood this [15:04] mvo— in you can't even have “command: foo --bar=baz” [15:04] zyga: Done [15:04] Chipaca: yeah, command is super restrictive currently [15:04] yep [15:04] Chipaca: +1 for fixing that [15:05] mvo— tweaking https://forum.snapcraft.io/t/papercuts-mouth-sized-bugs/228 to explain this [15:06] Chipaca: thank you! [15:06] niemeyer: ok, thanks [15:06] ah, ``` works in the forum too (thank goodness) [15:07] jdstrand: Thanks for reporting.. I'm interested as we're planning to migrate the list there pretty soon [15:07] also in the forum, hitting '?' gives you a list of keyboard shortcuts \o/ [15:07] niemeyer: thank you, I restarted tests [15:08] zyga: thanks! 3154 looks good now, looks like it needs a second review [15:08] yes! [15:08] Chipaca: woah, this is cool [15:08] I'd review it but that would be self-serving [15:09] mvo— ikr [15:10] niemeyer: fyi, https://forum.snapcraft.io/t/mailing-list-urls-have-appended-breaking-the-url-for-text-only-emails/231 [15:11] jdstrand: so meta that the key character is not in the actual URL [15:11] * zyga is starving [15:14] I'll ask my question in a different way... Given a snapcraft.yaml file with several daemons of different types (notify, simple, oneshot, forking) in the apps: section, is there an implicit ordering that is used to start up those daemons at install/boot time? [15:15] ogra_: can you review https://github.com/snapcore/core/pull/32 [15:15] PR core#32: Rename core-support,network-bind plugs to make them unique [15:15] niemeyer: FYI ^ that's the rename on core snap itself [15:17] zyga, approved, want me to click the merge button ? [15:18] * ogra_ clicks [15:19] mikeb_— there is no ordering [15:19] PR core#32 closed: Rename core-support,network-bind plugs to make them unique [15:19] zyga: Thanks, quick lunch first [15:19] mikeb_— I'll add this to the papercuts thread [15:20] ogra_: no, let's wait for gustavo's review please [15:20] zyga, bah, crap [15:21] well, i'll care for the rollback in case gustavo is unhappy with it [15:22] ogra_: OK [15:22] ogra_: no worries, I think it is okay [15:22] yeah, trivial enough [15:22] mikeb_— done [15:22] + first practical attempt at renaming plugs [15:26] mikeb_, do your daemon's save pid files? [15:29] ogra_: do you mind if I run a core build now that the plug rename has landed? [15:29] mvo, go ahead [15:29] ta [15:32] * zyga lunch [15:32] (late) [15:32] kyrofa: My daemons don't explictly save pid files - that should be handled by snapd or systemd I would think. [15:33] Chpaca: I'm not familiar with the "papercuts" thread. [15:33] mikeb_— I mean, I made a note of this so we don't forget and get around to it eventually [15:34] mikeb_— is this blocking your work right now? [15:34] or can you live without it for a while? [15:35] Chipaca: There does seem to be some ordering as several daemons were not started because one of my notify daemons didn't notify. [15:35] oh [15:35] After={{.MountUnit}} {{.PrerequisiteTarget}} [15:35] hah, i'm a muppet [15:35] davmor2— shut up [15:36] Chipaca: semi-blocking. I have a nasty hack workaround that does an "end-around" around snappy. I'm trying to leverage as much of snappy's daemon functionality. [15:36] mikeb_— sorry, give me a bit to actually read the code instead of answering from memory [15:37] Chipaca: I didn't say a word but now you mention is that are similarities between you and animal [15:38] Chipaca: I'm away for a couple hours. I'll check back then. Thanks. I'll also try to put together a demo snap to illustrate further. [15:38] mikeb_— ah, no, the After= is just for things like networking [15:38] mikeb_— that would be very useful [15:38] thanks! [15:41] zyga: ok, pushed https://github.com/snapcore/snapd/pull/3162 [15:41] PR snapd#3162: cmd: use libtool for the internal library [15:42] zyga: can you comment on what still needs to be changed? [15:42] PR snapd#3162 opened: cmd: use libtool for the internal library [15:43] morphis: thanks at lot! looking [15:44] morphis: let's see if the tests pass [15:44] * Pharaoh_Atem sighs [15:44] morphis: at some point I'd like to rm -rf libtool autoconf and automake personally [15:44] meson :) [15:44] I love them the same way 70 year old people love going to the doctor's [15:44] zyga: me too [15:45] I feel the same way about golang :) [15:46] I'm no fan of autotools either, though [15:46] Pharaoh_Atem: I honestly disagree though :) [15:46] * zyga looks at [15:46] error: cannot install "test-snapd-python-webserver": Get [15:46] https://search.apps.ubuntu.com/api/v1/snaps/details/test-snapd-python-webserver?channel=stable&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2C [15:46] origin%2Cdeveloper_id%2Cprivate%2Cconfinement: net/http: request canceled (Client.Timeout exceeded while awaiting headers) [15:46] whaaat just happened here [15:46] zyga: go code is fine, but everything else about go sucks [15:47] pstolowski: around? [15:47] zyga, yes [15:47] pstolowski: can you look at https://travis-ci.org/snapcore/snapd/builds/220592064 [15:47] pstolowski: save the logs if needed [15:47] pstolowski: I'd like to re-start it [15:47] pstolowski: not sure if that's something we should add to retry list [15:48] it seems linode has a bad hair day with networking [15:48] PR snapcraft#1246 opened: Preparation work for collaboration support. Includes refactor of get/push_v… [15:49] pstolowski: tell me when ready [15:49] zyga, ok, saved a copy [15:49] pstolowski: thanks! [15:49] zyga, yes I think it makes sense to retry on those. in fact, we would retry on net.Timeout(), but apparently this doesn't fall into that error category [15:50] it would be nice to run qemu with special network that drops packets [15:50] to see how we faire [15:50] zyga, so perhaps again, some unwrapping is needed, or different error type check [15:50] pstolowski: seems like the most whack-a-mole bug ever BTW [15:50] pstolowski: whack-a-hydra [15:50] zyga, uhm [15:52] zyga, perhaps the shouldRetry() check should be totally reversed... e.g. don't retry only on well-known errors that shouldn't be retried. otherwise always retry [15:52] pstolowski: what would be the well-known errors? [15:56] Chipaca, pstolowski, pedronis: we need more reviews for 2.24 branches [15:56] yes! looking [15:57] zyga— 2.24 branches have grown! [15:57] can you please start with https://github.com/snapcore/snapd/pull/3154 [15:57] PR snapd#3154: many: rename two core plugs that clash with slot names [15:57] other branches will depend on it [15:57] snapd#3145 needs niemeyer's eyes [15:58] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [15:58] (as he marked it as needs-changing) [15:58] zyga: at least that patch gets us building on fedora again [15:58] yes [15:58] morphis: nice! [15:58] i already had reviewed 3154! [15:59] * Chipaca actually clicks the button now [15:59] zyga: snap-update-ns was removed? [15:59] zyga— just needs to be green now [16:00] morphis: it wasn't finished, the C parts were removed, we're implementing it in go now [16:01] zyga: ah right, I remember looking at that PR from you [16:04] zyga: About #3145, a question: [16:05] niemeyer: yes [16:05] zyga: How do we get to that state given that we don't have plugs and slots with the same name anymore? [16:05] Pharaoh_Atem: Finish: rpmbuild snapd-2.24-4.fc25.src.rpm [16:05] zyga, i don't know. was just a crazy idea. [16:05] Pharaoh_Atem: so the last thing we need is https://github.com/snapcore/snapd/pull/3162 [16:05] PR snapd#3162: cmd: use libtool for the internal library [16:05] zyga, but perhaps not a bad one [16:06] niemeyer: we get to that state because on core -> ubuntu-core transition the `network-bind` plug ends up disconnected as it has two suppliers (during the time core is installed) ubuntu-core and core [16:06] niemeyer: I added core-support there just in case I missed something, as it makes sense to ensure those two plugs are just always connected [16:07] niemeyer: does that answer your question? (not sure I inferred the "that state" part correctly) [16:07] zyga: At least I still don't get how we end up there [16:07] zyga, looking at 3160 [16:07] zyga: I thought we could only end up there as a consequence of having plug/slot with same name [16:07] zyga: We agreed to fix that so that never happens [16:08] niemeyer: no, that is not a factor in this case [16:08] niemeyer: it happens because the migration process installs core before removing ubuntu-core [16:08] niemeyer: ah, sorry, [16:08] niemeyer: let me think [16:08] niemeyer: I either swapped network-bind and core-support [16:08] niemeyer: or something else is at play [16:08] zyga: Yep, smells fishy [16:09] zyga: That method is handling a single snap and plug/slot name [16:09] niemeyer: thanks for the dilligence! [16:09] s/ll/l [16:11] niemeyer: what is interesting is that branch alone, without internal rename logic from other branches affects the spread test [16:11] niemeyer: let me review the code around that [16:12] zyga: Right, exactly.. because we have a plug and slot with the same name [16:12] zyga: So it's indeed duplicated [16:12] zyga: But when we fix that, which is the better approach, we shouldn't need it anymore [16:12] morphis: snapd 2.24 hasn't been released yet, has it? [16:12] zyga: Exactly the sort of issue we discussed today in the standup.. fixing the invariant will unbreak this and potentially other things we're not even aware about yet [16:13] Pharaoh_Atem: it hasn't [16:13] Pharaoh_Atem: was just lazy in constructing the source archive name [16:14] ah [16:15] zyga: well auto connection is by interface, so core can auto-connect to core-support in both core and ubuntu-core [16:15] if both snaps are installed (which indeed happens during transition) [16:16] pedronis: and then we do ... nothing, because we bail out if there's more than one candidate [16:16] yes [16:16] anyway either we don't have the connections, or we have misnamed connections, cannot have both [16:16] for the same system [16:17] ogra_: did new core snap build already in edge? [16:17] zyga, yup [16:17] ogra_: we need to fix master snapd to let tests pass [16:17] one sec [16:18] zyga, ah, so you need a rebuild afterwards ? [16:18] NP, just ping me then [16:19] PR snapd#3163 opened: tests: adjust to look for network-bind-plug [16:19] ogra_: https://github.com/snapcore/snapd/pull/3163 [16:19] PR snapd#3163: tests: adjust to look for network-bind-plug [16:20] ogra_: we need this to land when the core snap with PR 32 is in ede [16:20] edge* [16:20] ok [16:20] well, the core snap is there [16:20] right [16:25] zyga: After you're done with your investigation, please let me know how you want to move forward [16:27] niemeyer: sure, now I need to take a break but we need to land https://github.com/snapcore/snapd/pull/3163 to unbreak master [16:27] PR snapd#3163: tests: adjust to look for network-bind-plug [16:29] niemeyer: I looked at transitionConnectionsCoreMigration for how the clash is affecting it [16:29] jjohansen: hey, could you look at my comment in https://forum.snapcraft.io/t/would-someone-create-an-electron-snap-for-this-forum/78/18 and let me know if this is the updated mmap mediation (ie, I need to adjust the policy for these denials to add 'm') [16:29] niemeyer: but TBH I don't see any impact [16:30] well autoconnection doesn't look at names of plugs [16:30] zyga: Reviewed snapd#3153.. LGTM plus a suggestion on the wording [16:30] PR snapd#3153: interfaces: validate plug/slot uniqueness [16:30] niemeyer: thanks looking [16:31] zyga: #3163 LGTM [16:33] anyway 3145 is not related to the name duplication, it just intersects with it, still nor sure I like the special casing there though :/ [16:34] * zyga -> break and coffee [16:35] jdstrand: likely bug 1658219 [16:35] Bug #1658219: flock not mediated by 'k' [16:35] once 3163 is green I'll merge it and merge master into open 2.24 branches to see what's wrong [16:35] and get back to the question niemeyer asked above, but so far back to puzzle mode [16:35] jjohansen: that was what I was thinking, but I wasn't sure of the status of the patches wrt 4.10.0-15.17-generic in zesty [16:35] (or maybe just tired / stressful day and didn't see something obvious) [16:36] jjohansen: I guess based on that bot response, zesty has the patches. it seems like the bug status was moving quite a bit so wanted to ask [16:36] jdstrand: it was not reverted in zesty [16:37] jjohansen: ah, ok, thanks. that makes it easier [16:39] * zyga afk [16:57] roadmr can you please help NicolinoCuralli, he seems to have snap stacked in manual review stage. [16:58] roadmr can you please check what's the reason and if what steps are needed to unblock it [17:00] PR snapcraft#1235 closed: store: API interactions for developer collaboration. [17:24] https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/ppc64el/s/snapd/20170410_171526_28765@/log.gz has a test failure where even 40s worth of retries (search for "4 retries") we get no response - is linode in bad shape or our network? [17:24] hrm, loooots of network.Timeout errors [17:24] mvo: hey [17:24] mvo: I just opened my laptop (on the walk, yes, nuts people here) [17:24] mvo: I'm seeing the same thing [17:24] zyga: ha! I have a question in the forum for you soon [17:25] mvo: sure [17:25] zyga: so do you think its linode? or store? [17:26] mvo: that's interesting, I think linode [17:27] mvo: my reason is that I saw numerous SSL handshake errors while git clone on linode test setup [17:27] mvo: so there are two consistent places where networking is observed as flaky [17:27] mvo: but no measurements really [17:28] mvo: I'm in a fast-food restaurant as my kids dragged us here, I may use my spread key to run some silly network tests and see what works [17:28] mvo: but not sure how to do it [17:28] mvo: I was thinking about a hourly "health check" that git clones all the repos we care about [17:28] mvo: and asks the store for stuff [17:28] mvo: contains grep for retry counts [17:28] mvo: and git clone errors [17:29] mvo: and reports this somewhere [17:29] mvo: but again one of those things I probably never get to finish as I have no recent web konwledge to plot this anywhere [17:31] mvo: what was your question? [17:34] zyga: what was the remaining issue in the plug renaming ? you mentioned there was something new that came up? [17:35] mvo: aha [17:35] mvo: sorry, I was meaning to paste but then didn't [17:35] mvo: it was here on irc [17:35] mvo: do you have logs? [17:36] zyga: yeah, but some context is missing for some reason, is there a short summary? [17:36] mvo: starts with `18:04 < niemeyer> zyga: About #3145, a question: [17:36] mvo: I can pastebin that part of the log if you don't have a IRC logs [17:36] mvo: but [17:36] mvo: gustavo asked one fundamental question [17:36] https://irclogs.ubuntu.com/2017/04/10/%23snappy.html [17:36] mvo: network-bind was on old and new core (ubuntu core and core) [17:36] ;) [17:36] mvo: or wans't it? [17:36] zyga: correct [17:37] mvo: ok, so it should have been migrated [17:37] mvo: unless there old core didn't have the plug [17:37] then no connection and no migration (of connections) [17:37] old core didnt have a config hook [17:37] mvo: the question is this: is the transition bug affected by the clashing plugs we found later [17:37] that is ubuntu-core didnt [17:37] aaaah [17:37] ogra_: thanks! [17:37] :) [17:37] mvo: to finish that thought: so are we missing something [17:37] zyga: no plugs in ubuntu-core [17:38] mvo: (i.e. was there something else at play) [17:38] but if the network-bind *plug* (called just network-bind) was first on the new core snap (not ubuntu-core) [17:38] then everything broken is accounted for IMO [17:38] as it is just a new plug that has two auto-connect options [17:38] mvo: does that make sense? [17:39] darn so many network issues in linode now [17:40] does linode have a status page? [17:40] https://status.linode.com/ [17:40] all stuff operational [17:40] but I see red on PRs all around [17:40] zyga: hm, why do we have the bug in network-bind but not in core-support ? that transient correctly, no? [17:41] mvo: core-support is a new thing, old core did not provide it [17:41] mvo: and also, maybe, no tests for that [17:41] * zyga checks [17:41] zyga: its something added via snap/implicit.go [17:42] mvo: no tests for core-support [17:42] mvo: I mean, no spread test [17:42] zyga: to see if the transition for that works? [17:42] mvo: checks for anything related to core-support [17:42] mvo: anything, just grep is empty [17:42] mvo: so if it is connected or not, we don't know [17:42] mvo: but since it's not in old ubuntu-core I suspect it's not affected [17:43] mvo: and this whole rabbit hole started because federico pointed out a failing test in some other repo [17:43] zyga: what does "its not in old ubuntu-core" mean? [17:43] mvo: and we started pulling [17:43] mvo: the "core-support" slot is not provided by "ubuntu-core" [17:43] mvo: so when "core" is installed it is connected normally as there's one provider, the new core itself [17:44] mvo: if anything I'm saying is fishy please shout, I really want to make sure we've got tihs [17:44] zyga: core-support is only added via implict.go and those are added to both ubuntu-core and core, no? [17:44] and this release is uneventful [17:45] mvo: was it added by snapd that is present in ubuntu-core? [17:45] mvo: aaha [17:45] mvo: classic [17:45] zyga: yeah :) I'm just trying to understand it better [17:45] * zyga wonders [17:45] mvo: so my theory is that [17:45] mvo: because ubuntu-core is old [17:45] mvo: there'd be no core-support interface there [17:45] mvo: and even if, no test is measuring that [17:46] it was also never added to the snapcraft.yaml in ubuntu-core ... [17:46] zyga: I add the test now :) [17:46] mvo: so we only noticed because network-bind was measured via spread [17:46] ogra_: yes, because it's implicit [17:46] ah, right [17:46] ogra_: implicit is very tricky, some only get added depending on os-release [17:46] mvo: thank you! [17:46] yeah [17:46] zyga: whats strange is that the code that can do the transition also knows about the implicit core-support so when that code runs ubuntu-core should have core-support [17:46] mvo: https://github.com/snapcore/snapd/pull/3159 is green in travis and 2/4 adt passed [17:46] PR snapd#3159: store: retry once on hashsum mismatches in a Download() [17:46] zyga: but yeah, let me add core support [17:47] mvo: rest are timeouts [17:47] mvo: ack/nack? [17:47] mvo, but that would only be true if someone actually released an ubuntu-core after the ocde was added ... did we release new ubuntu-core since ? [17:47] zyga: it needs review, we need to decide if we want to do one retry unconditionally (thats what the branch is doing) or doing it *only* if we had partial content in a previous retry [17:48] mvo: ohhh, sorry, [17:48] ogra_: yes, we have to. otherwise we don't transition [17:48] * zyga was watching wrong PR [17:48] (i mean, unless someone uses ubuntu-core from edge ) [17:48] mvo: I meant >https://github.com/snapcore/snapd/pull/3163 [17:48] PR snapd#3163: tests: adjust to look for network-bind-plug [17:48] 3 failures, travis green [17:49] PR snapd#3163 closed: tests: adjust to look for network-bind-plug [17:49] ogra_: if you use ubuntu-core ages old then things don't transition. or only if you updated the deb but never did a successful snap refresh that pulls in a new ubuntu-core which is possible but would be strange [17:49] mvo: all network related [17:49] as in timeout [17:49] zyga: +1 [17:49] not network-bind :) [17:49] thanks! [17:49] I'll merge this into other PRs now [17:49] ta [17:50] zyga: test is running now (about connected core) [17:50] zyga: eh connected core-support [17:51] zyga: I still wonder if we should merge network-bind into core-support but I don't think it buys anything and also we need to understand why network-bind acts like it acts and core-support (maybe) dosn't - or maybe it does [17:51] we really need to become more creative with our naming [17:51] core and classic are both so overused everywhere now [17:53] mvo: we can next time [17:53] mvo: I think we need to re-think core plugs [17:53] zyga: yes, after the fire. sorry for pushing out the distraction [17:53] i dont see why we need confinement at all for it [17:54] given we are in full control of the hook it could well be unconfined [17:54] mvo: no worries, I think it's a valid way out of the problem [17:54] mvo: kill all those plugs [17:54] mvo: and make the connection implicit [17:54] well [17:54] not connection, permissions [17:54] *maybe* [17:54] it's something to discuss [17:56] zyga: test for core-support works, trying network-bind now [17:59] mvo: all 2.24 PRs restarted [18:00] ta [18:00] mvo: I didn't reply to comments on https://github.com/snapcore/snapd/pull/3145 yet [18:00] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [18:00] mvo: I need to reply to niemeyer about his questoin [18:01] but I need to move now (family) [18:01] can you take that please? [18:01] niemeyer: I think, based on my understanding and discussion with ogra and mvo, that the name clashes are not a factor in core transition [18:01] I wish I had irssi on screen now [18:02] zyga: I don't see open comments in there [18:02] zyga: happy to reply of course [18:02] zyga: once I know where to :) [18:02] zyga: but go if your family needs you [18:02] Chipaca: Snappy daemonization issues part 1. https://github.com/mabnhdev/snappy-daemon-demo - See the README file. [18:02] mvo: refreshing [18:02] maybe stale page [18:02] sergiusens, I am creating a dashboard with some kpi for ubuntu core, I thought perhaps we can do the same for snapcraft [18:03] sergiusens, the idea would be to detect any regression just looking at the dashboard [18:04] sergiusens, it is the current one for snap core https://platform-qa-dashboard.canonical.com/dashboard/db/kpi-ubuntu-core-dashboard?editorTab=Metrics [18:04] mvo: walking with open laptop, I see questions from pedronis that I have to answer [18:04] sergiusens, any suggestion? what do you thing about that? [18:05] zyga: yeah, I can look at those [18:06] sergiusens, it is being executed in real hardware [18:07] mvo: zyga: yes, agreed the name clash is not the factor there, I think having just a forum topic for both issues (named after only one) has probably confused things [18:08] pedronis: yes, it was started with this, but I do think those are separate two problems [18:08] pedronis: thank you for your input! [18:08] hi [18:08] is this the right place to ask a question about ubuntu nextcloud snap help? [18:08] mvo: I had no blocker question, the issue is mostly understand what those branches do all together, one of my question is that it seems at least two of the fixes will never need to be done together which is good, but part of that understanding [18:09] pedronis: I think we don't understand the issue yet tbh [18:09] mvo: which one? :) [18:09] zyga: so I added a test that ensures that things are connected - core-support is connected, network-bind is not. this is with the new network-bind-plug [18:09] pedronis: the transition issue [18:10] well we install core while ubuntu-core is present [18:10] no? [18:10] pedronis: yes [18:10] mvo: this matches an existing test that has the same expectation and outcome [18:10] at least autoconnect will not work in that case [18:10] mvo: just runs nightly [18:10] pedronis: why does it work for core-support ? [18:10] feerico has it someqhere [18:10] mvo: does the old ubuntu-core has a core-support plug? [18:10] sorry [18:10] slot? [18:11] pedronis: its added via snap/implicit.go for anything that is an OS [18:11] pedronis: so I would say yes [18:11] pedronis: this is the part that confuses me [18:11] mvo: well, added when? [18:11] pedronis: in ifacestate [18:11] mvo: if you have something where you can run this through I would recommend adding logging in the autoconnect bits [18:12] pedronis: its added in 6 places or so === bregma__ is now known as bregma [18:12] mvo: yea [18:12] pedronis: yeah, I add logging [18:13] mvo: notice that sometimes it depends if info comes from repo [18:13] or from snapmanager [18:13] pedronis: but still strange, one would assume that when both core-support and network-bind are added via implicit.go either both get connected or none, but not one and and not the other [18:13] snapmanager is not so good at adding implicit slots [18:13] mvo: well, no [18:14] mvo: there's another factor the snap declaration [18:14] possibly [18:14] pedronis: ohhhhh [18:14] mvo: that is how auto connect works [18:14] network-bind is autoconnect for everything, no? [18:15] core-support I need to recheck what we did exactly [18:15] cachio: you will want to talk to elopio, we have something similar going on [18:15] PR snapd#3158 closed: store: add download test with EOF in the middle [18:15] bring it up on the forums or rocket [18:15] pedronis: no, same behavior but we only tested it and noticed [18:15] sergiusens: yeah, I think thats exactly it, core-support has only a single candidate [18:16] zyga: ? [18:16] 20:14 < pedronis> network-bind is autoconnect for everything, no? [18:16] zyga: I mean the declarations doesn't block autoconnect for network-bind [18:16] pedronis: hm, maybe not - basedeclartion allows plug-snap-type: core so both core and ubuntu-core should be allowed(?= [18:16] right [18:17] * mvo needs to step out for a little bit [18:17] mvo: I'm looking, that stuff is confusing [18:17] * zyga didnt think about assertions [18:17] pedronis: indeed [18:17] mvo: it says deny-auto-connection: true [18:18] PR snapd#3164 opened: tests: ensure network-bind and core-support are connected [18:18] so it's back to the snap-declarations [18:18] let me look at those [18:18] zyga, pedronis: the above PR should be good to test that our fix actually works [18:19] (and it looks like it does not, i.e. we need to figure the root cause still and not just fixup on the next run :/) [18:20] mvo: not for me I guess [18:20] hmmm [18:20] mvo: what makes you say so? [18:20] mvo: zyga: so the sna-declaration of both core and ubuntu-core will not let core-support connect [18:21] well auto-connect [18:21] bit wondering how it works at all [18:21] store assertion? [18:21] on core [18:21] yes, store assertion [18:21] on both [18:22] the base declaration just says deny-auto-connection: true [18:22] so they cannot auto-connect, not sure how the configure hook works now [18:22] but the fact is not interfaces is kind of expected [18:22] mvo: sorry to nag but I want to make sure I'm not missing anything, what makes you say that we've still haven't gotten to the bottom of it and tests confirm that [18:22] given that, transition or not [18:23] ah, no [18:23] confusing [18:23] pedronis: I'm trying to parse two previous lines [18:23] pedronis: cna you re-phrase that [18:24] zyga: sorry [18:24] sorry, just tired and really want to understand what's going on here precisely [18:24] zyga: so network-bind doesn't autoconnect? but core-support does? or is that the reverse? [18:24] pedronis: network-bind does auto-connect AFAIR, let me check [18:24] core-support doesn't autoconnect [18:24] ah, super confusing [18:24] sorry [18:25] we don't know if core-support connects in practice [18:25] my two statements were "obvious" intents but not facts [18:25] network-bind did not connect according to a test that fgimenez ran [18:25] at least the declarations now that I read them carefully should let them both autoconnect [18:25] pedronis: yes, that is certainly the intent [18:25] pedronis: that both plugs connect to core and perhaps to ubuntu-core as well (not sure) [18:26] though only os snaps can have core-support plugs or slots [18:26] pedronis: what was measured is that ubuntu-core -> core transition started failing in nightly tests where the network-bind *plug* was not connected [18:26] pedronis: and at the time we didn't check core-support *plug* [18:27] well, unless the slots are added differently they should behave similarly afaict (at least for the os snap) [18:27] zyga: sorry for being confusing. so https://github.com/snapcore/snapd/pull/3164/files#diff-23e6c1e2bbf5a1a24798303971f19b99R83 works [18:27] PR snapd#3164: tests: ensure network-bind and core-support are connected [18:27] zyga: however the line below does not [18:28] zyga: so core-support appears to be fine and connected but network-bind is not [18:28] mvo: so line 83 works and line 84 doesn't work? [18:28] zyga: correct [18:29] there is no difference between them though [18:29] mvo: can you show me the debug output, do you have snap interfaces there? [18:29] zyga: sure, one sec [18:29] pedronis: maybe, do we auto-add "core-support" to ubuntu-core too? [18:29] pedronis: if so, yes, I agree [18:29] zyga: http://paste.ubuntu.com/24356000/ [18:29] also not sure how this test works [18:30] which snapd is used while ubuntu-core is installed? [18:30] some ancient one [18:30] or master? [18:30] the question is about the slots [18:30] `:core-support core:core-support-plug` [18:30] zyga: this is pretty recent master [18:30] so it's connected [18:30] so yes, they should be added the same way [18:30] pedronis: interesting [18:30] walking home [18:31] 10 min [18:31] zyga: the full log, sorry its huge http://paste.ubuntu.com/24356011/ [18:32] thnx [18:32] zyga, pedronis: sorry, really need to step out for some minutes now [18:32] zyga, pedronis: but please keep me updated, bbiab [18:36] zyga: ah, but now we check both sides, plug to slots and slots to plugs [18:36] for autoconnect [18:38] yes [18:38] for some time [18:38] so slots we know they both have both, because we add them [18:38] but plugs, I don't know [18:39] I mean slots are added implicitly [18:39] pedronis: ubuntu-core snap has neither plugs [18:39] pedronis: we don't add implicit plugs [18:39] does the ubuntu-core we use has a core-support plug? [18:40] re, sorry, wifi connected and n-m bugs galore [18:40] 20:39 < zyga> pedronis: ubuntu-core snap has neither plugs [18:40] 20:39 < zyga> pedronis: we don't add implicit plugs [18:40] pedronis: that's what I said / saw last [18:40] no plug ? [18:41] that would provoke the reverse problem [18:42] I mean if it has no plug then we are back that the two should be symmetric [18:42] pedronis: ubuntu-core does not have network-bind plug or core-support plug [18:42] pedronis: only core has those [18:43] pedronis: yes, I think something is fishy still [18:43] then when we try to connect from slots they should both work? [18:43] pedronis: I just got home, setting up to dig [18:43] pedronis: no, because the plug on core has two candidates again, core and ubuntu-core [18:43] pedronis: because slots are added, even to ubuntu core [18:43] zyga: we try from both sides [18:43] pedronis: yes [18:43] pedronis: maybe I misunderstand your point [18:44] zyga: so when we try on core from slots [18:44] it doesn't matter how many slots there [18:44] are [18:44] only plugs [18:44] pedronis: aha, let me see [18:44] but then as I said [18:44] I still don't understand why those two don't work the same [18:47] pedronis: in both auto-connect "sides" (plug/slots) we don't connect if more than one viable candidate; so yes, fishy [18:47] yes, so the from plug side is expected to fail [18:47] pedronis: but looking at it I also found: // Suggested connection already exist so don't clobber it. [18:47] because two slots [18:47] pedronis: so maybe the clashing names have some impact [18:47] but the from slots, don't understand why one works and the other not [18:48] we check if a conn state exists [18:48] and [18:48] if by that time we migrate ubuntu-core to core [18:48] maybe something weird happens [18:48] like core:network-bind core:network-bind [18:48] so we don't connect it from that side now [18:48] plausible? [18:48] (that would explain why rename of plug might fix it) [18:49] or would it, mmmmmm [18:49] well, tired [18:49] * zyga looks for errors in that code [18:49] maybe something swapped [18:49] anyway indeed ubuntu-core has neither plug [18:49] at least at stable [18:50] pedronis: yes but remember our tests do magic repacking so maybe we're missing something non-obvious there [18:50] pedronis: I'd like to see a old-snapd update to new-snapd without any magic [18:51] we have a different bug it seems snap download now defaults to edge ??? [18:53] pedronis: what is in the snap declaration for ubuntu-core [18:53] pedronis: or how can I see that with snap known [18:53] there is nothing interesting in the snap declarations [18:53] for both core or ubuntu-core [18:53] pedronis: no? what about assertions? [18:53] ? [18:53] pedronis: newAutoConnectChecker [18:53] I mean they don't have any plugs or slots bits [18:53] aha [18:54] all it matters is the base declaration [18:54] afaict [18:54] pedronis: so how do we let core-support connect, via base? [18:54] * zyga looks [18:54] it's confusing [18:54] but the only control we do is really that core-support plugs and slots can only be on os [18:54] nothing else [18:54] plug-snap-type: [18:54] - core [18:54] we have no "core" type, we have "os" [18:54] is that just a discrepancy? [18:54] yes core==os [18:54] ok [18:55] TypeOS is still the internal name [18:55] but core is what is used in the decls [18:55] to make it less confusing ? :) [18:59] ogra_: decls are public [18:59] ogra_: we can fix the core code without anyone noticing [18:59] well, the snapcraft.yaml uses type: os :) [19:00] ogra_: I think we wanted to wait with that as it is old stuff [19:00] so in other code i'd also expect to find "os" when something is called "type" [19:00] ogra_: old == existing [19:00] ogra_: and declarations were new [19:00] heh [19:00] ogra_: so we added the right language [19:01] ogra_: we'll correct core's snap.yaml in due time [19:01] k [19:01] ok, with https://github.com/snapcore/snapd/pull/3164 I can test a few theories [19:01] PR snapd#3164: tests: ensure network-bind and core-support are connected [19:01] give me 15 minutes, let's see [19:10] ok, test in progress [19:11] I will have some useful data in 15 minutes [19:11] when spread finishes [19:15] hmm [19:15] dh_install: snapd missing files: usr/bin/snap-update-ns [19:15] what happened there? [19:15] missed a git add ? [19:15] no [19:15] it was removed [19:15] something resurrected that line [19:15] * zyga looks [19:16] I see [19:16] `-usr/lib/snapd/snap-update-ns [19:16] ok, I must be missing something [19:16] aha [19:16] -resend [19:16] debian/snapd.install [19:16] sorry [19:16] i see it in there [19:17] ogra_: what do you see? [19:17] look in debian/snapd.install [19:17] ogra_: can you paste the line [19:17] ogra_: running out of ram... [19:17] there is a line for it [19:17] gah [19:17] usr/bin/snap-update-ns /usr/lib/snapd/ [19:17] ogra_: there is one but is is different than mine? [19:17] that's the *correct* line [19:17] it's installed from usr/bin because it's a go binary now [19:17] I just restarted spread [19:18] oh, i missed the "lib" [19:18] the lib is ok too, not changed [19:18] anyway, checking again [19:18] I think it was missing -resend [19:25] zyga, mvo: I think I reviewed the critical things.. am I missing something still? What's the outcome of the prior conversation on the de-dup of adding plugs/slots? [19:25] * zyga has logs and reviews them now [19:26] niemeyer: we are pursuing one thread that we still don't understand wrt why network-bind is affected but core-support is not [19:26] niemeyer: I added something that may help us to understand to logs, reading them now [19:27] niemeyer: mvo posted a PR 3164 that shows the failure on vanilla master [19:27] niemeyer: no other updates yet [19:28] niemeyer: how do you propose to revert the state of the current branch? just start over and cherry pick commits? [19:28] zyga: here is an interessting though - network-bind is used in the tests in both test-snapd-python-webserver and also in core, if I remove test-snapd-python-webserver things seem to work [19:29] zyga: I'm double checking that now [19:29] zyga: Ok [19:29] tvoss: Need some more context [19:30] niemeyer: for the changes to device key creation [19:30] niemeyer: we want to get to the bottom of this just to be sure we don't overlook another problem, its a bit thorny right now [19:31] niemeyer, I have created this dashboard with tome kpis for ubuntu core, https://platform-qa-dashboard.canonical.com/dashboard/db/kpi-ubuntu-core-dashboard [19:32] zyga: yes, so with test-snapd-python-webserver -> core gets no network-bind. without anything in network-bind: things work [19:32] niemeyer, just tell me if you are insterested to see other metrics on there [19:32] cachio: Oh, nice, let me check it out [19:32] niemeyer, all those metrics are obtained from executions on real hardware [19:33] Bug #1681547 opened: Gnome3 on Ubuntu 17.04 doesn't find snap desktop files [19:33] niemeyer, any sugestion is welcome [19:33] mvo: interesting [19:33] mvo: I tweaked logs to be shorter and am trying again [19:34] niemeyer, the idea is to detect any performance regression, but we could any other metric [19:34] cachio: It would be nice to hook that up with our existing test suite [19:35] cachio: The spread tests specifically [19:35] niemeyer, we are working on that [19:35] cachio: Ah, that's great then [19:35] In theory that should cover most of the interactions [19:35] niemeyer, I have created a change request in spread to export xunit format [19:36] niemeyer, once we have that, then we can show test results and a lot metrics on grafana too [19:36] mvo: interesting, any theory why? [19:36] cachio: That's probably not coming, but you can use the format used to display timings in Travis to easily pick up the running time [19:37] zyga: no idea right now, just a piece in the puzzle [19:37] cachio: Ah, wait.. you mean you already did it, let me chcek [19:38] niemeyer, https://github.com/snapcore/spread/pull/25/files [19:38] PR spread#25: Adding capability to write xunit report with the task suites and results [19:38] niemeyer, well the original idea was to run spread tests in real hardware and report results and performance times to grafana [19:39] niemeyer, we are close to that [19:39] PR snapcraft#1247 opened: Fixing Store integration tests [19:40] zyga: because then the slots side doesn't work either, because there are two plugs in the system now [19:40] zyga: working from the plug side is more natural for autoconnect [19:40] pedronis: ! [19:40] pedronis: aha, yes [19:40] here the slots side almost saves us [19:40] pedronis: it also means our slot auto-connect is a bit wonky [19:40] but not if something else needs network-bind [19:40] pedronis: it should connect all candidates if that's possible (all plugs) [19:41] yes, it doesn't make a lot of sense I suppose [19:41] but not sure [19:41] anyway [19:41] now things make a bit of sense [19:41] pedronis: thank you, this is a very good input, [19:42] mvo: ^ I think it makes sense, and it matches what we observe [19:42] mvo: I added logs for this, will know ... now [19:42] * zyga reads [19:43] zyga: auto-connecting looking from the plugs on core doesn't work because we have core and ubuntu-core we the same implicit slots [19:43] zyga: auto-connection from core core-support slot work because there's only core plug (ubuntu-core doesn't have the plug) [19:44] zyga: network-bind isn't so lucky because from the slot side we observe both the core plug but also any other snap using network-bind plug [19:45] this also indeed shows that the new auto-connect logic we added from the slot side doesn't make complete sense [19:45] bit too tired to think how exactly it should work though [19:45] * zyga hugs pedronis brilliance! thanks for solving it [19:48] * mvo hugs pedronis as well [19:49] ok, restarted tests to just capture the smoking gun log [19:49] niemeyer: if that holds, what do you want us to do? [19:49] niemeyer: it seems there's another bug where slot-side auto-connection is just silly and needs re-thinking [19:49] niemeyer: and we now noticed [19:50] zyga: when we connect from the slot side I suppose the question is not whether there just on matching plug, but whether there are no other snaps with a slot that would connect witht the same plugs as us [19:50] pedronis: I think we may want to limit that to content if there's no connection [19:50] pedronis: and nothing else maybe [19:50] pedronis: (except core perhaps) [19:50] pedronis: then re-think [19:51] so just find candidate plugs [19:51] and then reapply the logic from the other side [19:51] and see if we are the winner [19:51] mmm [19:52] anyway not a quick fix for 2.24 [19:52] yes, I think so too [19:52] mvo: tell me what you want to do now [19:53] it just seems that only network-bind plug has the problem we thought both had on core [19:53] mvo: yes [19:53] er [19:53] pedronis: yes [19:54] Folks, these conversations are much better held in the forum. [19:54] The scroll will soon be over everybody's screens and those conversations will be lost. [19:54] niemeyer: agreed [19:55] niemeyer: I understand but I don't see other solution that copying the result, thinking on the spot through the forum doesn't work for me [19:55] zyga: I don't know what "that holding" means, for related reasons [19:55] zyga: what I want to do :) ? fold network-bind into core support, release 2.24 and fix all the other stuff in 2.25 - but I'm not sure that is feasible [19:55] pedronis: It's just a different window where you can type the same message. :) [19:56] I suspect that is not so simple (there are empires built on that :) ) [19:57] anyway we don't even have a topic yet about *this* problem [19:57] not the other one [19:57] pedronis: Yeah, to be clear I'm mainly pointing out I see important conversations scrolling over [19:58] pedronis: We sort of do.. https://forum.snapcraft.io/t/duplicate-plug-slot-names-inside-the-core-snap/184/22 [19:58] that's not this problem [19:58] pedronis: This is where we're discussing the problems related to network-bind and core-support [19:58] is not about names of plug at alls this one [19:58] thats rather a new topic ... about auto connection [19:59] yes [19:59] pedronis: 2017-04-10T21:57:11+02:00 INFO cannot auto connect {core network-bind-plug} (plug auto-connection), candidates found: "core:network-bind,ubuntu-core:network-bind" [19:59] mvo: Do we understand the issue of why one works and the other doesn't by now? [20:00] pedronis: 2017-04-10T21:57:11+02:00 INFO cannot auto connect {core network-bind} (slot auto-connection), candidates found: "core:network-bind-plug,test-snapd-python-webserver:network-bind" [20:00] pedronis: so you were totally right [20:00] niemeyer: yes [20:00] mvo: ^ [20:00] niemeyer: yes, I think we do [20:00] did the ability to install from --edge disappear? [20:00] nope [20:00] no [20:00] * ogra_ does it ever day [20:01] snap info conjure-up doesn't show the edge channel [20:01] does the store UI show it in the edge channel ? [20:01] yes [20:01] thats weird [20:01] zyga: do you want me to write something in the forum? or do you? [20:02] pedronis: I'm writing [20:02] ok [20:02] I think a different topic would be better [20:02] fwiw [20:02] i released this morning https://gist.github.com/battlemidget/f5670fe7450258c884eccdd309bdcdf3 [20:02] especially the general autoconnect from slots issue [20:02] pedronis: https://github.com/snapcore/snapd/pull/3130 is back to the ssh-keygen state [20:02] PR snapd#3130: overlord/devicestate: switch to ssh-keygen for device key generation [20:02] tyhicks: ^ [20:02] niemeyer: the problem is understood now (thanks to pedronis!). the question is what we do. if we want to fix this all for 2.24 it will be at least tomorow, maybe even a day later [20:02] niemeyer: I guess thats ok, unless we have some obligations to release soon (jamiebennett may know) [20:03] ogra_: do you see my snap in the edge channel? [20:03] pedronis: done [20:03] stokachu, nope ... [20:03] that makes me sad [20:03] mvo: Can we strive for tomorrow? Today seems way too late given your timezones, and Wednesday feels too close to holidays [20:03] pedronis: yes, I'll start a new topic for this but perhaps tomorrow [20:03] niemeyer: we can strieve for tomorrow, zyga, pedronis ? [20:03] ogra@styx:~/Devel/branches/snapd$ snap info conjure-up|grep edge [20:03] ogra@styx:~/Devel/branches/snapd$ snap info core|grep edge: [20:03] edge: 16-2 (1665) 83MB - [20:04] stokachu, definitely not there [20:04] so what's happening? [20:04] niemeyer: alternatively we can paper over it via just having core-support [20:04] mvo: I think we can, even current solutions are sufficient [20:04] stokachu, i guess you need a store person [20:04] the snap store shows revision 185 [20:04] with a green box ? [20:04] yes [20:04] niemeyer: i.e. we could remove the network-bind plug from core, fold that into ore-support and we have a working transition agian and fix things for 2.25 [20:04] mvo: we can do the core-support trick but I don't think even that is mandatory now [20:04] or just a thumbs up icon ? [20:04] mvo: as I said, I think the proper fix for slot autoconnect is more 2.25 material [20:04] nope it's published [20:04] ive been doing this awhile [20:04] :D [20:05] mvo: the issue here is really mostly that core and ubuntu-core coexist for a bit [20:05] mvo: but I'd love to discuss that tomorrow morning :) [20:05] and if you go into the details of this revision it is also released to edge ? [20:05] I wonder if we can EOD now [20:05] ogra_: yep [20:05] mvo: auto-connect from slot is just an escape hatch that works for one but not the other (because core-support is only on core) [20:05] * ogra_ heard others complaining that their channels didnt end up being set (never seen that myself) [20:05] PR snapd#3165 opened: interfaces: adjust shm accesses to use 'm' for updated mmap kernel mediation [20:05] pedronis, mvo: That sounds like it could be a problem even for core-support alon [20:05] e [20:06] stokachu, well, then probably try nessita [20:06] nessita: hi [20:06] niemeyer: well ubuntu-core doesn't have the plug (but could have) [20:06] I mean the plug for core-support [20:06] atm [20:06] niemeyer: core-support alone is fine because nothing else uses core-support currently except core. ubuntu-core does not use any plugs [20:06] pedronis: -^ [20:07] mvo: won't that change? or we build ubuntu-core differently? without hooks? [20:08] pedronis: we build ubuntu-core without hooks and there is no plan (AIUI) to change that [20:08] mvo: Okay.. for some reason gut feeling says we should understand and fix the issue with both network-bind and ubuntu-core, as we're close to it [20:08] Sorry [20:08] network-bind and core-support.. [20:08] It feels like we're really close now [20:08] niemeyer: I think the issue that needs more coding now is the behavior of auto-connect for slots [20:08] niemeyer: there are two issues [20:09] is not one issue [20:09] niemeyer: (or both plgus and slots, but slots are more obviously wrong) [20:09] the 2nd issue make it so that we don't have lucky escape from the first [20:11] who else handles the snap store [20:11] i can't get edge to show up anymore [20:12] stokachu: maybe noise][ can help you [20:13] mvo: shall we regroup in the morning? [20:15] who can i email about this? [20:15] niemeyer: this is the 2nd issue: https://forum.snapcraft.io/t/auto-connect-logic-starting-from-slots-of-an-installed-refresh-snap-is-naive/236 [20:16] hey guys [20:16] how do I import a snap from a .snap file? [20:16] do I need to install snap first, and then put that file in a certain dir or something? [20:17] pedronis: Thanks, very clear [20:17] zyga: yeah, I will follwoup in the forum [20:17] enoch85: snap install filename.snap [20:17] --dengarous [20:17] --dangerous [20:17] enoch85: The flag means you acknowledge the fact it's unsigned, unreviewed, and may do Bad Things [20:18] mvo: ok [20:18] I replied to pedronis' post already [20:18] let's talk tomorrow, have a great evening everyone [20:18] zyga: sleep well [20:19] niemeyer: aah ok nice [20:19] snap install /path-to/filename.snap ? [20:19] niemeyer: will the discourse forum have ubuntusso or other authentication mechanisms? [20:19] like github [20:20] rather use that then create another account [20:20] enoch85, --dangerous ... else it will not install [20:20] enoch85, but yeah, the rest is ccorrect [20:20] ogra_: ok thanks [20:21] stokachu, long term it will ... but not there yet [20:21] ogra_: I get this: ZOE ERROR (from /usr/lib/snap/snap): zoeParseOptions: unknown option (--dangerou) [20:21] ZOE library version 2013-02-16 [20:21] what's up? [20:21] you missed an s ? [20:21] root@daniel-pc:~# snap install /home/daniel/Desktop/nextcloud-client_continuous.gitb02dab3_amd64.snap --dangerous [20:21] ZOE ERROR (from /usr/lib/snap/snap): zoeParseOptions: unknown option (--dangerous) [20:21] ZOE library version 2013-02-16 [20:21] no? [20:22] snap version ? [20:22] (whats the output of that ?) [20:22] tbh I'm on Debian [20:22] did apt install snap [20:23] snap version just gives me what I should wrote to get an output [20:23] like a help sort of [20:23] SNAP - Semi-HMM-based Nucleic Acid Parser (version 2006-07-28) [20:23] might be helpful? [20:23] err [20:23] apt purge snap ... [20:23] apt install snapd [20:24] snap is a media player ... [20:24] ok sec [20:24] you want snapd [20:24] aah better [20:24] yup [20:24] that solved it [20:24] thanks [20:24] :) [20:25] now where is the snap? [20:25] hmm [20:25] can't find it in my launcher [20:25] (on Desktop) [20:26] you might need to log out and back in again ... snapd puts an XDG_DATA_DIR entry in the Xorg start scripts to find the .desktop files ... [20:26] ogra_: got it from here: https://github.com/nextcloud/client_theming/releases [20:26] okok [20:26] will try [20:26] sec [20:27] ogra_: yaay it worked [20:27] :) [20:27] enjoy [20:28] now, if I want to update the snap, do I just download the new snap and type snap install again? [20:28] or do I have to remove old stuff also? [20:28] just snap install should be fine [20:29] or better ask oparoz to upload it to the store ... then it would auto-update [20:29] niemeyer: just before I EOD, I updated https://github.com/snapcore/snapd/pull/3153 and https://github.com/snapcore/snapd/pull/3154 as suggested [20:29] PR snapd#3153: interfaces: validate plug/slot uniqueness [20:29] PR snapd#3154: many: rename two core plugs that clash with slot names [20:29] niemeyer: I think now the forums capture what we found here [20:29] niemeyer: if you +1 both we can have an easier morning [20:29] s/forums/forum/ [20:29] ogra_: thanks :D [20:30] np :) [20:31] zyga, morphis: looks like all the tests failed https://github.com/snapcore/snapd/pull/3162 :( [20:31] PR snapd#3162: cmd: use libtool for the internal library [20:31] Pharaoh_Atem: infrastructure issues .. [20:32] Pharaoh_Atem: will retrigger tomorrow [20:32] bully :/ [20:32] morphis: merge master and retry [20:32] * zyga is off now [20:33] wow snaps are great! [20:33] like .exe for windows (sorry for the comparison ;) ) [20:33] or .msi maybe [20:33] enoch85: Haha, thanks, I guess! ;) [20:34] enoch85: it's basically like self-contained zip thingies for Windows [20:34] or the way apps are handled on MacOS [20:34] great stuff [20:34] once you go snap you never go back [20:34] * Pharaoh_Atem sighs [20:35] zyga: They're both approved [20:35] enoch85: You can actually go back.. see "snap revert --help" [20:35] * niemeyer ducks [20:36] * Pharaoh_Atem knew that was coming [20:36] * zyga hugs niemeyer [20:36] just returned to the office to feed the fish and turn lights off [20:36] you have an office? [20:37] niemeyer: haha [20:37] niemeyer: given all the data now can you update your stance on https://github.com/snapcore/snapd/pull/3145 [20:37] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [20:37] niemeyer: the needs fixing is 4 days old [20:39] Pharaoh_Atem, i find more interesting that he has fish TBH [20:39] **in* his office [20:39] well, I mean, yeah, that too :) [20:39] Pharaoh_Atem: yes, it's a separate room upstaris [20:39] Pharaoh_Atem: duplex appartment (is that the right term?) [20:39] niemeyer: I feel slightly uneasy if we go out with the current set of 2.24 fixes but not the fix for the autoconnect, then core interfaces will only connect because we fixup things in 3145 after the fact. i put an alterative fact^Widea into the forum. but its just my gut feeling, so happy to be overriden [20:40] Pharaoh_Atem: essetially small part of attic [20:40] maisonette :) [20:40] ah [20:40] niemeyer: (hope there is enough context in the above) [20:40] zyga: it's a duplex place if it has its own AC, bathroom, and kitchen area [20:40] if it lacks that, then it's just a multi-level apartment [20:41] Pharaoh_Atem: no, just window :) [20:41] Pharaoh_Atem: and the door is downstairs [20:41] Pharaoh_Atem: just 2nd level with attic and roofless terrace [20:42] stokachu, hi [20:42] stokachu, how can I help you? [20:42] zyga: isn't the statement there still true? [20:43] zyga: Actually, the conversation today [20:43] zyga: We discussed it here rather than in the PR.. I'll update the PR as I should have done originally, sorry [20:43] mvo: Looking [20:44] niemeyer: thank you! that's all I need [20:46] * pedronis should call it a day === Sergio_ is now known as Guest18132 [20:55] * tvoss calls it a day [20:55] zyga: Updated #3145 with a summary of what we discussed about it here [20:55] mvo: Replied in the forum [20:55] tvoss: Have a good night [20:56] niemeyer: would be great if you could follow up on tyhick's question here: https://github.com/snapcore/snapd/pull/3130 [20:56] PR snapd#3130: overlord/devicestate: switch to ssh-keygen for device key generation [20:56] niemeyer: would like to pick up tomorrow my morning [20:58] niemeyer: thanks a lot ! I will catchup with zyga and pedronis in the european morning and prepare something. thanks again! and a huge HUG to zyga and pedronis for getting to the bottom of this [20:59] mvo: zyga: I just noticed that if we fix slot-driven autoconnect correctly the bug is there, we have a plug and two slots we cannot autoconnect [20:59] so we really need to special case this (core and ubuntu-core both around) somehow, at some point [21:00] slot-driven autoconnect is quite buggy, and core-support works out because of the bug [21:01] atm [21:01] pedronis: yes, I saw; is that fixed with the special hack that ignores the "ubuntu-core" candidate or should I EOD, am tired, and don't understand that correctly? [21:01] PR snapd#3166 opened: interfaces/builtin: fold network-bind into core-support [21:02] zyga: we need something like that, exactly how and where not sure, I fear we get things double connected for a bit that way? [21:02] is that a problem? [21:02] pedronis: same plug to same slot? [21:02] pedronis: no, that's a no-op [21:03] pedronis: (and also not an error) [21:03] mvo: fold idea in PR above, no tests, let's discuss this tomorrow :) [21:03] * zyga really tries to get away now [21:03] PR snapcraft#1229 closed: sources: add VCS asset tracking [21:03] zyga: \o/ I can work on this further in my morning and we catch up [21:04] mvo: the fold will help us only until we fix autoconnect :/ [21:04] zyga: *go away* [21:04] so not sure it's a winner [21:04] pedronis: yes, but I think thats ok [21:04] pedronis: well, maybe [21:05] pedronis: I am bit concerned that 2.24 slips even further if we try to fix all the bugs and we are also in a bit of a rush because the 2.24 is sitting on our shoulders which is also not great. I'm trying to find something minimal we can do to move us forward [21:06] pedronis: *but* having said that, if the minimal fix/workaround is no good, we need to bite the bullet I think :/ [21:06] my worry is that we do a strange things and then things are broken again [21:06] pedronis: your input is very important here, if you think its not the right approach I think we need to reconsider [21:06] as I said I don't think we need to fix autoconnect now fully [21:07] but we should not also do something that is broken again [21:07] once we do that I think :/ [21:07] pedronis: well, we will have a test that ensures we don't break things accidently [21:07] pedronis: the ubuntu-core -> core transition one will have the new check that core-support is connected [21:08] pedronis: but if we go down the other route and not fold things, we still need to do something with auto-connect, no? [21:08] what I'm saying is that we will need some form of #3145 at some point anyway [21:08] pedronis: or do you think the 3145 workaorund is good enough? it [21:08] pedronis: aha, ok [21:09] pedronis: we would probably only need this part https://github.com/snapcore/snapd/pull/3145/files#diff-b88a3954d898e0a8ab681d98f1407a0fR332 though? [21:09] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [21:09] mvo: because as I said during the transition we have two slots [21:09] so autoconnect wouldn't work unless we break the tie somehow [21:09] pedronis: what I dislike about 3145 is that we go into a buggy state and then fixup things [21:10] mvo: first of all I'm not sure we need the fixup bit [21:10] pedronis: this fixup we will need to keep forever but if we fold network-bind into core-support I think we can get away without a fixup [21:10] pedronis: hm, thats interessting [21:10] mvo: we do setup profile with the new core no [21:10] before running the hook [21:12] mvo: so autoconnect itself at that point should fix things if we convince to do the right thing [21:12] pedronis: aha, but not with 3145 as it is now, right? [21:12] pedronis: some more code is needed for that [21:12] mvo: probably less code [21:12] pedronis: less code is good :) [21:13] as I said we don't need the fixup [21:13] pedronis: won't we need it for systems who are already in this state(?) [21:13] mvo: I think the question is really what do in autoConnect [21:13] mvo: well, they can be fixed only with a new core, no? [21:13] and the new core will run setup-profiles for itself? [21:13] no? [21:13] pedronis: oh, indeed [21:14] pedronis: yes, that should work! [21:21] School run [21:25] mvo: I put some comments about what we discussed in #3145 itself, we should see what to do with it in morning, maybe it can be just cut down to the barebones [21:25] pedronis: thanks a lot! yeah, lets catchup in the morning [21:26] pedronis: I have to say https://github.com/snapcore/core/pull/33 and https://github.com/snapcore/snapd/pull/3166#pullrequestreview-31963086 look really compelling to me as a way out… [21:26] PR core#33: the core snap only needs core-support (not network-bind) [21:26] PR snapd#3166: interfaces/builtin: fold network-bind into core-support [21:26] PR core#33 opened: the core snap only needs core-support (not network-bind) [21:26] pedronis: for now at least. but I am sleepy now so I guess I tend to gravitate to the simple solution even more so than usually :) [21:27] pedronis: but indeed, we need to fix the auto-connect code in any case at some point [21:27] mvo: well, as I said it will broken again once we fix stuff [21:27] pedronis: indeed [21:28] so unless we think is the right thing in some sense, it's not a super win [21:28] pedronis: lets talk in the morning, thanks again for all these insights :) [21:28] pedronis: fair point [21:29] mvo: I can see argument that would make it make sense, but anyway tomorrow [21:30] pedronis: that would make sense to use the "cheap" workaround you mean? [21:31] PR snapd#3161 closed: snap-confine,browser-support: /dev/tty for snap-confine, misc browser-support for gnome-shell [21:31] mvo: hey, not sure if you want to pull that ^ into 2.24 [21:31] jdstrand: absolutely [21:31] mvo: cool, thanks [21:37] pedronis: I'm off now, more tomorrow. /me waves [22:08] PR snapd#3154 closed: many: rename two core plugs that clash with slot names === coreycb is now known as coreycb_vaca