[00:06] Why could std::system in my app fail with "Bad system call" when apparmor is in enforce mode? [00:06] Oh yeah, totally missed one fact. [00:08] What is the right way to run another app from within same snap package if they require different plugs? [00:09] I guess my attempt to make std::system on game server fail because server require network-bind while client that launching it doesn't have such permission. [00:13] Yeah that's was it. [00:54] PR snapcraft#1414 closed: cmake plugin: call the cmake using build dir as source [04:48] good morning [06:21] mvo: hello [06:21] mvo: I'm going to walk kids to school one more time today [06:21] mvo: but I left you some interesting topics on the forum [06:21] mvo: I can also give you a shell on the ppc box in case you get curious to try [06:22] mvo: I'll talk to you soon [06:22] PR snapcraft#1538 opened: tests: update the store failure tests [06:23] zyga-solus: thanks, see you [06:26] PR snapd#3885 opened: tests: improve the listing test to not fail for e.g. 2.28~rc2 [06:36] PR snapd#3886 opened: tests: make TestCmdWatch more robust [06:45] jamesh: hey, I think your polkit PR is good to go if we rename the name from "manage-snaps" to just "manage" for now. [07:20] re [07:21] mvo: did you see the ppc situation? [07:25] zyga-solus: yes, "funny" [07:25] mvo: what are your thoughts on that? [07:25] zyga-solus: I think we can trivially get a powerpc snap build, we need to ask for it though, I can not enable it [07:25] mvo: I tried to build master but got a lot of errors on get-deps [07:25] zyga-solus: but I personally think we should kill it [07:26] mvo: if you want I can give you a shell on the box [07:26] mvo: yes, I agree [07:26] zyga-solus: oh, really? [07:26] mvo: but I'm afraid we cannot kill it in xenial yet :/ [07:26] mvo: sure, one sec [07:26] brace yourself for irony [07:26] # github.com/kardianos/govendor/vendor/golang.org/x/sys/unix [07:26] ../../kardianos/govendor/vendor/golang.org/x/sys/unix/dirent.go:16:5: error: reference to undefined name ‘isBigEndian’ [07:26] if isBigEndian { [07:26] (there's 1000s of errors) [07:26] there are* 1000s of errors [07:26] this is just one [07:27] I think that x/sys/unix is broken on ppc somehow [07:29] zyga-solus: hm, strange, I mean, the debs build [07:29] zyga-solus: and we reverted to dependencies that do not require x/sys/unix iirc [07:33] zyga-solus: quick review on 3881 would be great, that should fix builds on arm/ppc [07:33] great, let me look [07:43] o/ [07:45] hi, I'm hitting https://bugs.launchpad.net/snapd/+bug/1691999, does anyone know what could be causing it? [07:45] Bug #1691999: Snap removal hangs inside LXD container [07:49] ackk: hey, I think I know [07:50] ackk: it's a known issue, there's no fix yet I'm afraid [07:50] zyga-solus, uh? [07:50] ackk: there's a bug report with extra details... [07:50] does that mean snaps inside lxd won't work? [07:50] it works but that part is broken [07:51] https://bugs.launchpad.net/snapd/+bug/1712930 [07:51] Bug #1712930: snap-confine: mounts happen in the wrong order [07:51] zyga-solus, can you please mark my bug as duplicate ? [07:51] sure, which one? [07:51] ah [07:51] the one I just pasted [07:52] done [07:53] zyga-solus, thanks [07:53] zyga-solus, unrelated, does snapd keep all old revisions of a snap when it gets updated or is there a limit? [07:53] I noticed I have 3 versions of core installed [07:55] that's normal, snapd keeps three revisions of each snap around [07:55] ah cool, thanks [07:59] zyga-solus: master is failing on powerpc with new failure modes, its a bit of a whack-a-mole [08:00] ppisati, so we'll need another kernel snap rebuild later today, seems the shellcheck stuff that was added to the initrd completely breaks resizing on all GPT devices by adding qutes in "unusual places" ... i'll try to fix that today and will ping you once something is ready (i had to soll back the dragonboard kernel by 7 revisions in all channels to get it back working) [08:01] ogra_: ah! i saw some movement in the kernel snap store [08:01] ogra_: np, just tell me if you need anything [08:01] yeah,. sorry, cachio was desparate since he needed to get core tested [08:02] ogra_: that means it affects all images, right? [08:02] hmm, just had snapmgrTestSuite.TestInstallWithoutCoreTwoSnapsWithFailureRunThrough fail at random [08:02] it was a bad combo ... 6 versions had the brioken fixrtc and the latest one with the fixed fixrtc had the broken shellcheck stuff [08:02] ouch [08:02] ppisati, only the opnes with GPT table ... [08:02] ogra_: ok [08:03] which means well ... only dragonboard or x86 on real devices [08:03] and the latter doesnt get tested at all [08:03] (x86 always only gets tested with qemu and there we dont esize) [08:06] zyga-solus, pong ... :P ... what should i start to build ? [08:06] youch, that test takes 15s+ even when it passes [08:07] mvo, as i said yesterday already, we have never built on powerpc, only ppc64el ... whats the reason fr suddenly starting to support it ? [08:08] ogra_: sec, on the phone === JoshStrobl is now known as JoshStrobl|zzz [08:10] ogra_: if we make the "not support it" official we could stop spending time of fixing tests etc [08:10] ogra_: thats where this comes from [08:14] mvo, it has alwaysd been official [08:15] mvo, we always had 6 arches since day one ... powerrpc hasnt been one of them [08:15] ogra_: also in the sense that the distro knows that a broken powerpc build does not block a sru? [08:15] i never dealt with the distro srus ... but i know that we never have built core or ubuntu cre or the tarballs for powerpc [08:16] on request of mark initially IIRC [08:16] the only power arch we ever supported was ppc64el [08:17] pedronis: http://pastebin.ubuntu.com/25488612/ might be of interest to you (happens every ~100 runs, here) [08:17] we have 4 arches we build images for (2xarm, 2xx86) and 2 arches we onyl build core for (s390x and ppc64el) [08:17] and we never built for any other arches ... [08:18] if you want to get powerpc working all of a sudden that will likely take a lot more work to get a proper core [08:22] re [08:22] * zyga-solus spent too much time on the phone and needs to spend more time with administrativa, sorry [08:23] mvo: tests need tweaking [08:23] mvo: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/i386/s/snapd/20170907_220303_c073c@/log.gz [08:23] mvo: listing tests now fails on the ~rc2 [08:24] zyga-solus: check the open PRs ;) [08:24] mvo: aha :) [08:24] PR snapd#3887 opened: snapstate: auto-install missing base snaps [08:24] sorry about that :) [08:25] no worries [08:25] Chipaca: ? it cannot fail that way on 3881 [08:26] pedronis: this is off master [08:26] or, yesterday evening's master at least [08:26] Chipaca: well we made 3881 related to that [08:27] 3881 is a combination of PRs [08:27] to try to make that test saner [08:27] at this point we are more interested if it fails on 3881 [08:27] not master [08:30] pedronis: ah ok [08:30] pedronis: i was just running tests on snapstate for the revert work and kept on tripping that one up [08:30] try 3881 please [08:32] zyga-solus: why do you appreciate full sentences in comments ? that rule is mentioned in effective go for doc comments [08:32] pedronis: as in, rebase on it and carry on doing my thing? [08:33] Chipaca: are you trolling again ? :) [08:33] I don't if you can carry [08:33] it might not fix things for you [08:33] pedronis: no! i came across that panic by doing my thing on master, do you want me to rebase on 3881 and carry on (and let you know if i see the error again), or do you want me to actively pursue the bug? [08:34] which bug? [08:34] the panic [08:34] pedronis: do you think 1715824 might be something I could add to the store? it seems pretty trivial and I would love to see it getting done asap [08:34] Chipaca: panic in snapstate_test.go:77 ? that is fixed with 3881 [08:34] Chipaca: that panic is probably the test taking to long for you [08:34] ok, so no need for me to try it; i can just ignore it [08:35] Chipaca: I asked it to try, if you hit the bug you tell us [08:35] Chipaca: sorry, it sounded like it was blocking your work [08:35] ah! no [08:36] this is a little gem from my work: [08:36] s.testRevertTasksFullFlags(flags, flags, flags, flags, c) [08:36] * Chipaca grins and carries on [08:41] * zyga-solus_ goes to fix the test suite on golang 1.9 [08:42] davidcalle, wheer in the world is the configure hook described in our docs (i'm searching my ass off, there doesnt even seem to be a mention anywhere) [08:42] mvo: sorry, I missed your message. I'll go ahead and change the polkit action ID. Do you want me to squash the commits too? [08:42] jamesh: we'll just squash merged usually [08:42] *merge [08:45] ogra_: hey, two places for now. https://docs.ubuntu.com/core/en/guides/build-device/config-hooks and https://snapcraft.io/docs/build-snaps/hooks which are being unified + install and remove hooks under the latter. Funny you are asking that right now, because I've spent the week debugging install hooks with pstolowski for this exact purpose [08:45] jamesh: thanks, what pedronis said, we will sqush merge and then I can cherry pick for 2.28 [08:45] ogra_: btw, are you happy with how the two pi images are described on https://developer.ubuntu.com/core/get-started/raspberry-pi-2-3 [08:46] davidcalle, perfect ... i hope we can get rid of it eventually :) [08:46] Heh [08:48] the expectation, if you have a snap installed in devmode, is that revert with no devmode would leave you still in devmode, right? [08:48] i.e. snap install foo --devmode; snap refresh --edge foo --devmode; sanp revert foo -> is foo installed in devmode? [08:49] I suppose, but it's a bit of an open question, I mean I have seen it argued differently for other flags at points [08:50] sounds something to clarify with Gustavo once for all when he is back [08:50] now change --devmode to --classic [08:50] :-) [08:50] yea, I have heard incosistent thing about this over time [08:50] I'm not surprised we do random things [08:51] Chipaca: how do you remove --devmode again? [08:51] I shall comment in the forum topic [08:51] pedronis: --jailmode [08:51] I'm looking at the snapcraft source code (specifically the snapcraft.yaml schema), I can't find any reference to the socket activation options (socket, listen-stream). am I looking in the wrong place? [08:51] that's a flag too though? [08:52] pedronis: the refresh itself without --devmode will drop the flag [08:52] Chipaca: how does one get back to all false flags ? [08:52] pedronis: but that doesn't work for jailmode, for example [08:52] Chipaca: ah, refresh is flag dropping? but we want to change that area when we allow devmode refreshes [08:52] only for devmode [08:52] is it dropping [08:52] but see, we are changing that [08:52] what a mess [08:53] :-) [08:53] we need a table [08:53] * Chipaca writes a table [08:53] thanks [08:53] I'm keenly intrested because --ignore-validation shall become sticky and then there are similar questions [08:53] how do you drop it? [08:53] ackk, i think that doesnt exist anymore ... nowadays you just use the network and network-bind interfaces and let your app just do what it needs [08:53] do we need a 2nd flag [08:53] etc [08:53] ackk, these optins in snapcraft.yaml were a 15.04 thing [08:54] ogra_, oh, I saw them mentioned on the website doc [08:54] that might be a bug (not sure) [08:54] Chipaca: see jocave's comment at the end of this bug: https://bugs.launchpad.net/plano/+bug/1710552 [08:54] ogra_, so, what about https://bugs.launchpad.net/snapd/+bug/1612440 ? [08:54] Bug #1612440: Full systemd socket activation support [08:55] Chipaca: I mean, we need a table but hopefully users don't need to consult it [08:55] ogra_, (I was looking at adding the missing keys since we need it for lxd) [08:55] right, the table is for us [08:55] for the coding [08:56] ackk, well, that report is from 2016, not sure these keywords mentioned exist anymore ... you'd have to ask the snapcraft guys on rocket.ubuntu.com (in the #snapcraft channel) === zyga-solus_ is now known as zyga-solus [08:57] ogra_, no I mean, how could we solve that issue (not about the keys specifically), lxd would need socket activation so that the daemon is not started if it's not used [08:57] ackk, note that there was a massive change between 15.04 and 16, where many things got dropped and re-done from scratch, this might be among them ... [08:58] this could be among them ... (read: old implementation was dropped, new one doesnt exist yet) [08:58] I see [08:58] talk to the snapcraft guys [08:59] and perhaps open a topic on the forum (see channel topic for the link) to get wider coverage [08:59] mvo: is the error in tests/main/listing fixed now? because of ~rc2 [09:00] i know that for general socket usage we switched over to the network-bind interface ... but i'm not sure that covers socket activation [09:01] ugh, arch doesn't have "shadow" group anymore [09:01] pedronis: there is a open PR with the fix [09:02] ah [09:04] PR snapd#3888 opened: osutil: adjust StreamCommand tests for golang 1.9 [09:08] mvo: so 3881 has passed travis but has failed many of the other because of the ~rc2 [09:09] mvo: do we just merge it? merge the rc2 fix and run it again? [09:15] pedronis: I can just merge it, maybe thats the bets [09:18] PR snapd#3881 closed: snapstate: give snapmgrTestSuite.settle() more time to settle [09:19] pedronis: best even (sorry, typo) [09:27] Chipaca: look like 3835 just needs a second review and is good to go… [09:28] ogra_: hi, is there any way to debug why splash is not showing? I am seeing uboot first now. Then nothing new shows up until my snap takes over. I've done git diff against your branch and there does not appear anything different in the build process pr snapcraft. So merge looks correct. But no splash :-( [09:28] sborovkov, even with my pre-built snap ? [09:28] (or if you use my default png in your tree) [09:30] * ogra_ needs to go afk for like 20-30min ... brb [09:37] mvo: I tweaked 3888 [09:37] force pushed for easier cherry picking [09:38] zyga-solus: aha, nice [09:38] zyga-solus: small comment maybe why we have the "|" in the regexp [09:38] mvo: and a push to tweak the package description as per #3882 [09:38] PR #3882: debian: improve package description [09:38] ok [09:38] zyga-solus: and feel free to force push [09:38] Chipaca: \o/ [09:39] zyga-solus: could yo finish your review of #3835? [09:39] PR #3835: packaging: bring down the delta between 14.04 and 16.04 [09:39] zyga-solus: thanks a lot! [09:39] done [09:39] looks like travis is currently slow in giving us jobs :/ [09:39] mvo: yes [09:39] mvo: :/ [09:39] also yesterday [09:39] yeah [09:39] must be Friday [09:40] it was Thursday [09:40] mvo it has been slow for us too [09:40] we should probably try to merge a bunch [09:40] before adding more [09:40] mvo: I'm struggling with cmd/snap-seccomp tests, unfortunately it seems that the only user/group we can rely on is "0/root" [09:40] mvo: shadow is not even present on arch and various other users/groups have random values [09:41] zyga-solus: isn't adm also defined in the FHS or somewhere? but yeah, passwd is a mess [09:41] mvo: yes but there's no fixed value [09:42] in any case, I can distro-patch for arch for now [09:42] and ponder without rush [09:42] I need to break for taxes now [09:43] mvo: is the snapctl get change in 2.28 ? [09:44] or only edge? [09:44] pedronis: what change is that? [09:44] pstolowski's PR [09:47] PR snapcraft#1538 closed: tests: update the store failure tests [09:47] pedronis: you mean 3642? that is master [09:47] pedronis: do we need it for 2.28? [09:48] ogra_: yeah I tried with default png as well, does not work. Where can I get prebuilt snap? I can try it I guess [09:49] mvo: no, but it might have broke stuff [09:49] indirectly [09:49] in which case we might have had a regression [09:49] but is not yet in 2.28 [09:50] anyway [09:51] ok [09:53] travis is very non helpful [09:53] ogra_: ah, right in the bug. Going to try it [09:54] mvo: see internal [09:55] Chipaca: hey, perhaps interesting: https://github.com/posener/complete [09:55] pedronis: that rule == the rule to use full sentences or not to use them? [10:03] zyga-suse: yes, just curious, as far as I know our non doc comments are all over the place [10:10] re [10:10] zyga-suse: as I said I see it as strict rule for doc comments [10:10] ogra_: alright, it works with your prebuilt snap. thought it does not scale good [10:12] well, i assume you want to use a smaller png anyway :) [10:12] sborovkov, so to debug this ... attach serial to your pi ... add "break=premount" to the end of the line in cmdline.txt ... then boot and you should get a shell prompt where you then can run /bin/psplash manually and such [10:13] i.e. inside the initrd [10:14] ogra_: that's how it looks like btw https://www.dropbox.com/s/2fbdrd8wg4coudj/photo_2017-09-08_13-13-06.jpg?dl=0 [10:14] sborovkov, heh, you are on a *eally* low resolution :) [10:14] *really [10:15] ogra_: ehh, I don't have working serial at the moment. Ordered one from aliexpress recently. For some reason they sent me USB stick lol. Viktor has it, so may be he will debug it. I will try to figure out what else can be different in our snaps [10:15] yeah it does not detect that my monitor is 1080p, I have to manuallt adjust hdmi_group and hdmi_mode [10:15] sborovkov, might be that we need to adjust the psplash patch for you to actually default to a lower res ... [10:16] oh, you guys actually tinker with config.txt settings for hdmi [10:16] ogra_: the thing though is that Rpi zero has lower resolution [10:16] that might inded have some influence on what info the framebuffer device gives to psplash [10:16] oh! [10:16] interesting [10:17] that's what I have in config.txt [10:17] one sec [10:17] oour default pi gadgets dont set anything in that regard [10:17] https://hastebin.com/higumepuqa.makefile [10:18] framebuffer_height=0 [10:18] framebuffer_width=0 [10:18] framebuffer_ignore_alpha=1 [10:18] i need fb_ignore_alpha for sure though [10:18] the png is clearly using an alpha channel ... [10:18] well, and make your own guess about width and height :) [10:19] qt apps have horrible banding if it's not set [10:19] alpha is not necessary for us anyway I guess [10:19] so height and width [10:19] sure, but if there is an alpha channel in the png it will be used i guess [10:19] so when doing your own splash, try to have an alpha-less png [10:20] but i'D start with the width/height fist ... [10:20] *first [10:20] try dropping them in your own build and see if that changes something [10:20] yup that's what I am trying now [10:20] hmm, also ... hdmi_mode=0 ... [10:20] that might alsoo be a prob [10:22] hmm [10:22] I can comment that out as well [10:22] try the width/height standallone first [10:22] that might already solve it [10:22] ok [10:23] Chipaca: can you look at #3886 I think it's reasonable but not great (it tests less) [10:23] PR #3886: tests: make TestCmdWatch more robust [10:23] if niot we can move ove the other options ... (and then think about hoow to modify psplash to work with your setup) [10:24] pedronis: not right now, sorry [10:24] * ogra_ wonders if he'll need a new kbd soon ... seems to swallow some chars and others are duplicated even when i only press the key once [10:24] too much state [10:24] later [10:25] * ogra_ notes that cherry switches dont seem to be what they used to be ... [10:25] mvo: do we share limits with spread-cron? is it scheduling too much: https://travis-ci.org/snapcore/spread-cron/builds [10:33] pedronis I wonder if we are hit by this given we are in the same org... [10:34] there is a shared pool of travis runners at the project/repo level, not sure if there is also tie in to the org === ShalokShalom_ is now known as ShalokShalom [10:46] PR snapd#3889 opened: interfaces: mount host system fonts in desktop interface [10:50] pedronis: that sounds likely actually - we are the same org [10:52] ogra_: hmm, no, just commenting out those changes did not help. I am also getting warning about misaligned buffer address right after "reading psplash.img", not sure if that's relevant though [10:53] sborovkov, that is a "normal" discepancy between uboot and the kernels FAT implementations ... nothing to worry about [10:53] sborovkov, so try dropping more from config.txt [10:53] i'd move on with the hdmi_mode [10:56] * zyga-solus lunch [10:59] * ogra_ sighs ... [11:00] i wishh i'd understand why zyga-solus's overzealous quoting broke resize fo GPT's [11:12] ok, i'm stopping for lunch [11:12] * ogra_ cries [11:12] https://docs.google.com/spreadsheets/d/1jw-hsAK1ymUfpnI7MD7ML7CQcwq0KSBvGw_gf6_TmYM/edit <- if you want to have fun [11:13] where "fun" means "gouge your frontal lobe out with a blunt weapon" [11:13] (there's a forum post in the works to explain that sheet) [11:13] (i know how to fix it but i dont know why it breaks at all in the first place ) [11:13] :( [11:21] I'm trying to get a heisenbug resolved. the program runs normally when using either strace or gdb, but fails as soon as I try it normally [11:22] ogra_: this is your fault. I'm working on ring [11:22] :-p [11:22] just package it with strace in the snap and add strace to the wrapper script :P [11:22] lol [11:22] diddledan, i fear we have to wait for working dbus activation [11:22] I think that's not quite the right way to do things :-p [11:22] i... might have actually shipped something that ran under strace, once [11:23] * Chipaca was young and needed the money [11:23] Chipaca, how good is your shell-quoting-fu ? [11:23] ogra_: 7 [11:23] mmh, travis has this on their status page: Build delays due to GitHub outage [11:23] damn, I'm only 6 [11:24] github?? dead??! [11:24] https://www.youtube.com/watch?v=kLzC3nPhUEM [11:24] ogra_: enough to know that "$PATH:${GOBIN:-${GOPATH%%:*}/bin}" is valid sh, but not enough to know not to use it [11:24] Chipaca, when zyga-solus added shellchek he also added a lot of quoting to our resize script http://paste.ubuntu.com/25489386/ ... as you can see in line 28 there is "$resizeopts" [11:25] mhmm [11:25] Chipaca, in case of gpt's resizeopts is unset while for mbr's we have resizeopts="-f" [11:25] yes [11:25] and [11:25] that's a bug [11:25] probably [11:26] now ... when trying to resize a gpt devices it ends up like: [11:26] because, i imagine, resize2fs does not know what to do with an empty argument [11:26] resize2fs 1.42.13 (17-May-2015) [11:26] open: No such file or directory while opening [11:26] and i dont get why [11:26] ogra_: try this: resize2fs "" [11:26] but it isnt an empty argument [11:26] hmm [11:26] ogra@localhost:~$ resize2fs "" /dev/mmcblk1p9 [11:26] resize2fs 1.42.13 (17-May-2015) [11:26] open: No such file or directory while opening [11:26] ogra@localhost:~$ [11:27] wow [11:27] * Chipaca bows [11:27] but that looks rather like a bug in resize2fs [11:27] why? it's literally being passed an empty string as an argument [11:27] it's perfectly valid to error out on that [11:27] why would it interpret "" ass an arg [11:27] I agree, let them fix it :-p [11:27] ogra_: it's not "interpreting", it's being given that as an arg [11:28] but it isnt even an empty string ... it is a string of zero lenght [11:28] you're explicitly giving it an empty argument [11:28] that's who the shell works [11:28] s/who/how/ [11:28] ogra_: what is the difference between an empty string and a string of zero length? [11:29] i'd expect the latter to be filtered when parsing args [11:29] that's not how things works [11:29] usually [11:29] you need to conditionally include it: https://paste.ubuntu.com/25489423/ [11:29] if i'd add " " i'ÄD agree it is an empty string [11:29] that's not an empty string [11:29] it's a 1-space string [11:29] ogra_: " " is not an empty string ! :-) [11:29] anyhow! [11:30] let's move on to how to fix it, yes? [11:30] diddledan, i need/want to add -p anyway for both resize cases (to get better logs), so the fix is clear [11:30] diddledan, my prob is that i dont understand the behaviour [11:30] "" is an empty string - which means it is, in C-style "\0" [11:31] i.e. it includes a null termination [11:31] Chipaca, http://paste.ubuntu.com/25489429/ is my fix ... [11:31] ogra_: try this: for i in "" "" ""; do printf "%q\n" "$i"; done [11:31] or try rm "" [11:31] it all works the same [11:31] mhmm [11:32] yeah, you guys are right .. [11:33] putting quotes on a bash commandline, even with no contents is saying "I want an argument here". If it didn't explicitly create empty arguments then you can't check that a variable is "empty" [11:33] (i never use quotes for args ... but shellcheck freaks out if you dont) [11:33] (so i never had to bother with that) [11:33] that's why quoting is not always the right thing [11:33] ogra_: that's ok, everybody has blind spots [11:33] tell that to shellcheck :P [11:33] if there is a $ it wants a quote :) [11:34] ogra_: you _can_ tell that to shellcheck! [11:34] i know [11:34] anyway, i want more verbosity anyway for the logs, so just adding -p for the gpt case is fine [11:34] ok :-) [11:34] I'm still not sure what adding -p means [11:34] depending it might not solve the problem [11:34] progress, probably [11:34] print all actions [11:34] or create new ones [11:35] it does [11:35] ummm [11:35] ogra_: that does not work either! [11:35] i tested it already [11:35] Chipaca: not what it means to resize2fs, more how it's getting added [11:35] because there is no option "f -p" [11:35] bah, crap [11:35] ogra_: you want "-fp" [11:35] (i didntz test on mb indeed) [11:35] you cannot quote multiple args together [11:35] *mb [11:36] BAH [11:36] *mbrr [11:36] there are various approaches, it all depends [11:36] * Chipaca hugs ogra_ [11:36] * Chipaca steals ogra_'s wallet [11:36] * ogra_ needs a new kbd ... sniff [11:37] this kbd isnt a year old yet ... but l and o are producing double presses and r is ignored every now and then [11:37] ogra_: take the peanut shells out from under the keys [11:37] that's also why "$*" and "$@" are not the same [11:37] yeah, that i know [11:38] is the magic expansion of "$@" a bashism, or is that posix? [11:38] so quoting solves some issues, creates other [11:38] thats poosix afaik [11:38] and if it's posix, does that mean other shells also have arrays? [11:38] because arrays would solve the whole thing :) [11:38] only for args i think [11:38] bah humbug [11:39] this is why people use eval [11:41] mvo, oh, btw ... https://github.com/snapcore/core-build/pull/17 is waiting for your approval (that was the one i was holding back yesterday) [11:41] PR core-build#17: switch /etc/systemd/system to "synced" mode [11:41] (i'd like to land that one before the resize fix) [11:48] Chipaca: ogra_: is this bash or something else? [11:48] pedronis, posix (ash) [11:48] ogra_: one question, then good to go. is the resize fix up as well? and what was it? do we need a new release for that? [11:49] mvo, i'm not sure what channel kernel snaps use to obtain the initrd, if it is stable then yes [11:50] mvo, i thin Chipaca needs to answer your question on thhe PR ... afaik the dir is empty in the squashfs initially [11:50] me what? [11:50] ogra_: hmm? GPT? quoting? [11:51] zyga-suse, yep [11:51] what did I do? [11:51] fix is pending, all fine [11:51] PR snapd#3885 closed: tests: improve the listing test to not fail for e.g. 2.28~rc2 [11:51] aha, thank you ! [11:51] zyga-suse, http://paste.ubuntu.com/25489461/ line 29 ... [11:52] * mvo grumbles about the amount of travis slots we get [11:52] zyga-suse, in GPTs the resizeopts var is unset ... the quoting turns it into an empty arg though [11:52] Chipaca, https://github.com/snapcore/core-build/pull/17 [11:52] PR core-build#17: switch /etc/systemd/system to "synced" mode [11:52] zyga-suse: in snap-seccomp, today there are 3 users/groups we care about: root, daemon and shadow. root and daemon are supposed to exist everywhere based on the LSB. shadow is not guaranteed to exist [11:52] "" around $ is an excellent heuristic, but you need to use judgement. doesn't shellcheck have a way to override it? [11:53] jdstrand: in addition the values of shadow and daemon are not constant [11:53] PR snapd#3886 closed: tests: make TestCmdWatch more robust [11:53] cjwatson, it does ... but i want the var set in the other case too so it is fine [11:53] zyga-suse: if 'daemon' is not '1', then we need to use FindGid() for it like we do with shadow in main_test.go [11:53] cjwatson, my prob was that i didnt understand the fact that "" becoomes an empty arg that gets actually parsed [11:53] jdstrand: yes, I think that's a simple fix [11:54] zyga-suse: if shadow isn't present at all, what is the group for /etc/shadow on arch? [11:54] if you spend any time working with shell I strongly recommend spending some time understanding how argument handling actually works [11:54] jdstrand: root.root [11:54] jdstrand: well, root to answer your question [11:54] well, that's goofy [11:54] cjwatson, well, before we added shellcheck everywhere i didnt even have the idea to quote in that place [11:54] yeah but this is quite basic stuff :) [11:54] * zyga-suse recalls that "someone is wrong on the internet" thing [11:55] specifically with relation to the underlying libc's argv handling [11:55] zyga-suse: ok, so then on arch, in template.go, we make 'shadow' distro-specific [11:55] zyga-suse: let me put that another way [11:55] jdstrand: I'd just use something else, like bin or daemon [11:55] zyga-suse: I figured that some distros would use a different group for /etc/shadow [11:55] * zyga-suse listens [11:56] shellcheck is absolutely right about this quoting policy in general [11:56] PR snapcraft#1539 opened: nodejs plugin: expose hidden bin path when using yarn [11:56] zyga-suse: sorry, interfaces/builtin/account_control.go [11:57] jdstrand: aha, I see, that part needs to get smarter [11:58] jdstrand: what happens if we add two seccomp arg filtering rules? [11:58] zyga-suse: so, in account_control.go, I figured instead of hard coding 'g:shadow' in the accountControlConnecctedPlugSecComp, we do: 'g:%s', default to 'shadow' and then have a distro mapping for arch to set it to 'root' [11:58] jdstrand: yeah, that's doable [11:58] ugly but necessary [11:58] zyga-suse: it isn't ugly [11:58] well, ugly as in "it's ugly we need this" [11:58] zyga-suse: it is what is needed to handle cross-distro [11:59] well, yes, it would be nice if 'shadow' was standardized, sure [11:59] I'll make that patch and once it lands upstream I'll put it into 2.27.6 [11:59] cjwatson, well, i think using allags="-a -b -c"; command $allargs... is not actually uncommon [11:59] we're going to see more and more of this sort of thing when cross-distro becomes strict [12:00] some things we can just add to the policy (oh, /etc/foo is /etc/foo.d on this distro, just allow both), but sometimes we'll want something like this [12:00] ogra_: Sure, but it's an exception compared to general use of $-expansions [12:01] indeed [12:01] that where eval is useful sometimes [12:01] it reparses [12:01] yep [12:01] IME once you get to that point it's time to rewrite in a language that lets you control the argument list explicitly [12:01] (and I've written a *lot* of shell - I'm not against its use in principle) [12:02] zyga-suse: in cmd/snap-seccomp/main_test.go, you'll want to either make the g:shadow tests conditional on 'is !arch', or on 'is ubuntu|debian' or turn the mapping into a function (eg, shadowGroup() exported as ShadowGroup()) [12:02] zyga-suse: the latter seems best [12:02] jdstrand: I agree [12:02] well shellcheck recommendation basically are based on everything coming from the outside [12:02] jdstrand: I tried several simpler things but went nowhere and realized this needs to be really dynamic [12:02] zyga-suse: with those small changes, you should be all set [12:03] * zyga-suse is a bit sleepy today and nervous about doing taxes for the first time in $eons [12:03] is spain tax-free country ? [12:03] ogra_: I'm back in Poland now [12:03] zyga-suse: sorry I wasn't awake when you started on this-- I knew we'd have to do something like this (I think I mentioned it in the PR, but maybe not) [12:03] ogra_: managing my own business [12:03] zyga-suse, yeah, but didnt you do taxes in spain ? [12:04] ogra_: yes but I now have to do them in two places [12:04] mvo: are you going to revisit #3865 ? [12:04] PR #3865: many: provide systemd.MockSystemctl() helper [12:04] ogra_: my monthly taxes are now in Poland [12:04] ouch [12:04] ogra_: and my yearly taxing will be done in Spain, this one time [12:04] ogra_: then next year just here [12:04] oh my [12:04] double taxes are not fun [12:04] not double in the typical word, I only get taxed once [12:04] * ogra_ guesses you could pay someone doing them for you [12:05] but I must complete the yearly cycle in Spain [12:05] as I'm a spanish resident despite being here now [12:05] it's decided by the number of days per year one inhabits a given country [12:05] ogra_: if you are still unclear about the "why" of the behaviour it might be useful to look at: $ strace -e trace=execve true $a ; strace -e trace=execve true "$a" that might be useful [12:05] ogra_: it's not like most people know and I wanted to learn how this works a little bit [12:05] zyga-suse: I don't think we want to overengineer today cause we don't know for sure what we are going to see as more and more distros go partial/strict, so what I just outlined imo should be all we do now. but, maybe we can have in the back of our mind how to handle this if there are a lot [12:05] pedronis: I though I did, let me look at this again [12:05] mvo, no, i'm fine [12:06] jdstrand: I need something basic for now so that unit tests on arch pass again [12:06] jdstrand: there's been a wave of updates there [12:06] mvo, just waiting for an answer from Chipaca on the PR and then i'll prepare the resize one [12:06] mvo: there are a few small comments by me and a conflict [12:06] jdstrand: golang 1.9, pulseaudio 11, tons of stuff [12:06] ogra_: on which pr? [12:06] (and roll up the deb and do a core ebuild etc etc) [12:06] pedronis: yeah, sorry for this, either I forgot to push or I was dreaming that I already fixed it. on it now [12:06] Chipaca, https://github.com/snapcore/core-build/pull/17 [12:06] PR core-build#17: switch /etc/systemd/system to "synced" mode [12:07] zyga-suse: eg, do we want to have the dynamic stuff defined in the interfaces themselves, or do we want to have a distro.go file (or something) which is a one stop shop for these things (eg, it would have shadowGroup() and the mapping, and any other functions like shadowGroup() and their mappings) [12:07] zyga-suse: fun! [12:07] jdstrand: I think distro go is nicer and mirrors our approach for packages in spread tests (also centralized) [12:07] jdstrand: though I wonder if we should just stat files in specific modules [12:07] jdstrand: and not build and maintain large tables [12:07] jdstrand: I'll start small, just to fix unit tests [12:08] jdstrand: I'll re-think this when I look at the interface problem [12:08] ogra_: like so? [12:08] ?? [12:08] jdstrand: note that especially for arch where things move all the time and it might be root.shadow before I land this ;) [12:08] ah, GH is slow updating [12:08] zyga-suse: for pulseaudio, I suspect that would just be additional rules (that is what we would do in abstractions/audio, for example) [12:09] jdstrand: I need to see what changed first, note that arch doesn't support apparmor yet so not everything is broken [12:09] darn, I just realized why I'm sleepy [12:09] I was so sleepy I made ... chocolate milk instead of coffee [12:09] zyga-suse: stat would certainly be the most dynamic, but I'm not sure I care for that [12:10] jdstrand: care as in you'd rather not see it or you don't mind seeing it but there's no urgency? [12:10] zyga-suse: if arch is changing that much, we could perhaps add multiple rules, or try rules in order if range in shadow, root, foo, bar, then stat to see if it matches [12:10] maybe that could work... [12:11] jdstrand: is the seccomp bytecode generator smart to combine rules? [12:11] jdstrand: and if so, what is the join function, AND or OR? [12:11] zyga-suse: I don't think there is any urgency for all of this extra discussion. I suggest doing what we siad (shadowGroup()) and be done with it. the more we see, the more info we'll have to see where we want to go [12:11] jdstrand: say we allow chown root; chown shadow [12:12] jdstrand: how does that behave/combine [12:12] * zyga-suse nods on jdstrand's point about urgency [12:12] zyga-suse: think of it more like a list to match against [12:12] aha, so OR? [12:13] sounds like we need the system key stuff mvo was working on [12:13] to do that though [12:13] I don't think it is implemented as a join function but if you want to think of it as OR, then ok [12:14] Chipaca, followup question ... [12:14] pedronis: yes, that's a possiblility [12:14] (on the P) [12:14] *PR [12:14] pedronis: I can resurrect this work [12:15] zyga-suse: because it is a list to match against, we have to be careful with '-' in the policy [12:15] zyga-suse: eg chown - u:root - [12:16] zyga-suse: that would allow chown to any group [12:17] right [12:17] essentially * swallowing "root" [12:18] '-' can be thought of a glob, yes [12:18] but, all that comes as part of PR review [12:18] just don't use '-' for arch and we'll be fine :) [12:19] mvo, is the explanation on the PR fine with you ? [12:20] zyga-suse: curious, what uid/gid is daemon in arch? in solus? in suse? [12:20] jdstrand: so... (not sure if those are constants or just particular values on my machines) [12:20] * jdstrand was under the impression it was '1' everywhere, but the LSB doesn't actually seen to define the uid/gid [12:20] seem* [12:21] ogra_: fine with me [12:21] * ogra_ merges [12:22] PR core-build#17 closed: switch /etc/systemd/system to "synced" mode [12:23] zyga-suse: I see now that only root is defined to be '0', so we'll want daemon_uid := FindUser('daemon') and daemon_gid := FindGroup('daemon') in main_test.go [12:24] zyga-suse: is that and shadowGroup() something you want me to do or are you on it? [12:25] jdstrand: daemon, on openSUSE is 2, on solus is 6 and on arch it is 2 [12:25] jdstrand: sorry, arch took a while to boot [12:25] jdstrand: and on fedora... [12:25] interesting [12:26] jdstrand: yeah, I'd really welcome some standardization but then again, data migration is a pain [12:28] mvo: github says the conflict is still there [12:28] PR core-build#18 opened: fix resize for GPT, be more verbose for logging [12:28] pedronis: oops, one sec [12:28] mvo, ^^^ the resize fix [12:29] ogra_: heh, like how this is fixed [12:29] ;) [12:30] pedronis: fwiw, the fact that we don't get travis slots also means we only get very slow updates into the edge ppa :/ spread-cron will only push there after master got a travis run that is green and because that takes hours currently those updates also take hours [12:32] PR snapd#3890 opened: overlord: use overlord.Mock in more tests, make sure we check the outcome of Settle [12:33] zyga-suse, mind to sign off https://github.com/snapcore/core-build/pull/18 ? [12:33] PR core-build#18: fix resize for GPT, be more verbose for logging [12:33] mvo: :/ [12:34] ogra_: what is '-p' being passed to? what does it do? [12:35] PR snapd#3891 opened: daemon: reach for Overlord.Loop less thanks to overlord.Mock [12:36] zyga-suse, http://paste.ubuntu.com/25489461/ it makes resize2fs print all actions to the log (called "progress" in the manpage, but its not actually a progress indicator when redirected, just a "i'm doing this now" printout) [12:36] mvo: there are also unit tests problems on that branch [12:37] zyga-suse: was that 'yeah' for me to do the work? [12:37] mvo: funnily artful-i386 is quite fast at running unit test [12:37] zyga-suse: note that for daemon, we don't have the same problem as with shaodw-- it will exist everywhere [12:38] jdstrand: ah, I didn't notice your proposal to do that. I can do it later when I'm looking at arch (~Monday), if you want to tackle that before that's fine [12:38] jdstrand: I will carry it as a distro patch there to bake [12:38] zyga-suse: I don't foresee specifying a lot of users and groups in the policy, so there should only be shadow for a while, then maybe a couple more down the line [12:38] jdstrand: yes, fortunately :) [12:39] zyga-suse: the other users will all be the ones managed by snapd, so no problem [12:40] ogra_: commented on the PR now [12:42] * ogra_ sighs deeply [12:43] pedronis: yeah, I noticed and should be good now as well, I will double check though [12:45] ogra_: hint hint: https://github.com/snapcore/core-build/blob/master/initramfs/testing/aaa-tests.py [12:45] ogra_: try writing a real test [12:45] PR snapd#3892 opened: systemd: add systemd.MockJournalctl() [12:45] well, a real unit tests [12:49] mvo: still failing: FAIL github.com/snapcore/snapd/overlord/snapstate/backend [build failed] [12:49] or github confused me again [12:51] pedronis: probably legit, I need more tea [13:02] mvo: pedronis: stdup? [13:02] pedronis: oh hi [13:03] mvo: standup? [13:03] pedronis: yes omw [13:05] PR core-build#18 closed: fix resize for GPT, be more verbose for logging [13:20] ogra_: damn ittttt. issue is not in config.txt. Something going wrong when psplash.img is built [13:20] ogra_: tried everything with config.txt options [13:20] sborovkov, weird [13:20] then I just replaced my psplash.img [13:20] with yours [13:20] and splash showed up [13:21] hmm [13:22] sborovkov, how are you building ? [13:22] on a PC ? [13:22] or natively onm the pi [13:22] on a pc, inside docker container [13:23] xenial-amd64 is used as an image [13:23] well, that should result in the same binary [13:23] it is not [13:24] lzcat psplash.img | cpio -i [13:24] do that for both (in different tmpdirs, else one overwrites the other) [13:24] and check the psplash binay with "file" [13:25] My version: - 472 blocks - file output: psplash.img: LZMA compressed data, streamed ; your version: 471 blocks; same file output [13:25] no [13:26] the uncompressed img ... you want to see the binary indside [13:26] "lzcat psplash.img | cpio -i" will unpack it [13:27] alright, one moment [13:28] the img is actually an initrd that we merge in ram with teh actual initrd.img when uboot loads it [13:28] ogra_: regarding ring. I've been digging through their sauce (tomato) and figuring out whether it can work without dbus. I _think_ it can - I'm compiling a new build now [13:28] i have a slight suspicion that the cross build code doesnt work for you and you end up with an x86 binary [13:29] ogra_: your version has bin directory, mine has bin executable at the top level [13:29] oohh ? [13:29] thats interesting [13:30] https://github.com/snapcore/pi3-gadget/pull/13/files has "cp psplash initrd/bin" [13:30] PR pi3-gadget#13: add splash support [13:30] cp psplash initrd/bin [13:30] yeah :-) [13:30] so why does it not end zup there [13:30] there is no such directory? [13:31] that's why it copies to file? [13:31] it should fail and scream and shout [13:31] if that dir isnt theer [13:32] well it does not - Priming psplash ;Snapping 'screenly-pi3'; is all I get at the end [13:32] do you have the psplash subdir in your source ? [13:32] no errors/warnings [13:32] yeah [13:32] in that there should be an initrd subdir ... including bin [13:32] there is no bin directory there [13:32] initird only [13:33] oh [13:33] well, there should be a bunch of dirs [13:33] not nly bin [13:33] also scripts [13:33] did you perhaps miss a git add when merging ? [13:34] there is script directory [13:34] in other news, I've discovered systemtap [13:35] ^^^ it helped me narrow down where the failure was occuring so I could investigate the sauce (tomato) [13:35] ogra_: https://github.com/ogra1/pi3-gadget/tree/master/psplash can't see bin here? [13:35] there shhouldl be psplash/initrd/bin (empty), psplash/initrd/scripts/init-top/ORDER and psplash/initrd/scripts/init-top/psplash [13:35] there are psplash/initrd/scripts/init-top/ORDER and psplash/initrd/scripts/init-top/psplash [13:35] no bin [13:36] hmm [13:36] ogra_: I have your repo checked out [13:36] there is no bin as well [13:36] yeah [13:36] why deos that work for me then [13:37] roadmr: hi! can you take a look at https://forum.snapcraft.io/t/unexpected-output-from-click-review/2031/6 [13:38] jdstrand: I'm on it, fighting !*$% kibana to get the output [13:38] jdstrand: it's the same snap I reported some days ago, remember? [13:38] is there a snapcraft variable exposing the default number of make threads so that I can use parallel builds in my build: scriptlet without hardcoding a value? [13:39] jdstrand: this is the latest one: click-review returned unexpected output for package /tmp/tmp5eXbOZ/snapped-atom.retro-causal_1.19.7_amd64.click: ERROR: Could not find '/tmp/review-tools-xhag5033' [13:40] pstolowski: https://github.com/CanonicalLtd/snappy-docs/pull/98 for you [13:40] PR CanonicalLtd/snappy-docs#98: Refresh the whole page, add install and remove hooks [13:40] sborovkov, sorry ... i simply added a mkdir to snapcraft.yaml now before copying ... pull my tree again [13:40] jdstrand: I see 3 fails for this particular snap with unexpected output... and that's it. So his other one that failed review seems to have been a different cause (i.e. a genuine failure, not "unexpected output") [13:44] mvo, 2.28.2 is on beta? [13:51] ogra_: np, good thing we found the issue now [13:52] sborovkov, yeah, that would have bitten me badly when merging the branch in ... thanks ! [13:52] * Chipaca hunts for tea [13:53] roadmr: hmm [13:55] davidcalle, will do, thanks! [13:55] jdstrand: I found a few "could not find foo" in the source code but I can't tell which one this is. Maybe changing those to "could not find %s while unpacking" so we can better know what happened? [13:56] pstolowski: just noticed that AddPlug/Slot is also used in interfaces/ifacetest so cannot be moved to export_test.go but is not used a lot [13:56] as we said, so should be ok to change it a bit [13:58] roadmr: this snap unpacks really big: 1.9G [13:58] roadmr: could it have run out of space? [13:59] jdstrand: oh, that's a possibility. Let me check [13:59] jdstrand: we did not get any low-space alerts though [13:59] ppisati, initrd fixes have landed in the PPA, can you trigger a rebuild for pc-kernel and dragonboard-kernel ? [14:00] roadmr: I think I'm going to see if I can't output json with every error [14:00] roadmr: I won't be able to finish that today though [14:02] ogra_: ack [14:02] thx [14:02] jdstrand: no problem, we're not seeing this frequently (only those 3 cases for this snap over the past 7 days) [14:03] pedronis, yes [14:03] roadmr: it is also taking *forever* to complete the review (running it here under the review-tools snap) [14:03] how so? time to decompress? [14:03] roadmr: wonder if there was an OOM [14:05] roadmr: now, python3 process taking a long time [14:05] ok [14:05] * ogra_ takes a break [14:06] roadmr: well, *forever* is strong. less than 10 minutes [14:07] ogra_: yay, I can see the splash. it does not like my picture for some reason and draws white line on it but whatever [14:07] jdstrand: the daemon/bin uid/gid conflict between RH-descended and Debian-descended distributions has been a known problem for at least 20 years and everyone gave up on it [14:07] cachio: yes, 2.28~rc2 is in beta [14:07] jdstrand: at this point it is what it is and there's not much to be done [14:07] mvo, yes, I already started beta validation for this one [14:07] cachio: great, thank you! [14:09] cjwatson: yeah, I figured as much, which is why we are doing lookups for the uid/gid in the actual. I personally just didn't realize that diversion in the tests. thanks for the historical context :) [14:09] actual code* [14:10] * zyga-ubuntu found the history lesson interesting [14:10] cjwatson: is this a big old accident or was it deliberate? [14:10] zyga-ubuntu: accident [14:11] if it is 20 years old, that is kinda interesting [14:11] zyga-ubuntu: the LSB people tried to standardise a single value and realised they couldn't [14:11] I find it curious with new distros that are not derivatives, like solus [14:11] guessing the LSB was documenting what was out there already and didn't want distros to have to change the uid for daemon by choosing one [14:11] I don't know why Solus picked a different value, but eh, 3 values isn't particularly worse than 2 [14:12] cjwatson: lol, yes, that's just makes it official [14:12] thu shall not have constants [14:12] jdstrand: exactly, and uids/gids are more or less unchangeable [14:12] * jdstrand nods [14:12] but fedora did change the default user uid from 500 to 1000 a while back [14:12] though I understand that has smaller impact (none) [14:13] that's very different, and I bet they didn't attempt to migrate existing data [14:13] yes, it was just on new installs [14:13] jdstrand: all 4 app units have ~40GB of free space [14:13] migrating my user account on my 1997-installed server from 500 to 1000 has been on my list for a long time, but eh :) [14:13] hehe [14:13] hehe [14:14] hm, no, maybe 1999 [14:14] guess microsoft had some ideas with uuid based account IDs [14:14] cjwatson: is it really that old without reinstall? [14:14] yes [14:14] cjwatson: if so I find that really impresisve [14:14] roadmr: ok. well, since this isn't an emergency, I'll work on cleaning up the output as mentioned so we can better diagnose this in the future [14:15] reinstalling would be a ton more work than upgrading [14:15] cjwatson: is it running debian? [14:16] yes, first installed with pre-release potato-ish I believe [14:16] jdstrand: thanks. [14:16] first pre-release Ubuntu images were built on it [14:17] PR snapd#3797 closed: daemon: allow polkit authorisation to install/remove snaps [14:18] ah, potato [14:19] jdstrand: potato??? [14:19] ahh! [14:19] I see. nm me [14:23] ogra_: hmm, it's not colorspace issue. interesting. I am getting this https://drive.google.com/open?id=0B5xwucQA3JSJR0JtSFVxUExKbVU (again disregard that it's gigantic, resolution on first boot is very low). That line appears in 1080p as well. Source image is 1080p. I tried both SRGB and RGB. So may be it does not like resoltuion Idk [14:30] i have heard through a third party via canonical that the nmcli is the correct way to modify network management for ubuntu core 16 but all the docs only mention netplan and networkd which seem way more configurable via the yaml file but when you do this all sorts of dns issues come up because it seems to conflict with some other network management going on [14:31] at this point I can switch to nmcli i think fully if I can just get information on getting an ethernet port to maintain it's static IP even if it's not plugged in since right now that is only handled via an interfaces or yaml config file with netplan but those can't be used with any stability for ubuntu core 16 from any of my testing [14:33] SuperJonotron: as far as I know most ubuntu core devices don't ship network manager [14:33] some do though [14:34] SuperJonotron: however, the netplan instabilities you're mentioning are news to me. Could you describe the problems you're seeing in more detail in the forum? [14:34] Chipaca: NetworkManager doesn't seem to be installed in this case but using a yaml netplan file causes a weird issue on boot due to dns issues [14:34] jdstrand: the app units have 16 GB RAM, so should also not be an OOM situation, though e.g. maybe processing multiple huge snaps could result in that [14:35] if I create a yaml file with all the correct syntax, something with a network service on dns entry locks up for ~2 min on the OS boot [14:35] it's failing to resolve dns but once it boots the dns is perfectly fine [14:35] nmcli setting static and leaving dhcp on my second port does not have this issue but does lose static ip's when unplugged [14:36] SuperJonotron: i'm sorry, i don't know enough about any of these things to help you concretely myself. This is why I suggested the forum, so people more knowledgeable (and on different timezones) can help [14:36] SuperJonotron: also so that if somebody else has the same problem they find the fix :-) [14:37] SuperJonotron: however, nmcli is a network manager client, isn't it? if you don't have network manager, how does it even? [14:38] Chipaca: and there in lies the problem, the forums (https://ubuntuforums.org/showthread.php?t=2323253) have this issue and the resolution is all around NetworkManager and configuration files that are read only due to snappy's read only file system so it's an insurmountable bug so far as I can tell [14:39] SuperJonotron: https://forum.snapcraft.io [14:39] SuperJonotron: i doubt the url you pasted has anything to do with ubuntu core [14:41] Chipaca: not specifically but it is the exact error message on the OS boot so it's likely a bug that lives in both systems from the same NetworkManager [14:41] SuperJonotron: there is no network manager in core [14:41] unless you've installed a snap of it [14:41] (in which case you'd know) [14:44] Chipaca: I have not. The docs (https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/index), as mentioned before are really conflicting since it seems nmcli is the correct way but netplan and networkd are the documented approaches but when i've used the yaml for netplan it experiences the network manager issues on boot for something not supposed to be installed [14:45] this is why it's a very weird problem for me and i'm ready to just abandon it for nmcli if I can just get static IP to persist even when unplugged [14:45] SuperJonotron: those are the docs for network manager [14:46] SuperJonotron: you do not have network manager [14:46] roadmr: the whole thing shouldn't be in memory so I don't think that would be the case. ok, I think we've exhausted our guesses, I'll work on the unexpected output bits [14:47] SuperJonotron: could you please create a new forum topic on forum.snapcraft.io, describe exactly what you have, what you do, what you expect, and what happens instead? [14:47] jdstrand: yeah :( thanks... hopefully we'll get to the bottom of this. [14:48] Chpaca: I'd lve to see official documentation to Ubuntu Core IP configurations because that's the closest thing i've found to exist and not have to go to a forum or IRC for this but I will if no such documentation exists [14:53] SuperJonotron: did you try "sudo console-conf"? [14:53] SuperJonotron: (on the core device) [14:55] Chipaca: it works but doesn't work for my solution since I need a non-interactive solution so it can be interfaced with via software [14:57] sigh [14:57] ogra_: and actually that white line is present on your default splash. commenting out framebuffer and hdmi_mode options does not help. On 1080p it's even more noticeable - https://drive.google.com/file/d/0B5xwucQA3JSJTFBvd2FBSmZMY0U/view?usp=sharing [14:58] SuperJonotron: in what way do you need it interfaced with via software? what software? [15:01] Chipaca: the software has, or should at least, have full access to modify the IP configuration, static, DHCP, dns, default gateways, etc. It has all the functions ready in a sense just needs to be configured for the OS it's running on [15:02] Chipaca: the software is Niagara [15:04] SuperJonotron: that sounds like something that needs full access to the device [15:04] SuperJonotron: also sounds like something that should be decided at the model level, but that's neither here nor there [15:05] SuperJonotron: I don't know where the netplan docs exist, as I said early on I know very little about this aspect of our stack; I repeat that your best bet will be to ask in the forum [15:06] SuperJonotron: if your goal is to make your software be able to do all that no matter what networking stack the device is using, you're going to have a lot of fun [15:06] Chipaca: it will in fact be designed to run with UC16 on a specific hardware model series [15:06] unless netplan can already do the things you need, that is :-) [15:06] Chipaca: I can lock the feature into a specific network stack but figuring out which ones work fully first is where i'm at and can't seem to find stability in any path so far [15:07] I am currently writing a forum post on the topic [15:07] SuperJonotron: thank you [15:07] SuperJonotron: i look forward to learning the source of the instability you experience [15:07] but [15:07] next week [15:07] becaue I think i'm going to EOD now [15:08] mvo, pedronis, zyga-ubuntu, I'm signing off now. I'll have my laptop with me on the road, so I'll be tinkering with stuff, but won't be online [15:08] o/ [15:08] Chipaca: have fun [15:08] no [15:08] after this week, what i need is _boring_ [15:08] i'll take a 1x1 sudoku game with me [15:09] :-) [15:10] sborovkov, interesting, i doont have such a line on any of my installs [15:12] ogra_: hmm. may be another setting affecting it. about hdmi. Also I guess I do need to psplash-snap. Because there is like 10 seconds between splash screen and our snap started. And with psplash-snap I was getting the same white line there [15:12] sborovkov, looking at psplash.c i see http://paste.ubuntu.com/25490573/ [15:13] namely SPLIT_LINE_POS [15:13] interesting why is it even needed there [15:13] sborovkov, you dont need psplash-snap, you want vt.handoff=0 and have your UI only call chvt 1 after the UI is up [15:14] then you wont have a visible switch [15:14] ok, then I will try that [15:14] (that is ... *if* the UI can start without the frambuffer being visible) [15:15] sborovkov, well, happy you have it working now, i guess the rest is simply fixes that we'll manage over time [15:18] yeah :-) will just try to figure out stuff about white line, wonder what values it gets there to split like that (if it's SPLIT_LINE_POS fault indeed). And this white line is very big on 1080p. And as you can see it's actually 2 lines there on 1080p at the bottom of the screen. I tried setting framebuffer_height to 1080 but my rpi does not start with it hmm. [15:19] well, in the low-res setup your image is also not vertically centered [15:19] i bet there is some simple math thhat goes wrong and the split line would actually be supposed to be off sceen [15:21] sborovkov, regarding the psplash-snap i'll try to collect some data and discuss it with jdstrand next week ... we'll need a splash interface or enhance the framebuffer one or some such (it needs a bit more than what existing interfaces provide) [15:22] ok cool, thanks a lot for assistance [15:22] np :) [15:22] * ogra_ really loves to work on that splash stuff :) [15:22] actuaslly [15:23] no need for chvt 1 [15:23] nice ! [15:23] just tried vt.handoff - splash went away when our ui came up [15:23] perfect [15:26] cachio, fyi dragonboard resize is nwo fixed in edge,beta and candidate with the latest kernel snap [15:26] *now [15:27] (just tested here ... http://paste.ubuntu.com/25490624/ ) [15:36] ogra_, nice [15:37] ogra_, THANKS === cachio is now known as cachio_lunch [15:44] ogra_: ok the issue is in the psplash.c. I just changed SPLIT_LINE_POS to 10k. Now I get one line instead of 2 at the bottom. Just need to figure out it's logic then. [15:51] is it possible to run a snap package on a system with PaX enabled? does snapd have some hooking mechanism perhaps that you can use to mark the flags necessary? [15:51] https://en.wikibooks.org/wiki/Grsecurity/The_RBAC_System#PaX_Flags [15:56] sborovkov, yeah, i'll lok on the weekend if i can put something into the main psplashh patch for it [15:57] itsfemme[m], i dubt anyone has tested that yet ... trying it and putting your findings into the forum (see channel topic) might be the best thing here [15:58] (i doubt anyne has yet run snapd with a gsecurity kernel that also has all the right patches for snap support) [16:09] PR snapcraft#1540 opened: plugins: extract python finder functions [16:29] hey. if i have a snapcraft.yaml, but i need a build-package (or stage-packages) from somewhere other than xenial , is that possible ? [16:30] specifically, libjson-webtoken-perl is not available in xenial [16:32] smoser: building on lp, you can specify where to build. But i'm not sure you can specify one dep come from a specific release [16:34] nacc, thanks [16:34] thats kind of what i thought [16:35] smoser: it would be nice if that was possible, but i've also seen oddness about how the debs are handled (e.g., postinst isn't run, so you need to manually handle that, if necessary (e.g., alternatives that normally get setup) and I don't think there's a way to specify recommends shoudl also be installed (where recommends really are neeeded :) [16:38] well, yeah. the 'packages' are really just installed into the build system so its sane to assume that they are rsolved within the archive that bhe build system. [16:39] smoser: yeah [16:39] smoser: we recently swtiched git-ubuntu over to artful for this reason (we needed newer versions) [16:45] PR snapcraft#1541 opened: [WIP] Debug fake store in travis === cachio_lunch is now known as cachio [16:57] smoser, worst case there are always scriptlets to ise wget and dpkg -x ;) snapcraft.yaml is extremely hack friendly [16:57] *to use [17:04] ogra_, thanks. i hdnt known of scriptlets [18:00] Is this a good place to ask snap questions? If so, I am having issues getting the brave webbrowser's seccomp-bpf sandbox properly functioning in the snap I built. Anything fancy I need to do? [18:16] mvo: I'm saying strange error in core transition tests, I wonder if we didn't consider some interaction with the prereq code [18:17] s/saying/seeing/ === JoshStrobl|zzz is now known as JoshStrobl [18:37] pedronis: reproducable? or in some random tests? [18:38] pedronis: eh, random runs in travis [18:38] mvo: it's not even a transition tests but I'm seeing TestSetConf taking more thant 10 minutes, and ensureCoreTransition is in the goroutines [18:38] mvo: I thought it was a test that I touched but no [18:39] mvo: here's the log [18:39] mvo: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/amd64/s/snapd/20170908_125944_bd802@/log.gz [18:39] * mvo looks [18:39] it's a weird one [18:39] that branch doesn't touch daemon (the next one does, and anyway that test isn't changed in the next either but irrelevant) [18:41] pedronis: hm, strange indeed [18:44] pedronis: I investigate monday [18:44] * mvo vanishes [18:44] have a great weekend! [18:55] PR snapd#3893 opened: many: introduce asserts.NotFoundError replacing both ErrNotFound and store.AssertionNotFoundError === JoshStrobl is now known as JoshStrobl|Work [19:49] PR snapcraft#1277 closed: Handle revoked-uploads case on snap-developer revokes. === CodeMouse92 is now known as CodeMouse92__ [21:05] PR core-build#11 closed: remove cruft from the writable-paths [21:06] PR core-build#11 opened: remove cruft from the writable-paths [21:08] PR snapd#3894 opened: many: fix TestSetConfNumber missing an Unlock and other fragility improvements [21:13] PR snapcraft#1542 opened: tests: add integration tests for build snaps [21:31] PR snapcraft#1428 closed: core: reexec as root for `os` snaps if necessary [21:34] PR snapcraft#1430 closed: tests: enable the snaps installation in armhf [23:16] PR snapcraft#1535 closed: jhbuild plugin: remove dependency on pkgconf [23:16] PR snapcraft#1539 closed: nodejs plugin: expose hidden bin path when using yarn