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

=== chihchun_afk is now known as chihchun
=== JoshStrobl is now known as JoshStrobl|zzz
=== chihchun is now known as chihchun_afk
mupBug #1652262 changed: subiquitycore exception in controller.run <snappy> <Snappy:Fix Released> <subiquity (Ubuntu):Fix Released> <https://launchpad.net/bugs/1652262>04:16
mupPR snapcraft#1552 opened: tests: replace the mosquitto demo test with a snapd integration test <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1552>04:51
mvoppisati: could you please trigger a new kernel build for edge? I pushed a bugfix for ubuntu-core-initramfs-tools recently07:25
mvoogra_: you showed me a bunch of empty revision dirs under /snap/core some days ago (iirc). could you pastebin that again? I was looking into this this morning but I haven't managed to reproduce it yet (and the code seems to be doing the right thing). so I'm curious to learn more how this is happening07:35
mvozyga-ubuntu: I wonder if we need to look at the issue that we need to make /snap shared again for lxd. iirc there was this issue that the mounts happen before we run snap-confine for the first time to do the shared mount magic07:38
mvozyga-ubuntu: you wanted to look if we can do something with namespace, we may need a brute force approach with an early mount unit07:38
zyga-ubuntumvo: right, I was thinking about it last night; I wanted to mention that it also happens on 14.04 so it's relateively easy and painless to interate on07:44
zyga-ubuntumvo: I haven't had the time to try though, I'm iterating on the feedback from jamie now07:44
mvozyga-ubuntu: ok - my approach would be a mount unit similar to the one we have in 14.04 - but that is very heavy handed and may get tricky as we need to run it after /snap is mounted but before anything under /snap/* is squashfs mounted, so the right before= is tricky07:48
mvozyga-ubuntu: also please check https://github.com/snapcore/core-build/pull/21 and https://github.com/snapcore/core-build/pull/22 if you have a moment, should be painless07:49
mupPR core-build#21: Release 0.7.43+ppa23 <Created by mvo5> <https://github.com/snapcore/core-build/pull/21>07:49
mupPR core-build#22: unit testing for sync_dir() <Created by mvo5> <https://github.com/snapcore/core-build/pull/22>07:49
zyga-ubuntumvo: maybe we need After on actual units?07:49
zyga-ubuntu(mount units we create)07:49
zyga-ubuntumvo: ok07:49
mvozyga-ubuntu: yeah, that would work I think, we just need to make sure we rewrite existing ones (I don't think we do this currently)07:50
zyga-ubuntumvo: no, we don't07:50
zyga-ubuntumvo: I'd strongly enourage us to try SyncDir thing for that07:51
davidcallesergiusens: hey, so you know, we are still following up on the deployment of the latest dn, I'll ping you when it's resolved07:51
mupPR core-build#21 closed: Release 0.7.43+ppa23 <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/core-build/pull/21>07:51
zyga-ubuntumvo: as it has the "ensure" property of patching up broken state07:51
* mvo nods07:52
zyga-ubuntumvo: the tests look ok, I'm wondering if you tried using the VM-based tests that would run this in the real initrd07:53
mvozyga-ubuntu: I did, but got stuck seting up the right environment for this07:54
zyga-ubuntumvo: I see, what was the main difficulty?07:54
mvozyga-ubuntu: also travis is broken since the VM based tests got merged, I'm looking at this right now07:54
zyga-ubuntumvo: oh? It passed earlier07:54
zyga-ubuntumvo: (I mean, it did go green before this was merged)07:54
mvozyga-ubuntu: maybe I did not try hard enough, but I need to simulate the /writable and core snap changes so that sync dir can be tested, setting up changes in the core snap in /etc was were I got stuck07:55
zyga-ubuntutest init process did not signal boot-ok07:56
mvozyga-ubuntu: please check https://travis-ci.org/snapcore/core-build/builds07:56
mvozyga-ubuntu: maybe coincidence, I just started looking at this07:56
mvozyga-ubuntu: aha, did you retrigger it?07:57
mvozyga-ubuntu: the first actual failure is much later in #4107:57
mupPR #41: add X-Ubuntu-Wire-Protocol to the headers <Created by mvo5> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/41>07:57
pedroniscore#4107:57
mupPR core#41: limit the version string to 32chars (this is what the store allows) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/core/pull/41>07:57
zyga-ubuntumvo: I re-started older test jobs that got cancelled07:57
mvozyga-ubuntu: and please don't get me wrong, the iqemu tests are nice, just seems to be not nice for my particular test07:57
zyga-ubuntumvo: we'll see when it stated failing (hopefully)07:57
mvozyga-ubuntu: aha, nice07:58
mvocore-build#4107:58
zyga-ubuntumvo: no worries, I just wanted to understand what was hard. I agree that it would be easier to do some of those tests with more of the system around (writable disk or SD card)07:58
mvothanks pedronis, looks like mup does not know about core-build07:58
mvozyga-ubuntu: I also looked briefly at the gpt regression bug and how to test that but that looks really tricky to unit test :(07:59
mvozyga-ubuntu: *but* I think we should have a spread test for this, I will ponder a bit how to test it07:59
zyga-ubuntumvo: yes07:59
zyga-ubuntumvo: I think both would not hurt :)07:59
mvo+107:59
mvozyga-ubuntu: silly question, but do you know why the tests did not run on core-build?08:00
mvo(or why they were canceled)08:01
zyga-ubuntumvo: no, no idea08:01
zyga-ubuntumvo: I just did a test on my machine, clean tree, VM tests passed08:02
zyga-ubuntumvo: everything does fail with: test init process did not signal boot-ok08:02
zyga-ubuntumvo: let me push a pr that runs tests in verbose mode08:02
zyga-ubuntumvo: hmmmm, why there's no travis here: https://github.com/snapcore/core-build/pull/23 ?08:05
mupPR core-build#23: tests: treat --verbose as -v <Created by zyga> <https://github.com/snapcore/core-build/pull/23>08:05
mupPR core-build#23 opened: tests: treat --verbose as -v <Created by zyga> <https://github.com/snapcore/core-build/pull/23>08:05
zyga-ubuntuah, it just showed up08:06
mvozyga-ubuntu: interessting08:07
ppisatimvo: i guess, every kernel08:08
zyga-ubuntumvo: https://travis-ci.org/snapcore/core-build/builds/275784391?utm_source=github_status&utm_medium=notification ??!08:09
mvozyga-ubuntu: "test init process did not signal boot-ok" - at least it is concistent, ie #27 also failed with the same error08:10
mvozyga-ubuntu: is it supposed to show more output? maybe its just slow? how much time does it have for this signal?08:11
zyga-ubuntumvo: I found the issue08:11
mvoppisati: thank you, please let me know when new edge kernel is available and I will test right away08:12
zyga-ubuntuhttps://travis-ci.org/snapcore/core-build/builds/275784391#L217808:12
zyga-ubuntumvo: fixing that now08:12
zyga-ubuntumvo: cpio was in the middle of a pipe so the erorr was silent08:13
ppisatimvo: ack08:13
zyga-ubuntumvo: I pushed it back to my PR08:13
zyga-ubuntumvo: it passed now08:18
zyga-ubuntumvo: so whatever caused cpio to get yanked from the image we chroot into won't affect us anymore08:19
zyga-ubuntumvo: please merge https://github.com/snapcore/core-build/pull/23 for happiness08:19
mupPR core-build#23: tests: treat --verbose as -v <Created by zyga> <https://github.com/snapcore/core-build/pull/23>08:19
phil_m@zyga-suse, @zyga-ubuntu, @zyga: great accomplishment with Manjaro and Snappy08:23
nothalphil_m: No such command!08:23
zyga-susephil_m: I'm still working on opengl support but snapd proper works ok08:24
phil_mok, so what was the problem?08:24
phil_mif some is needed to be changed within the kernel, we can do that also08:25
zyga-susephil_m: so far none, the patch I cherry picked had different sum than the one from the URL, maybe it was corrupt there?08:25
zyga-susephil_m: would you be interested in cherry-picking apparmor support into the manjaro kernel like solus did?08:25
phil_mah ok.08:25
zyga-susephil_m: this would give you apparmor confinement08:25
phil_mI've to see about appamor08:26
zyga-susephil_m: the patch against 4.14 should be small now, 4.15 will have everything but I think we missed the window with some patches08:27
zyga-susephil_m: do you have the apparmor userspace tools packaged?08:28
phil_mwell, we had apparmor in our distro but removed it: https://github.com/manjaro/packages-core/issues/4908:29
mvozyga-suse: ta08:29
zyga-susephil_m: I see I have to add one more patch to cmd.go,08:29
mupPR core-build#23 closed: tests: treat --verbose as -v <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/core-build/pull/23>08:29
phil_msince you have full write access to our community packages git repo you can also add the needed patches directly if you like.08:30
zyga-susephil_m: thank you, should I discuss this with other manjaro developers before proposing PRs?08:31
phil_mna, not needed08:32
zyga-susephil_m: thank you, I'll plan what is the best course of action08:32
phil_mwe are open and since you know better about snapd you can push it directly08:32
phil_mhowever one of our maintainers has to package it.08:32
zyga-susephil_m: please stick around and let's chat periodically about what else might be needed08:32
phil_msure, no problem in that.08:32
zyga-susephil_m: that's great, I'd love to co-maintain the package if that's okay08:33
phil_msure, why not. we have to see how we can do that properly.08:33
zyga-susephil_m: and if the main packager could be here or on the forum (or both) for release coordination, that would be perfect08:33
phil_myou can always ping me via email if needed or write in github that a new release needs to be packaged08:34
zyga-susephil_m: thank you! I'll definitely stay in touch08:34
phil_mit should be packaged then on the same day with a small delay08:34
phil_msince we are not Arch we are more open for new packages if they make sense.08:35
zyga-suseyes, we have a release cycle that has a moment when the package is in testing and once we are happy across the spectrum of systems we mark it as stable08:35
zyga-susethank you :-)08:35
phil_mwe also have some kind of release cylce with each package. we use branches and move them when ready to the next one.08:35
zyga-susewhere can I read about that?08:36
pedronisI noticed we never marked this  https://forum.snapcraft.io/t/interface-connection-from-gadget-in-firstboot/1431 as backlog, fixed now08:37
phil_mmore or less in our forum or wiki08:37
phil_mhttps://wiki.manjaro.org/index.php?title=Repositories_and_Servers08:37
phil_mtesting gets updated mostly every second day.08:37
phil_munstable daily and stable in weekly basis08:37
zyga-susephil_m: I think this matches snapd release cycle well, we are trying to (still trying though) make a reliable mothly cycle08:41
phil_mhttps://manjaro.github.io/homepage/public/features/background/08:42
phil_mthis is a simply page explaining how we manage our packages08:42
pedronismvo: let me when you want to chat about what's left for repairs08:43
mvopedronis: I'm finishing a small branch, then I should be ready so ~30min or so (depending a bit on how tests look)08:48
phil_mzyga-suse: looking good so far according to your screens ;)08:49
pedronismvo: ok08:49
zyga-suseyes :)08:49
zyga-susephil_m: though I need to investigate two things before I call it good08:49
phil_mna, no pressure08:50
phil_mtake all the time you need08:50
ogra_mvo, http://paste.ubuntu.com/25539231/09:03
mvoogra_: and all empty except the last ~3 ones, right?09:05
mupPR snapd#3920 opened: snap-confine: improve error message if core/u-core cannot be found <Created by mvo5> <https://github.com/snapcore/snapd/pull/3920>09:05
zyga-ubuntumvo: nice, thank you09:07
mvozyga-ubuntu: thanks for the quick review!09:07
zyga-ubuntudarn09:08
ackkmvo, hi, I'm not really  sure what failed on https://github.com/snapcore/snapd/pull/3916, is it just flakiness in tests setup?09:08
mupPR #3916: add support for socket activation in apps <Created by albertodonato> <https://github.com/snapcore/snapd/pull/3916>09:08
zyga-ubuntua bird just landed next to my window and I even have a camera standing by for that occasion but it ... flew away before I got the shot09:09
mvoackk: yeah, the test failure looks not related to your code09:18
ackkmvo, can you restart just that build? or it doesn't matter for the review?09:18
mupPR snapcraft#1553 opened: lxd: instructions for /etc/sub{u,g}id after failed start <Created by kalikiana> <https://github.com/snapcore/snapcraft/pull/1553>09:18
ashwindHey, I see that GPIO pins cannot be accessed via a snap. Is this correct? I have a sensehat (https://www.raspberrypi.org/products/sense-hat/) connected a Pi3 via GPIO pins. I would like to obtain readings from those sensors via a python application. If this possible with a python app captured in a snap?09:22
zyga-ubuntuashwind: hey, is your snap using the right interfaces? is it a service running as root or a command running as your user?09:24
ashwindI haven't fully implemented to snap yet.09:25
ashwindI just saw that gpio pin access is restrcted09:25
ashwindhttps://snapcraft.io/docs/reference/interfaces09:25
zyga-ubuntuashwind: using the right interface you can definitely use GPIOs09:26
ashwindoh awesome, please advise09:26
zyga-ubuntuashwind: the way this works is that a given snap can be given rights to use a restricted interface09:26
zyga-ubuntuashwind: implement your snap as you would normally09:26
ashwindok done09:27
zyga-ubuntuashwind: installation instructions for a given device should show how to connect the right GPIO pins correctly09:27
zyga-ubuntuashwind: for specific devices this will be available as a gadget feature (the gadget can pre-connect things correctly)09:27
zyga-ubuntuashwind: auto-connect is not that useful for GPIOs because there are typically plenty of them09:27
zyga-ubuntu(and you get access to specific pins, not to all of them in general)09:28
zyga-ubuntuand because this differs from device to device and auto-connect logic is not smart enough to know which one is the right one09:28
ogra_mvo, yeah09:32
ogra_mvo, well, actually *all* empty ...09:33
mvoogra_: hm? even current?09:34
ogra_yes09:34
ogra_ogra@anubis:~/datengrab/pi3$ sudo ls -l /root/snap/core/current09:35
ogra_lrwxrwxrwx 1 root root 4 Sep 13 22:59 /root/snap/core/current -> 292509:35
ogra_ogra@anubis:~/datengrab/pi3$ sudo ls -l /root/snap/core/current/09:35
ogra_insgesamt 009:35
mvoogra_: ok, so there is something else going on, that explains why I can't reproduce it probably09:35
ogra_thhis system has been usinng snaps since day one, but there is no ubuntu-core dir theer09:36
mvoogra_: and this is on the running system?09:36
ogra_thats my desktop macine09:36
ogra_*machine09:36
mvoogra_: ohhhh, these are your data dirs09:37
ogra_(so yes)09:37
mvoogra_: sorry, I misunderstood09:37
ogra_right09:37
ogra_well ... roots data dirs09:37
pedronisdidn't we have a complicated discussion about removing those09:37
ogra_not hamful, just wasting inodes ... but still ugly09:37
pedronisthey are not easy to find across distros09:38
pedronisand root indeed in a special case09:38
pedronisI think we look only for /home/* atm09:38
ogra_you mean /root isnt root in soome distros ?09:38
pedronisno that homedirs are not quite in the same place09:38
ogra_(why do we even create them ?)09:38
ogra_are they relevant for anything ?09:39
pedronisprobably they get created when we run the configure hook?09:39
ashwindzyga-ubuntu: so i implemented my snap to be of type "app", do i need to change it to "gadget"? I see a pi3-gadget git repo https://github.com/snapcore/pi3-gadget/blob/master/snapcraft.yaml, how does this relate?09:39
ogra_i dont think core would ever wite to them09:39
pedronisor maybe we are not lazy at all09:39
pedronisdon't remember09:39
pedronismvo: I'm around if you want to chat btw, let me know09:41
ogra_looking at /root/snap core os the only snap with that behaviur09:41
ogra_*core is09:41
mvopedronis: yeah, one minute and I'm ready09:41
pedronisogra_: I suspect it's a consquence of running the configure hook09:42
ogra_all other packages remove the dirs on uninstall/refresh09:42
pedronisatm09:42
ogra_might be that this is what creates them ... but the bug seems to be in te emove code09:42
ogra_*remove09:42
pedronisas I said  the remove code does only /home/*/snap/...09:42
pedronisafaik09:43
pedroniswe discussed improving it09:43
pedronisbut I think it was postponed09:43
pedronisand root ends up like this09:43
ogra_yeah, it isnt critical or anything09:43
mvopedronis: I have a look, looks trivial to include /root as a speical case09:43
mvoeven if not perfect09:43
ashwindzyga-ubuntu: hmm let me read up, thanks!09:49
phil_mzyga-suse: I'd to go. Keep me updated via email on the snappy progress on Manjaro. If needed I can package it, when done.09:50
zyga-ubunture09:57
zyga-ubuntuashwind: no, you should keep your snap as "app"09:58
zyga-ubuntusorry i was on the phone09:58
ogra_hmm, do we have any dir in /run that a dameon can write to and that i can see as normal user ?10:07
zyga-ubuntuogra_: $XDG_RUNTIME_DIR perhaps but not sure10:08
ogra_zyga-ubuntu, well, that seems tio be hidden from the otside world (or being deleted when i exist "snap run --shell"10:10
ogra_)10:10
ogra_but i found a solution ...10:11
=== JoshStrobl|zzz is now known as JoshStrobl
ogra_zyga-ubuntu, your initrd tests make everything in core-build explode ...10:39
ogra_$ $CHROOT_RUN sh -c 'cd build/initramfs/testing; LC_ALL=C.UTF-8 ./aaa-tests.py --verbose'10:39
ogra_warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]10:39
ogra_test init process did not signal boot-ok10:39
ackkmvo, so one thing I'm not totally sure about that PR for socket activation is whether it's better to keep the socket-mode as a string or an integer10:44
mvoogra_, pedronis: fwiw, I am poking a bit at the user data thing for root/ and I think I'm on a good course10:44
ogra_yay10:44
ackkmvo, declaring it as an int in the snapcraft schema makes it render in the snap as decimal, not octal10:45
mvoackk: yeah, I would prefer a string for this reason, unless there is yaml magic to make it render in the natural 0xxx notation10:45
ackkmvo, ok, then I can just revert the last commit (I had initially it as a string)10:46
mvoogra_: I think its even buggy in the forward-data copy case for root :/ anyway, I am looking10:46
* zyga-ubuntu -> lunch10:46
mvoackk: sounds good, we will also need input from niemeyer on your socket activation PR as it touches the yaml and we need sign off for that :)10:46
zyga-ubuntuogra_: pull master10:46
zyga-ubuntuogra_: it was fixed now10:47
ackkmvo, ok10:47
ogra_zyga-ubuntu, well, i'm looking at master tests ... but if it is fixed now it is fine10:48
ogra_zyga-ubuntu, mvo how did you guys get travis to do anything again ? it hasnt even started tests for a while10:49
zyga-suseogra_: it started instantly for me10:50
zyga-suseogra_: no idea10:50
zyga-suseogra_: maybe it hasn't been merged, there should be a PR open10:50
zyga-suseogra_: please look, I'm trying not to starve today10:50
ogra_well it timed uot waiting fr starting the tests fr like 2 months now10:50
ogra_unrealated to the tests ... travis never started at all10:51
ogra_so someone has done something too make travis actually start again10:51
zyga-suseogra_: I started about a dozen jobs on core-build today10:51
ogra_zyga-suse, right i did that nce a week for the last few weeks but travis only timed uot before even starting10:52
ogra_something has changed that suddenly allows it to run tests again ... did we pay extra $$$ ?10:52
zyga-susenope, perhaps just smaller load10:52
ogra_well, then better watch snapd now ... if it is load related we migth steal cycles from other snapcore trees10:53
ogra_:)10:53
ogra_(this is not what i understand as reliable CI :P )10:54
zyga-susefree, reliable, nice,10:55
zyga-susepick two10:55
ogra_haha10:55
mupPR snapd#3866 closed: many: implement fetching sections and package names periodically <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/3866>11:08
* Chipaca dances11:08
Chipacaalso, glad to have been into london yesterday and not today11:08
* Chipaca dances a bit more11:08
* zyga-ubuntu hugs Chipaca 11:14
zyga-ubuntubarbaric times we live in11:14
* zyga-ubuntu resumes coding11:25
ackkmvo, updated that PR, fwiw11:47
pedronismvo:  added a couple comments, some we already discused to the snap-repair list/show PR11:54
ogra_zyga-ubuntu, mvo, can we agree that "release" PRs in core-build simply get merged (i saw you guys did an actual review, i think this is pointless given it is only a changelog entry, the actual changes have been reviewed before anyway)12:03
ogra_(and if the changelog is broken the loacla dpkg-buildpackage would error anyway and you couldnt upload)12:03
ogra_*local12:03
ogra_i.e. https://github.com/snapcore/core-build/pull/2112:04
mupPR core-build#21: Release 0.7.43+ppa23 <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/core-build/pull/21>12:04
ogra_(reviews just waste time here IMHO)12:04
ogra_indeed only if it is just the changelog bump :)12:05
zyga-ubuntuogra_: well, I think it's good for spotting typos but I agree in general; given that those should be reviewed very quickly I wouldn't change much thoug12:06
ogra_well, lets say they are "optional" then :)12:07
cachiomvo, hi12:11
cachioin rc3 it is failing to uninstall the network-manager12:11
cachiofor db and pi312:11
cachioI can reproduce it running test tests/regression/lp-1606277 and then any other test12:12
mvocachio: thanks, what is the error output?12:13
cachiomvo, https://paste.ubuntu.com/25540183/12:14
cachioit works fine for example on pi212:14
cachiobut for pi3 and db we get the same error12:14
ogra_well, both have wlan12:15
ogra_while pi2 doesnt12:15
ogra_the log isnt really helpful since it only shows the final timeout after snap remove n-m12:16
ogra_did you check what happens when you manually install/configure/remove n-m on such a device ?12:16
mvocachio: hm, I would bet syscall filtering related, could you paste the dmesg output?12:16
cachiomvo, give me 5 please12:16
mvocachio: oh, hold on, its dying on rmeove, right?12:16
cachiomvo, yes12:17
mvocachio: in this case ogra_ may have a better theory, still the dmesg/syslog output will be helpful12:17
ogra_i guess it cant deconfigure the wlan device properly12:17
mvocachio: also, does reverting core fix it? wonder if it might be n-m related but the last stable is ~5 weeks old it seems so that is unlikely12:18
cachiomvo, give me 5 please, I am running the tests with -debug12:20
mvocachio: thank you, no rush :)12:21
mupPR snapd#3921 opened: interfaces: updates for default, browser-support, desktop, opengl, upower and stub-resolv.conf <Created by jdstrand> <https://github.com/snapcore/snapd/pull/3921>12:24
jdstrandmvo: fyi, ^12:26
jdstrandmvo: and hi! :)12:26
mvojdstrand: nice, thank you. and good morning!12:28
cachiomvo, dmesg https://paste.ubuntu.com/25540261/12:35
cachioogra_, for you too :)12:37
cachiothis is the syslog when the error happened https://paste.ubuntu.com/25540285/12:40
=== cachio is now known as cachio-
ogra_cachio_, can we get the full syslog without the tail -50 ?12:47
cachio_yes12:48
ogra_"Failed to initialize control interface '/run/wpa_supplicant'.#012You may have another wpa_supplicant process already running or the file was#012left by an unclean termination of wpa_supplicant"12:48
mupPR #12: Bugfix/lp1480248 test reenable <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/12>12:48
ogra_that looks suspicious12:48
ogra_boo ... mup12:49
mupPR snapd#3922 opened: snapstate: deal with snap user data in the /root/ directory <Created by mvo5> <https://github.com/snapcore/snapd/pull/3922>12:50
* Chipaca reads http://schd.ws/hosted_files/ossna2017/91/Linuxcon%202017%20NERF.pdf and doesn't know if he should show it to ogra_, or hide him from it12:51
cachio_ogra_, https://paste.ubuntu.com/25540337/12:52
mvozyga-ubuntu: the error in 3920 is very confusing12:53
mvozyga-ubuntu: no /snap/core/current on core12:53
Chipacasergiusens: http://www.nbu.gov.sk/skcsirt-sa-20170909-pypi/12:53
ogra_cachio_, there you go ... the wlan got configured by systemd-networkd already (via some netplan setup i guess) ... i assume that is why n-m gets confused12:53
Chipacasergiusens: could/should snapcraft warn about that?12:53
mupPR snapd#3923 opened: asserts,cmd/snap-repair: represent RepairID internally as an int <Created by pedronis> <https://github.com/snapcore/snapd/pull/3923>12:53
pedronismvo: ^12:53
zyga-ubuntumvo: are we hit by a bad build of core?12:53
mvopedronis: nice12:55
mvozyga-ubuntu: not sure, I try to reproduce now12:55
sergiusensChipaca about what?12:56
* sergiusens doesn't know who anyone is with lacking avatars ;-)12:57
ackkit is at all possible to install a lxd local snap? I get permission denied messages when it starts about reading /proc/self/attr/current and running aa-exec12:57
ackk(I did connect the lxd-support plug)12:57
cachio_ogra_, that could be the reason, do you need any other log'12:58
cachio_''12:58
cachio_?12:58
ogra_cachio_, well, not sure what to do here ... did your testing change that it leaves the wlan netplan config in place before installing nm where it didnt do that before or some such ?12:59
ogra_nothing should have changed on core or in n-m in that area in ages12:59
Chipacasergiusens: about a list of evil fake/typo packages in pypi13:00
cachio_ogra_, no13:00
Son_Gokuzyga-ubuntu: base-ish snaps for Fedora, openSUSE, and Mageia on demand: https://gitlab.com/Conan_Kudo/snapcore-mkrpmdistcoresnap/pipelines/11803392 :D13:00
* zyga-ubuntu hugs Son_Goku 13:06
zyga-ubuntuone small step for snap13:06
Son_GokuI need to rewrite the tool to use the DNF API instead of the CLI (better control over the solver)13:06
Son_Gokubut it's a doing it13:07
sergiusensChipaca oh, I think pip and PyPI itself should warn about that!13:08
Son_Gokuzyga-ubuntu: note that it won't produce bootable core snaps either :(13:11
ogra_cachio_, as a hack/workaround you could simply try to remove the file in /run or kill wpa_supplicant before installing n-m or some such13:12
ogra_this is clearly not a use case we support (having two config mechanisms manage the same device)13:12
ogra_mvo, ^^^ ?13:12
ogra_it is either netplan or network-manager ... (netplan has a specific config option for this to hand off management of the device to n-m)13:14
ogra_https://wiki.ubuntu.com/Netplan has info about this13:18
ogra_you will need to switch the renderer option before installing n-m13:19
mvoogra_: thanks, I was in a meeting. btw, PR with the fix for your /root/snap/ stuff is up. unfortunately it will not cleanup the past but at least it should stop doing so from now on (well, $now==when-it-gets-merged)13:29
ogra_mvo, well, it is just cosmetic anyway13:30
mvoogra_: sort of, there is a real bug there too, the userdata of /root does not get copied forward on refresh - so its good that you brought it up13:30
ogra_heh, great13:31
pedronismvo: I'm super confused,  in my branch go vet seems to think the RepairID() is still a string in some places but test pass13:31
cachio_ogra_, ok, i'll see how to rewrite that test in this case13:32
cachio_thanks13:32
ogra_cachio_, well, it shouold have failed before, interesting that it did not13:32
ogra_also ... the n-m snap should probably be fixed to not steal an already otherwise managed interface13:33
cachio_ogra_, perhaps it is a new test13:33
cachio_i'll research a bit on that13:33
ogra_ah13:33
zyga-ubuntuSon_Goku: bootable snaps are further down the line13:34
zyga-ubuntuSon_Goku: I would be happy with a working base13:34
=== Guest28588 is now known as ^arcade_droid
pedronismvo: niemeyer: I'm getting this (stalled run/no ouput):  https://travis-ci.org/snapcore/snapd/builds/275875794?utm_source=github_status&utm_medium=notification13:56
pedronisthere is nothing super interesting in the PR13:56
pedronisafaict13:58
mupPR snapd#3924 opened: asserts,cmd/snap-repair: introduce a mandatory summary for repairs <Created by pedronis> <https://github.com/snapcore/snapd/pull/3924>13:58
mvopedronis: strange, I saw this in some other PR recently too but it seems to be very rare13:58
pedronismvo: I got it twice in a row13:58
niemeyerpedronis: Can't think of any reasonable reason13:59
niemeyerpedronis: Ah, now I can14:00
niemeyerpedronis: We have 100% utilization right now14:00
niemeyerpedronis: On Linode14:00
niemeyerInterestingly, a lot of machines are running for ~1h14:01
niemeyerEvery machine I click, actually14:01
niemeyerThis is below the halt timeout14:02
niemeyerAnd above what Travis would accept14:02
niemeyerSomething strange happening with Travis...14:03
niemeyer"Ran for 5 hrs 29 min 42 sec"14:04
niemeyerI don't think that's true, somehow :)14:04
ogra_niemeyer, i have that since weeks for the less frequently changing trees like core-build and core ... it will eventually time out with no results14:04
ogra_(the tests dont even start)14:05
niemeyerhttps://usercontent.irccloud-cdn.com/file/wHpSvg9Y/image.png14:06
ogra_pedronis, see my discussion with zyga-ubuntu above (around 12:50)14:06
ogra_the verdict was:14:07
ogra_zyga-suse> free, reliable, nice,14:07
ogra_<zyga-suse> pick two14:07
ogra_<ogra_> haha14:07
ogra_:P14:07
niemeyerDefinitely something bogus happening there.. look at this screenshot14:07
niemeyerIt merged two independent runs together14:07
ogra_oh14:07
ogra_thats definitely more than i get14:07
ogra_it doesnt even produce a log14:07
niemeyerogra_: These cases are generally Travis being busy14:08
ogra_looks more like a hang with the test itself somehow14:08
niemeyerogra_: Either in general, or with our own project (too much activity, long queues)14:08
ogra_yeah14:08
ogra_one can usually work around by pulling the tree and PR into a user fork and have the tests run there then14:09
ogra_i guess it is because it is tied to the snapcore organization14:09
* zyga-ubuntu -> coffee14:14
niemeyerpedronis: Something else is wrong.. found machines allocated by those stale Travis jobs.. they are there, allocated and sitting idle14:19
niemeyerI'm finding evidence that the machine was updating too14:20
niemeyerInstalling things that spread requested, likely14:21
niemeyerYeah..14:21
niemeyerThe best theory at the moment is that there was overutilization, machines were taking a while to actually allocate, and that cause them to go over the 10 mins without output of Travis, which meant they were killed while the machines were allocated, which caused more overutilization, and the problem cycles14:24
niemeyerIn a few minutes we'll over our 2h halt timeout threshold.. let's see what happens14:25
ogra_is anyone living close to the github datacenter so he could watch out for an atomic cloud ?14:29
mupPR snapd#3925 opened: snap-repair: implement `snap-repair {done,skip,retry}` <Created by mvo5> <https://github.com/snapcore/snapd/pull/3925>14:36
=== cory_fu_ is now known as cory_fu
niemeyerIf the theory above is confirmed, I think we should lower the halt timeout14:42
=== ikey is now known as ikey|work
niemeyerNo, something else must be causing those issues:14:51
niemeyerhttps://usercontent.irccloud-cdn.com/file/n6Bkt5zj/image.png14:52
niemeyerIt froze mid-way through.. the only thing that might justify that is a bug in spread, or a bug in Travis14:52
niemeyerSpread would definitely display a warning if it was taking too long, and it's hard to believe that would happen in all 20 machines anyway, after they're already allocated14:53
niemeyerThe fact we're getting this issue across multiple runs just now would hint at a problem on the infra side instead of Spread14:53
=== ShalokShalom_ is now known as ShalokShalom
mupPR snapd#3926 opened: snap: implement `snap {repair,repairs}` and pass-through to snap-repair <Created by mvo5> <https://github.com/snapcore/snapd/pull/3926>15:03
mupPR snapd#3921 closed: interfaces: updates for default, browser-support, desktop, opengl, upower and stub-resolv.conf for 2.28 <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3921>15:05
mvocachio_: any news about the network-manager issue ? mostly curious15:11
cachio_mvo, no, ogra has a theory15:11
cachio_mvo, seems to be a conflict between network-manager and netplan15:12
cachio_mvo, if it is true, we should see what to do with those tests on pi3 and db15:13
cachio_because when it fails, it breaks the wifi connection so i loose the conectivity15:13
mvocachio_: aha, do we have a newer netplan in the newer core, could this be the reason? and does the problem go away with an older go?15:15
=== cachio_ is now known as cachio_lunch
cachio_lunchmvo, not sure15:15
cachio_lunchwe could try to create an image with the old one15:16
mvohm, looks like the last netplan upload happend a while ago so not super likely15:16
mvoor just snap refresh --stable core15:16
mvoand run the particular test again15:16
ogra_mvo, that test should have never been un like it does atm15:16
cachio_lunchmvo, is this network-manager test old? perhaps there was a  change in the snap that is affecting the tests15:16
ogra_mvo, if nplan manages the interface n-m can not ... if you want nplan and n-m to work together yu need a special nplan config that sets the renderer to n-m15:17
ogra_mvo, see the renderer stuff at https://wiki.ubuntu.com/Netplan15:17
ogra_mvo, the point here is though that n-m should ignore ine interface if nplan manages it, but it doesnt ... or that nplan needs a changed config that actually switches too the rigtht renderer ... now dont ask me why it only fails now15:18
mvoogra_: well, that may well be, but why are things failing now and not before?15:19
ogra_i have no idea really ... was that est always there ?15:19
ogra_*test15:19
ogra_or was it just recently added15:19
mvoogra_: the test is old, but the test does not deal with n-m, something in prepare is dealing with it and the question is also why15:19
ogra_all i can say is that it is completely wroong as it is now15:19
mvocachio_lunch: the full test output might be nice, i.e. what tests ran before this one15:20
ogra_mvo, well, the interface is aleady configured by systemd-networkd at the point the n-m install runs15:20
ogra_so what prepare does seems to be to generate a nplan systemd-networkd config15:21
ogra_and then blindly install n-m on top15:21
ogra_which results in having two tools wrangle over the ownership15:21
ogra_and n-m uninstall n-m tries to stop wpa_supplicant but does not own the file in /run so it cant really stooop it and hanfs15:22
ogra_*hangs15:22
mvoogra_: hm, that is interessting - is there a way to make this work, i.e. telling nm to not ouch the already-managed interfaces?15:23
ogra_not anymore, but nplan can swirtch to the n-m renderer and reconfigure the device15:23
ogra_n-m used too have an ignore thing in the past for ifupdown ... but i think thats gone15:23
mvoogra_: hm, that sounds not ideal, I think I will switch the test to not run on the db then15:24
ogra_yeah15:24
ogra_same for the pi315:24
ogra_the prob is that you need an interface at all to actually install n-m ... so there needs to be an initial configuration15:24
ogra_and you can only switch the config once n-m is there ... by then they are already fighting over ownership though15:25
mvook15:28
mupPR snapd#3927 opened: tests: only run tests/regression/nmcli on amd64 <Created by mvo5> <https://github.com/snapcore/snapd/pull/3927>15:28
ogra_mvo, is the same test unning on x86 ?15:29
ogra_(i wonder why it doesnt fails therer if it gets run there)15:29
* ogra_ goes and loks up where he can get single chery MX switches to fix his o and r on the kbd15:31
pedronismvo:  did you see my small comments in the snap-repair list/show PR ?15:36
niemeyerI don't know what to take from this Travis issue..15:41
bschaeferogra_, so fun work around, manually unpack the overlayfs into system-boot (AlbertA found this)15:41
niemeyerI'll take the kid to school and be back to investigate more15:41
ogra_bschaefer, overlayfs ? you mean overlays.tgz ?15:41
bschaeferyeah15:42
ogra_bschaefer, that kind of points to a discrepancy between gadget and kernel snap on your device then15:42
ogra_which is weird15:42
bschaeferyeah AlbertA hit the same issue as well after a core upgrade15:42
ogra_can you paste me the "snap list" output from your pi ?15:43
bschaeferogra_, http://paste.ubuntu.com/25541086/15:44
AlbertAogra_: it seems somehow after core upgrade15:44
bschaeferive not seen kernel or gadget update for this last week15:44
bschaeferbut core upgrades everyday15:44
AlbertAthat partition gets corrupted and you get a bunch of fsck record files15:44
AlbertAand "overlays" folder disappears15:44
ogra_AlbertA, well, the gadget carries the original overlays and the kernel carries the verlays.tgz15:44
ogra_URGH!15:45
ogra_now thats completely different15:45
ogra_so your system-boot partition gets trashed15:45
bschaeferyeah i had a bunch of *.rec files15:45
ogra_well, i can reproduce it here now but i dont have a trashed partition15:46
ogra_ogra@localhost:~$ ls -l /dev/dri15:46
ogra_ls: cannot access '/dev/dri': No such file or directory15:46
bschaeferogra_, this started umm15:46
* bschaefer gets version15:47
ogra_ogra@localhost:~$ ls -l /boot/uboot/overlays/|grep -v dtb15:47
ogra_total 17215:47
ogra_ogra@localhost:~$15:47
ogra_i only have dtb files in there ... and als no other trace of fsck issue15:47
bschaeferthe upgrade to 2291315:48
bschaefer2913*15:48
bschaefera few days ago15:48
ogra_well, it is unrelated t cre itself15:48
ogra_*core15:48
bschaefero hmm seemed like the only thing changing15:48
ogra_a core update updates your bootlader config15:48
mupPR snapd#3919 closed: interfaces: updates for default, browser-support, desktop, opengl, upower and stub-resolv.conf <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/3919>15:48
ogra_the fsck might be related t that update ... but not to any content of core15:49
AlbertAogra_: yeah it doesn't look like the whole partition is trashed...15:49
ogra_but the other thing is that i can properly repro it here but without any corruption or fsck issues15:49
AlbertAonly "overlays" dir for some reason15:49
ogra_theer must be some difference between kernel and gadget dtbs if extracting the overlays helps15:49
bschaeferi could still boot/ssh into it and move around15:49
bschaeferand install snaps etc15:50
bschaeferdidnt see anything else wrong with the fs15:50
AlbertAbschaefer: ogra_: right I can still boot up the device just no VC4 is available (as expected since "overlays" dissapears)15:50
AlbertAand this was without installing any snaps...simply flashed a fresh image (the one from yesterday), booted, core upgraded, rebooted. Then after a second reboot15:51
AlbertAI see the issue15:52
ogra_right ... me too15:52
ogra_but without any corruption in my case15:52
AlbertAoh interesting15:52
ogra_ogra@localhost:~$ tar xf /snap/pi2-kernel/current/dtbs/overlays.tgz15:53
ogra_ogra@localhost:~$ diff -ruN /boot/uboot/overlays/vc4-kms-v3d-overlay.dtb overlays/vc4-kms-v3d-overlay.dtb15:53
ogra_ogra@localhost:~$ md5sum /boot/uboot/overlays/vc4-kms-v3d-overlay.dtb15:53
ogra_43ee3abf64b77fc3ba837817a7eb51f8  /boot/uboot/overlays/vc4-kms-v3d-overlay.dtb15:53
ogra_ogra@localhost:~$ md5sum overlays/vc4-kms-v3d-overlay.dtb15:53
ogra_43ee3abf64b77fc3ba837817a7eb51f8  overlays/vc4-kms-v3d-overlay.dtb15:53
ogra_ogra@localhost:~$15:53
ogra_and the files are identical ...15:53
ogra_yet ...15:53
phil_mzyga-suse, zyga-ubuntu: and some progress made within Manjaro?15:53
ogra_ogra@localhost:~$ ls -l /dev/dri15:53
ogra_ls: cannot access '/dev/dri': No such file or directory15:53
ogra_ogra@localhost:~$15:53
ogra_oh15:53
ogra_one sec15:53
ogra_i'm using a special gadget here15:54
ogra_ogra@localhost:~$ grep vc4-kms-v3d-overlay.dtb /boot/uboot/config.txt15:54
ogra_ogra@localhost:~$15:54
ogra_ok15:54
=== JanC_ is now known as JanC
ogra_ah, grepping for the wrong thing wont help15:55
mvopedronis: I have not checked in detail, I will either address them later today or monday morning. but thanks for them in any case !15:55
ogra_ogra@localhost:~$ grep vc4-kms-v3d /boot/uboot/config.txt15:55
ogra_#dtoverlay=vc4-kms-v3d15:55
ogra_ogra@localhost:~$15:55
mvoogra_: yes, tests run on amd64 VM, however that does not have wifi15:55
ogra_mvo, ah ! yeah, then they wont wrangle over wpa_supplicant files indeed15:56
ogra_AlbertA, bschaefer, well, ok, i cant repro it *'yet* but will turn my bard back to use the vc4 driver now and check tomorrown after the next core update15:57
ogra_*board15:58
AlbertAogra_: thanks!15:58
ogra_i definitely dont get any corruption here though ... and havent in a long time15:58
ogra_are your SD cards old ?15:58
bschaeferogra_, nope i just got my this last week15:59
bschaefersince my old one was ... bad15:59
bschaeferthough i have reflashed it ... ~20 times this week15:59
AlbertAogra_: I have a sandisk 32GB maybe about a year old now15:59
ogra_(when runnign edge, every core update will write to the same spot on the card, so running edge can wear them out faster)15:59
ogra_(that is ... for the bootloader config update ...)16:00
AlbertAogra_: oh interesting idea.. yeah maybe those particular blocks are going bad, seems plausible16:00
ogra_AlbertA, but that doesnt explain why bschaefer woould see it ...16:01
mupPR snapd#3928 opened: interfaces/system-observe: allow clients to enumerate DBus connection names <Created by jdstrand> <https://github.com/snapcore/snapd/pull/3928>16:01
noChanceWe need to stop China from killing Bitcoin. The more people use BTCs the harder it will be for China to snuff it... https://freebitco.in/?r=7247637 -> get your own free Bitcoins.16:01
ogra_also ... my 4GB card that i have currently in use is rather in the 3-5y ealm and running edge daily sincer abut a yea now16:02
bschaeferwell that would suck, ive 32GB16:02
=== cachio_lunch is now known as cachio
ogra_i have only one out of like 30 cards here that i ave yet managed to wear out16:02
bschaefersame as AlbertA but yeah i got these over last weekend16:02
ogra_so wear levelling is always my last guess after all ...16:03
bschaeferogra_, i do like that /writable seems to resize now to the fullsize of the SD card now16:03
* bschaefer use to run out of room a bunch due to the image size16:03
ogra_yeah, there was a bug for a short time ... but thats fixed now16:03
ogra_the build did pull in the wrong initamfs-tools16:03
bschaeferogra_, so future testing of this sort of thing, checking the dtbs in /boot?16:05
ogra_bschaefer, welll, finding the reason why yu both get that breakage ...16:06
ogra_the whole overlays stuff will change soon with the ability to upgrrade gadgets16:06
bschaefero nice16:07
bschaeferyeah we do happen to have the same SD card IIRC16:07
ogra_it isnt ... by chance listed with a red marker in teh table at http://elinux.org/RPi_SD_cards ?16:08
ogra_(seems theer are a bunch of snadisk cards that dont play well with the Pi contoller)16:09
bschaeferogra_, all the sandisk 32GB class 10 are green16:09
ogra_ok16:09
bschaeferyeah i bet my older SD 8 GB was red on this...16:09
bschaeferclass 2 or 416:10
ogra_well, let me see whyt my system des here with the next update16:11
ogra_also ... please bring the cards to NY ... i'lll have a Pi with me to play with16:11
bschaefero yeah good idea16:11
ogra_(in case i dont find the cause til then indeed)16:11
bschaeferill bring my rapi3 + sd cards as well16:11
bschaeferdont have a monitor though :)16:12
ogra_cool16:12
bschaeferthere should be something about16:12
ogra_the hotel room will ;)16:12
bschaefero yeah haha16:12
ogra_worst case16:12
niemeyerMore unrelated Travis issues...16:16
niemeyerhttps://travis-ci.org/snapcore/spread-cron/builds/27462178616:16
zyga-susephil_m: yes and no. I fixed all the other issues but at least inside vmware I cannot get opengl to work. I plan to investigate on real hardware tomorrow.16:21
zyga-susephil_m: and in any case send a PR to github so that the package can be added in the initial version,16:22
cachiomvo, https://paste.ubuntu.com/25535960/16:26
cachiohttps://paste.ubuntu.com/25536062/16:27
cachiohttps://paste.ubuntu.com/2554016516:27
cachiomvo, it failed in those 3 runs16:27
cachiofor db and pi316:27
mvocachio: yeah, i pushed a "fix"16:29
cachiopr'16:30
cachio?16:30
mvocachio: yeah16:30
mvocachio: I say "fix" because the test is just skipped16:30
phil_mzyga-suse: ok. we will see. thx for the effort so far.16:30
mvocachio: but thats ok, we cannot install n-m and netplan for wifi at the same time currently16:30
cachiomvo, good :) it is a way to fix it16:30
ogra_well, we can surely work on a real fix and have netplan use the n-m renderer16:31
ogra_but thats some wrk16:31
ogra_*work16:31
zyga-susemvo: all good?16:50
mvozyga-suse: yes, no?16:51
* zyga-suse is worried we all work on Fridays so late16:51
mupPR snapd#3904 closed: tests: test the real "xdg-open" from the core snap <Created by mvo5> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/3904>16:55
ogra_zyga-suse, thats all just the bad weather and stuff :P17:04
lutostag_the xdg-open was working for me on gnome until an update today (on artful/gnome-wayland), now it isnt... :/17:09
zyga-ubuntulutostag_: I think this is a known issue that mvo is addressing with another release17:10
mvolutostag_: as a workaround "snap refresh --candidate core" should bring it back17:22
lutostag_mvo: no joy on the refresh, https://paste.ubuntu.com/25541837/ but I am just glad someone is looking into it, thanks guys ;)17:32
* zyga-suse takes a break to do something non-coding17:35
mvolutostag_: hm, that lxd error rings a bell, maybe zyga-ubuntu remembers the details once he is back17:40
zyga-susehmmm, holly molly17:51
zyga-suseno idea17:51
zyga-suseis that inside lxd?17:51
niemeyerTravis is out of the equation, btw.. I can reproduce the problem locally too. It's either a bug in Spread or something in the Linode API..18:00
niemeyerI'm guessing Linode needs to be involved somehow, since this has shown up without Spread changing18:01
mvolutostag_: iirc we had this issue with older version of lxd, iirc when snap was run inside lxd. if that is the case, what version of lxd do you use (inside and outside?)18:27
lutostag_mvo: outside, then inside https://paste.ubuntu.com/25542158/18:29
lutostag_although I was running the snap refresh core --candidate on the outside18:30
mvolutostag_: thanks, I wonder if lxd 2.17 would help19:52
=== chihchun_afk is now known as chihchun

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