/srv/irclogs.ubuntu.com/2017/09/08/#snappy.txt

SXXWhy could std::system in my app fail with "Bad system call" when apparmor is in enforce mode?00:06
SXXOh yeah, totally missed one fact.00:06
SXXWhat is the right way to run another app from within same snap package if they require different plugs?00:08
SXXI 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:09
SXXYeah that's was it.00:13
mupPR snapcraft#1414 closed: cmake plugin: call the cmake using build dir as source <Created by elopio> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1414>00:54
zyga-solusgood morning04:48
zyga-solusmvo: hello06:21
zyga-solusmvo: I'm going to walk kids to school one more time today06:21
zyga-solusmvo: but I left you some interesting topics on the forum06:21
zyga-solusmvo: I can also give you a shell on the ppc box in case you get curious to try06:21
zyga-solusmvo: I'll talk to you soon06:22
mupPR snapcraft#1538 opened: tests: update the store failure tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1538>06:22
mvozyga-solus: thanks, see you06:23
mupPR snapd#3885 opened: tests: improve the listing test to not fail for e.g. 2.28~rc2 <Created by mvo5> <https://github.com/snapcore/snapd/pull/3885>06:26
mupPR snapd#3886 opened: tests: make TestCmdWatch more robust <Created by mvo5> <https://github.com/snapcore/snapd/pull/3886>06:36
mvojamesh: hey, I think your polkit PR is good to go if we rename the name from "manage-snaps" to just "manage" for now.06:45
zyga-solusre07:20
zyga-solusmvo: did you see the ppc situation?07:21
mvozyga-solus: yes, "funny"07:25
zyga-solusmvo: what are your thoughts on that?07:25
mvozyga-solus: I think we can trivially get a powerpc snap build, we need to ask for it though, I can not enable it07:25
zyga-solusmvo: I tried to build master but got a lot of errors on get-deps07:25
mvozyga-solus: but I personally think we should kill it07:25
zyga-solusmvo: if you want I can give you a shell on the box07:26
zyga-solusmvo: yes, I agree07:26
mvozyga-solus: oh, really?07:26
zyga-solusmvo: but I'm afraid we cannot kill it in xenial yet :/07:26
zyga-solusmvo: sure, one sec07:26
zyga-solusbrace yourself for irony07:26
zyga-solus# github.com/kardianos/govendor/vendor/golang.org/x/sys/unix07:26
zyga-solus../../kardianos/govendor/vendor/golang.org/x/sys/unix/dirent.go:16:5: error: reference to undefined name ‘isBigEndian’07:26
zyga-solus  if isBigEndian {07:26
zyga-solus(there's 1000s of errors)07:26
zyga-solusthere are* 1000s of errors07:26
zyga-solusthis is just one07:26
zyga-solusI think that x/sys/unix is broken on ppc somehow07:27
mvozyga-solus: hm, strange, I mean, the debs build07:29
mvozyga-solus: and we reverted to dependencies that do not require x/sys/unix iirc07:29
mvozyga-solus: quick review on 3881 would be great, that should fix builds on arm/ppc07:33
zyga-solusgreat, let me look07:33
Chipacao/07:43
ackkhi, I'm hitting https://bugs.launchpad.net/snapd/+bug/1691999, does anyone know what could be causing it?07:45
mupBug #1691999: Snap removal hangs inside LXD container <snapd:New> <https://launchpad.net/bugs/1691999>07:45
zyga-solusackk: hey, I think I know07:49
zyga-solusackk: it's a known issue, there's no fix yet I'm afraid07:50
ackkzyga-solus, uh?07:50
zyga-solusackk: there's a bug report with extra details...07:50
ackkdoes that mean snaps inside lxd won't work?07:50
zyga-solusit works but that part is broken07:50
zyga-solushttps://bugs.launchpad.net/snapd/+bug/171293007:51
mupBug #1712930: snap-confine: mounts happen in the wrong order <snapd:In Progress by zyga> <https://launchpad.net/bugs/1712930>07:51
ackkzyga-solus, can you please mark my bug as duplicate ?07:51
zyga-solussure, which one?07:51
zyga-solusah07:51
ackkthe one I just pasted07:51
zyga-solusdone07:52
ackkzyga-solus, thanks07:53
ackkzyga-solus, unrelated, does snapd keep all old revisions of a snap when it gets updated or is there a limit?07:53
ackkI noticed I have 3 versions of core installed07:53
zyga-solusthat's normal, snapd keeps three revisions of each snap around07:55
ackkah cool, thanks07:55
mvozyga-solus: master is failing on powerpc with new failure modes, its a bit of a whack-a-mole07:59
ogra_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:00
ppisatiogra_: ah! i saw some movement in the kernel snap store08:01
ppisatiogra_: np, just tell me if you need anything08:01
ogra_yeah,. sorry, cachio was desparate since he needed to get core tested08:01
ppisatiogra_: that means it affects all images, right?08:02
Chipacahmm, just had snapmgrTestSuite.TestInstallWithoutCoreTwoSnapsWithFailureRunThrough fail at random08:02
ogra_it was a bad combo ... 6 versions had the brioken fixrtc and the latest one with the fixed fixrtc had the broken shellcheck stuff08:02
ppisatiouch08:02
ogra_ppisati, only the opnes with GPT table ...08:02
ppisatiogra_: ok08:02
ogra_which means well ... only dragonboard or x86 on real devices08:03
ogra_and the latter doesnt get tested at all08:03
ogra_(x86 always only gets tested with qemu and there we dont esize)08:03
ogra_zyga-solus, pong ... :P ... what should i start to build ?08:06
Chipacayouch, that test takes 15s+ even when it passes08:06
ogra_mvo, as i said yesterday already, we have never built on powerpc, only ppc64el ... whats the reason fr suddenly starting to support it ?08:07
zyga-solusogra_: sec, on the phone08:08
=== JoshStrobl is now known as JoshStrobl|zzz
mvoogra_: if we make the "not support it" official we could stop spending time of fixing tests etc08:10
mvoogra_: thats where this comes from08:10
ogra_mvo, it has alwaysd been official08:14
ogra_mvo, we always had 6 arches since day one ... powerrpc hasnt been one of them08:15
mvoogra_: also in the sense that the distro knows that a broken powerpc build does not block a sru?08:15
ogra_i never dealt with the distro srus ... but i know that we never have built core or ubuntu cre or the tarballs for powerpc08:15
ogra_on request of mark initially IIRC08:16
ogra_the only power arch we ever supported was ppc64el08:16
Chipacapedronis: http://pastebin.ubuntu.com/25488612/ might be of interest to you (happens every ~100 runs, here)08:17
ogra_we have 4 arches we build images for (2xarm, 2xx86)  and 2 arches we onyl build core for (s390x and ppc64el)08:17
ogra_and we never built for any other arches ...08:17
ogra_if you want to get powerpc working all of a sudden that will likely take a lot more work to get a proper core08:18
zyga-solusre08:22
* zyga-solus spent too much time on the phone and needs to spend more time with administrativa, sorry08:22
zyga-solusmvo: tests need tweaking08:23
zyga-solusmvo: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/i386/s/snapd/20170907_220303_c073c@/log.gz08:23
zyga-solusmvo: listing tests now fails on the ~rc208:23
mvozyga-solus: check the open PRs ;)08:24
zyga-solusmvo: aha :)08:24
mupPR snapd#3887 opened: snapstate: auto-install missing base snaps <Created by mvo5> <https://github.com/snapcore/snapd/pull/3887>08:24
zyga-solussorry about that :)08:24
mvono worries08:25
pedronisChipaca: ?  it cannot fail that way on 388108:25
Chipacapedronis: this is off master08:26
Chipacaor, yesterday evening's master at least08:26
pedronisChipaca: well we made 3881 related to that08:26
pedronis3881 is a combination of PRs08:27
pedronisto try to make that test saner08:27
pedronisat this point we are more interested if it fails on 388108:27
pedronisnot master08:27
Chipacapedronis: ah ok08:30
Chipacapedronis: i was just running tests on snapstate for the revert work and kept on tripping that one up08:30
pedronistry 3881 please08:30
pedroniszyga-solus: why do you appreciate full sentences in comments ?  that rule is mentioned in effective go for doc comments08:32
Chipacapedronis: as in, rebase on it and carry on doing my thing?08:32
pedronisChipaca: are you trolling again ? :)08:33
pedronisI don't if you can carry08:33
pedronisit might not fix things for you08:33
Chipacapedronis: 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:33
pedroniswhich bug?08:34
Chipacathe panic08:34
mvopedronis: 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 asap08:34
mvoChipaca: panic in snapstate_test.go:77 ? that is fixed with 388108:34
pedronisChipaca: that panic is probably the test taking to long for you08:34
Chipacaok, so no need for me to try it; i can just ignore it08:34
pedronisChipaca: I asked it to try, if you hit the bug you tell us08:35
pedronisChipaca: sorry, it sounded like it was blocking your work08:35
Chipacaah! no08:35
Chipacathis is a little gem from my work:08:36
Chipacas.testRevertTasksFullFlags(flags, flags, flags, flags, c)08:36
* Chipaca grins and carries on08:36
* zyga-solus_ goes to fix the test suite on golang 1.908:41
ogra_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
jameshmvo: 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
pedronisjamesh: we'll just squash merged usually08:42
pedronis*merge08:42
davidcalleogra_: 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 purpose08:45
mvojamesh: thanks, what pedronis said, we will sqush merge and then I can cherry pick for 2.2808:45
davidcalleogra_: btw, are you happy with how the two pi images are described on https://developer.ubuntu.com/core/get-started/raspberry-pi-2-308:45
ogra_davidcalle, perfect ... i hope we can get rid of it eventually :)08:46
davidcalleHeh08:46
Chipacathe expectation, if you have a snap installed in devmode, is that revert with no devmode would leave you still in devmode, right?08:48
Chipacai.e. snap install foo --devmode; snap refresh --edge foo --devmode; sanp revert foo -> is foo installed in devmode?08:48
pedronisI suppose,  but it's a bit of an open question, I mean I have seen it argued differently for other flags at points08:49
pedronissounds something to clarify with Gustavo once for all when he is back08:50
Chipacanow change --devmode to --classic08:50
Chipaca:-)08:50
pedronisyea, I have heard incosistent thing about this over time08:50
pedronisI'm not surprised we do random things08:50
pedronisChipaca: how do you remove --devmode again?08:51
ChipacaI shall comment in the forum topic08:51
Chipacapedronis: --jailmode08:51
ackkI'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
pedronisthat's a flag too though?08:51
Chipacapedronis: the refresh itself without --devmode will drop the flag08:52
pedronisChipaca: how does one get back to all false flags ?08:52
Chipacapedronis: but that doesn't work for jailmode, for example08:52
pedronisChipaca: ah, refresh is flag dropping? but we want to change that area when we allow devmode refreshes08:52
Chipacaonly for devmode08:52
Chipacais it dropping08:52
pedronisbut see, we are changing that08:52
pedroniswhat a mess08:52
Chipaca:-)08:53
Chipacawe need a table08:53
* Chipaca writes a table08:53
pedronisthanks08:53
pedronisI'm keenly intrested because  --ignore-validation shall become sticky and then there are similar questions08:53
pedronishow do you drop it?08:53
ogra_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 needs08:53
pedronisdo we need a 2nd flag08:53
pedronisetc08:53
ogra_ackk, these optins in snapcraft.yaml were a 15.04 thing08:53
ackkogra_, oh, I saw them mentioned on the website doc08:54
ogra_that might be a bug (not sure)08:54
pedronisChipaca: see jocave's comment at the end of this bug:  https://bugs.launchpad.net/plano/+bug/171055208:54
ackkogra_, so, what about https://bugs.launchpad.net/snapd/+bug/1612440 ?08:54
mupBug #1612440: Full systemd socket activation support <lxd> <Snapcraft:New> <snapd:Confirmed> <https://launchpad.net/bugs/1612440>08:54
pedronisChipaca: I mean, we need a table but hopefully users don't need to consult it08:55
ackkogra_, (I was looking at adding the missing keys since we need it for lxd)08:55
Chipacaright, the table is for us08:55
Chipacafor the coding08:55
ogra_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)08:56
=== zyga-solus_ is now known as zyga-solus
ackkogra_, 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 used08:57
ogra_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:57
ogra_this could be among them ... (read: old implementation was dropped, new one doesnt exist yet)08:58
ackkI see08:58
ogra_talk to the snapcraft guys08:58
ogra_and perhaps open a topic on the forum (see channel topic for the link) to get wider coverage08:59
pedronismvo: is the error in tests/main/listing  fixed now? because of ~rc208:59
ogra_i know that for general socket usage we switched over to the network-bind interface ... but i'm not sure that covers socket activation09:00
zyga-solusugh, arch doesn't have "shadow" group anymore09:01
mvopedronis: there is a open PR with the fix09:01
pedronisah09:02
mupPR snapd#3888 opened: osutil: adjust StreamCommand tests for golang 1.9 <Created by zyga> <https://github.com/snapcore/snapd/pull/3888>09:04
pedronismvo: so 3881 has passed travis but has failed many of the other because of the ~rc209:08
pedronismvo: do we just merge it?  merge the rc2 fix and run it again?09:09
mvopedronis: I can just merge it, maybe thats the bets09:15
mupPR snapd#3881 closed: snapstate: give snapmgrTestSuite.settle() more time to settle <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3881>09:18
mvopedronis: best even (sorry, typo)09:19
mvoChipaca: look like 3835 just needs a second review and is good to go…09:27
sborovkovogra_: 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
ogra_sborovkov, even with my pre-built snap ?09:28
ogra_(or if you use my default png in your tree)09:28
* ogra_ needs to go afk for like 20-30min ... brb09:30
zyga-solusmvo: I tweaked 388809:37
zyga-solusforce pushed for easier cherry picking09:37
mvozyga-solus: aha, nice09:38
mvozyga-solus: small comment maybe why we have the "|" in the regexp09:38
Chipacamvo: and a push to tweak the package description as per #388209:38
mupPR #3882: debian: improve package description <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3882>09:38
zyga-solusok09:38
mvozyga-solus: and feel free to force push09:38
mvoChipaca: \o/09:38
Chipacazyga-solus: could yo finish your review of #3835?09:39
mupPR #3835: packaging: bring down the delta between 14.04 and 16.04 <Created by chipaca> <https://github.com/snapcore/snapd/pull/3835>09:39
mvozyga-solus: thanks a lot!09:39
zyga-solusdone09:39
mvolooks like travis is currently slow in giving us jobs :/09:39
zyga-solusmvo: yes09:39
zyga-solusmvo: :/09:39
pedronisalso yesterday09:39
mvoyeah09:39
zyga-solusmust be Friday09:39
pedronisit was Thursday09:40
sergiusensmvo it has been slow for us too09:40
pedroniswe should probably try to merge a bunch09:40
pedronisbefore adding more09:40
zyga-solusmvo: 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
zyga-solusmvo: shadow is not even present on arch and various other users/groups have random values09:40
mvozyga-solus: isn't adm also defined in the FHS or somewhere? but yeah, passwd is a mess09:41
zyga-solusmvo: yes but there's no fixed value09:41
zyga-solusin any case, I can distro-patch for arch for now09:42
zyga-solusand ponder without rush09:42
zyga-solusI need to break for taxes now09:42
pedronismvo: is the snapctl get change in  2.28 ?09:43
pedronisor only edge?09:44
mvopedronis: what change is that?09:44
pedronispstolowski's PR09:44
mupPR snapcraft#1538 closed: tests: update the store failure tests <bug> <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1538>09:47
mvopedronis: you mean 3642? that is master09:47
mvopedronis: do we need it for 2.28?09:47
sborovkovogra_: yeah I tried with default png as well, does not work. Where can I get prebuilt snap? I can try it I guess09:48
pedronismvo: no, but it might have broke stuff09:49
pedronisindirectly09:49
pedronisin which case we might have had a regression09:49
pedronisbut is not yet in 2.2809:49
pedronisanyway09:50
mvook09:51
pedronistravis is very non helpful09:53
sborovkovogra_: ah, right in the bug. Going to try it09:53
pedronismvo: see internal09:54
zyga-suseChipaca: hey, perhaps interesting: https://github.com/posener/complete09:55
zyga-susepedronis: that rule == the rule to use full sentences or not to use them?09:55
pedroniszyga-suse: yes, just curious, as far as I know our non doc comments are all over the place10:03
ogra_re10:10
pedroniszyga-suse: as I said I see it as strict rule for doc comments10:10
sborovkovogra_: alright, it works with your prebuilt snap. thought it does not scale good10:10
ogra_well, i assume you want to use a smaller png anyway :)10:12
ogra_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 such10:12
ogra_i.e. inside the initrd10:13
sborovkovogra_: that's how it looks like btw https://www.dropbox.com/s/2fbdrd8wg4coudj/photo_2017-09-08_13-13-06.jpg?dl=010:14
ogra_sborovkov, heh, you are on a *eally* low resolution :)10:14
ogra_*really10:14
sborovkovogra_: 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 snaps10:15
sborovkovyeah it does not detect that my monitor is 1080p, I have to manuallt adjust hdmi_group and hdmi_mode10:15
ogra_sborovkov, might be that we need to adjust the psplash patch for you to actually default to a lower res ...10:15
ogra_oh, you guys actually tinker with config.txt settings for hdmi10:16
sborovkovogra_: the thing though is that Rpi zero has lower resolution10:16
ogra_that might inded have some influence on what info the framebuffer device gives to psplash10:16
sborovkovoh!10:16
sborovkovinteresting10:16
sborovkovthat's what I have in config.txt10:17
sborovkovone sec10:17
ogra_oour default pi gadgets dont set anything in that regard10:17
sborovkovhttps://hastebin.com/higumepuqa.makefile10:17
ogra_framebuffer_height=010:18
ogra_framebuffer_width=010:18
ogra_framebuffer_ignore_alpha=110:18
sborovkovi need fb_ignore_alpha for sure though10:18
ogra_the png is clearly using an alpha channel ...10:18
ogra_well, and make your own guess about width and height :)10:18
sborovkovqt apps have horrible banding if it's not set10:19
sborovkovalpha is not necessary for us anyway I guess10:19
sborovkovso height and width10:19
ogra_sure, but if there is an alpha channel in the png it will be used i guess10:19
ogra_so when doing your own splash, try to have an alpha-less png10:19
ogra_but i'D start with the width/height fist ...10:20
ogra_*first10:20
ogra_try dropping them in your own build and see if that changes something10:20
sborovkovyup that's what I am trying now10:20
ogra_hmm, also ... hdmi_mode=0 ...10:20
ogra_that might alsoo be a prob10:20
sborovkovhmm10:22
sborovkovI can comment that out as well10:22
ogra_try the width/height standallone first10:22
ogra_that might already solve it10:22
sborovkovok10:22
pedronisChipaca: can you look at #3886 I think it's reasonable but not great (it tests less)10:23
mupPR #3886: tests: make TestCmdWatch more robust <Created by mvo5> <https://github.com/snapcore/snapd/pull/3886>10:23
ogra_if niot we can move ove the other options ... (and then think about hoow to modify psplash to work with your setup)10:23
Chipacapedronis: not right now, sorry10: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 once10:24
Chipacatoo much state10:24
Chipacalater10:24
* ogra_ notes that cherry switches dont seem to be what they used to be ... 10:25
pedronismvo: do we share limits with spread-cron? is it scheduling too much:  https://travis-ci.org/snapcore/spread-cron/builds10:25
sergiusenspedronis I wonder if we are hit by this given we are in the same org...10:33
sergiusensthere is a shared pool of travis runners at the project/repo level, not sure if there is also tie in to the org10:34
=== ShalokShalom_ is now known as ShalokShalom
mupPR snapd#3889 opened: interfaces: mount host system fonts in desktop interface <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/3889>10:46
mvopedronis: that sounds likely actually - we are the same org10:50
sborovkovogra_: 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 though10:52
ogra_sborovkov, that is a "normal" discepancy between uboot and the kernels FAT implementations ... nothing to worry about10:53
ogra_sborovkov, so try dropping more from config.txt10:53
ogra_i'd move on with the hdmi_mode10:53
* zyga-solus lunch10:56
* ogra_ sighs ... 10:59
ogra_i wishh i'd understand why zyga-solus's overzealous quoting broke resize fo GPT's11:00
Chipacaok, i'm stopping for lunch11:12
* ogra_ cries11:12
Chipacahttps://docs.google.com/spreadsheets/d/1jw-hsAK1ymUfpnI7MD7ML7CQcwq0KSBvGw_gf6_TmYM/edit <- if you want to have fun11:12
Chipacawhere "fun" means "gouge your frontal lobe out with a blunt weapon"11:13
Chipaca(there's a forum post in the works to explain that sheet)11:13
ogra_(i know how to fix it but i dont know why it breaks at all in the first place )11:13
ogra_:(11:13
diddledanI'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 normally11:21
diddledanogra_: this is your fault. I'm working on ring11:22
diddledan:-p11:22
ogra_just package it with strace in the snap and add strace to the wrapper script :P11:22
diddledanlol11:22
ogra_diddledan, i fear we have to wait for working dbus activation11:22
diddledanI think that's not quite the right way to do things :-p11:22
Chipacai... might have actually shipped something that ran under strace, once11:22
* Chipaca was young and needed the money11:23
ogra_Chipaca, how good is your shell-quoting-fu ?11:23
Chipacaogra_: 711:23
pedronismmh, travis has this on their status page:  Build delays due to GitHub outage11:23
diddledandamn, I'm only 611:23
diddledangithub?? dead??!11:24
diddledanhttps://www.youtube.com/watch?v=kLzC3nPhUEM11:24
Chipacaogra_: enough to know that "$PATH:${GOBIN:-${GOPATH%%:*}/bin}" is valid sh, but not enough to know not to use it11:24
ogra_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:24
Chipacamhmm11:25
ogra_Chipaca, in case of gpt's resizeopts is unset while for mbr's we have resizeopts="-f"11:25
Chipacayes11:25
Chipacaand11:25
Chipacathat's a bug11:25
Chipacaprobably11:25
ogra_now ... when trying to resize a gpt devices it ends up like:11:26
Chipacabecause, i imagine, resize2fs does not know what to do with an empty argument11:26
ogra_resize2fs 1.42.13 (17-May-2015)11:26
ogra_open: No such file or directory while opening11:26
ogra_and i dont get why11:26
Chipacaogra_: try this: resize2fs ""11:26
ogra_but it isnt an empty argument11:26
ogra_hmm11:26
ogra_ogra@localhost:~$ resize2fs "" /dev/mmcblk1p911:26
ogra_resize2fs 1.42.13 (17-May-2015)11:26
ogra_open: No such file or directory while opening11:26
ogra_ogra@localhost:~$11:26
ogra_wow11:27
* Chipaca bows11:27
ogra_but that looks rather like a bug in resize2fs11:27
Chipacawhy? it's literally being passed an empty string as an argument11:27
Chipacait's perfectly valid to error out on that11:27
ogra_why would it interpret "" ass an arg11:27
diddledanI agree, let them fix it :-p11:27
Chipacaogra_: it's not "interpreting", it's being given that as an arg11:27
ogra_but it isnt even an empty string ... it is a string of zero lenght11:28
Chipacayou're explicitly giving it an empty argument11:28
pedronisthat's who the shell works11:28
pedroniss/who/how/11:28
Chipacaogra_: what is the difference between an empty string and a string of zero length?11:28
ogra_i'd expect the latter to be filtered when parsing args11:29
pedronisthat's not how things works11:29
pedronisusually11:29
diddledanyou need to conditionally include it: https://paste.ubuntu.com/25489423/11:29
ogra_if i'd add " " i'ÄD agree it is an empty string11:29
pedronisthat's not an empty string11:29
pedronisit's a 1-space string11:29
Chipacaogra_: " " is not an empty string ! :-)11:29
Chipacaanyhow!11:29
Chipacalet's move on to how to fix it, yes?11:30
ogra_diddledan, i need/want to add -p anyway for both resize cases (to get better logs), so the fix is clear11:30
ogra_diddledan, my prob is that i dont understand the behaviour11:30
diddledan"" is an empty string - which means it is, in C-style "\0"11:30
diddledani.e. it includes a null termination11:31
ogra_Chipaca, http://paste.ubuntu.com/25489429/ is my fix ...11:31
Chipacaogra_: try this: for i in "" "" ""; do printf "%q\n" "$i"; done11:31
pedronisor try rm ""11:31
pedronisit all works the same11:31
Chipacamhmm11:31
ogra_yeah, you guys are right ..11:32
diddledanputting 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
ogra_(i never use quotes for args ... but shellcheck freaks out if you dont)11:33
ogra_(so i never had to bother with that)11:33
pedronisthat's why quoting is not always the right thing11:33
Chipacaogra_: that's ok, everybody has blind spots11:33
ogra_tell that to shellcheck :P11:33
ogra_if there is a $ it wants a quote :)11:33
Chipacaogra_: you _can_ tell that to shellcheck!11:34
ogra_i know11:34
ogra_anyway, i want more verbosity anyway for the logs, so just adding -p for the gpt case is fine11:34
Chipacaok :-)11:34
pedronisI'm still not sure what adding -p means11:34
pedronisdepending it might not solve the problem11:34
Chipacaprogress, probably11:34
ogra_print all actions11:34
pedronisor create new ones11:34
ogra_it does11:35
Chipacaummm11:35
Chipacaogra_: that does not work either!11:35
ogra_i tested it already11:35
pedronisChipaca: not what it means to resize2fs, more how it's getting added11:35
Chipacabecause there is no option "f -p"11:35
ogra_bah, crap11:35
Chipacaogra_: you want "-fp"11:35
ogra_(i didntz test on mb indeed)11:35
pedronisyou cannot quote multiple args together11:35
ogra_*mb11:35
ogra_BAH11:36
ogra_*mbrr11:36
pedronisthere are various approaches, it all depends11:36
* Chipaca hugs ogra_ 11:36
* Chipaca steals ogra_'s wallet11:36
* ogra_ needs a new kbd ... sniff11:36
ogra_this kbd isnt a year old yet ... but l and o are producing double presses and r is ignored every now and then11:37
Chipacaogra_: take the peanut shells out from under the keys11:37
pedronisthat's also why "$*" and "$@" are not the same11:37
ogra_yeah, that i know11:37
Chipacais the magic expansion of "$@" a bashism, or is that posix?11:38
pedronisso quoting solves some issues, creates other11:38
ogra_thats poosix afaik11:38
Chipacaand if it's posix, does that mean other shells also have arrays?11:38
Chipacabecause arrays would solve the whole thing :)11:38
ogra_only for args i think11:38
Chipacabah humbug11:38
Chipacathis is why people use eval11:39
ogra_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
mupPR core-build#17: switch /etc/systemd/system to "synced" mode <Created by ogra1> <https://github.com/snapcore/core-build/pull/17>11:41
ogra_(i'd like to land that one before the resize fix)11:41
pedronisChipaca: ogra_: is this bash or something else?11:48
ogra_pedronis, posix (ash)11:48
mvoogra_: 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:48
ogra_mvo, i'm not sure what channel kernel snaps use to obtain the initrd, if it is stable then yes11:49
ogra_mvo, i thin Chipaca needs to answer your question on thhe PR ... afaik the dir is empty in the squashfs initially11:50
Chipacame what?11:50
zyga-suseogra_: hmm? GPT? quoting?11:50
ogra_zyga-suse, yep11:51
zyga-susewhat did I do?11:51
ogra_fix is pending, all fine11:51
mupPR snapd#3885 closed: tests: improve the listing test to not fail for e.g. 2.28~rc2 <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3885>11:51
zyga-suseaha, thank you !11:51
ogra_zyga-suse, http://paste.ubuntu.com/25489461/ line 29 ...11:51
* mvo grumbles about the amount of travis slots we get11:52
ogra_zyga-suse, in GPTs the resizeopts var is unset ... the quoting turns it into an empty arg though11:52
ogra_Chipaca, https://github.com/snapcore/core-build/pull/1711:52
mupPR core-build#17: switch /etc/systemd/system to "synced" mode <Created by ogra1> <https://github.com/snapcore/core-build/pull/17>11:52
jdstrandzyga-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 exist11:52
cjwatson"" around $ is an excellent heuristic, but you need to use judgement.  doesn't shellcheck have a way to override it?11:52
zyga-susejdstrand: in addition the values of shadow and daemon are not constant11:53
mupPR snapd#3886 closed: tests: make TestCmdWatch more robust <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3886>11:53
ogra_cjwatson, it does ... but i want the var set in the other case too so it is fine11:53
jdstrandzyga-suse: if 'daemon' is not '1', then we need to use FindGid() for it like we do with shadow in main_test.go11:53
ogra_cjwatson, my prob was that i didnt understand the fact that "" becoomes an empty arg that gets actually parsed11:53
zyga-susejdstrand: yes, I think that's a simple fix11:53
jdstrandzyga-suse: if shadow isn't present at all, what is the group for /etc/shadow on arch?11:54
cjwatsonif you spend any time working with shell I strongly recommend spending some time understanding how argument handling actually works11:54
zyga-susejdstrand: root.root11:54
zyga-susejdstrand: well, root to answer your question11:54
jdstrandwell, that's goofy11:54
ogra_cjwatson, well, before we added shellcheck everywhere i didnt even have the idea to quote in that place11:54
cjwatsonyeah but this is quite basic stuff :)11:54
* zyga-suse recalls that "someone is wrong on the internet" thing11:54
cjwatsonspecifically with relation to the underlying libc's argv handling11:55
jdstrandzyga-suse: ok, so then on arch, in template.go, we make 'shadow' distro-specific11:55
jdstrandzyga-suse: let me put that another way11:55
zyga-susejdstrand: I'd just use something else, like bin or daemon11:55
jdstrandzyga-suse: I figured that some distros would use a different group for /etc/shadow11:55
* zyga-suse listens11:55
cjwatsonshellcheck is absolutely right about this quoting policy in general11:56
mupPR snapcraft#1539 opened: nodejs plugin: expose hidden bin path when using yarn <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1539>11:56
jdstrandzyga-suse: sorry, interfaces/builtin/account_control.go11:56
zyga-susejdstrand: aha, I see, that part needs to get smarter11:57
zyga-susejdstrand: what happens if we add two seccomp arg filtering rules?11:58
jdstrandzyga-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
zyga-susejdstrand: yeah, that's doable11:58
zyga-suseugly but necessary11:58
jdstrandzyga-suse: it isn't ugly11:58
zyga-susewell, ugly as in "it's ugly we need this"11:58
jdstrandzyga-suse: it is what is needed to handle cross-distro11:58
jdstrandwell, yes, it would be nice if 'shadow' was standardized, sure11:59
zyga-suseI'll make that patch and once it lands upstream I'll put it into 2.27.611:59
ogra_cjwatson, well, i think using allags="-a -b -c"; command $allargs... is not actually uncommon11:59
jdstrandwe're going to see more and more of this sort of thing when cross-distro becomes strict11:59
jdstrandsome 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 this12:00
cjwatsonogra_: Sure, but it's an exception compared to general use of $-expansions12:00
ogra_indeed12:01
pedronisthat where eval is useful sometimes12:01
pedronisit reparses12:01
ogra_yep12:01
cjwatsonIME once you get to that point it's time to rewrite in a language that lets you control the argument list explicitly12:01
cjwatson(and I've written a *lot* of shell - I'm not against its use in principle)12:01
jdstrandzyga-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
jdstrandzyga-suse: the latter seems best12:02
zyga-susejdstrand: I agree12:02
pedroniswell shellcheck recommendation basically are based on everything coming from the outside12:02
zyga-susejdstrand: I tried several simpler things but went nowhere and realized this needs to be really dynamic12:02
jdstrandzyga-suse: with those small changes, you should be all set12:02
* zyga-suse is a bit sleepy today and nervous about doing taxes for the first time in $eons12:03
ogra_is spain tax-free country ?12:03
zyga-suseogra_: I'm back in Poland now12:03
jdstrandzyga-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
zyga-suseogra_: managing my own business12:03
ogra_zyga-suse, yeah, but didnt you do taxes in spain ?12:03
zyga-suseogra_: yes but I now have to do them in two places12:04
pedronismvo: are you going to revisit #3865 ?12:04
mupPR #3865: many: provide systemd.MockSystemctl() helper <Created by mvo5> <https://github.com/snapcore/snapd/pull/3865>12:04
zyga-suseogra_: my monthly taxes are now in Poland12:04
ogra_ouch12:04
zyga-suseogra_: and my yearly taxing will be done in Spain, this one time12:04
zyga-suseogra_: then next year just here12:04
ogra_oh my12:04
pedronisdouble taxes are not fun12:04
zyga-susenot double in the typical word, I only get taxed once12:04
* ogra_ guesses you could pay someone doing them for you 12:04
zyga-susebut I must complete the yearly cycle in Spain12:05
zyga-suseas I'm a spanish resident despite being here now12:05
zyga-suseit's decided by the number of days per year one inhabits a given country12:05
mvoogra_: 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 useful12:05
zyga-suseogra_: it's not like most people know and I wanted to learn how this works a little bit12:05
jdstrandzyga-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 lot12:05
mvopedronis: I though I did, let me look at this again12:05
ogra_mvo, no, i'm fine12:05
zyga-susejdstrand: I need something basic for now so that unit tests on arch pass again12:06
zyga-susejdstrand: there's been a wave of updates there12:06
ogra_mvo, just waiting for an answer from Chipaca on the PR and then i'll prepare the resize one12:06
pedronismvo: there are a few small comments by me and a conflict12:06
zyga-susejdstrand: golang 1.9, pulseaudio 11, tons of stuff12:06
Chipacaogra_: on which pr?12:06
ogra_(and roll up the deb and do a core ebuild etc etc)12:06
mvopedronis: yeah, sorry for this, either I forgot to push or I was dreaming that I already fixed it. on it now12:06
ogra_<ogra_> Chipaca, https://github.com/snapcore/core-build/pull/1712:06
mupPR core-build#17: switch /etc/systemd/system to "synced" mode <Created by ogra1> <https://github.com/snapcore/core-build/pull/17>12:06
jdstrandzyga-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
jdstrandzyga-suse: fun!12:07
zyga-susejdstrand: I think distro go is nicer and mirrors our approach for packages in spread tests (also centralized)12:07
zyga-susejdstrand: though I wonder if we should just stat files in specific modules12:07
zyga-susejdstrand: and not build and maintain large tables12:07
zyga-susejdstrand: I'll start small, just to fix unit tests12:07
zyga-susejdstrand: I'll re-think this when I look at the interface problem12:08
Chipacaogra_: like so?12:08
ogra_??12:08
zyga-susejdstrand: note that especially for arch where things move all the time and it might be root.shadow before I land this ;)12:08
ogra_ah, GH is slow updating12:08
jdstrandzyga-suse: for pulseaudio, I suspect that would just be additional rules (that is what we would do in abstractions/audio, for example)12:08
zyga-susejdstrand: I need to see what changed first, note that arch doesn't support apparmor yet so not everything is broken12:09
zyga-susedarn, I just realized why I'm sleepy12:09
zyga-suseI was so sleepy I made ... chocolate milk instead of coffee12:09
jdstrandzyga-suse: stat would certainly be the most dynamic, but I'm not sure I care for that12:09
zyga-susejdstrand: care as in you'd rather not see it or you don't mind seeing it but there's no urgency?12:10
jdstrandzyga-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 matches12:10
jdstrandmaybe that could work...12:10
zyga-susejdstrand: is the seccomp bytecode generator smart to combine rules?12:11
zyga-susejdstrand: and if so, what is the join function, AND or OR?12:11
jdstrandzyga-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 go12:11
zyga-susejdstrand: say we allow chown root; chown shadow12:11
zyga-susejdstrand: how does that behave/combine12:12
* zyga-suse nods on jdstrand's point about urgency12:12
jdstrandzyga-suse: think of it more like a list to match against12:12
zyga-suseaha, so OR?12:12
pedronissounds like we need the system key stuff mvo was working on12:13
pedronisto do that though12:13
jdstrandI don't think it is implemented as a join function but if you want to think of it as OR, then ok12:13
ogra_Chipaca, followup question ...12:14
zyga-susepedronis: yes, that's a possiblility12:14
ogra_(on the P)12:14
ogra_*PR12:14
mvopedronis: I can resurrect this work12:14
jdstrandzyga-suse: because it is a list to match against, we have to be careful with '-' in the policy12:15
jdstrandzyga-suse: eg chown - u:root -12:15
jdstrandzyga-suse: that would allow chown to any group12:16
zyga-suseright12:17
zyga-suseessentially * swallowing "root"12:17
jdstrand'-' can be thought of a glob, yes12:18
jdstrandbut, all that comes as part of PR review12:18
jdstrandjust don't use '-' for arch and we'll be fine :)12:18
ogra_mvo, is the explanation on the PR fine with you ?12:19
jdstrandzyga-suse: curious, what uid/gid is daemon in arch? in solus? in suse?12:20
zyga-susejdstrand: 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/gid12:20
jdstrandseem*12:20
mvoogra_: fine with me12:21
* ogra_ merges12:21
mupPR core-build#17 closed: switch /etc/systemd/system to "synced" mode <Created by ogra1> <Merged by ogra1> <https://github.com/snapcore/core-build/pull/17>12:22
jdstrandzyga-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.go12:23
jdstrandzyga-suse: is that and shadowGroup() something you want me to do or are you on it?12:24
zyga-susejdstrand: daemon, on openSUSE is 2, on solus is 6 and on arch it is 212:25
zyga-susejdstrand: sorry, arch took a while to boot12:25
zyga-susejdstrand: and on fedora...12:25
jdstrandinteresting12:25
zyga-susejdstrand: yeah, I'd really welcome some standardization but then again, data migration is a pain12:26
pedronismvo: github says the conflict is still there12:28
mupPR core-build#18 opened: fix resize for GPT, be more verbose for logging <Created by ogra1> <https://github.com/snapcore/core-build/pull/18>12:28
mvopedronis: oops, one sec12:28
ogra_mvo, ^^^ the resize fix12:28
mvoogra_: heh, like how this is fixed12:29
ogra_;)12:29
mvopedronis: 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 hours12:30
mupPR snapd#3890 opened: overlord: use overlord.Mock in more tests, make sure we check the outcome of Settle <Created by pedronis> <https://github.com/snapcore/snapd/pull/3890>12:32
ogra_zyga-suse, mind to sign off https://github.com/snapcore/core-build/pull/18 ?12:33
mupPR core-build#18: fix resize for GPT, be more verbose for logging <Created by ogra1> <https://github.com/snapcore/core-build/pull/18>12:33
pedronismvo: :/12:33
zyga-suseogra_: what is '-p' being passed to? what does it do?12:34
mupPR snapd#3891 opened: daemon: reach for Overlord.Loop less thanks to overlord.Mock <Created by pedronis> <https://github.com/snapcore/snapd/pull/3891>12:35
ogra_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
pedronismvo: there are also unit tests problems on that branch12:36
jdstrandzyga-suse: was that 'yeah' for me to do the work?12:37
pedronismvo: funnily artful-i386 is quite fast at running unit test12:37
jdstrandzyga-suse: note that for daemon, we don't have the same problem as with shaodw-- it will exist everywhere12:37
zyga-susejdstrand: 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 fine12:38
zyga-susejdstrand: I will carry it as a distro patch there to bake12:38
jdstrandzyga-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 line12:38
zyga-susejdstrand: yes, fortunately :)12:38
jdstrandzyga-suse: the other users will all be the ones managed by snapd, so no problem12:39
zyga-suseogra_: commented on the PR now12:40
* ogra_ sighs deeply 12:42
mvopedronis: yeah, I noticed and should be good now as well, I will double check though12:43
zyga-suseogra_: hint hint: https://github.com/snapcore/core-build/blob/master/initramfs/testing/aaa-tests.py12:45
zyga-suseogra_: try writing a real test12:45
mupPR snapd#3892 opened: systemd: add systemd.MockJournalctl() <Created by mvo5> <https://github.com/snapcore/snapd/pull/3892>12:45
zyga-susewell, a real unit tests12:45
pedronismvo: still failing:  FAILgithub.com/snapcore/snapd/overlord/snapstate/backend [build failed]12:49
pedronisor github confused me again12:49
mvopedronis: probably legit, I need more tea12:51
Chipacamvo: pedronis: stdup?13:02
Chipacapedronis: oh hi13:02
pedronismvo: standup?13:03
mvopedronis: yes omw13:03
mupPR core-build#18 closed: fix resize for GPT, be more verbose for logging <Created by ogra1> <Merged by ogra1> <https://github.com/snapcore/core-build/pull/18>13:05
sborovkovogra_: damn ittttt. issue is not in config.txt. Something going wrong when psplash.img is built13:20
sborovkovogra_: tried everything with config.txt options13:20
ogra_sborovkov, weird13:20
sborovkovthen I just replaced my psplash.img13:20
sborovkovwith yours13:20
sborovkovand splash showed up13:20
ogra_hmm13:21
ogra_sborovkov, how are you building ?13:22
ogra_on a PC ?13:22
ogra_or natively onm the pi13:22
sborovkovon a pc, inside docker container13:22
sborovkovxenial-amd64 is used as an image13:23
ogra_well, that should result in the same binary13:23
sborovkovit is not13:23
ogra_lzcat psplash.img | cpio -i13:24
ogra_do that for both (in different tmpdirs, else one overwrites the other)13:24
ogra_and check the psplash binay with "file"13:24
sborovkovMy version: - 472 blocks - file output: psplash.img: LZMA compressed data, streamed ;  your version: 471 blocks; same file output13:25
ogra_no13:25
ogra_the uncompressed img ... you want to see the binary indside13:26
ogra_"lzcat psplash.img | cpio -i" will unpack it13:26
sborovkovalright, one moment13:27
ogra_the img is actually an initrd that we merge in ram with teh actual initrd.img when uboot loads it13:28
diddledanogra_: 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 now13:28
ogra_i have a slight suspicion that the cross build code doesnt work for you and you end up with an x86 binary13:28
sborovkovogra_: your version has bin directory, mine has bin executable at the top level13:29
ogra_oohh ?13:29
ogra_thats interesting13:29
ogra_https://github.com/snapcore/pi3-gadget/pull/13/files has "cp psplash initrd/bin"13:30
mupPR pi3-gadget#13: add splash support <Created by ogra1> <https://github.com/snapcore/pi3-gadget/pull/13>13:30
sborovkovcp psplash initrd/bin13:30
sborovkovyeah :-)13:30
ogra_so why does it not end zup there13:30
sborovkovthere is no such directory?13:30
sborovkovthat's why it copies to file?13:31
ogra_it should fail and scream and shout13:31
ogra_if that dir isnt theer13:31
sborovkovwell it does not - Priming psplash ;Snapping 'screenly-pi3'; is all I get at the end13:32
ogra_do you have the psplash subdir in your source ?13:32
sborovkovno errors/warnings13:32
sborovkovyeah13:32
ogra_in that there should be an initrd subdir ... including bin13:32
sborovkovthere is no bin directory there13:32
sborovkovinitird only13:32
ogra_oh13:33
ogra_well, there should be a bunch of dirs13:33
ogra_not nly bin13:33
ogra_also scripts13:33
ogra_did you perhaps miss a git add when merging ?13:33
sborovkovthere is script directory13:34
diddledanin other news, I've discovered systemtap13:34
diddledan^^^ it helped me narrow down where the failure was occuring so I could investigate the sauce (tomato)13:35
sborovkovogra_: https://github.com/ogra1/pi3-gadget/tree/master/psplash can't see bin here?13:35
ogra_there shhouldl be psplash/initrd/bin (empty), psplash/initrd/scripts/init-top/ORDER and psplash/initrd/scripts/init-top/psplash13:35
sborovkovthere are psplash/initrd/scripts/init-top/ORDER and psplash/initrd/scripts/init-top/psplash13:35
sborovkovno bin13:35
ogra_hmm13:36
sborovkovogra_: I have your repo checked out13:36
sborovkovthere is no bin as well13:36
ogra_yeah13:36
ogra_why deos that work for me then13:36
jdstrandroadmr: hi! can you take a look at https://forum.snapcraft.io/t/unexpected-output-from-click-review/2031/613:37
roadmrjdstrand: I'm on it, fighting !*$% kibana to get the output13:38
roadmrjdstrand: it's the same snap I reported some days ago, remember?13:38
diddledanis 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:38
roadmrjdstrand: 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:39
davidcallepstolowski: https://github.com/CanonicalLtd/snappy-docs/pull/98 for you13:40
mupPR CanonicalLtd/snappy-docs#98: Refresh the whole page, add install and remove hooks <Created by caldav> <https://github.com/CanonicalLtd/snappy-docs/pull/98>13:40
ogra_sborovkov, sorry ... i simply added a mkdir to snapcraft.yaml now before copying ... pull my tree again13:40
roadmrjdstrand: 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:40
cachiomvo, 2.28.2 is on beta?13:44
sborovkovogra_: np, good thing we found the issue now13:51
ogra_sborovkov, yeah, that would have bitten me badly when merging the branch in ... thanks !13:52
* Chipaca hunts for tea13:52
jdstrandroadmr: hmm13:53
pstolowskidavidcalle, will do, thanks!13:55
roadmrjdstrand: 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:55
pedronispstolowski: just noticed that AddPlug/Slot is also used in interfaces/ifacetest so cannot be moved to export_test.go but is not used a lot13:56
pedronisas we said, so should be ok to change it a bit13:56
jdstrandroadmr: this snap unpacks really big: 1.9G13:58
jdstrandroadmr: could it have run out of space?13:58
roadmrjdstrand: oh, that's a possibility. Let me check13:59
roadmrjdstrand: we did not get any low-space alerts though13:59
ogra_ppisati, initrd fixes have landed in the PPA, can you trigger a rebuild for pc-kernel and dragonboard-kernel ?13:59
jdstrandroadmr: I think I'm going to see if I can't output json with every error14:00
jdstrandroadmr: I won't be able to finish that today though14:00
ppisatiogra_: ack14:02
ogra_thx14:02
roadmrjdstrand: no problem, we're not seeing this frequently (only those 3 cases for this snap over the past 7 days)14:02
pstolowskipedronis, yes14:03
jdstrandroadmr: it is also taking *forever* to complete the review (running it here under the review-tools snap)14:03
roadmrhow so? time to decompress?14:03
jdstrandroadmr: wonder if there was an OOM14:03
jdstrandroadmr: now, python3 process taking a long time14:05
roadmrok14:05
* ogra_ takes a break14:05
jdstrandroadmr: well, *forever* is strong. less than 10 minutes14:06
sborovkovogra_: yay, I can see the splash. it does not like my picture for some reason and draws white line on it but whatever14:07
cjwatsonjdstrand: 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 it14:07
mvocachio: yes, 2.28~rc2 is in beta14:07
cjwatsonjdstrand: at this point it is what it is and there's not much to be done14:07
cachiomvo, yes, I already started beta validation for this one14:07
mvocachio: great, thank you!14:07
jdstrandcjwatson: 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
jdstrandactual code*14:09
* zyga-ubuntu found the history lesson interesting14:10
zyga-ubuntucjwatson: is this a big old accident or was it deliberate?14:10
cjwatsonzyga-ubuntu: accident14:10
jdstrandif it is 20 years old, that is kinda interesting14:11
cjwatsonzyga-ubuntu: the LSB people tried to standardise a single value and realised they couldn't14:11
zyga-ubuntuI find it curious with new distros that are not derivatives, like solus14:11
jdstrandguessing the LSB was documenting what was out there already and didn't want distros to have to change the uid for daemon by choosing one14:11
cjwatsonI don't know why Solus picked a different value, but eh, 3 values isn't particularly worse than 214:11
zyga-ubuntucjwatson: lol, yes, that's just makes it official14:12
zyga-ubuntuthu shall not have constants14:12
cjwatsonjdstrand: exactly, and uids/gids are more or less unchangeable14:12
* jdstrand nods14:12
zyga-ubuntubut fedora did change the default user uid from 500 to 1000 a while back14:12
zyga-ubuntuthough I understand that has smaller impact (none)14:12
cjwatsonthat's very different, and I bet they didn't attempt to migrate existing data14:13
zyga-ubuntuyes, it was just on new installs14:13
roadmrjdstrand: all 4 app units have ~40GB of free space14:13
cjwatsonmigrating 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
jdstrandhehe14:13
zyga-ubuntuhehe14:13
cjwatsonhm, no, maybe 199914:14
zyga-ubuntuguess microsoft had some ideas with uuid based account IDs14:14
zyga-ubuntucjwatson: is it really that old without reinstall?14:14
cjwatsonyes14:14
zyga-ubuntucjwatson: if so I find that really impresisve14:14
jdstrandroadmr: 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 future14:14
cjwatsonreinstalling would be a ton more work than upgrading14:15
zyga-ubuntucjwatson: is it running debian?14:15
cjwatsonyes, first installed with pre-release potato-ish I believe14:16
roadmrjdstrand: thanks.14:16
cjwatsonfirst pre-release Ubuntu images were built on it14:16
mupPR snapd#3797 closed: daemon: allow polkit authorisation to install/remove snaps <Created by jhenstridge> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3797>14:17
jdstrandah, potato14:18
roadmrjdstrand: potato???14:19
roadmrahh!14:19
roadmrI see. nm me14:19
sborovkovogra_: 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 Idk14:23
SuperJonotroni 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 on14:30
SuperJonotronat 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 testing14:31
ChipacaSuperJonotron: as far as I know most ubuntu core devices don't ship network manager14:33
Chipacasome do though14:33
ChipacaSuperJonotron: 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
SuperJonotronChipaca: 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 issues14:34
roadmrjdstrand: 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 that14:34
SuperJonotronif 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 boot14:35
SuperJonotronit's failing to resolve dns but once it boots the dns is perfectly fine14:35
SuperJonotronnmcli setting static and leaving dhcp on my second port does not have this issue but does lose static ip's when unplugged14:35
ChipacaSuperJonotron: 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 help14:36
ChipacaSuperJonotron: also so that if somebody else has the same problem they find the fix :-)14:36
ChipacaSuperJonotron: however, nmcli is a network manager client, isn't it? if you don't have network manager, how does it even?14:37
SuperJonotronChipaca: 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 tell14:38
ChipacaSuperJonotron: https://forum.snapcraft.io14:39
ChipacaSuperJonotron: i doubt the url you pasted has anything to do with ubuntu core14:39
SuperJonotronChipaca: 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 NetworkManager14:41
ChipacaSuperJonotron: there is no network manager in core14:41
Chipacaunless you've installed a snap of it14:41
Chipaca(in which case you'd know)14:41
SuperJonotronChipaca: 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 installed14:44
SuperJonotronthis 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 unplugged14:45
ChipacaSuperJonotron: those are the docs for network manager14:45
ChipacaSuperJonotron: you do not have network manager14:46
jdstrandroadmr: 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 bits14:46
ChipacaSuperJonotron: 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
roadmrjdstrand: yeah :( thanks... hopefully we'll get to the bottom of this.14:47
SuperJonotronChpaca: 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 exists14:48
ChipacaSuperJonotron: did you try "sudo console-conf"?14:53
ChipacaSuperJonotron: (on the core device)14:53
SuperJonotronChipaca: it works but doesn't work for my solution since I need a non-interactive solution so it can be interfaced with via software14:55
Chipacasigh14:57
sborovkovogra_: 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=sharing14:57
ChipacaSuperJonotron: in what way do you need it interfaced with via software? what software?14:58
SuperJonotronChipaca: 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 on15:01
SuperJonotronChipaca: the software is Niagara15:02
ChipacaSuperJonotron: that sounds like something that needs full access to the device15:04
ChipacaSuperJonotron: also sounds like something that should be decided at the model level, but that's neither here nor there15:04
ChipacaSuperJonotron: 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 forum15:05
ChipacaSuperJonotron: 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 fun15:06
SuperJonotronChipaca: it will in fact be designed to run with UC16 on a specific hardware model series15:06
Chipacaunless netplan can already do the things you need, that is :-)15:06
SuperJonotronChipaca: 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 far15:06
SuperJonotronI am currently writing a forum post on the topic15:07
ChipacaSuperJonotron: thank you15:07
ChipacaSuperJonotron: i look forward to learning the source of the instability you experience15:07
Chipacabut15:07
Chipacanext week15:07
Chipacabecaue I think i'm going to EOD now15:07
Chipacamvo, 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 online15:08
Chipacao/15:08
pedronisChipaca: have fun15:08
Chipacano15:08
Chipacaafter this week, what i need is _boring_15:08
Chipacai'll take a 1x1 sudoku game with me15:08
Chipaca:-)15:09
ogra_sborovkov, interesting, i doont have such a line on any of my installs15:10
sborovkovogra_: 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 there15:12
ogra_sborovkov, looking at psplash.c i see http://paste.ubuntu.com/25490573/15:12
ogra_namely SPLIT_LINE_POS15:13
sborovkovinteresting why is it even needed there15:13
ogra_sborovkov, you dont need psplash-snap, you want vt.handoff=0 and have your UI only call chvt 1 after the UI is up15:13
ogra_then you wont have a visible switch15:14
sborovkovok, then I will try that15:14
ogra_(that is ... *if* the UI can start without the frambuffer being visible)15:14
ogra_sborovkov, well, happy you have it working now, i guess the rest is simply fixes that we'll manage over time15:15
sborovkovyeah :-) 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:18
ogra_well, in the low-res setup your image is also not vertically centered15:19
ogra_i bet there is some simple math thhat goes wrong and the split line would actually be supposed to be off sceen15:19
ogra_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:21
sborovkovok cool, thanks a lot for assistance15:22
ogra_np :)15:22
* ogra_ really loves to work on that splash stuff :)15:22
sborovkovactuaslly15:22
sborovkovno need for chvt 115:23
ogra_nice !15:23
sborovkovjust tried vt.handoff - splash went away when our ui came up15:23
ogra_perfect15:23
ogra_cachio, fyi dragonboard resize is nwo fixed in edge,beta and candidate with the latest kernel snap15:26
ogra_*now15:26
ogra_(just tested here ... http://paste.ubuntu.com/25490624/ )15:27
cachioogra_, nice15:36
cachioogra_, THANKS15:37
=== cachio is now known as cachio_lunch
sborovkovogra_: 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:44
itsfemme[m]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
itsfemme[m]https://en.wikibooks.org/wiki/Grsecurity/The_RBAC_System#PaX_Flags15:51
ogra_sborovkov, yeah, i'll lok on the weekend if i can put something into the main psplashh patch for it15:56
ogra_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 here15:57
ogra_(i doubt anyne has yet run snapd with a gsecurity kernel that also has all the right patches for snap support)15:58
mupPR snapcraft#1540 opened: plugins: extract python finder functions <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1540>16:09
smoserhey. if i have a snapcraft.yaml, but i need a build-package (or stage-packages) from somewhere other than xenial , is that possible ?16:29
smoserspecifically, libjson-webtoken-perl is not available in xenial16:30
naccsmoser: building on lp, you can specify where to build. But i'm not sure you can specify one dep come from a specific release16:32
smosernacc, thanks16:34
smoserthats kind of what i thought16:34
naccsmoser: 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:35
smoserwell, 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:38
naccsmoser: yeah16:39
naccsmoser: we recently swtiched git-ubuntu over to artful for this reason (we needed newer versions)16:39
mupPR snapcraft#1541 opened: [WIP] Debug fake store in travis <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1541>16:45
=== cachio_lunch is now known as cachio
ogra_smoser, worst case there are always scriptlets to ise wget and dpkg -x ;) snapcraft.yaml is extremely hack friendly16:57
ogra_*to use16:57
smoserogra_, thanks. i hdnt known of scriptlets17:04
posiIs 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:00
pedronismvo: I'm saying strange error in core transition tests, I wonder if we didn't consider some interaction with the prereq code18:16
pedroniss/saying/seeing/18:17
=== JoshStrobl|zzz is now known as JoshStrobl
mvopedronis: reproducable? or in some random tests?18:37
mvopedronis: eh, random runs in travis18:38
pedronismvo: it's not even  a transition tests but I'm seeing TestSetConf taking more thant 10 minutes, and  ensureCoreTransition is in the goroutines18:38
pedronismvo: I thought it was a test that I touched but no18:38
pedronismvo: here's the log18:39
pedronismvo: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/amd64/s/snapd/20170908_125944_bd802@/log.gz18:39
* mvo looks18:39
pedronisit's a weird one18:39
pedronisthat branch doesn't touch daemon (the next one does, and anyway that test isn't changed in the next either but irrelevant)18:39
mvopedronis: hm, strange indeed18:41
mvopedronis: I investigate monday18:44
* mvo vanishes18:44
pedronishave a great weekend!18:44
mupPR snapd#3893 opened: many: introduce asserts.NotFoundError replacing both ErrNotFound and store.AssertionNotFoundError <Created by pedronis> <https://github.com/snapcore/snapd/pull/3893>18:55
=== JoshStrobl is now known as JoshStrobl|Work
mupPR snapcraft#1277 closed: Handle revoked-uploads case on snap-developer revokes.  <Created by psivaa> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1277>19:49
=== CodeMouse92 is now known as CodeMouse92__
mupPR core-build#11 closed: remove cruft from the writable-paths <Created by mvo5> <https://github.com/snapcore/core-build/pull/11>21:05
mupPR core-build#11 opened: remove cruft from the writable-paths <Created by mvo5> <https://github.com/snapcore/core-build/pull/11>21:06
mupPR snapd#3894 opened: many: fix TestSetConfNumber missing an Unlock and other fragility improvements <Created by pedronis> <https://github.com/snapcore/snapd/pull/3894>21:08
mupPR snapcraft#1542 opened: tests: add integration tests for build snaps <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1542>21:13
mupPR snapcraft#1428 closed: core: reexec as root for `os` snaps if necessary <Created by sergiusens> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1428>21:31
mupPR snapcraft#1430 closed: tests: enable the snaps installation in armhf <Created by elopio> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1430>21:34
mupPR snapcraft#1535 closed: jhbuild plugin: remove dependency on pkgconf <bug> <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1535>23:16
mupPR snapcraft#1539 closed: nodejs plugin: expose hidden bin path when using yarn <bug> <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1539>23:16

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!