/srv/irclogs.ubuntu.com/2017/10/12/#snappy.txt

=== ikey is now known as ikey|zzz
=== JoshStrobl is now known as JoshStrobl|zzz
mupPR snapcraft#1608 opened: tests: fix the duplicate plainbox test scenarios <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1608>04:27
zyga-soluso/05:03
zyga-ubuntuit seems another 2.28 point release is ahead05:16
mupPR snapcraft#1609 opened: tests: remove the duplicate nodejs integration tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1609>05:55
* zyga-ubuntu fires spread to debug snap-update-ns issue06:29
mupPR snapcraft#1610 opened: tests: reenable the cleanbuild integration test <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1610>06:34
zyga-ubuntumvo: good morning06:37
zyga-ubuntumvo: guess what day is it today?06:37
zyga-ubuntumvo: release day06:37
mvozyga-ubuntu: excited! and good morning06:38
mvozyga-ubuntu: I have release day every month ;)06:38
zyga-ubuntumvo: pedronis sent a PR for 2.2806:38
zyga-ubuntumvo: looks like something we need to spin .5 for06:38
mvooh nos06:38
* mvo looks06:38
zyga-ubuntumvo: I've added debugging for the bug I found in snap-update-ns and I'm waiting for the debug shell to show up06:38
mvozyga-ubuntu: aha, nice06:40
* zyga-ubuntu learns that logger.Noticef doesn't just work :/06:42
mvozyga-ubuntu: hu?06:43
zyga-ubuntumvo: well, in a CLI program it does nothing at all06:45
zyga-ubuntumvo: I noticed it is also not working early in initialization of snapd06:46
zyga-ubuntumvo: it is "enabled" somewhere during startup06:46
zyga-ubuntuI'll look but for now I swapped that for fmt.Printf06:46
zyga-ubuntuI think I solved the bug now, I'll spend an extra moment to link output from snap-update-ns to task log06:53
zyga-ubuntuand look at that noticef thing06:53
mvozyga-ubuntu: aha, thank you. just read up on the background for 4026, looks like we need a .507:01
zyga-ubuntumvo: I didn't read upon it but I trusted the 2.28 tag07:02
zyga-ubuntuok, one more run on fedora and I'll push07:12
mvocould someone do a second review of 4026 please?07:20
zyga-ubuntumm07:21
zyga-ubuntumvo: what is the back story?07:22
zyga-ubuntuthere's nothing on the PR07:22
mvozyga-ubuntu: backchannel, let me forward07:22
mvozyga-ubuntu: check your mail07:23
zyga-ubuntuk07:23
mvo(please)07:23
zyga-ubuntuthank you07:23
* zyga-ubuntu reviews this now07:24
zyga-ubuntumvo: silly question, which store is used on the generic model when UBUNTU_STORE_ID is unset?07:25
zyga-ubuntumvo: should we not return mod.Store() if UBUNTU_STORE_ID is unset?07:26
mvozyga-ubuntu: hm, good point07:27
zyga-ubuntu(nothing like silly questions)07:27
zyga-ubuntumvo: let's tweak that test to have a case like that07:27
zyga-ubuntuif the outcome is sensible then +1 but I think it may be a missing cae07:27
zyga-ubuntu*case07:27
mvozyga-ubuntu: looks like the generic model is not defining a store so the end result is the same, but I agree with you, it seems cleaner to not rely on this07:28
mupPR snapd#4027 opened: spread: allow setting SPREAD_DEBUG_EACH=0 to disable debug-each section <Created by zyga> <https://github.com/snapcore/snapd/pull/4027>07:33
mupPR snapd#4028 opened: interfaces/mount: don't generate legacy per-hook/per-app mount profiles <Created by zyga> <https://github.com/snapcore/snapd/pull/4028>07:33
zyga-ubuntumvo: ok, I can work on that now07:34
mupPR snapd#4029 opened: packaging: remove .mnt files on removal <Created by zyga> <https://github.com/snapcore/snapd/pull/4029>07:34
zyga-ubuntumvo: I pushed a few trivial branches up and I'm working on the extra test case and tweak in behavior07:40
zyga-ubuntumvo: maybe you could review the three I pushed07:40
zyga-ubuntumvo: it seems we should not actually tweak the logic there07:48
mvozyga-ubuntu: I reviewed the first already, will do the others in a bit07:49
zyga-ubuntumvo: I pushed a test case, let me know if this is sensible07:49
zyga-ubuntuthank you!07:49
mvozyga-ubuntu: not tweak it, why not?07:49
zyga-ubuntumvo: not sure how to tweak it07:50
zyga-ubuntumvo: if the variable is unset, should we use the model?07:50
zyga-ubuntumvo: the test at least shows us current behavior, maybe it's right, maybe not07:50
zyga-ubuntumvo: if you tweak the condition now look at what happens to the tests there07:50
zyga-ubuntumvo: I don't know what the correct behavior is here07:51
mvozyga-ubuntu: aha, ok. lets wait for pedronis then07:51
mvozyga-ubuntu: did you ask you question in the PR?07:51
zyga-ubuntumvo: I pasted our conversation there07:53
zyga-ubuntuI'll look at bridging snap-update-ns logs with the task that uses it now07:54
mvook07:54
mvoI will tweak my caching branch based on the nice feedback from pstolowski and then move to squashfs-fuse07:55
zyga-ubuntuok07:56
zyga-ubuntusquashfs-fuse?07:56
mupPR snapd#4023 closed: tests: fix econnreset scenario when the iptables rule was not created <Created by sergiocazzolato> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4023>07:59
Chipacamoin moin08:03
Chipacaogra_: question for you: all pi zeros are As, right? i mean, armel and all that?08:03
ogra_Chipaca, if you mean armv6, afaik yes ... i think popey and flexiondotorg own them (for moe detail)08:04
ogra_*more08:04
zyga-ubuntuChipaca: hey08:09
Chipacaogra_: AFAIK they appear spontaneously in geek kit08:10
Chipacaa friend just told me he suddenly found he had 5 of them08:10
Chipacahe's never bought one08:10
ogra_heh08:10
ogra_thats funny08:10
Chipaca:-)08:10
ChipacaOTOH this is the guy that managed to install ubuntu with no x, by just clicking 'next'08:11
Chipacaalso he thought he'd installed ubuntu on one of the zeros (which i was pretty sure wasn't possible)08:11
zyga-ubuntuChipaca: huh, how did he get them?08:11
Chipacazyga-ubuntu: tech shows and the like08:11
Chipacazyga-ubuntu: in the uk they come in magazines08:12
ogra_are you sure it's a zero ?08:12
zyga-ubuntuChipaca: nice08:12
zyga-ubuntuChipaca: if you are interested in a review, https://github.com/snapcore/snapd/pull/4008 is juicy08:12
mupPR #4008: cmd/snap-update-ns: create missing mount points automatically <Created by zyga> <https://github.com/snapcore/snapd/pull/4008>08:12
Chipacaogra_: that's what he said :-)08:12
zyga-ubuntu(and very important to me)08:12
ackkmvo, hi, is there something utterly wrong with my PR or is CI having issues on https://github.com/snapcore/snapd/pull/3916 ?08:12
mupPR #3916: snap,wrappers: add support for socket activation <Created by albertodonato> <https://github.com/snapcore/snapd/pull/3916>08:12
zyga-ubuntuackk: looking08:12
ackkzyga-ubuntu, thanks08:12
zyga-ubuntuFormatting wrong in following files:08:13
zyga-ubuntu/tmp/static-unit-tests/src/github.com/snapcore/snapd/wrappers/services_gen_test.go08:13
zyga-ubuntu/tmp/static-unit-tests/src/github.com/snapcore/snapd/snap/validate_test.go08:13
zyga-ubuntugo fmt is your friend08:13
zyga-ubuntuI recommend good editor integration (ask for advice if you use vim)08:13
mvoackk: what zyga-ubuntu said, we can help you by pushing to your branch if you want08:19
ackkzyga-ubuntu, I do have linting, must have missed it08:20
ackklemme fix it08:20
ackkuhm "buffer is already go-fmt'd"08:21
ackkindeed go fmt doesn't report anything08:21
zyga-ubuntuackk: maybe gofmt -s ?08:21
zyga-ubuntumaybe save/diff08:21
ackkah08:21
zyga-ubuntuI can look if you want08:21
ackkzyga-ubuntu, where do you run linting (to check how you run it)08:22
zyga-ubuntuackk: run-checks --static I believe08:22
zyga-ubuntuackk: we use gofmt (not go fmt) and pass the -s (simplify expressions) flag08:22
zyga-ubuntuackk: I suspect it is that, it bit me a few times08:22
ackkah, that's probably why08:23
ackkgo-mode uses go fmt08:23
ackkwhy are there even two things for the same job? :)08:23
zyga-ubuntubecause it's perl^Hgo08:23
zyga-ubuntu;-)08:23
ackkheh08:25
ackkzyga-ubuntu, mvo should be fixed now, thanks08:25
zyga-ubuntugreat, thank you :)08:27
Chipacazyga-ubuntu: did a bit of it08:28
zyga-ubuntuthank you!08:32
zyga-ubuntuChipaca: do you think I should split it into more PRs?08:32
zyga-ubuntuChipaca: I can take the secure mkdir bits out08:32
Chipacazyga-ubuntu: my brain is swimming in the sweet molasses of sleep, still08:33
Chipacazyga-ubuntu: it's quite possible the pr is fine as it stands; wait a bit for me to be properly awake?08:34
zyga-ubuntusure :)08:34
zyga-ubuntuwe woke up before 6 today; stark contrast from 8:30 in spain08:34
zyga-ubuntuplus the fact that it's dark outside08:35
Chipacazyga-ubuntu: my checkpoint was because you're obviously active on the pr, so i didn't want to have 20 questions for you in two hours instead of 5 now and 5 later08:35
* zyga-ubuntu nods08:35
ackkdoes snapcraft validate the yaml file entirely via yaml schema or is there also programmatic validation for some cases?08:46
mupPR snapcraft#1611 opened: plainbox-provider plugin: init PROVIDERPATH <Created by jocave> <https://github.com/snapcore/snapcraft/pull/1611>08:46
* zyga-ubuntu -> break for light meal and tea09:04
popeyhuh, irccloud-desktop snap no longer works since I updated to 2.28 and rebooted.09:25
popeyalan@hal:~$ irccloud-desktop09:25
popeyudev_enumerate_scan failed09:25
popeyNo apparmor denials09:25
ackkpopey, maybe related to https://forum.snapcraft.io/t/weird-udev-enumerate-error/2360 ?09:26
popeymagic, thanks09:27
ackkit seems it's fixed in artful https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/171353609:28
mupBug #1713536: udev: boot script does not trigger subsystem coldplug <architecture-s39064> <bugnameltc-158070> <severity-medium> <targetmilestone-inin1604> <verification-done> <verification-done-xenial> <verification-done-zesty> <Ubuntu on IBM z Systems:Fix Committed by canonical-foundations>09:28
mup<systemd (Ubuntu):Fix Released> <systemd (Ubuntu Xenial):Fix Committed> <systemd (Ubuntu Zesty):Fix Committed> <systemd (Ubuntu Artful):Fix Released> <https://launchpad.net/bugs/1713536>09:28
zyga-ubuntupopey: does it happen again?09:28
popeyi replied on the forum09:29
zyga-ubuntuta09:29
popeyit happens every time i try and launch irccloud-desktop09:29
zyga-ubuntuhmm hmm hmm09:29
popeyooh09:29
zyga-ubuntu?09:29
popeyother snaps fail too09:29
zyga-ubuntuyes, this is generic udev code path09:30
popeyok09:30
zyga-ubuntuno denials at all?09:30
zyga-ubuntu(not even for snap-confine?)09:30
zyga-ubuntudo you have nvidia on this box?09:30
popeyno denials, yes, nvidia09:30
zyga-ubuntuman, /o\09:31
zyga-ubuntupopey: which driver are you using? I wonder if this is related to anything we saw yesterday09:31
popeyii  nvidia-375                                     375.66-0ubuntu0.16.04.1      amd64                        NVIDIA binary driver - version 375.6609:32
popeyapparently09:32
zyga-ubuntupopey: can you use gdb to put some breakpoints and see where it fails?09:32
popeyuhhhh09:32
zyga-ubuntuor can you open that 2nd laptop and see if it happens there09:32
zyga-ubuntuI can do it remotely09:32
zyga-ubuntu(note: I tweaked stuff there so you may need to apt-get install --reinstall snapd09:32
popeyit doesn't happen on my 17.10 intel laptop09:32
zyga-ubuntu(and replace any conffile changes)09:32
zyga-ubuntuyeah, I suspect this will also tell us something else09:33
popeycan dig that machine out again and boot it up, sure09:33
zyga-ubuntuwhy we had to add those apparmor rules that jdstrand didn't expect09:33
zyga-ubuntuor why we got a denial09:33
zyga-ubuntuwe didn't get to the bottom of that09:33
popeyso you want me to do that?09:33
zyga-ubuntupopey: if you coupld please check out if it affects that other machine I will gladly investigate remotely09:33
popeykk09:33
popeydoing now09:33
zyga-ubuntuthank you09:34
popeyremember it's running artful, and ackk says its fixed there?09:35
zyga-ubuntuah, and your machine that is affected?09:36
zyga-ubuntuis it also artful?09:36
popeyThe machine that is affected is my 16.04 nvidia machine09:37
ogra_it was 16.04 for me too09:37
popey^ monster main laptop which got rebooted last night09:37
popeyMy secondary (thinkpad, intel) 17.10 laptop does not see the issue09:37
ogra_and nvidia ....09:38
popeybooting the slow old desktop you had access to, to test that09:38
zyga-ubuntuk09:39
popey(which is 17.10 nvidia)09:39
popeyGrr. This machine has basically locked up doing "apt remove snapd"09:45
zyga-solushmm09:45
zyga-soluscan you move to a VT?09:45
popey(it's a deb installed locally by you, not from the repo, so I can't --reinstall, I have to remove/reinstall)09:46
popeyi can ssh in09:46
popey(as can you) :D09:46
zyga-solusoh, right09:46
* zyga-solus looks09:46
zyga-ubuntupopey: locked up as in UI is frozen?09:47
popeyyeah09:47
popeyseems apt has finished removing09:48
zyga-ubuntufeel free to reboot it if that helps09:48
popeydoing09:48
zyga-ubuntuit is back now09:51
zyga-ubuntuI'm installing snapd09:51
popeykk09:52
mupPR snapd#4030 opened: many: add internal squashfuse copy as "snapfuse" <Created by mvo5> <https://github.com/snapcore/snapd/pull/4030>09:53
zyga-ubuntupopey: that machine is not affected :/09:55
popeyI can install 16.04 on it09:55
zyga-ubuntumvo: you don't happen to have 16.04 on your desktop?09:55
zyga-ubuntupopey: if that's not a burden, please09:56
popeyI'll make it dual boot09:56
zyga-ubuntupopey: I think I should find myself an nvidia box09:56
zyga-ubuntuthanks09:56
popeyalso, thanks for introducing me to ubuntu-drivers --autoinstall :D09:56
popeyI had never seen that before!09:56
zyga-ubuntusituation demands creative solutions :)09:58
mvozyga-ubuntu: I have access to a 16.04 machine but its not my main machine, why?09:59
mvozyga-ubuntu: or do you need a 16.04 nvivida machine? that is more complicated, I can do a live-usb stick run on that10:00
zyga-ubuntumvo: popey is preparing dual-boot on a machine with nvidia GPU10:02
popeyinstalling now...10:02
zyga-ubuntumvo: and I'll look at what udev is doing to and what may make it fail this way10:02
mvook10:03
mvozyga-ubuntu: let me know if I should dig out a livecd10:03
zyga-ubuntuthank you10:05
ogra_zyga-ubuntu, oooh https://forum.snapcraft.io/t/call-for-testing-gimp/1281 see third last post10:17
ogra_another one10:17
zyga-ubuntuogra_: I suspect it's something we, ahem, did for nvidia10:25
zyga-ubuntudigging10:25
mvozyga-ubuntu: oh, do you have a theory about this failure?10:26
ogra_up to now it seems all users hitting it also use nvidia10:27
zyga-ubuntumvo: no but it is clearly related10:27
zyga-ubuntumvo: curiosuly it only affects 16.0410:27
zyga-ubuntumvo: or at least I hope10:27
ackkhow can I have a field in the snapcraft schema that's either a string or an integer?10:27
zyga-ubuntumvo: if it does affect 17.04 and popey's machine was just unaffected (for whatever reason) we're in deeper waste water10:28
zyga-ubuntuackk: snapcraft schema is just json schema10:28
mvozyga-ubuntu: fwiw, I don't see any of this on my 17.1010:29
ackkthere doesn't seem to be similar cases at the moment10:29
mvozyga-ubuntu: I can try on a 16.04 now, installing gimp, right?10:29
zyga-ubuntuackk: http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.2510:29
zyga-ubuntuackk: type: [int, string]10:29
zyga-ubuntu(sorry, integer)10:29
ackkoh10:29
mvozyga-ubuntu: also - hiri appears to be not working still for the reporter in the forum :/10:29
ackkI thought it could be just one of them10:29
ackkthanks zyga-ubuntu10:29
zyga-ubuntuackk: you can use richer syntax if you want to put different constraints on both10:29
zyga-ubuntuackk: e.g. specific range of ints or specific set of strings10:30
ackkzyga-ubuntu, that's cool10:30
zyga-ubuntumvo: so my theory is some of the nvidia changes coupled to specific behavior in udev cause us not to see what udev expects to see (perhaps some data in /run) and then things go belly up10:31
zyga-ubuntumvo: my hope is that with popey's machine and gdb I can see what's the culprit easily10:31
ackkzyga-ubuntu, do you have a link on how to do that (type-based constraints)?10:31
zyga-ubuntumvo: I'm also scavenging for HDDs to install 16.04 on an old laptop I have10:31
zyga-ubuntuackk: no, sorry, I think they removed that from the schema, let me look for one more moment10:34
mupPR snapcraft#1382 closed: rust plugin: make libc configurable <Created by kalikiana> <Closed by kalikiana> <https://github.com/snapcore/snapcraft/pull/1382>10:34
ackkzyga-ubuntu, ah, I think I found it https://cswr.github.io/JsonSchema/spec/multiple_types/10:34
mvozyga-ubuntu: does the udev_enumerate error happens only on nvidia? did ogra_ have a nvidia on the machine he hit it with?10:35
ogra_mvo, yes i did10:36
zyga-ubuntuackk: ah, I'm wrong10:36
zyga-ubuntuackk: http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.2810:36
zyga-ubuntuackk: you can use oneOf to define schema that applies10:36
zyga-ubuntuackk: so oneOf: [{type: "integer"}, {type: "string"}]10:37
zyga-ubuntuackk: and then you can put extra constraints in each10:37
zyga-ubuntumvo: it looks like it10:37
mupPR snapcraft#1512 closed: pluginhandler: clean error for BasePlugin.run{,_output} <Created by kalikiana> <Closed by kalikiana> <https://github.com/snapcore/snapcraft/pull/1512>10:37
zyga-ubuntumvo: unfortunately following udev source dry is a bit hard as it's doing a whole lot of things10:37
zyga-ubuntunot that many things can fail though so I think we can find it10:38
mvozyga-ubuntu: ok, I create a 16.04 disk now too, just in case, looks really important10:39
popeyzyga-ubuntu: sorry for the delay, seems you can't just install 16.04 on a system which already has 17.10 - ext4 extended attributes cause 16.04 to freak and shit the bed10:40
zyga-ubuntupopey: you can disable them10:40
popeyi booted to 17.10 to resize the partition10:40
zyga-ubuntupopey: boot to 17.04 and use tune2fs10:40
popeyre-rebooting to 16.04 to install10:40
zyga-ubuntupopey: tune2fs -O^metadata_csum10:41
zyga-ubuntuthat will fix it10:41
zyga-ubuntu(been there done that)10:41
popeyhah10:41
popeythanks10:41
zyga-ubuntupopey, mvo: there's a logging feature10:41
zyga-ubuntuwe can enable it10:41
zyga-ubuntujust one sec10:41
ogra_geez, really ?!?! we do incompatible filesystem changes between two releases ?10:42
ogra_thats insane10:42
zyga-ubuntupopey: on your affected machine10:42
popeymaybe i have an old 16.04 iso on my stick10:43
zyga-ubuntupopey: export SYSTEMD_LOG_LEVEL=verbose_debug10:43
zyga-ubuntupopey: for now that's it, try running it again10:44
popeywhere will i expect more logging to appear?10:44
zyga-ubuntuno idea yet10:45
zyga-ubuntuthat part of the code is generated on compile time10:45
zyga-ubuntuI'm trying to see10:45
zyga-ubuntuthere's SYSTEMD_LOG_TARGET=10:45
zyga-ubuntubut not sure what the values are :/10:45
zyga-ubuntupopey: try also setting SYSTEMD_LOG_TARGET=console10:48
zyga-ubuntupopey: (you can try journal or syslog as well)10:48
zyga-ubuntupopey: then run snap that fails to start10:48
popeynothing in journalctl if i set those vars and run a snap10:49
zyga-ubuntuand no denials either?10:50
popeycorrect10:51
popey(16.04 installing finally)10:51
ogra_zyga-ubuntu, you could try "udevadm monitor"10:56
ogra_popey, ^^10:57
popeyno output10:58
ogra_:(10:58
ogra_well, thats exactly what i observed too ... no log output anywhere ... neither dmesg, nor journald nor syslog10:58
zyga-ubuntuI'll patch snap-confine to enable udev logging10:59
zyga-ubuntuor not, this is not doing anything anymore11:02
* zyga-ubuntu looks deeper11:02
zyga-ubuntupopey: can it be reproduced on your other machine?11:02
popeyother is 17.10/intel, no11:02
popeyooh, i have another other other machine which is 16.04 intel11:03
* popey tries on that11:03
zyga-ubuntupopey: and on the one with 16.04 and nvidia?11:04
zyga-ubuntudoes it fail there?11:04
popeystil installing on that one11:05
popeyfails on my main laptop, which is 16.04 nvidia of course11:05
zyga-ubuntuah, ok11:05
popeytested on intel 16.04 laptop, don't see the issue here11:16
popey(however, ogra_ said it was 'solved' with a reboot, so dunno if I just havent triggered the issue on this laptop yet)11:17
ogra_yeah, i cant reproduce it since that reboot11:18
popeyhuh, this clean 16.04 install is offering me an upgrade to 17.0411:18
popeyi thought we only did lts to lts offers on lts releases11:18
ogra_is that 16.04 or 16.04.x ?11:19
ogra_might be the original 16.04 allows that11:19
popeynot sure, lsb_release shows 16.04.3 now11:20
popeybut I'm mid dist-upgrade which probably changed that11:20
ogra_hm, weird11:20
ogra_better ask in #ubuntu-release if thats desired11:20
popeyya11:20
* zyga-ubuntu has some annoying back pain :/11:28
zyga-ubuntupopey: can you reproduce the issue on your machine?11:28
popeyback pain!? Yes, I have that too! Shall i file a bug?11:29
* Chipaca goes for a run11:32
ogra_yes, please, i'll happily confirm11:32
ogra_(or rather un-happily ....)11:33
ogra_heh11:35
ogra_seems https://launchpad.net/spine actually exists11:35
kalikiana:-D11:37
kalikiananice one11:37
zyga-ubuntupopey: any luck11:44
zyga-ubuntu?11:44
popeyjust dist upgrade finished and its rebooting11:45
popeyyou should have ssh access, but not tested snaps yet11:45
popeytook ages to dist-upgrade 700+ packages11:45
popeyzyga-ubuntu: just installing a test snap on it now11:47
ogra_popey, makes you really want an ubuntu core based desktop eh ? :)11:48
popeyhah11:48
zyga-ubuntupopey: I still get connection refused11:48
popeyhuh11:48
popeyoh, not installed ssh server11:48
popeyone mo11:48
popeyit doesnt have the nvidia driver yet11:49
popeybut you should be able to get in now?11:49
zyga-ubuntulogged in, thanks11:50
popeyits set to auto login, and boot to 16.04 so feel free to reboot or whatever11:50
zyga-ubuntuthank you11:54
zyga-ubuntupopey: I launched the giraffe, I'm afraid it works11:55
popeyyou're not on binary nvidia driver tho11:56
zyga-ubuntupopey: aah11:56
zyga-ubuntuthanks!11:56
zyga-ubuntuinstalling now11:57
zyga-ubuntubut this is excellent11:57
zyga-ubuntuif it fails after installation we'll have clear evidence that the relationship is real11:57
popeygood point11:57
zyga-ubunturebooting12:00
popeyzyga-ubuntu: desktop is up12:02
zyga-ubuntureproduced!12:02
zyga-ubuntuok12:02
zyga-ubuntuthank you for setting this up!!!12:02
popeynp12:02
jdstrandzyga-ubuntu: ohh12:05
jdstrandzyga-ubuntu: artful without nvidia: /snap/bin/test-policy-app.network-control: udev_enumerate_scan failed12:06
zyga-ubuntujdstrand: that's just wonky12:07
zyga-ubuntujdstrand: I'll focus on 16.04 now12:07
zyga-ubuntujdstrand: but ... wonky!12:07
ogra_zyga-ubuntu, you should probably add the word "nvidia" somewhere to your post ... nothing in the thread talks about it yet12:07
ogra_"the binary driver" could be anything :)12:08
zyga-ubuntu+112:08
zyga-ubuntudone12:08
jdstrandzyga-ubuntu: zyga-ubuntu it's repeatable. I suspect something wrong with that interface. gimme a sec12:09
ogra_thx12:09
zyga-ubuntujdstrand: network-control? I see this on opengl and ohmygiraffe12:09
zyga-ubuntujdstrand: I'm on artful and I never reproduced it here FYI12:10
mcphailMy giraffe is dead on 16.04 o/12:11
popeymcphail: do you get the udev error message on the command line?12:11
zyga-ubuntuwe're working on reviving it12:11
mcphailYep. Using nvidia drivers12:11
mcphailzyga-ubuntu: :)12:12
zyga-ubuntujdstrand: side note, terrible C apis without any error information12:13
zyga-ubuntu"I failed but beats me why"12:13
jdstrandyes12:13
jdstrandzyga-ubuntu: seriously12:13
jdstrandnetwork-control is messed up12:14
jdstrandzyga-ubuntu: udev doesn't like this line: KERNEL=="tun[0-9]*", TAG+="snap_test-policy-app_network-control"12:15
zyga-ubuntujdstrand: interesting12:16
zyga-ubuntujdstrand: I don't use that interface here but opengl has SUBSYSTEM=="drm", KERNEL=="card[0-9]*", TAG+="snap_ohmygiraffe_ohmygiraffe"12:16
zyga-ubuntuif it's the regexp it looks just the same12:17
zyga-ubuntujdstrand: how do you know it doesn't like it?12:17
jdstrandthere's a lot of regexes that look fine. opengl works fine here12:17
ogra_https://github.com/snapcore/snapd/pull/4018/files12:17
mupPR #4018: interfaces: fix udev rules for tun <Created by bergotorino> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4018>12:17
ogra_there was a recent change ^^12:17
jdstrandzyga-ubuntu: because I commented it out of /etc/udev/rules.d/snap.test-policy-app then did: sudo udevadm trigger && for i in /snap/bin/test-policy-app.* ; do echo -n "$i: " && $i -c "echo ok" ; done 2>&1 | grep -v ok12:18
ogra_(not sure it is realted, but it changed the line right befor the tun[0-9] one)12:18
zyga-ubuntuaha12:18
* zyga-ubuntu returns to gdb12:19
jdstrandgimp does not have network-control12:19
jdstrandogra_: you are seeing this today?12:20
ogra_no, i have never seen it again12:20
jdstrandpopey: you are seeing this now?12:20
ogra_(but i also did not reboot my desktop since i reported it)12:21
popey"this"?12:21
* jdstrand is going to have to change rooms soon12:21
jdstrandpopey: udec scan issue12:21
jdstrandudev12:21
ogra_jdstrand, popey can reliably reproduce it and zyga-ubuntu is remotely logged in to the machine12:21
popeyi am unable to run some snaps on my 16.04 system, yes.12:21
jdstrandok12:21
jdstrandpopey: ok, nm I'll work with zyga-ubuntu12:21
popeykk12:21
popeyhe has access to an nvidia 16.04 desktop on my desk here12:22
jdstrandzyga-ubuntu: do you have KERNEL=="nvidia*", TAG+="..." in your /etc/udev/rules.d/* file?12:22
zyga-ubuntustepping over now12:23
zyga-ubuntuyes12:23
zyga-ubuntuthis is 2.28.1 still12:23
zyga-ubuntuSUBSYSTEM=="drm", KERNEL=="card[0-9]*", TAG+="snap_ohmygiraffe_ohmygiraffe"12:23
zyga-ubuntuKERNEL=="nvidia*", TAG+="snap_ohmygiraffe_ohmygiraffe"12:23
zyga-ubuntuKERNEL=="vchiq",   TAG+="snap_ohmygiraffe_ohmygiraffe"12:23
jdstrandzyga-ubuntu: if you comment out the nvidia one, does it stop?12:24
jdstrandie, does the scan work?12:24
jdstrandzyga-ubuntu: you need to udevadm trigger12:25
jdstrandzyga-ubuntu: changing rooms. brb12:25
jdstrandzyga-ubuntu: I'm back. did it work? all you need to do is 'snap run --shell ohmygiraffe' I think12:31
jdstrandeg, edit /etc/udev/rules.d/70-snap.ohmygiraffe.rules, sudo oudevadm trigger ; snap run --shell ohmygiraffe12:33
zyga-ubuntujdstrand: I didn't try yet, I'm in gdb going down to the place where it fails12:37
zyga-ubuntuI think I found it12:38
jdstrandzyga-ubuntu: well, the point is with nvidia that this is more fallout from not including the my nvidia fix in 2.28. ie, nvidia should be fixed with yesterdays hotfix12:39
zyga-ubuntuit fails in enumerator_scan_devices_tags12:39
zyga-ubuntuspecifically this call inside:                 r = enumerator_scan_devices_tag(enumerator, tag);12:39
jdstrandthat doesn't surprise me. nvidia* isn't a thing (the sysfs issue)12:40
zyga-ubuntujdstrand: checking without the nvidia tag now12:40
zyga-ubuntujdstrand: it still fails12:41
zyga-ubuntuzyga@zyga-P55A-UD3:~/systemd-229/src$ ls /run/udev/tags/snap_ohmygiraffe_ohmygiraffe -l12:41
zyga-ubuntutotal 012:41
zyga-ubuntu-r--r--r-- 1 root root 0 Oct 12 13:01 +drivers:nvidia12:41
zyga-ubuntu-r--r--r-- 1 root root 0 Oct 12 13:01 +module:nvidia12:41
zyga-ubuntu-r--r--r-- 1 root root 0 Oct 12 13:01 +module:nvidia_uvm12:41
zyga-ubuntu-r--r--r-- 1 root root 0 Oct 12 13:41 c226:012:41
zyga-ubuntuI think this is not right12:41
jdstrandzyga-ubuntu: dude, it isn't :)12:42
jdstrandzyga-ubuntu:  udev tagging requires things to be exposed in sysfs12:42
zyga-ubuntuI understand, I mean that I removed that line and re-triggered udev12:43
jdstrandzyga-ubuntu: nvidia is not GPL so it isn't in there. this is the whole reason I did the PR in snap-confine for nvidia12:43
jdstrandok12:43
jdstrandso, did the scan fail even though the line was not in there?12:43
zyga-ubuntuyes12:43
zyga-ubuntuand after the scan I expected those files in /run/udev/tags/../ to go away12:44
jdstrandhmm12:44
zyga-ubuntuafter removing them it works okay (the tags)12:44
jdstrandzyga-ubuntu: I suspect that the subsystem drm one above might be the problem then12:45
kalikianabrb, coffee break12:45
jdstrandzyga-ubuntu: oh12:45
zyga-ubuntuaha, interesting12:45
jdstrandactually, that might be ok12:45
zyga-ubuntunote, they were not added back after running trigger again (12:45
zyga-ubuntu(after removing them)12:45
jdstrandzyga-ubuntu: so, now that the tags are removed, with the nvidia one commented out and udevadm trigger done, does it work?12:46
jdstrandok good12:46
zyga-ubuntuyes12:46
jdstrandso *yes*, the pr yesterday fixes it at least after a reboot12:46
zyga-ubuntuwell12:46
zyga-ubuntu...12:46
zyga-ubuntuI spoke too soon12:46
zyga-ubuntuI removed the tags12:46
zyga-ubuntuand I was running /bin/true12:46
zyga-ubuntureal app fails12:46
zyga-ubuntu://12:47
jdstranddoes the real app have the new tags?12:47
zyga-ubuntujdstrand: I was running snap-confine manually (instead of the real app)12:47
zyga-ubuntuoddly enough after re-adding that nvidia tag to udev rules I don't get the files in /run/udev/tags/.../ back12:48
zyga-ubuntuis udevadm trigger really the right thing?12:48
jdstrandok. can we back up. can you removed the tags, make sure that nvidia is commented out of the /etc/udev/rules.d for that app, run udevadm trigger, then snap run --shellapp12:48
jdstrands/app/ app/12:49
zyga-ubuntuI'll run what we really do for udev12:49
jdstrandthere might be bugs in udev trying to tag nvidia since it isn't sysfs compatible12:49
jdstrandI suspect it is partially doing things12:50
jdstrandso we need a clean state12:50
zyga-ubuntuone se12:51
zyga-ubuntuc12:51
zyga-ubuntujdstrand: ok, with the nvidia udev rule commented out, I ran udevadm control --reload-rules, followed by udevadm trigger12:53
zyga-ubuntuI don't see the nvidia device tags12:53
zyga-ubuntutrying to run the app12:53
zyga-ubuntuI cannot create GL context, it fails12:53
jdstrandthat's different from the scan issue12:53
zyga-ubuntulet me reboot that machine12:53
zyga-ubuntuyes12:53
jdstrandthat is because snap-confine doesn't add the nvidia devices to the cgroup12:53
zyga-ubuntuI suspect now it doesn't crash from udev things12:53
zyga-ubuntuaahh12:53
zyga-ubunturight12:53
zyga-ubuntuthat makes sense12:54
jdstrandie, you aren't running s snapd with yesterday's fix12:54
zyga-ubuntulet me try with updated snap-confine from the branch12:54
zyga-ubuntuso what does it tell us? all is fine and we need to roll out .4?12:54
zyga-ubuntu(fingers crossed)12:54
jdstrandzyga-ubuntu: all you need is --beta12:54
zyga-ubuntuok12:54
jdstrandzyga-ubuntu: nvidia is fine with .412:54
zyga-ubuntuI'll refresh to beta12:54
jdstrandImean, feel free to test again12:54
jdstrandbut, I found a problem with network-control. I'm testing that againmyself12:55
zyga-ubuntuaha12:55
zyga-ubuntujdstrand: it works now12:56
zyga-ubuntupopey: thank you for setting this up and allowing us to test this12:56
jdstrandok, good12:56
zyga-ubuntujdstrand: I'll go to the standup now12:57
zyga-ubuntujdstrand: let us know if we need a .512:57
zyga-ubuntu(I mean, mvo will do a .5 anyway)12:57
zyga-ubuntufor another issue12:57
zyga-ubuntubut we'd like to know if we can pull in a fix from you12:57
mvozyga-ubuntu: yeah, we need one anyway, we just need to know if we need one more fix in it or not12:57
zyga-ubunturight12:58
zyga-ubuntumvo: tests unhappy about squasfuse12:59
zyga-ubuntubecause of silly stuff like12:59
zyga-ubuntuimported/squashfuse/m4/pkg.m4:89:22: "occurence" is a misspelling of "occurrence"12:59
zyga-ubuntu /o\12:59
ackkmhm, shellcheck errors in snapd master for me13:00
ackkzyga-ubuntu, what shellcheck version should I be using?13:00
zyga-ubuntuackk: post 16.0413:01
zyga-ubuntuor remove it13:01
zyga-ubuntu(shellcheck)13:01
zyga-ubuntuand re-configure13:01
ackkzyga-ubuntu, fails on artful13:01
ackkwith 0.4.613:02
=== JoshStrobl|zzz is now known as JoshStrobl
mupPR snapcraft#1608 closed: tests: fix the duplicate plainbox test scenarios <bug> <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1608>13:04
mupPR snapcraft#1611 closed: plainbox-provider plugin: init PROVIDERPATH <bug> <Created by jocave> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1611>13:04
zyga-ubuntuackk: what's the failure?13:06
ackkzyga-ubuntu, http://paste.ubuntu.com/25726179/13:07
ackkthey seem legit13:07
mupPR snapcraft#1599 closed: Fixed StoreReleaseError format for BAD REQUEST error <Created by clobrano> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1599>13:07
c-lobrano\0/13:08
zyga-ubuntuah, they are really legit13:08
zyga-ubuntufeel free to fix those if you want13:08
mupPR snapcraft#1601 closed: snapcraft.yaml: don't re-use build dir <bug> <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1601>13:10
mupPR snapd#4031 opened: interfaces/network-control: remove incorrect rule for tun <Created by jdstrand> <https://github.com/snapcore/snapd/pull/4031>13:13
jdstrandmvo, zyga-ubuntu: https://github.com/snapcore/snapd/pull/4031 should fix the udev scan error with netwrk-control. I'm a bit puzzled why spread tests didn't reveal this, since we are testing network-control connections. perhaps it is becahse the tun module isn't loaded in spread? unfortunately, I'm very booked today, so I cannot deeply test that pr or investigate why spread didn't catch it13:15
mupPR #4031: interfaces/network-control: remove incorrect rule for tun <Created by jdstrand> <https://github.com/snapcore/snapd/pull/4031>13:15
ackkzyga-ubuntu, and now I get http://paste.ubuntu.com/25726221/13:16
ackkwhich seems somewhat worse :)13:16
kalikianare13:16
ackkwait, why is GOPATH a list?13:17
ackkoh, TIL it's not a single dir13:18
ogra_jdstrand, hmm,. wont that break tun devices (given there is allways numbering on the actual device)13:19
jdstrandogra_: no. tun[0-9]* are virtual devices like other network devices. they don't show up in /dev, so don't need to be added to the device cgroup, so don't need to be tagged13:21
ogra_jdstrand, then shoulldnt we do the same for tap ? o do they actually ceate dev nodes ?13:21
jdstrandmaybe13:22
jdstrandlet me see how they work (I verified tun0 as virtual)13:22
ogra_it just looked inconsistent to me when checking your PR13:22
jdstrandA TUN/TAP driver does provide a virtual network interface ...13:24
jdstrandyes, I'll remove that. good catch13:24
zyga-ubuntujdstrand: question: why does it cause havok when we have a rule like that?13:25
zyga-ubuntujdstrand: I would have assumed udev will just find nothing to do13:27
mvozyga-ubuntu: re /usr/lib/nvidia : no such file or directory13:33
ackkzyga-ubuntu, https://github.com/snapcore/snapd/pull/4032 fwiw13:34
mupPR #4032: fix shell errors from shellcheck <Created by albertodonato> <https://github.com/snapcore/snapd/pull/4032>13:34
mupPR snapd#4032 opened: fix shell errors from shellcheck <Created by albertodonato> <https://github.com/snapcore/snapd/pull/4032>13:34
ogra_mvo, it is usuallly versioned13:34
ogra_ah, no, i'm lying13:35
ogra_ls -d /usr/lib/nvidia*13:35
ogra_/usr/lib/nvidia  /usr/lib/nvidia-361  /usr/lib/nvidia-367  /usr/lib/nvidia-375  /usr/lib/nvidia-375-prime13:35
zyga-ubuntumvo: sorry, one of those that ogra_ mentioned13:37
zyga-ubuntuackk: thank you!13:37
jdstrandzyga-ubuntu: re question> seems like a bug. no idea13:38
zyga-ubuntujdstrand: thank you for confirming that, I feel the same13:39
zyga-ubuntujdstrand: I had a, perhaps, related case while exploring systemd network config13:39
zyga-ubuntujdstrand: when I input wrong matching filter (I had a typo)13:39
zyga-ubuntujdstrand: the match would target *all* devices13:39
zyga-ubuntujdstrand: and rename all network interfaces to the same name in some random order, ending terribly13:39
zyga-ubuntujdstrand: could it be that udev sees something it doesn't like, ignores that condition and then blats the assignments to everything it knows about?13:40
ogra_slangasek, did you see my llast comment on bug 1707888 (i think there is still one subiquity issue there)13:40
mupBug #1707888: ethernet defaults for unconnected device are wrong <subiquity:New> <https://launchpad.net/bugs/1707888>13:40
slangasekogra_: so your argument is that we should have a different default netplan config for console-conf?13:50
slangasekI'm not convinced this is what's expected for ubuntu-core in generall13:50
slangasekI understand that for certain devices we might want to be able to specify which interfaces are dhcp by default vs not13:51
slangasekso I'm fine to un-dupe13:51
ackkzyga-ubuntu, np, thanks for looking at the PR13:51
ogra_slangasek, well, my argument is that a nic config i never touched should not leave me with some unwanted configuration for that nic13:51
slangasekogra_: "that you've never touched" - you mean when you acked the screen saying that console-conf sees the device, and will try to do dhcp on it?13:52
ogra_slangasek, IMHO a first boto of a core device should come up with all NICs off by default and only afte i configured one it should be used13:52
slangasekogra_: that is not a generally applicable rule.13:53
ogra_slangasek, well, yes and no ... if i manually configure wlan on a pi3 (which has wlan0 and eth0 ) but never touch anything else, then my ack will still leave me with a full configured eth0 that i did not configure13:53
slangasekI can accept that individual devices might need to specify a different default policy per NIC.  I do not agree that this is a sensible default policy for all ubuntu-core devices.13:53
ogra_what is the use for it ?13:54
slangasekyou know console-conf is an optional setup step?13:54
slangaseknot all devices are going to have console-conf as the first boot experience.  some have to be non-interactive.13:55
ogra_you *need* to either go through subiquity, cloud-init or apply some assertion to actually get a poper network config13:55
slangaseknon-interactive + no network by default == expensive doorstop13:55
ogra_withooout either of these you should noot suddenly have the device online13:55
slangasekI've never heard assertions mentioned in the context of network config, are there docs on this?13:55
ogra_welll, you can somehoow suplly a netplan yaml ... not sure how that works though13:56
ogra_in any case what does the DHCP by default gain you apart fom insecurity if you dont have a poperlly configued rest of the system ?13:56
slangasekit gains you... the ability to talk to the store and actually come up as a snappy system13:57
ogra_(and 2min hangs oon boot if you actualy do not configure eth0)13:57
ogra_also note that eth0 *only* works because we foce the new naming schemes off via the kernel cmdlline13:57
jdstrandmvo, zyga-ubuntu: I want to be very clear that https://github.com/snapcore/snapd/pull/4031 needs to be in 2.28.513:58
mupPR #4031: interfaces/network-control: remove incorrect rules for tun <Created by jdstrand> <https://github.com/snapcore/snapd/pull/4031>13:58
ogra_(by setting net.ifnames=0 ... it wont work at all when you drop that)13:58
zyga-ubuntujdstrand: noted13:58
mvojdstrand: I targeted it for 2.28.513:58
* jdstrand is worried about net infrastructure snaps13:58
ogra_(you just end up with a brooken hardcoded eth0 device in netplan.yaml)13:58
zyga-ubuntujdstrand: you have a unit test failure now14:00
ogra_slangasek, to talk to the store ? without having the device configured ?14:00
ogra_(you want an account and keys and all ...)14:01
mvozyga-ubuntu: any ideas how to further debug the hiri&nvidia-384 issue? if I strace it I see a mmap() before it dies14:01
ogra_(which you get via the assertion or manual config)14:01
zyga-ubuntumvo: strace the outside of snap copy14:01
zyga-ubuntumvo: and strace the one inside14:01
zyga-ubuntumvo: it's super tedious though :/14:01
zyga-ubuntumvo: does devmode help?14:03
zyga-ubuntumvo: and one more idea14:03
zyga-ubuntumvo: nsenter into the mount namespace14:03
zyga-ubuntumvo: and see if *that* works14:03
zyga-ubuntumvo: then you have no seccomp, no apparmor, no cgroups14:03
zyga-ubuntumvo: is it our layout or is it something else14:04
mvozyga-ubuntu: devmode helps with the debugging but still fails14:04
mvozyga-ubuntu: I can `snap run --shell hiri`, thats fine, but when I try to run it boom14:04
zyga-ubuntumvo: no, not like that14:05
zyga-ubuntumvo: just nsenter14:05
zyga-ubuntumvo: I'll see if 16.04 + hiri work on my system, I found a HDD I can swap inside14:06
mvozyga-ubuntu: just nsenter -m... has the same problem14:07
zyga-ubuntumvo: that's good to know14:07
mvozyga-ubuntu: crash in libnvidia-glcore.so.14:08
zyga-ubuntumvo: so it's not our confinement14:08
zyga-ubuntumvo: just our laoyut14:08
zyga-ubuntu*layout14:08
zyga-ubuntumvo: hmmmm14:08
zyga-ubuntumvo: a view of /proc/pid/maps inside and out could help14:10
zyga-ubuntumvo: run hiri on the outside and pastebin a copy14:10
=== ikey|zzz is now known as ikey
zyga-ubuntuikey: hey14:17
zyga-ubuntuikey: I tried to add indent to solus a few days ago14:17
zyga-ubuntuikey: but I failed miserably14:17
mvozyga-ubuntu: actually I think it is the confinement in some way, I managed to run it from inside the namespace now14:18
zyga-ubuntumvo: can you look at /sys/fs/crgroup/devices/.../devices.list?14:19
mvozyga-ubuntu: sure: "a *:* rwm"14:20
zyga-ubuntuthat's "all devices"14:20
zyga-ubuntu(AFAIK)14:20
zyga-ubuntuhmm, that's odd, I would expect a concrete list14:20
zyga-ubuntumaybe this snap is not using opengl?14:21
zyga-ubuntu(as the interface)14:21
mvozyga-ubuntu: it is using opengl, I'm in devmode right now for easier debugging14:22
jdstrandzyga-ubuntu (cc mvo): unit test fixed14:22
zyga-ubuntuthanks!14:22
mvozyga-ubuntu: nsenter, setup the right library path> hiri launches. `snap run hiri` -> not14:22
mvothanks jdstrand14:22
zyga-ubuntumvo: may I ask what did you tweak to make it work inside the namespace?14:23
mvozyga-ubuntu: I just setup the LD_LIBRARY_PATH14:24
mvozyga-ubuntu: I think that was all14:24
mvozyga-ubuntu: I will try again14:24
zyga-ubuntumvo: did you get any seccomp kill?14:24
mvozyga-ubuntu: I think not14:24
zyga-ubuntumvo: those are not DENIED (the message is different)14:24
mvoI check, I just got a machine crash14:24
zyga-ubuntumvo: so you made it work inside nsentere'd namespace with some LD_LIBRARY_PATH tricks14:24
zyga-ubuntubut not inside the devmode confinement, right?14:25
mupPR snapcraft#1612 opened: cross compile: enable cross compilation of i386 kernel on x86-64 hosts <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1612>14:29
kalikianasergiusens: wrt https://github.com/snapcore/snapcraft/pull/1568 the problem is that x revisions are arbitrary, so installing the same snap on two systems may lead to different filenames - different filenames won't ever be compared with my code... now, after some rubber ducking, I realize, I could try to query the snap in use in the container: except, it'll be ugly, `snap info` can't be parsed nicely, `file -b` sort of works...14:30
kalikianapondering what to do here14:30
mupPR snapcraft#1568: lxd: don't re-inject the same snaps <Created by kalikiana> <https://github.com/snapcore/snapcraft/pull/1568>14:30
mvozyga-ubuntu: correct14:30
zyga-ubuntumvo: you could disable apparmor/seccomp/cgroup initialzation and see if that makes it work14:31
zyga-ubuntumvo: and then re-enable until you find the one that breaks it14:31
zyga-ubuntuonce we know which of the backends it is we can look at it more closely14:32
mvozyga-ubuntu: thanks, thats a good one - its setup_devices_cgroup()14:35
kalikianasergiusens: I'm thinking to go with `file -b` in all cases, since hypothetically you could also have a revision from the store that's not being used...14:36
mvozyga-ubuntu: well, or snappy_udev_init()14:36
zyga-ubuntumvo: ha14:37
zyga-ubuntumvo: so...14:37
zyga-ubuntumvo: disable devmode please14:37
zyga-ubuntumvo: restart the thing and look at devices.list again14:37
zyga-ubuntumvo: we can add stuff there, one by one,14:37
mvook14:37
mvoon it14:37
zyga-ubuntumvo: and you can start the app (from a snap run --shell session)14:37
zyga-ubuntumvo: just don't restart the app as it will re-configure the cgroup14:38
zyga-ubuntumvo: let's start with a list of devices you get, as a baseline14:38
zyga-ubuntumvo: then let's look at /dev/nv* on the outside and look for missing things14:38
* zyga-ubuntu hugs mvo who fights this tirelessly14:38
slangasekogra_: 2 minute hang on boot is a separate question, and that is in progress with an extension to the netplan schema14:40
itsfemme[m]wishlist item: setting per snap VPN/tor configs14:41
ogra_slangasek, what about the hardcoded NIC name ? if we ever drop the net.ifnames=0 it willl be boken anyway14:43
ogra_*broken14:43
ogra_it only works today because there is an actual eth0 ... which do dont have anymore once you enable "predictable NIC names"14:44
mvozyga-ubuntu: ha!14:44
mvozyga-ubuntu: looks like /dev/nvidia-modset was missing14:44
mvozyga-ubuntu: and nvidia-uvm has a different major number for me than in hte source. I will push a PR shortly. this was a PITA14:45
mvozyga-ubuntu: thank you so much for your help14:45
zyga-ubuntumvo: can you amend the forum post with the numbers of each of those? I'll cross check with the kernel docs and with my machine14:46
zyga-ubuntumvo: and compare (if you can) to 17.10 machine on same HW)14:46
zyga-ubuntumvo: last thing I want is a per-kernel-version if statement14:47
mvozyga-ubuntu: meh, looks like nvidia-uvm gets its major number somewhat dynamically :(14:47
zyga-solusmvo: ok, we can stat it and add a code path that does the right thing14:47
slangasekogra_: subiquity does not hard code the name eth0, only ubuntu-core does that14:49
ogra_slangasek, i think netplan does14:49
slangasekno14:49
ogra_we dont apply a default yaml i think14:49
ogra_hmm14:49
mvozyga-solus: yeah, looking at this next14:50
mupPR snapd#4033 opened: snap-confine: add support for handling /dev/nvidia-modeset <Created by mvo5> <https://github.com/snapcore/snapd/pull/4033>14:50
ogra_ubuntu-core-config (0.6.40+ppa11) xenial; urgency=medium14:51
ogra_  * etc/netplan/00-snapd-config.yaml:14:51
ogra_    - add default network config14:51
ogra_ -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 30 Sep 2016 19:26:34 +020014:51
ogra_slangasek, ok, you are right :)14:51
ogra_so it is actually self inflicted pain .. but shouldnt subiquity completely overwrite that ?14:53
slangasekogra_: "overwrite" it how?  netplan brings up the network devices however they've been pre-configured, then subiquity (console-conf) gives the user the option to reconfigure... that's it14:54
ogra_slangasek, well, subiquity calls netplan generate and netplan apply at the end, or doesnt it ?14:54
ogra_i would expect the generate to actually generate a new config14:55
slangasekwell, it does, no?14:55
zyga-ubuntumvo: reviewed14:56
ogra_the question is, does it pick up that dhcp setting from the former file or is that something thats a default inside subiquity (for eth0)14:56
mvozyga-ubuntu: thanks, working on it. funny, was what I wanted to do in a followup anyway :)15:01
zyga-ubuntumvo: if you stat you can drop the constants15:01
zyga-ubuntujust stat the filename and apply that15:01
zyga-ubuntuit should be tiny and if jdstrand reviews we can get this in quickly15:02
mvozyga-ubuntu: it is tiny15:02
mvozyga-ubuntu: is it ok for me to amend the commit? for easier cherry picking?15:03
zyga-ubuntumvo: yes15:04
* zyga-ubuntu always rebases if nobody looks15:04
zyga-ubuntumvo: I'm checking kernel tree for 25415:04
zyga-ubuntuit's not defined as a static number in admin-guide.txt but it might be just stale15:04
mvozyga-ubuntu: no worries, I use major/minor now everywhere15:05
=== cachio is now known as cachio_lunch
Chipacaanybody have systemd.unit(5) from trusty to hand?15:07
zyga-ubuntuChipaca: one sec15:08
zyga-ubuntuhttp://manpages.ubuntu.com/cgi-bin/search.py?q=systemd.unit&op=&cx=003883529982892832976%3A5zl6o8w6f0s&cof=FORID%3A9&ie=UTF-815:08
mvopedronis: do you think you have a moment to answer the question that zyga-ubuntu has in 4026 ?15:08
zyga-ubuntuChipaca: :-(15:08
zyga-ubuntuChipaca: let me boot my vm15:08
om26erHi! Which Ubuntu Core image shall I be using for reliable bluez support ?15:10
zyga-ubuntuom26er: hey, ubuntu core doesn't ship bluez, there's a bluez snap and the kernel you use for a device provides the needed bits15:10
zyga-ubuntuom26er: short answer: it's complicated15:10
om26erzyga-ubuntu: I installed the bluez snap, didn't know about a special kernel15:11
om26erI am on edge channel currently15:11
om26er...of Ubuntu Core.15:11
zyga-ubuntuom26er: which kernel snap are you using now?15:12
om26erzyga-ubuntu: pi2-kernel  4.4.0.1074.74  42    canonical  kernel15:12
zyga-ubuntuah15:13
zyga-ubuntuso you are talkin about raspberry pi :)15:13
om26eryeah15:13
zyga-ubuntufor that I think ppisati or ogra_ can give better advice, I would also recommend discussing this in a thread on forum.snapcraft.io so that others can reuse the knowledge15:13
ogra_om26er, you still need some hackery to power up the BT devices on the pi15:18
ogra_om26er, https://bugs.launchpad.net/snappy/+bug/1674509/comments/3015:18
mupBug #1674509: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 <snapd-interface> <Snappy:Confirmed> <linux-raspi2 (Ubuntu):Invalid by p-pisati> <https://launchpad.net/bugs/1674509>15:18
om26eroh, I was kind of looking to use UbuntuCore+bluez in a production level software.15:19
om26erandroid <--> BLE15:19
zyga-ubuntumvo: reviewed15:20
om26erogra_: which Ubuntu Core image shall I be using ?15:20
ogra_om26er, the edge one15:20
om26erI would prefer Stable but WiFi is broken on that one badly.15:20
om26ereven the edge image crashed for me once, while setting up wifi15:21
om26er...had to run the setup again.15:21
ogra_om26er, well, you need the edge gadget and a kernel newer than stable ... so install from edge, switch coe to stable and the kernel snap to beta or so15:21
ogra_s/coe/core/15:21
zyga-ubuntumvo: reviewed (again)15:22
mvozyga-ubuntu: \o/15:23
om26erwho maintains the bluez snap ?15:23
ogra_om26er, koza15:23
zyga-ubuntukoza: ^15:23
om26erkoza: when will bluez 5.47 graduate to stable ?15:23
om26eralso is there a python example for talking to bluez(snap) in another confined snap ?15:25
zyga-ubuntumvo: can you review https://github.com/snapcore/snapd/pull/4031 please15:25
mupPR #4031: interfaces/network-control: remove incorrect rules for tun <Created by jdstrand> <https://github.com/snapcore/snapd/pull/4031>15:25
kozaom26er, snap or deb?15:26
om26erkoza: snap15:26
ogra_koza, we should prehaps schedule some time at the sprint to get that pi3 bluez stuff finished ;)15:28
zyga-ubuntumvo: it looks like this week, while bumpy, is also very much relevant for getting important (and long standing) bugs fixed15:28
kozaom26er, it is currently in edge, do not have a date in my mind; do you need it for something?15:28
ogra_(there is still the hciattach script we need etc)15:28
kozaogra_, yes we should15:29
om26erkoza: nothing specific, though I was building it from source on raspbian and the latest there was 5.47, so wanted to make sure I was using similar stack.15:29
kozaom26er, snap is at 5.44 and you should be fine with it until the 5.47 lands. i have landing card for it already but not a fixed date ahead of me. cannot do it over night as testing takes time15:32
om26erkoza: ok no problem. is BLE/GATT working fine on that release ?15:33
om26er5.44 I mean.15:33
kozaom26er, it is working well15:34
kozaom26er, it gets better with every bluez release however 5.44 isitself is solid15:35
ikeywhen does the "base snap" functionality land properly?15:35
* ikey has plans for them15:35
zyga-ubuntuikey: we're working on them still but basics are available in 2.28.x15:35
ikeyok15:35
zyga-ubuntuikey: we need tooling around building and using them though15:35
zyga-ubuntuikey: and there are still some hard-coded assumptions (like /proc, /sys and perhaps some we like less)15:36
ikeywell for my needs its basically i pre-prepare a root and point at it15:36
ikeywell, /proc /sys aren't so bad i dont think15:36
zyga-ubuntu:)15:36
zyga-ubuntuyep15:36
ikeybut multiarch assumptions might be a slap in the face15:36
ikeyif they exist15:36
ikeythough relative ../ symlinks can solve that15:36
zyga-ubuntumvo has a minimal base snap15:36
zyga-ubuntuI think it has very little inside15:36
om26erkoza: sounds great. If you could share some working examples that would be really helpful. Even a basic pair, ping/pong would suffice.15:37
ikeycan a base snap be run? or just exposed as a dependency?15:37
ikeyideally id want a self contained snap, but if its not possible then fine15:37
zyga-ubuntuhttps://github.com/snapcore/snapd/tree/master/tests/lib/snaps/test-snapd-base-bare15:37
zyga-ubuntuthat's a base snap15:37
ikeyoh15:37
zyga-ubuntuyou can just start from that15:37
ikeyso id build that with snapcraft?15:37
zyga-ubuntuand we'll gladly resolve issues15:37
zyga-ubuntuyep15:37
ikeyok15:38
mupPR core#61 opened: Also "mask" services when disabling them <Created by mvo5> <https://github.com/snapcore/core/pull/61>15:38
zyga-ubuntuas you find them :)15:38
ikeyand is snapcraft going to punch me in the face for using a peasant OS?15:38
ikeyand not having dpkg?15:38
zyga-ubuntu:/15:38
zyga-ubuntuprobably15:38
zyga-ubuntubut15:38
ikeylol15:38
zyga-ubuntuit's just a snap pack thing15:38
* om26er will be doing websockets(actually WAMP) over BLE.15:38
zyga-ubuntuso you don't need snapcraft for this15:38
zyga-ubuntujust mksquashfs15:38
ikeyaha15:38
ikeyok thats good15:38
zyga-ubuntuwe added a new "snap pack" command in master15:38
kozaom26er, start with our documentation to bluez snap and bluez itself: https://docs.ubuntu.com/core/en/stacks/bluetooth/bluez/docs/index15:38
kozaom26er, any bluez example will work with core, DBus interfaces are the same15:39
mvozyga-ubuntu, ikey I don't know most of the context but I will comment anyway. there is a "bare" base snap that can be used. it has *nothing* inside except for directory mount-points. no libc, no content15:39
ikeythats good, no libc15:39
ikeyok ill give you context, cant keep this quiet long15:39
ikeymake it easier :P15:39
ikeyim going to make a solus derived runtime that caters exclusively to steam15:40
om26erogra_: where to get hciattach for this: https://bugs.launchpad.net/snappy/+bug/1674509/comments/3015:40
mupBug #1674509: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 <snapd-interface> <Snappy:Confirmed> <linux-raspi2 (Ubuntu):Invalid by p-pisati> <https://launchpad.net/bugs/1674509>15:40
ikeyand ship a strict linux-steam-integration entry point in it15:40
ikeyso it'll be a build of steam that actually doenst suck, and will work the same on any distro15:40
ikeyeven distros that cant multilib15:40
ikeyit'll fix the various performance and functionality issues with the existing steam stuff15:41
mvoikey: woah, that sounds pretty specacular!15:41
ikeyi had *originally* planned to do this in flatpak land a long time ago but it suffers design deficiencies15:41
ikeynotably the layering and driver functionality15:41
ikeythe driver stuff in snapd for nvidia is much better15:41
ikey(because we can trust nvidia proprietary driver C ABI)15:41
zyga-ubuntuikey: I'd like to understand your insight into that to avoid such issues in snapd in the future15:42
ikeyzyga-ubuntu, flatpak tries to strongly discourage new root imagery15:42
ikeyso you inherit from another all the time15:42
ikeyeven the KDE runtime does this15:42
* zyga-ubuntu hugs mvo who fixed nvidia for a lot of people just now :)15:42
ikeythey also use glvnd inside the flatpak runtimes15:42
ikeyand dynamically download/install a related series..15:42
ikeydoesnt *actually* use the host driver15:42
mvozyga-ubuntu: a busy day, one more fix (xdg-open) and then I call it a day and get a big beer^Wtea15:43
ikeyits.. ya. its wrong.15:43
ikeyalso the flatpak system is using flatpak-builder (json, seriously?), with yocto derived images15:43
ikeyi had to poke them forever before they started using any secure cflags anywhere, but theres no optimisation at all15:43
ikeyso any flatpak app is going to run like a spud.15:43
ikeythe runtime is just a meta distro, not a real distro15:44
ikeyso my steam snap would be a solus derived runtime that can also make additional tweaks to cover full abi compatibility for steam runtime & games..15:44
ikeyand take the pressure off the distros finally.15:44
zyga-ubuntuikey: wow, that's pretty darn cool15:44
ikeyhttps://github.com/ikeydoherty/runtime-abi-check <- also working on this in parallel so we can assert a full runtime compatibility check15:45
zyga-ubuntuikey: do you think you could be more vocal about it, I'm sure many people will want to hear this15:45
ikeyzyga-ubuntu, well id tried to keep it under wraps at first but ive a big mouth :P15:45
ikeycats out of the bag first and even people on reddit have sussed out what im up to15:45
ikeys/first/now/15:45
* ikey unbraintwitches15:45
zyga-ubuntuikey: let us know if we can help15:46
ikeycertainly - this is basically what my vague snapcraft post was about the other day btw :P15:46
* ikey goes to spill the beans properly on G+15:46
ogra_om26er, it comes with the snap15:47
zyga-ubuntuogra_: thank you for testing https://github.com/snapcore/core/pull/61#pullrequestreview-68970473 !!!15:49
mupPR core#61: Also "mask" services when disabling them <Created by mvo5> <https://github.com/snapcore/core/pull/61>15:49
ogra_zyga-ubuntu, waiting for travis and willl merge then too15:50
zyga-ubuntumvo: I assume you want that for the new core15:50
ogra_we definitely do15:50
ogra_(breaks a customer)15:50
mupPR core#61 closed: Also "mask" services when disabling them <Created by mvo5> <Merged by ogra1> <https://github.com/snapcore/core/pull/61>15:53
zyga-ubuntuChipaca: can you do a quck 2nd on https://github.com/snapcore/snapd/pull/402715:53
mupPR #4027: spread: allow setting SPREAD_DEBUG_EACH=0 to disable debug-each section <Created by zyga> <https://github.com/snapcore/snapd/pull/4027>15:53
Chipacaprobably15:53
mupPR snapd#4029 closed: packaging: remove .mnt files on removal <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4029>15:54
=== cachio_lunch is now known as cachio
Chipacazyga-ubuntu: +115:55
zyga-ubuntuthank you15:55
mupPR snapd#4027 closed: spread: allow setting SPREAD_DEBUG_EACH=0 to disable debug-each section <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4027>15:56
ikeyhttps://plus.google.com/+Solus-Project/posts/ZL8C2wBqbfg15:56
* ikey has let knowledge slip15:56
zyga-ubuntuikey: :heart: (I wish IRC did this)_15:57
ikey:D15:58
ikeyfwiw i once wrote an IRC client in java years ago (Called it Dave2) - and I thought the best way to implement smilies would be to use a web view. And it worked fantastically15:58
ikeyThat is, until the other guys on the channel figured out a flaw in my plan. And started sending <img src=...15:59
zyga-ubuntugoatse on IRC never looked the same15:59
ikeylol15:59
zyga-ubuntu:>15:59
mupPR snapcraft#1612 closed: cross compile: enable cross compilation of i386 kernel on x86-64 hosts <Created by piso77> <Closed by piso77> <https://github.com/snapcore/snapcraft/pull/1612>15:59
ikeyp much15:59
popeyzyga-ubuntu: what irc client do you use?15:59
zyga-ubuntupopey: irssi on ubuntu, hexchat on solus, polari on fedora and suse15:59
* ikey still holds a stupid preference to xchat over hexchat for old timey sake16:00
popeyfile:///home/alan/Pictures/Screenshot%20from%202017-10-12%2016-59-24.png https://usercontent.irccloud-cdn.com/file/yPkV6ROY/Looks%20great%20in%20irccloud%20%3A)16:00
ikeylike i have some irrational grudge against hexchat16:00
zyga-ubuntuI'd like to write an IRC client one day, would be a good way to learn about socket APIs (in C obviously)16:00
ogra_zyga-ubuntu, pfft C ... kool kids write it in shell !16:01
ikeyzyga-ubuntu, sooo i did an evil with that once16:02
ogra_shell with whiptail UI16:02
ikeya malloc-free IRC client in C16:02
ikey(CLI only)16:02
ikeyi say this one thing and you cry: variable length arrays16:02
zyga-ubuntuogra_: "would you like to send a message" dialog window in ncurses?16:02
ogra_yeah !16:03
zyga-ubuntuikey: alloca?16:03
zyga-ubuntuikey: malloc free is a noble goal16:03
ikeyVLAs, like16:03
ikeyargument of size in function definition16:03
zyga-ubuntuikey: I really have a lot of respect for reliable software that can function as a finite state machine and have no memory allocation16:03
ikeythen: char blob[n]; from function parameter16:03
ikeythats a special kind of evil lol16:03
zyga-ubuntuikey: right, all stack based, allowed by modern C (well, as of C99)16:03
ikeysure16:03
ikeybut should be killed with fire :P16:03
ikey(quite easy to kill them)16:04
popeyzyga-ubuntu: should I switch to core edge channel in anticipation of exciting fixes coming down the pipe soon? :)16:17
popey</hopeful>16:17
zyga-soluspopey: yes, later today when mvo rebuilds new core16:20
popeysuper16:20
zyga-solusmvo: but I think you can keep beta16:20
zyga-soluser16:20
zyga-soluspopey: ^16:20
popeyoh ok16:20
zyga-solusbecause it will go there for cachio to test16:20
* kalikiana hopping on a train, will check back in a bit later16:21
kalikianaelopio: perhaps also interesting for you, I may have found a way to make those x revisions match... will push later after I can test it properly16:23
kalikianait occurred to me the 'current' snap makes more sense than the exact filename16:23
mupPR snapd#4034 opened: dbus: ensure io.snapcraft.Launcher.service is created on re-exec <Created by mvo5> <https://github.com/snapcore/snapd/pull/4034>16:27
mvopopey: yeah, later today, some things have no landed yet, but some good fixes on the way16:28
mvozyga-ubuntu: I would like to merge 4026 even with the open questions, wdyt?16:35
mupPR snapd#4031 closed: interfaces/network-control: remove incorrect rules for tun <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4031>16:35
mvoChipaca: you mentioned earlier you are ready for reviews - 4034 needs one16:36
zyga-solusmvo: mmm16:38
zyga-solusmvo: can you telegram gustavo? maybe pedronis is around and can give a quick yes/no16:38
zyga-solus(please)16:38
=== Eleventh_Doctor is now known as Pharaoh_Atem
ikeysoo uhm16:39
ikeywhats developer namespace?16:39
ikeyon snapcraft form16:39
zyga-solusikey: your developer nickname16:40
zyga-solusikey: when you snap install foo it is "foo from developer bar"16:40
zyga-soluswhere bar is the namespace16:40
ikeyoh16:40
ikeyso ikey16:40
ikeylol16:40
zyga-solusand foo is the snap name16:40
zyga-solusyep16:40
zyga-solus:D16:40
ikeycheers :D16:40
zyga-solusbut16:40
ikeyya idk why this wants my address, not getting it :p16:40
zyga-solusyou can make it "solus" or something like that if youwant16:40
ikeynah we'll have more solus devs over there in future16:40
zyga-solusok16:40
ikeymy ego isnt this large :P16:40
zyga-soluseventually you should be able to have a solus account and many people publishing there16:41
zyga-solusthere are simple ways of doing that now16:41
ikeyprobably put Solus in company name..?16:41
zyga-solus^_^ no idea16:41
ikeyshould i call my snap "linux-steam-integration" or just "lsi" ?16:42
ikeymore thinking in case valve gets uppity16:42
zyga-solusLovely Startup Interface16:42
ikeylinux-steam-integration it is16:42
ikeyand im guessing Ubuntu (public)16:43
ikeyoh wow, the dashboard is so unity 816:43
zyga-solusoh?16:44
zyga-solusin what way/16:44
zyga-solusI haven't looked at it in a long time16:44
ikeyicons etc16:44
ikeyhttps://ibin.co/3dY4toqN8qV8.png16:44
ikeylol16:44
zyga-solusah, indeed :)16:44
zyga-solusis that dashboard.snapcraft.io?16:44
ikeyyeah16:45
zyga-solusyeah :)16:45
zyga-solusI think it needs some UX love16:45
zyga-solus(probably already in some pipe)16:45
ikeyaye16:45
ikeyso normally i can just do snap register i guess?16:45
ikeyah snapcraft register16:45
ikeymakes sense - context n all16:45
zyga-solusyes16:45
zyga-soluslog in16:45
zyga-solusthen register16:45
* ikey thinks he might be at the point of no return now16:46
ikeylol16:46
zyga-solusterrible stuff sucks but great stuff sucks all the time :)16:47
ikeyhah nice16:47
ikeyoh one thing i didnt figure earlier zyga-solus16:49
ikeycan a base snap run? or must it be split as app + base16:49
Chipacamvo: +1 with two Qs16:49
zyga-solusikey: it depends on what you mean16:49
zyga-solusikey: I don't think we tried apps on base snaps yet16:49
ikeyok so ill keep it simple and have a split runtime16:49
zyga-solusikey: but you can certainly ship executables inside16:50
ikeybasically ill make linux-steam-integration depend on solus-gaming-runtime or something16:50
zyga-solusikey: I think we'll find dragons, I'll gladly fix anything you run into16:50
ikeythinking more from the delta perspective if i need hotfixes in LSI its likely better to split them16:50
zyga-solusoh, indeed16:50
ikey*registers new snap*16:51
ikeylol16:51
zyga-solusfor base snaps you will run into "stale base snap bug" so you may need to unmount /run/snapd/ns/foo.mnt (where foo is the app snap) from time to time16:51
ikeyah ok16:51
ikeyhm ill call it solus-runtime-gaming - we might end up expanding this stuff, who knows16:51
ikeynice having a common basename16:51
mcphaili'm loving the sound of this16:52
ikeywell from my perspective its about time solus shared its toys16:52
ikeyour pride and joy is our steam gaming lol16:52
zyga-susedarn16:52
ikeydarn because you suddenly realised you're on suse?16:53
ikeyor..?16:53
zyga-suseI suspended my laptop because I was looking for something on the other side of the lid and I just closed it (a little)16:53
ikeyow16:53
zyga-susetrying to resume it16:53
ikeyxD16:53
zyga-susehmm16:53
zyga-suseso mouse works16:53
zyga-susebut keyboard input does not16:54
zyga-suse....16:54
ikeyo_O16:54
zyga-suseI can move to VT and log in there16:54
zyga-susebut I cannot get any input in the desktop session16:55
zyga-suseI see a lot of "gdk_device_update_tool: assertion `GDK_IS_DEVICE (device)` failed16:56
* ikey thinks hard reboot16:56
zyga-suseI'll reboot, too tired to debug another thing today16:56
zyga-suseI think I was fully up-to-date16:57
zyga-suseI'll check in a sec16:57
zyga-solushmm16:59
zyga-solusI thought hexchat remembers my config16:59
zyga-solusodd16:59
* Chipaca EODs (mostly)16:59
zyga-solussee you tomorrow john!17:00
zyga-solusikey: you know17:03
zyga-solusone bit of complaint (or just observation perhaps)17:03
ikey?17:03
zyga-solusplaying with all the distros17:03
zyga-solusand updating them on a regular basis17:03
zyga-soluspacman has the most silly command to use17:03
ikey-Syu17:03
ikeylol17:03
zyga-solus"pacman -Suy" (maybe --soy-milk)17:03
ikeyXD17:03
Pharaoh_Atempacman has the dumbest syntax in the world17:04
zyga-solussolus has a nice UI tool17:04
ikeywe have derpy "eopkg" which is so easy to typo17:04
zyga-solusbut "eopkg it" is more like "freud id" in my head17:04
zyga-soluswhy not "install"17:04
ikeyyou can eopkg install17:04
zyga-solusah17:04
ikey`it` is just a shorthand17:04
ikeyit supports both17:04
zyga-solusman, I didn't notice :)17:04
ikey:D17:04
ikey`eopkg help` will sort you right out17:04
zyga-solusyeah, I just typed that17:05
ikeyfwiw that command will change one day17:05
zyga-solusand I'm fully up-to-date17:05
ikeyit was eopkg because evolve os17:05
zyga-solusah17:05
ikeyyeah sync window is tomorrow17:05
zyga-solusI was wondering what "e" stands for17:05
zyga-solusbtw, I had a package to share17:05
zyga-solusunfinished17:05
ikeygnome 3.26, systemd 235, etc17:05
ikeyoh ok17:05
zyga-solusbut maybe you can do it17:05
mvoChipaca: \o/17:05
Pharaoh_Atemzyga-solus: Evolve OS17:05
Pharaoh_Atemeopkg was forked from PiSi from Pardus17:06
ikeymany moons ago17:06
ikeyfwiw we didnt originally fork it, we continued the development of it as pardus abandoned it17:06
ikeybut then pardus anka got pissy with us for calling it pisi still17:06
Pharaoh_AtemSolus OS (deb) became Evolve OS (pisi), which became Solus again17:06
ikeyso we renamed it17:06
ikeyEhm17:06
Pharaoh_Atemdid I miss a step?17:06
ikeySolusOS 2 (pisi) became Evolve OS (pisi)17:07
zyga-solusikey: https://gist.github.com/zyga/754d14715963ecc8b72f6d39059ffa1b17:07
Pharaoh_Atemah17:07
Pharaoh_Atemwhoops17:07
ikeyyeah its complex :P17:07
zyga-solusikey: I wanted to build it but man, that indent program is old shit17:07
ikeyxD17:07
zyga-solusikey: I had to use the debian .orig tarball which is unofficial but has fixes17:07
ikeyoh sweet holy jesus17:07
zyga-solusikey: and even with..17:07
zyga-solusyeah17:07
zyga-solusand it doesn't build :-(17:07
ikey-Wno-implicit-int17:07
zyga-solusbut I wanted to use it17:07
zyga-solusikey: it's all old crap17:07
Pharaoh_Atemfuck eww17:07
zyga-solusI wanted to share in case you can make it magically work17:08
zyga-solusand get a first package into solus :)17:08
* ikey has a lookie17:08
zyga-solusikey: it fails on docs now17:08
zyga-solusikey: the --sections option grew into two and I got stuck trying to unf*** that and regen autotools17:08
ikeylol17:08
zyga-solusikey: I think it's one of those old unloved packages and GNU folks still demand dead tree signature mailed to US somewhere17:09
zyga-solusso debian forked it but nobody loves still17:09
zyga-soluslove is hard when it's GNU/Love17:09
ikeyall you need is gnu...17:10
* ikey cooks a patch17:11
zyga-solusikey: I'd love to see what happens next, where does this package go to end up on my laptop17:11
ikey[Package] Creating /home/build/work/indent-dbginfo-2.2.11-1-1-x86_64.eopkg ...17:12
ikey[Package] Creating /home/build/work/indent-2.2.11-1-1-x86_64.eopkg ...17:12
ikey[Package] Building complete17:12
ikeyso basically i stole some fedora/arch packages from arch repo17:12
zyga-solusyou make it look too easy17:12
ikeyand added one new patch17:12
zyga-solusI spent a few hours on this17:12
ikeyhttps://hastebin.com/raw/xokonixera17:12
zyga-solus^_^17:12
ikeyso yeah in terms of our pipeline17:13
ikeyit ends up in our phabricator git "at some point"17:13
ikeywe issue "make publish" which creates a git tag, and tells the build controller the tag and source name17:13
ikeybuild server asks build controller for a job, told to check out indent @ certain tag17:13
ikey(immutable git repos too)17:13
ikeybuilder checkouts the tag, builds the guy local, lets the build controller know how it went17:14
ikeyuploads logs to log server via ssh pubkey, and uploads eopkg to ferryd on package server incoming directory on pubkey ssh17:14
ikeythe builds are done with solbuild which use light container chroots17:14
ikeyno networking allowed, etc17:14
ikeyferryd sees some incoming files turn up (fsnotify), and scans the .tram file17:14
ikeyit describes the full payload and sha256sums17:15
ikey(and the target, i.e. "unstable")17:15
ikeythen if its legit, and passes initial inspection, ferryd will create a job to include it into unstable17:15
ikeywhich is about 8 seconds after hitting the incoming directory17:15
zyga-solusand stable?17:15
ikeyit also spawns off background jobs to see if it can delta it17:15
zyga-solusis that waiting for another stable release?17:15
ikeystable is a weekly sync17:15
ikeywe stabilise the entire repo over the course of one week17:16
zyga-solusah, wow, speedy!17:16
ikeyand we sync it on a friday now17:16
ikeyso ill literally do: ferryctl pull unstable shannon17:16
ikey~10s later the repo is synced17:16
ikeyand the index is updated, letting the updates out17:16
ikeyin the background it'll be off checking the delta mappings and creating new deltas for this upgrade path17:16
ikeylater on i check ferryctl status to see if its complete, tell it to reindex, and bam, delta path is available too17:16
ikeyrealistically unstable is the "real" distro, and shannon is a lagging snapshot release of unstable17:17
ikeymeaning we do a full solus release once a week17:17
ikeyjust without ISOs17:17
ikeyfor this week we've gone from systemd 218 to 235, gnome 3.24 to gnome 3.26, new gstreamer, etc. we're ballsy :P17:17
zyga-solushow do you test it?17:18
ikeyinitially we'll do local ISOs17:18
ikeywhich is basically: cd Solus/solus-image-budgie; make17:18
ikeythen "make boot"17:18
ikeyonce we're happy with our ISO and VM testing, we'll upgrade our own systems on the unstable repos and test the changes17:19
zyga-solusmake boot just boots it?17:19
ikeyyep17:19
zyga-solusis that manual or automatic?17:19
ikeyit just calls out to qemnu17:19
zyga-soluse.g. if gnome is f***d, how do you know?17:19
ikey*qemu17:19
ikeywe test it17:19
ikeylike we manually check the ISO17:20
ikeyive seen what a reliance on openQA does :)17:20
ikeyim also running the gnome 3.26 stack right now17:20
ikeysame as all contributors17:20
ikeywe dogfood17:20
ikeywe also check our logs (dmesg/journalctl) and we have some early warning systems for "you're in trouble)17:20
ikeyf.e. we use abireport on all of our repos17:21
zyga-solusI'm interested because of our, *ahem*, issue this week17:21
zyga-soluswe need to re-visit our testing policy17:21
ikeyaah17:21
ikeyso every change in solus looks something like this:17:21
ikeyhttps://dev.solus-project.com/R2955:370f0e60dcbc5db67249eb42384dfafaeeac374817:21
ikeyas you can imagine, it gives us a really clear heads up17:22
ikeywe only do the package.yml, but the abireport + pspec stuff is all automatic17:22
ikeycombine that with the sync approach + cadence, it actually solves an awful lot of problems before they can happen17:23
ikeywhereas distinct waterfall channels tend to make things too complicated :)17:23
mupPR snapcraft#1613 opened: cross compilation: enable cross compilation of i386 kernel on x86-64 … <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1613>17:26
mupPR snapd#4035 opened: Fix econnreset test when the download needs a retry <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4035>17:40
mupPR snapd#4032 closed: fix shell errors from shellcheck <Created by albertodonato> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/4032>17:41
kyrofaHey elopio, how hard would it be to run a suite of snapd tests on a trusty lxc?17:43
elopiokyrofa: Easy. Just add an argument to the lxd launch script. And a new entry in travis.yml.17:50
elopioHow well snapcraft runs in trusty from source , no clue.17:51
kyrofaBadly. Exactly why I want tests covering it once I fix it17:52
kyrofaelopio, actually, what I really care about is ensuring that the snapcraft _snap_ runs there. Which is sort of a different problem entirely, huh17:53
kyrofaelopio, do we have any tests that ensure the snap works?17:53
elopioWe have the spread tests. And once we finish the branch from sergiusens for pushing the snap for every PR, I want to switch all the integration tests to run from the snap.17:54
kyrofaAre the spread tests run from travis?17:56
kyrofaOr elsewhere?17:56
elopioYes, but on the daily travis cron17:56
kyrofaelopio, do we need to actually publish the snap in order to test it? We could build it and cache it17:57
kyrofaThen follow-on stages could use it17:57
kyrofaBut yeah okay, I'll add spread tasks for this since I believe they have trusty machines available17:58
elopioAccording to the Travis docs, we should share it using an external service. aws or ftp. But, we can't use credentials on PRs.17:59
elopioI think it's better to push to the store, and dog food our own process.18:00
elopio+1 on the spread test.18:03
kyrofaelopio, alright. Note that we might hit a few minutes of store caching18:11
mupPR snapd#4033 closed: snap-confine: add support for handling /dev/nvidia-modeset <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4033>18:35
AlbertAjdstrand: we have consolidated mir-libs into mir-kiosk... so the mir-kiosk snap is now the provider of mir-libs content i/f slot... can we ask to enable autoconnection of mir-libs plug (similar to what we had for mir-libs snap) for mir-kiosk?18:40
mvozyga-solus: the world is conspiring again - tests for 4034 take forever to even start18:53
* ikey is back to being the antichrist on reddit18:54
mvozyga-solus: once those are finisehd I'm keen to merge 4026 too even if we don't get a reply, I would love to push out 2.28.5 tonight but given the state of tests, maybe tomorrow18:54
jdstrandAlbertA: it is good that you are asking this cause things have changed a bit in the process that I've been meaning to circle back to you on. Can you add a formal request using https://forum.snapcraft.io/t/process-for-reviewing-aliases-auto-connections-and-track-requests/455?18:56
AlbertAjdstrand: sure thanks!18:56
kyrofaelopio, the plugins integration tests are reliably running over in Travis. I'd like to split them. Any opinion on a logical split?18:57
jdstrandAlbertA: I haven't looked at the snap, but just a heads up, as part of the conversation you may be asked to change the value of the 'content' attribute (again, maybe you won't need to. we can discuss on the list)18:57
elopiokyrofa I don't want to split them, I would like to make the Ruby and cargo plugins faster. Give me a minute...18:59
mupPR snapd#4026 closed: overlord/auth: continue for now supporting UBUNTU_STORE_ID if the model is generic-classic <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/4026>19:00
kyrofaelopio, alright, let me know. I'll move to testing ROS on artful. But those tests running over is starting to stand in the way of things landing19:00
elopiohttps://gist.github.com/elopio/db8adee5a0ab4505835e0dc85ffcc10519:00
elopioIt seems to me that 3 minutes for a hello world snap is too much.19:00
kyrofaelopio, I mean... you're building ruby from source19:02
elopioAnd I proposed two PRs yesterday to remove 4 tests. That's 4-6 minutes less. A little time to get real fixes in place.19:02
AlbertAjdstrand: ok, is this good? https://forum.snapcraft.io/t/mir-kiosk-mir-libs-auto-connection/245219:02
elopiokyrofa: yes, I'm thinking about a ruby snap. Does that make sense?19:03
kyrofaelopio, well, the plugin explicitly supports multiple versions of ruby19:03
kyrofaelopio, what are your plans there?19:03
kyrofaelopio, that would also require the ruby to be staged19:03
kyrofaelopio, so, stage-snaps19:03
elopioMultiple snaps or tracks. And fall back to build from source19:04
=== JanC_ is now known as JanC
elopioRight, stage snaps. To me, that's the solution for our slow tests. Not more splits.19:05
kyrofaelopio, that's an 18.04 task19:05
kyrofaHow long are we gonna wait? :P19:05
elopioAnd the other thing is parallelization. Yesterday I finally got the nested containers working.19:05
elopioBut, we need to build the snap first, to test he same thing in the container.19:06
kyrofaelopio, also, that raises a lot of questions. Who will maintain all these ruby snaps? Will we also need to start maintaining ros2 snaps?19:06
kyrofaHow about rust?19:06
elopio18.04 starts next week 😃19:06
elopioI think us and snapcrafters, if upstream doesn't accept them.19:07
elopioAnd yes, ros snaps, snaps for everything that makes our hello worlds slow. Or well, that's my idea. If we don't go that path, the split.19:07
elopioOne suite for python, one for Ruby, one for cargo.19:08
jdstrandAlbertA: yes, the request looks fine. thanks!19:08
kyrofaSo to be clear: in order to make tests pass that are failing today, you want to 1) develop stage-snaps, 2) develop ruby-snaps that are good enough to upstream, and 3) find a home for them?19:08
kyrofaelopio, not everything will work well within a snap, too. Gems will be fun. ros2 will be more fun19:09
kyrofaI'm not sure we should put all our eggs in that basket just yet19:09
elopioFirst, remove duplication. That's ready today. Then parallelization, we only need to send the snap somewhere.19:10
elopioThen, make the plugins faster.19:10
elopioIf all else fails, mark the tests as slow and live with them.19:11
zyga-solusre19:44
zyga-solusmvo: I agree about 2.28.519:44
zyga-solusmvo: let me look at PRs now19:44
mvozyga-solus: just one left, pedronis merged his19:46
zyga-solusyep, I see19:47
zyga-solusreading it now19:47
zyga-solusadded a comment19:48
zyga-solusreading rest19:48
zyga-solusmvo: +0.5, not sure about that condition I indicated19:50
zyga-solusmvo: I'll check back19:54
kyrofaelopio, figured out the ROS failure20:00
kyrofaelopio, fix coming20:00
cachiozyga-solus, there?20:00
kyrofaelopio, due to new python3-apt20:00
cachiozyga-solus, in pi 2 and 3 when I set and unset a var for the core like in the test snapctl-configure-core20:01
zyga-solusyes20:01
cachioin the config file it is being removed the new line at the end of the file20:02
cachioit is making the test fail20:02
cachioand I think it is kind of bug20:02
cachiobut the core works well20:02
cachiozyga-solus, any idea why it could be happenning just for the pi's?20:03
elopiotx kyrofa20:06
zyga-solusI think there are pi specific implementations of coreconfig20:06
zyga-solusmaybe a bug there? is that a regression?20:06
zyga-solusI'm honestly too tired to debug this tonight20:06
cachiozyga-solus, yes, it is a regression but it comes from like a month20:06
zyga-solusaha20:06
zyga-solusmvo: ^ let's dalay for tomorrow20:06
zyga-solusmvo: I'll prepare pi2 and pi3 and we can iterate20:06
zyga-soluscachio: please drop a thread with description of the problem20:07
cachiozyga-solus, sure20:07
zyga-solusthank you, sorry, just too tired + back pain (kids decided to invade us last night and we slept like fish in a can)20:08
zyga-solusI'm AFK now20:08
mvozyga-solus: hm, just a \n missing?20:08
cachiomvo, yes20:10
cachiomvo https://paste.ubuntu.com/25728285/20:11
cachiothat is the error20:11
mvozyga-solus: hm, hm, I'm too tired tonight, but we can look tomorrow early20:14
mvocachio: thanks20:14
cachiomvo, sure, no hurry, I'll write a forum post20:15
mvota20:15
mvoI wait for tests for 4034 and then call it a day20:15
cachiomvo, are you gonna include that in 28.5?20:17
mupPR snapcraft#1614 opened: apt repo: allow insecure repos <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1614>20:20
kyrofaelopio, that's for you ^^20:21
elopiokyrofa: I'm on holidays today. I'll review it tomorrow.20:40
kyrofaelopio, oh! I'm sorry, I didn't know, I wouldn't have been bothering you!21:04
elopioDon't worry. I would have told you to stop bothering me if you were :)21:07
kyrofaGood :)21:15
kyrofaelopio, what are you up to, then? Just hangin out?21:15
=== jkridner|pd is now known as jkridner_
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mupPR snapcraft#1615 opened: schema: improve invalid app, hook, and part errors <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1615>22:54
mupPR snapcraft#1616 opened: store: guide to account creation upon login <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1616>23:24

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