=== ogasawara is now known as Guest14527 === c74d is now known as Guest58751 === wgrant is now known as Guest27601 === kgunn is now known as Guest52384 === Guest27601 is now known as wgrant === bigcat_ is now known as bicgat[afk] [06:50] good morning [07:09] good morning [07:20] ogra_, ogra2: do you know who could help figuring out https://bugs.launchpad.net/snappy/+bug/1506480 (link to "Kernel requirements for Snappy" is broken and I'm not sure what else to link to)? [07:20] Launchpad bug 1506480 in Snappy "Broken link in https://developer.ubuntu.com/en/snappy/guides/porting/" [Undecided,New] [08:26] asac: beuno: http://jimbenton.tumblr.com/image/131162934224 [08:29] morning [08:30] mo'in! [08:30] the wiki specification for snappy confinement mentions an assign.yaml file that can be used instead of running the hw-assign command [08:30] however, I couldn't find any more information about it (format, etc.) [08:30] is it supported? [08:33] tasdomas: where does it mention that? [08:34] Chipaca, https://wiki.ubuntu.com/SecurityTeam/Specifications/SnappyConfinement [08:35] tasdomas: there's no assign.yaml in that doc [08:35] tasdomas: it says "assign yaml" [08:35] tasdomas: no dot [08:35] tasdomas: it's not a file; it's part of the oem config [08:35] Chipaca, ah, sorry - misread that [08:36] tasdomas: so, yes it's supported, for oem snaps [08:37] Chipaca, so for my own snap the only thing to do is use hw-assign, right? [08:37] tasdomas: right [08:38] tasdomas: what're you wanting to do? [08:38] Chipaca, I was writing a simple snappy app to control the piglow device on my orange matchbox [08:38] Chipaca, http://domas.monkus.lt/posts/2015-10-15-writing-a-snappy-application/ [08:39] Chipaca, my main problem was that I need to restart the service after assigning the i2c device to it [08:39] really? [08:39] that's surprising to me -- but then i know little about i2c and the rpi2 [08:40] tasdomas: are you sure it's not that you need to restart the service that uses it? [08:40] (that'd be bug 1484645 fwiw) [08:40] bug 1484645 in Snappy "Snappy hw-assign doesn't restart affected services" [High,Triaged] https://launchpad.net/bugs/1484645 [08:40] Chipaca, sorry - maybe I wasn't clear - my problem was that I needed to restart the service (exposed by my snappy app) that uses the i2c device [08:41] wow, it's going to be a long day [08:41] because you said exactly that [08:41] sorry :-( [08:42] tasdomas: that's a bug, we know about it, should get fixed (on rolling/edge) soonish [08:42] Chipaca, ah, cool! [08:42] Chipaca, can I bother you with one more question? [08:42] tasdomas: i dount you can bother me with a question, but you're welcome to try [08:42] doubt* [08:42] there's an mqtt snappy app available in the store - but I can't find the source for it [08:43] I want to modify it to make it mdns discoverable [08:44] tasdomas: have you tried asking the snap publisher? [08:45] or gone to the snap support url? [08:45] tasdomas: this one, i presume https://search.apps.ubuntu.com/api/v1/package/mosquitto.kartben [08:46] Chipaca, ah, will do [08:48] davidcalle, dholbach, looking at askubuntu, there seems to be quite a lot of questions around snappy already [08:48] might be worth for us looking at them in the upcoming weeks [08:49] maybe we can talk about it in our next docs hour call? [08:50] dpm, ^ [08:50] it could be a good topic, yes [08:50] cool [08:50] dholbach, dpm, +1 [08:54] by the way, is it possible to use snapcraft to build a snappy package for a different architecture? e.g. build a RPi2 compatible package on my amd64 laptop? [08:55] davidcalle, dholbach, it might be worth creating a snapcraft tag as well. Right now we've got 'snappy' already, which redirects to 'ubuntu-core' [08:56] yep, that makes sense [08:58] ciao ppisati, do you know how we could fix https://bugs.launchpad.net/bugs/1506480? (which information should we link to in the article there?) [08:58] Launchpad bug 1506480 in Snappy "Broken link in https://developer.ubuntu.com/en/snappy/guides/porting/" [Undecided,New] [09:00] Good morning all; happy Friday, and happy World Food Day! 😃 [09:22] dholbach, ppisati should be able to help with the link [09:22] cool === soee_ is now known as soee [09:30] dholbach, davidcalle, do we have any document that specifies the format of the snapcraft.yaml file? [09:32] dpm, no spec-like doc in our docs yet, but there's 1) https://developer.ubuntu.com/en/snappy/snapcraft/your-first-snap/ and 2) ./examples in lp:snapcraft and 3) https://bazaar.launchpad.net/~snappy-dev/snapcraft/core/view/head:/docs/snapcraft-advanced-features.md which will land as soon as the md importer is working [09:32] dpm, closest thing we have to a spec for it in the the App dev manual [09:32] ah yes, and that [09:32] It's actually quite detailed [09:33] davidcalle, yeah, I've gone through 1) and 2), but I've been missing a doc that is specific to snapcraft.yaml [09:33] dpm, https://docs.google.com/document/d/1Rj9nVBttx62BvGlbnkmKOzAlAIEWuLNr1QaSGe3gQDA/edit#heading=h.8o7w1g30gucy [09:34] ahaha [09:35] I had actually seen this, but couldn't figure out where, glad I wasn't going mad [09:35] dpm, not sure the link is world-readable though, hopefully next week in some form on duc... [09:35] yeah [09:52] davidcalle, dholbach, http://askubuntu.com/questions/686167/what-is-snapcraft, this might help with AskUbuntu/Stackoverflow searches to give a 5 min intro and direct folks to the site [09:53] mvo: ping [09:54] dpm, this is excellent [09:54] dpm, love it :) [09:54] Chipaca: pong [09:54] glad it if it's useful :) [09:54] mvo: this race condition with the automount unit [09:55] mvo: tell me about it [09:56] Chipaca: its not that much that I know - so the code will activate and start the automount unit, right after that it runs the click stuff [09:56] dpm, nice one! [09:56] dpm, now we can't change the URLs anymore! :-) [09:56] Chipaca: when I do not unpack the meta,.click dirs it will fail to generate the apparmor profiles [09:57] Chipaca: however ls a bit later is fine [09:58] dholbach, oh, I can update the link after we've done the IA rearrangement. Or just make it point to https://developer.ubuntu.com/snappy [09:58] Chipaca: hm, maybe its something else, need to look deeper [09:58] dpm, or we add redirects - in any case, no problem :) [09:58] mvo: aiui, systemctl should not return until automount has actually started [09:59] mvo: maybe we're creating the units but not starting the .automount until later? [09:59] * Chipaca looks [09:59] Chipaca: adding a sleep did not solve it, so its something else [10:00] Chipaca: here we go, its a missing .click/manifest in the snap :/ [10:00] Chipaca: sorry [10:00] Chipaca: let me fix that [10:01] hue hue hue, to quote a brazilian [10:01] Chipaca: we also may want to keep the .meta for now because of "snappy list -v" [10:01] unless we go husks [10:01] mvo: that one i don't follow [10:01] mvo: once automount is started, any access under it will trigger the mount [10:01] mvo: even if you're accessing things that are there [10:02] Chipaca: so only the active snap has a automount unit [10:02] ohhhh [10:02] Chipaca: so snappy list -v (old snap) will not have a meta/packages.yaml [10:02] yep yep [10:02] so, yeah, leave it for now, flag it for removal when we switch to lightweights [10:02] ok [10:03] yeah, will do [10:03] mvo: have you checked it for speed? [10:04] Chipaca: not yet, no [10:04] k [10:04] mvo: the lightweight thing of looking at remote manifests does not work for sideloaded stuff though [10:04] Chipaca: one more complication - the hooks expect .click/$name.$origin.manifest - and the $origin is not known at build time. so we can not ship that in the snap and need to generate it [10:05] Chipaca: once hooks are gone this is no longer a issue of course [10:05] hooks were going to be gone "soon" since i joined [10:05] not lookin' good [10:05] yeah [10:05] there is only one left [10:05] but that one is pretty sticky :P [10:57] Chipaca: do you want me to split the branch for the snapfs-mount up more? [10:58] mvo: how would you split it? [10:58] unless you moved all the systemd stuff to .. ahem .. systemd :-p [10:59] mvo: anyway, you don't have to, but my review is slower :) [10:59] Chipaca: I can do that I think if it helps (I will do that in any case in this MP, your suggestion makes sense) [10:59] but lunch first [10:59] mvo: i'm not sure the total time would be less, so i'd say nah [12:18] Chipaca, lol [12:44] yaml question, how can i have a binary with a _ in the name? [13:07] sergiusens: So I think I may need to copy the options locally to stay under the 79 character limit :-) [13:30] tedg, harr harr :-) [13:30] * sergiusens notices that today is not talk like a pirate day [13:30] sergiusens: It can be here! [13:30] matey [13:31] tedg, I couldn't sleep last night thingking about the override of setup_stage_packages; maybe it is best to use repo.Ubuntu directly instead [13:31] Since we can't have casual Friday's working from home, we should have talk like a pirate Fridays. [13:31] tedg, right on [13:31] sergiusens: Heh, I never meant for you to lose sleep over it :-) [13:31] although my vocabulary is rather scarce [13:31] tedg, it is one of those things [13:32] I also stayed up late as I went to a docker meetup to see a bunch of old friends [13:32] learned a lot about docker and why developer like it so much [13:32] I'm feeling like we might need to detach the plugin lifecycle from the overall one. Like have more phases for plugins. [13:33] I think it is nice. I just haven't see the overlays actually work well. Seems like they always get confused for me. [13:33] because you talk like a pirate to them ? [13:38] Stupid overlays are no fun, they never talk like pirates. [14:01] sergiusens, tedg: snappy clinic planning? [14:07] mvo: hey, curious if you had a chance to review my email re snappy-debug. I know we were both pretty busy yesterday [14:18] jdstrand: I saw it but have not acted on it yet, sorry [14:20] mvo: ack [15:03] sergiusens, I found an interesting one: http://pastebin.ubuntu.com/12799579/ [15:03] not sure if we support this [15:03] tedg, ^ [15:04] I just used: apt-get source bamtools [15:04] dholbach, thanks, perfect example for custom plugin [15:04] I'll leave that one for you then :) [15:22] tedg, sergiusens: I added two more examples to the pad [15:23] sergiusens: i should probably have pointed you at that talk earlier [15:23] sergiusens: 's good stuff [15:23] mvo: Chipaca: yes! with this last test I saw the moment when the last cloud init message appeared and the moment when the mode switched to regular. It's just twice as slow as the last time I tried. [15:23] fgimenez: ^ [15:23] Chipaca: tell me more about waiting for a systemd service. [15:24] elopio: it's just a for loop with a sleep and a check [15:24] elopio: give me a sec [15:25] Chipaca: ah, we have that. [15:25] elopio: ah! show me the code :) [15:25] I thought you were talking about subscribing a listener to the service or something like that. [15:25] elopio: well, you could, but why bother [15:26] Chipaca: https://bazaar.launchpad.net/~snappy-dev/snappy/snappy/view/head:/_integration-tests/testutils/wait/wait.go [15:26] to work around the workaround I will just have to increase the maxWaitRetries. [15:27] elopio: and you're waiting for bootok? [15:27] Chipaca: I'm waiting for snappy_mode=regular [15:28] elopio: and is that better, or worse than waiting for boot ok? [15:28] * sergiusens wonders if it is beer o clock already [15:28] sergiusens: it is! [15:29] Chipaca: better, I think. Instead of checking the service, we check it's effect. [15:29] sergiusens: you should come visit. can't have beer on my own (and ellie doesn't do beers) [15:29] *its [15:29] it's beer-on-hangout o'clock. [15:30] elopio: so, yeah, looks like you're already doing the right thing and all :) [15:30] elopio: wrt increasing maxWaitRetries, maybe instead have an arch-dependent base? [15:30] elopio: ie scale checkInterval by some bogomips factor === kickinz1 is now known as kickinz1|away [15:31] Chipaca: that would be nice. [15:31] var bogomips = map[string]int{"arm": 100, "amd64": 1, etc} [15:31] and index it on GOARCH [15:31] I'll make a card to be able to configure the wait, with a delay factor. [15:32] but anyway, this is a bug :) Instead of working it around, somebody should fix it. [15:32] * elopio looks at somebody. [15:32] elopio: which is the bug, exactly? [15:32] elopio: that you can ssh in before you can log in? [15:33] Chipaca: you can sign in before boot-ok. both ssh and normal log in through serial. And if you are fast with a rollback, that makes the boot crazy. [15:33] https://bugs.launchpad.net/snappy/+bug/1498293 [15:33] Launchpad bug 1498293 in Snappy "after a successful update and reboot, the bootloader snappy_mode is set to 'try'" [Critical,Triaged] [15:33] on bbb you don't have to be super fast. I actually can reproduce this manually. [15:35] elopio: so that's the bug [15:35] elopio: not that "try" thing :) [15:36] so, we want the boot-ok to be done *before* ssh and getty lets people in [15:37] pitti: do you remember offhand whether there's a target that would let us do that easily? [15:37] Chipaca: I think so. You could fix the rollback so it waits for boot-ok, but then it might affect something else. [15:38] Chipaca: and if you just move the log in after boot-ok, the reboot will take twice the time to let you access the board. [15:39] elopio: well, but it's letting you in before things are ready [15:39] Chipaca, I don't mind visiting; when are we having a sprint in London? [15:40] sergiusens: i have space for two for half a week every week [15:40] as long as they're not super tall :) [15:40] Chipaca: well, before cloud-init has finished. Most of the things are ready. [15:41] tedg, sergiusens: is the announce text roughly what you expected? [15:42] dholbach, where is it? [15:42] sergiusens, ah sorry - on the pad :) [15:43] dholbach, looks good, just added on clarification just in case [15:43] thanks sergiusens [15:43] dholbach, btw, how hard would it be to patch clog? [15:43] rock and roll [15:43] let me check [15:44] dholbach, so ideally, patch CMakeLists.txt to take an arg to provide an alternate ~/.clogrc path [15:44] If sergiusens is happy I'm good. [15:45] * tedg didn't keep a link to the pad :-) [15:45] tedg, [15:45] http://snappy.asac.ws:9001/p/snapcraft-clinics [15:45] -DLOGRC_PATH=$SNAP_APP_DATA_PATH or something like that, and then the code would need to expand the var [15:46] dholbach: +1 [15:53] sergiusens, I guess it's not too hard to do - maybe something to look into some other time? [16:05] tedg, sergiusens: thibautr suggested next time we ask for proposals on what people would like to see snappified :) [16:05] have a nice weekend o/ [16:10] dholbach, sounds like a good idea [16:10] dholbach, maybe at the end of the clinic we ask that question too [16:10] for next time we can maybe leave it a bit more time in advance, so we can collect suggestions beforehand [17:04] elopio, very simple MP https://code.launchpad.net/~sergiusens/snapcraft/tested_or_not/+merge/274741 [17:06] sergiusens: why is that needed? I find it good to see if all your test code is being run. [17:06] if it isn't, you can probably remove it. Or you have a condition that has to be faked. === willcooke_ is now known as willcooke [17:21] Chipaca, can we get the release from the rest api already or not? [17:22] sergiusens: i don't think that's in stable yet [17:24] sergiusens: why? [17:24] Chipaca, to be able to ask it to be able to ask the store if you know what I mean. [17:29] sergiusens: updating to latest edge to see if it's there yet [17:31] elopio, ok, it just bothers me to be honest :-) [17:36] sergiusens: wait, the release? [17:36] sergiusens: you could always get the release! [17:37] Chipaca, as in 15.04-core .. btw, I'm not saying you can't, I'm asking if you can! :-D [17:37] sergiusens: the store id is what was missing, and is there now [17:37] sergiusens: http://pastebin.ubuntu.com/12801235/ [17:38] sergiusens: ^ that's the output in rolling/edge :) [17:38] Chipaca, yup, nice [17:39] sergiusens: http://pastebin.ubuntu.com/12801274/ [17:39] sergiusens: that's 15.04, now [17:40] sergiusens: note the socket name has changed [17:42] Chipaca, life is good! [17:43] Chipaca, mind looking at this https://code.launchpad.net/~sergiusens/snapcraft/build-deps-request-something-missing/+merge/274749 among other complicated things in your life? [17:44] sergiusens: i don't *mind*, but it's friday afternoon and the malbec has already confessed its crimes [17:44] Chipaca, look at it and then decide ;-) [17:44] * Chipaca obeys [17:45] sergiusens: no, that's too many lines of code for this hour [17:45] sergiusens: also, the complexity is astounding [17:45] sergiusens: flabbergasting [17:45] sergiusens: maybe split it in two or three and have a team work on it on monday [17:46] Chipaca, btw https://github.com/docopt/docopt.go [17:46] ! [17:49] sergiusens: also, in that branch, i think you're using the Schwarzschild metric wrong; you need to use Kruskal–Szekeres coordinates to express it like that [17:52] Chipaca: Before=systemd-user-sessions.service? That's "before people can log in" (I didn't read the full backscroll) [17:52] pitti: that includes ssh and getty (both tty and serial)? [17:53] yes [17:53] elopio: could you try that? [17:53] pitti: thanks! [17:55] pitti: can something be after: multi-user.service *and* before: systemd-user-sessions.service? [17:55] that seems to be a no-no [17:55] no [17:55] * Chipaca could test, but me has already checked out [17:55] as multi-user is after user-sessions [17:55] suspected as much [17:56] we need to check on monday, then, whether sessions is enough [17:56] it has multi-user in it, after all :) [17:56] right; I'm just on a drive-by, need to leave again [18:34] Chipaca, let me fix! [18:34] :-) [18:56] Chipaca, I like the docopts thing, but I can't easily add help to commands [20:00] tedg, final comment wrt setup_stage_packages [20:01] and there's a merge conflict (very minor) [20:01] Heh [20:01] * tedg isn't sure if he wants to look [20:02] sergiusens: I don't think we can use pull with the current configuration of the command. Because the superclass is just empty. [20:04] tedg, right, I mean, pull() -> handle_source_options; [20:05] tedg, then have your private implementation of setup_stage_packages keeping self.stage_packages empty (or reuse if you want) [20:05] Oh, I see. [20:05] That seems a little scarier to me... [20:05] tedg, in other words, setup_stage_packages should have always been _setup_stage_packages [20:05] Because then we have two overrides [20:06] tedg, 2? [20:07] sergiusens: We'd have to override setup_stage_packages to be null, then have pull get sources, setup deps, and then call it. [20:08] tedg, let me try and propose something [20:13] tedg, meh, I'll do this in another proposal (I'll fix the priv/pub thing first) [20:13] sergiusens: I think restructuring pull() also would help. [20:14] tedg, indeed, that's why :-) [20:14] well another reason why [20:14] I think there may need to be a "get_deps_from_source()" [20:14] Or something for plugins. [20:16] sergiusens: I'm getting an odd error with trying to copy system libs. Basically the -dev packages are bringing in symlinks and that seems to be confusing snapcraft. [20:16] sergiusens: Does that sound like something you've seen? [20:19] http://paste.ubuntu.com/12804340/ [20:20] http://pastebin.ubuntu.com/12804368/ [20:20] The first results in the second :-) [20:31] tedg, that is weird, the path exists but can't be copied to [20:31] tedg, does /home/ubuntu/readlinetest/parts/ginac/install/lib/x86_64-linux-gnu/ exist? [20:32] sergiusens: No [20:32] tedg, that is the darn problem then :-/ [20:32] sergiusens: I'll get an MR here in a sec. [20:33] tedg, its just a mnissing os.makedirs(os.path.basename(real_path, exist_ok=True) [20:33] before the copy [20:35] tedg, what I don't get is that that lib should of been relinked to the internal one [20:40] sergiusens: There is no internal one because it's on the list of blocked packages. [20:40] sergiusens: I'm not sure that readline should be on that list though. [20:41] tedg, ah, then the makedirs missing is the correct thing to do or if it is one of those that is always on the system, add it to the skip list [20:41] tedg, right, maybe not; the only real problematic one is libc [20:42] tedg, all others come inherited from deb2snap [20:43] sergiusens: So, I think it found a bug, but perhaps it isn't a bad bug once we get everything more refined. [21:04] tedg, what bug? [21:07] sergiusens: Not making the directory [21:11] tedg, right, that is indeed a bug