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

gsilvaptAnyway, here's my understanding:00:00
gsilvaptThe @click.version_option() command should be like @click.version_option(message.format(snapcraft.__version__))00:01
gsilvaptThis get the version number and plugs it in the variable string00:01
gsilvaptThe same goes in the version module. click.echo(message.format(snapcraft.__version__))00:01
gsilvaptkyrofa, is this correct so far?00:02
kyrofaEssentially. The question is: where does `message` come from?00:03
gsilvaptYes00:04
kennylogginshow do you ensure that the Mp3 or whatever you are sending is seen in servicesID ?00:07
kyrofaHmm. Anyone run into this before? https://forum.snapcraft.io/t/raspberry-pi-2-edge-core-snap-seems-broken/3061/200:08
gsilvaptYes, that is essentially the question, kyrofa00:09
kyrofagsilvapt, you've been right so far, can you continue?00:09
gsilvaptI tried adding in version module, before click statement and didn't work. Tried adding to group section, not worked either00:09
gsilvaptkyrofa, not really. The question is where should I define that variable00:10
kyrofagsilvapt, take a look at snapcraft/cli/store.py00:10
kyrofagsilvapt, notice the `_MESSAGE_REGISTER_PRIVATE` definition00:11
gsilvaptkyrofa, yes, I'm trying to follow the example00:11
kyrofagsilvapt, the module-level definitions (like the variable) are accessible from __init__ because we have an "import versioncli" there, right?00:12
kyrofaWhich means you can access stuff via `versioncli.<variable>`00:12
kyrofaUh, no sorry00:12
kyrofaHaha00:12
kyrofaRather, the module-level definitions are available in the `.version` import00:13
kyrofaNote how in __init__.py we're using `from .version import versioncli`00:13
kyrofaAll we need to do is also import the variable you define in there00:13
kyrofaIt works the same way00:13
gsilvaptkyrofa, so I added from .version import _MESSAGE_SNAPCRAFT_VERSION and I am able to use the command again without any errors00:15
gsilvaptnow I have to properly define the string to get prog name and version number00:16
gsilvaptRight now the version command is always retrieving ($prog) and ($version)00:16
kyrofaThere you go. Although since you've created it for use for other modules I wouldn't use an underscore at the beginning (that indicates that it's mean to be private)00:16
gsilvaptOh right, this is different in Python. A global variable does not take any underscore, right?00:17
kyrofaWell, it can, it depends on its usage00:17
gsilvaptkyrofa, how about this case?00:18
kyrofaPython has very little rules, but lots of conventions00:18
kyrofaI would call it `SNAPCRAFT_VERSION_TEMPLATE`00:18
gsilvaptI'm more used to work in Java and this stuff is specific anyway :P00:18
gsilvaptWell, it's late again and I need to sleep. I hope we can work on this together some time soon. I think it is working now but the string is poorly defined. I need to tell Python where to get the variable values ($prog) and ($version)00:20
gsilvapt%(prog) and %(version) instead of what I wrote before, lol00:20
kyrofaYeah that's not too hard, happy to work on it later with ya00:23
gsilvaptThank you! Have a good night folks o/00:23
kennylogginso/00:23
kyrofaNight gsilvapt00:24
mupPR snapcraft#1728 closed: beta <Created by snappy-m-o> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1728>00:35
sergiusenselopio kyrofa snapcraft#1781 is updated02:42
mupPR snapcraft#1781: many: set rpath for elf files for classic <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1781>02:42
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mborzeckimorning07:26
mborzeckisorry i'm later than usual, had to drive the kids to school & kindergarten07:27
mvohey mborzecki, good morning!07:27
mvomborzecki: no worries07:27
mborzeckimvo: thanks for the review & suggestions btw07:28
mvomborzecki: your welcome, but I may have been to simplistic, I think there are more cyclic case07:29
mvomborzecki: something like "a: after-b, b: after-c, c: before-a07:30
mvomborzecki: which I guess (I need to look again) your code addressed but mine did not07:30
mborzeckizyga suggested trying to do topo sorting on a graph, so i tried to play with this yesterday, but the naiive approach that i did over the weekend beat the 'smart' in all the cases i tried07:30
mvomborzecki: heh :) yeah, our inputs are pretty small07:31
mvomborzecki: I will look at this again with a fresh mind today07:31
mborzeckithe benchmarks would suggest that we're loosing on doing extra allocations when creating the 'extra' data structures either dfs or khan may need07:33
mborzeckimvo: one thing that bugs me, is that if you add 'after' does that imply 'Requires=' in the service file?07:34
mvomborzecki: I think it does not imply this, one is about ordering, the other about dependencies, they are often used together but orthogonal. i.e. you can express "if this thing.service is installed I want to start before. without the requires it also says: but I don't care if it is there or not"07:37
mborzeckithis post mentions 'with' https://forum.snapcraft.io/t/snap-service-start-ordering/1470/13 this might map to Requires07:38
mvomborzecki: yeah, I think there is language in there (as a next step) to express these dependeices as well07:38
mborzeckilet's land this one first and we'll know if there's need for more ways to express dependencies07:40
kalikianagood morning folks07:58
mborzeckikalikiana: morning07:59
mupPR snapd#4361 opened: devicestate: fix misbehaving test when using systemd-resolved <Created by mvo5> <https://github.com/snapcore/snapd/pull/4361>08:06
jameshmvo: I uploaded a new version of the test-snapd-gnome-online-accounts snap (the original wouldn't run due to library incompatibility), which seems to have been held up by the automatic review process.  Are you able to do anything about that?08:36
mvojamesh: probably, let me check08:41
mvojamesh: did you request a manual review?08:43
mvojamesh: if not, please do08:43
jameshmvo: I've done that now08:44
mvojamesh: approved08:45
jameshthanks08:45
mvojamesh: yw, shall I pushlish it as well?08:45
jameshmvo: I think I've got it published right now08:46
jameshthanks for the help08:47
mvogreat, your welcome08:47
pedronismvo: is edge building still broken?  afaict  current edge doesn't contain yet the configure-snapd fix09:04
mvopedronis: let me check, I though I triggered a manual build the other day. auto-building is broken09:06
mvopedronis: let me trigger it now09:06
zyga-ubuntuo/09:19
zyga-ubuntuman, I overslept09:20
ChipacaI ended up poking at spread in qemu until way too late :-)09:25
Chipacabut, now i'm off to physio gym thing, so it evens out09:26
zyga-ubuntuChipaca: what did you find?09:26
Chipacao/09:26
zyga-ubuntuah, ttyl09:26
Chipacazyga-ubuntu: i found that it's weird :-)09:26
zyga-ubuntupfff, we all knew that09:26
zyga-ubuntu;-)09:26
zyga-ubuntuenjoy; let's talk soon09:26
Chipacazyga-ubuntu: i've got two straces, one that dies and one that doesn't09:26
Chipacazyga-ubuntu: I don't see the difference09:27
zyga-ubuntupastebin thenm09:27
zyga-ubuntuthem*09:27
mvo+109:27
zyga-ubuntuo/ mvo09:27
zyga-ubuntuI have a pastebin I'm chewing through since yesterday, today I need to do some practical experiments on non-test machines09:27
mvocachio_: fwiw, trying to reproduce the install-cache test failure you mentioned on ubuntu-core-16-64 seems to be ok for09:27
zyga-ubuntuwell, on non-spread test machines running core09:27
mvocachio_: I try harder09:28
mvohey zyga-ubuntu09:28
zyga-ubuntuwe are doing some very weird things on core09:28
zyga-ubuntu(lots of red lights in my mind)09:28
zyga-ubuntuthe failure of those tests I mentioned yesterday, with the stale core detection, is deeper09:28
zyga-ubuntueven if we reboot the system is really broken IMO09:28
mvozyga-ubuntu: oh09:28
Chipacahttp://paste.ubuntu.com/26123959/ and http://paste.ubuntu.com/26123957/09:29
mvozyga-ubuntu: tell me more?09:29
mvozyga-ubuntu: please09:29
zyga-ubuntumvo: the pastebin I sent you pics of yesterday was from the console of a core system09:29
zyga-ubuntumvo: it seems that we mount / twice09:29
zyga-ubuntumvo: with a load of things in between09:29
zyga-ubuntumvo: my understanding of how this works means that _all_ of the things we mounted before 2nd / are just wasted memory and hidden entries09:30
zyga-ubuntumvo: I don't yet know why we do that09:30
mvozyga-ubuntu: could it be a pivot root thing going on?09:30
zyga-ubuntumvo: it might be but pivot root would leave / mounted elsewhere09:30
zyga-ubuntuyou cannot pivot root / /09:30
zyga-ubuntu(no op)09:30
mvozyga-ubuntu: well, we need to work on this for base-18 anyway, so a good time to cleanup09:30
zyga-ubuntuhttp://pastebin.ubuntu.com/26118789/09:30
zyga-ubuntumvo: good to hear09:30
zyga-ubuntumvo: I'll poke at a real pi3 device and see if this is consistent09:31
mvozyga-ubuntu: have you looked at the initramfs code? the writable path things makes it messy, I'm all for a cleanup09:31
mvo(and historic baggage)09:31
Chipacaok, i'm off for real now. I'll leave you guys to ponder which one of those two traces is the one that kills the whole session.09:32
Chipacato me they look identical09:33
zyga-ubuntuChipaca: ha, good plan :)09:33
Chipaca(but yes, i know which is which)09:33
Chipacait's as if one of them closed stdout, or stderr, or stdin, or whatever it is09:34
Chipacahmm09:34
* zyga-ubuntu hates pastebein with moronic need to auth09:34
zyga-ubuntuno wget09:34
mvozyga-ubuntu: I'm looking at the pictures you pasted, I see core_ mounted twice on / is that what you are concerend about?09:34
zyga-ubuntumvo: yes09:34
zyga-ubuntumvo: IMO that is wrong09:34
Chipacazyga-ubuntu: blame spammers09:34
mupPR snapd#4362 opened: interfaces: update fixme comments <Created by stolowski> <https://github.com/snapcore/snapd/pull/4362>09:34
* Chipaca runs off before he gets sucked in again09:35
pstolowskizyga-ubuntu, ^ hey, one of the changes you requested - just an update of comments, no code change09:35
mvozyga-ubuntu: yeah, let me wander into initramfs land again /me puts on asbestos cloth09:35
zyga-ubuntumvo: yeah09:35
mwhudsonzyga-ubuntu: did i ever tell you about debugging docker on arm64 where cloneflags was ignored so pivot_root was called in the default namespace09:35
zyga-ubuntumvo: I'll gladly work on fixing this09:35
mwhudsonzyga-ubuntu: that was quite confusing :)09:35
zyga-ubuntumwhudson: haha, that must have been quite the alice in wonderland moment09:36
mwhudsonespecially as the host system didn't have an awful lot on it to distinguish it from the docker image i was testing with09:36
mvozyga-ubuntu: we need to be careful this sh code is undertested09:36
mvomwhudson: woah :)09:36
mwhudsoni run docker run foo ... and docker itself disappears?09:36
zyga-ubuntumvo: I'm acutely aware of that :/09:38
mvozyga-ubuntu: I know :)09:39
mvozyga-ubuntu: I may have found the bug already and its amazingly stupid09:40
mvozyga-ubuntu: my conservative self is not wanting me to say this, but: I really want to write the initramfs stuff in something sane that is not sh09:40
zyga-ubuntu!!!09:40
zyga-ubuntuthat was quick09:41
zyga-ubuntumvo: skunkworks project to rewrite that +109:41
zyga-ubuntumvo: just not in go (we cannot)09:41
mvozyga-ubuntu: no go because of the setns issues?09:41
zyga-ubuntumvo: so, this is interesting: on bare metal I don't see that problem: http://pastebin.ubuntu.com/26123995/09:41
mvowith threading and all that09:42
zyga-ubuntumvo: not only setns but yes09:42
zyga-ubuntumvo: 1thread requirement09:42
zyga-ubuntumvo: the fact that / is mounted from initramfs and then core is mounted again from userspace is also a bit annoying but I don't know if it's worth fixing09:43
zyga-ubuntuhttp://pastebin.ubuntu.com/26123999/ <- core snap mounted twice09:43
mvozyga-ubuntu: yes09:43
mvopedronis: new core snap in edge should have the configure-snapd fix now, I did a bit of manual handholding09:44
zyga-ubuntumvo: also interesting: http://pastebin.ubuntu.com/26124012/ the two snaps we mount from initramfs are mounted as _writable_ and not as auto-clear09:45
zyga-ubuntumvo: the auto clear is probably irrelevant but the writable bit should have never been set09:45
zyga-ubuntumvo: this allows an attacker to write to loop0 and change the squashfs bits09:45
mvozyga-ubuntu: aha, that should be an easy fix, one minute09:47
mvozyga-ubuntu: http://paste.ubuntu.com/26124029/09:48
zyga-ubuntumvo: +109:49
zyga-ubuntumvo: every time I look at that pile if shell I feel bad09:50
mvozyga-ubuntu: yeah, makes me want to scrub myself09:51
zyga-ubuntumvo: can you fix inconsistent tabs/spaces09:51
mvozyga-ubuntu: anyway, lets see what we can do to fix things09:51
zyga-ubuntumvo: if you are going to make changes there09:51
pedronismvo: thank you, refresh to it now worked09:51
zyga-ubuntumvo: I'll check other systems, I don't understand if the brokenness I saw is specific to spread09:51
mvopedronis: yay09:52
mupIssue snapcraft#1702 closed: Apply guidelines from design to error messages with reasons for errors <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1702>09:52
mupPR snapcraft#1640 closed: cli: add what, why, and how to fix to the common errors <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1640>09:52
pstolowskipedronis, hey, can you take a look and weight on #4301? I've addressed the last bit from Gustavo (AttrGetter -> Attrer renaming), but aparently he didn't manage to re-review yesterday, would be good to land it as it's a prerequisite for others09:52
mupPR #4301: interfaces: PlugInfo/SlotInfo/ConnectedPlug/ConnectedSlot attribute helpers <Created by stolowski> <https://github.com/snapcore/snapd/pull/4301>09:52
zyga-ubuntumvo: and btw, I don't see any use of pivot_root09:52
zyga-ubuntumvo: is it hidden somewhere or are we just missing it?09:52
mvozyga-ubuntu: I think I may misrember actually09:53
mvozyga-ubuntu: now that I look at the code its less clear to me what is going on09:53
pedronispstolowski: will look in  a bit09:53
zyga-ubuntumvo: I'll check dragon and I'll get an amd64 image for qemu09:53
mupPR core-build#24 opened: ubuntu-core-rootfs: mount os/kernel snaps RO <Created by mvo5> <https://github.com/snapcore/core-build/pull/24>09:54
mupIssue snapcraft#1663 closed: patchelf with common rpath (not runpath) <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1663>09:55
mupPR snapcraft#1781 closed: many: set rpath for elf files for classic <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1781>09:55
zyga-ubuntumvo: can you test your PR in practice and see that losetup --json shows it's correct then?09:55
zyga-ubuntumvo: a manual test if you can do that09:55
zyga-ubuntumvo: I approved the PR already09:56
zyga-ubuntumvo: we really have to rewrite mount units09:57
zyga-ubuntumvo: on dragon I see three generation of mount files we write09:57
zyga-ubuntumvo: a simple rewrite that fixes things for next boot would be good09:58
zyga-ubuntumvo: uh, my mistake, I was blinded by odd double-sided print10:05
zyga-ubuntumvo: stop looking for double / :)10:05
zyga-ubuntumvo: so now I'm back to square one, what is wrong there :/10:05
mvozyga-ubuntu: rewrite fix is still needed? or should I also scratch that?10:06
mupPR snapd#4363 opened: cmd/snap-mgmt: add more directories for cleanup and refactor purge() code <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/4363>10:06
mvozyga-ubuntu: rewriting with the before=snapd.servie?10:07
zyga-ubuntumvo: no, that is still needed10:07
zyga-ubuntumvo: that should have been there forever10:07
mvozyga-ubuntu: ok, but "just" that - or do we need more rewrite?10:08
zyga-ubuntumvo: not sure I understand the difference; we need to be able to rewrite mount units and and we ought to rewrite mount units in the field to correct for past mistakes10:08
mvozyga-ubuntu: we are in agreement, I was wondering if there is a new bug that requires us to rewrite them10:10
zyga-ubuntuaha, sorry for being confusing then10:10
mvozyga-ubuntu: I will have a look. no worries, communication is hard :)10:10
mvo(it always is!)10:10
zyga-ubuntumvo: the pastebin I sent you, I was holding it wrong, litteraly :)10:10
zyga-ubuntuI looked at head of both inside and outside parts10:10
mvozyga-ubuntu: heh10:11
mvozyga-ubuntu: we have 256 files in etc and var in my base-18 WIP snap :/ there is quite some work to get rid of those if we want to get rid of the writable-path magic10:11
* mvo gets to work10:12
zyga-ubuntumvo: where do you do this work?10:12
zyga-ubuntumvo: I'd love a new repo for base-1810:12
mvozyga-ubuntu: lp:snap-base-1810:13
mvozyga-ubuntu: so far very minimal/experimental/WIP but its a start10:13
zyga-ubuntubzr or git?10:14
mvozyga-ubuntu: git10:14
mvozyga-ubuntu: what is bzr?10:14
zyga-ubuntuhhaha10:14
* zyga-ubuntu checks how to clone from launchpad10:14
mvozyga-ubuntu: https://github.com/snapcore/base-18 :P10:14
* mvo is afk for some minutes10:15
zyga-ubuntumvo: so is it on launchpad or github?10:15
zyga-ubuntumvo: I've started sending PRs10:21
brunosferHi guys, does anyone know how can I enable the driver from bluetooth on the Raspberry Pi with Ubuntu snappy core?10:36
zyga-ubuntubrunosfer: it should already be enabled,10:40
mvozyga-ubuntu: github10:40
zyga-ubuntuok10:40
zyga-ubuntumvo: I send one trivial PR10:40
zyga-ubuntumvo: how do you test/use this?10:40
zyga-ubuntumvo: one more10:41
mvozyga-ubuntu: well, I build a snap :) thats all there is for tests so far10:42
mvozyga-ubuntu: good stuff, thank you!10:43
zyga-ubuntumvo: ha, well, I didn't think of that :)10:43
mvozyga-ubuntu: but yeah, its a good question, we need more automation and travis and all that here10:43
zyga-ubuntumvo: snapcraft fails, did you run it via fakeroot?10:43
mvozyga-ubuntu: yes, it needs to run as root currently, I think fakeroot will work10:44
mvozyga-ubuntu: the LP builder runs it as real root10:44
* zyga-ubuntu tries fakeroot snapcraft10:44
mvozyga-ubuntu: what is annoying is that in order to get to an empty /etc we need to undo the alternatives system i.e. awk which is provided via an alternative10:45
mvo(and more, w, pager)10:45
zyga-ubuntuhmm, we need real real root10:46
mvozyga-ubuntu: ok, I need to look into why, iirc because of chroot, right?10:46
mvozyga-ubuntu: *maybe* fakechroot works10:46
zyga-ubuntumvo: no, because of chroot10:47
zyga-ubuntumvo: anyway, that's fine,10:47
mvozyga-ubuntu: fakechroot may work10:47
zyga-ubuntumvo: just trying to see where this is going and what's in the snap10:47
mvozyga-ubuntu: I hope it goes into a minimal base that can boot and that works with an empty /etc/ /var so that we can do factory reset easily and don't need the writable-path hacks10:48
ogra_why dont you just grab an ubuntu-base tarball from cdimage and modify it as needed ...10:48
mvoogra_: that would also be an option, right now it is using debootstrap to get that10:48
ogra_(with a bit of fiddling oyu can even do that completely without chroot calls)10:48
ogra_mvo, yeah i was guessing that ...10:49
ogra_ubuntu-base is pretty much a minbase debootstrap though10:49
zyga-ubuntumvo: there's some things that should be easy to kill10:51
mvoogra_: indeed, interessting10:51
zyga-ubuntumvo: etc/selinux10:51
mvozyga-ubuntu: yeah /etc/{apt,dpkg}10:51
zyga-ubuntumvo: /etc/apt10:51
zyga-ubuntuyeah10:51
zyga-ubuntumvo: /etc/kernel/install.d10:52
mvozyga-ubuntu: and some stuff we need to look at and upstream, i.e. if adduser.conf has different defaults than adduser itself we should ensure that gets fixed10:52
ogra_just dont kill /usr/share/doc/<pkg>/copyrights.gz ...10:52
zyga-ubuntuogra_: make that a fuse https FS10:52
zyga-ubuntu;-)10:52
mvoogra_: yeah, no worries :)10:52
ogra_:)10:52
mvoogra_: its mostly based on the current livecd-rootfs scripts10:53
mvoogra_: the new skeleton10:53
mvoogra_: but using a different "base"10:53
ogra_yeah .. many of these scripts can also be dropped10:53
ogra_we (I) didnt do a good job of throwing away old stuff thats not needed anymore10:53
ogra_and some bits that live in ubuntu-core-config should rather move to the build scripts ... and vice versa ... someone should do an audit of all this10:54
mvoogra_: yeah, the work on this is (slowly) starting with base-18. unfortuantely quite a bit of work but at the same time exciting because of the cleanup potential10:55
ogra_yep10:55
mvo /etc/bindresvport.blacklist <- why do i have this file in /etc :(10:56
ogra_i'm still curious how it will work out ... but looking massively forward to have bases for commercial projects ... they will massively solve issues i'm running into since i started in the new team10:56
mvoanyway,10:56
mvoogra_: fingers crossed, but I'm excited aboutt the opportunities, all sorts of crazy bases10:57
ogra_yeah10:57
zyga-ubuntumvo: some more stuff in 311:02
zyga-ubuntuhttps://github.com/snapcore/base-18/pull/311:13
mupPR base-18#3: Document how to build the project locally, trim /etc, ignore build artefacts <Created by zyga> <https://github.com/snapcore/base-18/pull/3>11:13
zyga-ubuntumvo: do we need /etc/init.d?11:14
zyga-ubuntumvo: /etc/ld.so.conf.d/libc.conf also looks like something to remove11:15
zyga-ubuntumvo: /etc/logrotate.d/{alternatives,dpkg}11:16
zyga-ubuntumvo: /etc/profile.d11:16
zyga-ubuntumvo: /etc/rc[0-6S].d11:16
zyga-ubuntumvo: anyway, I think it would be fantastic if we had a way to kvm-boot this for testing11:17
zyga-ubuntumvo: take a kernel snap, base-18 and gadget and boot it some way for very fast iteration11:17
* kalikiana coffee break11:25
kalikianaokay, that was a lie, I ended up making tea11:36
* zyga-ubuntu wonders when we will see snaps on windows 3.11 http://assets.metacade.com/emulators/win311vr.html11:38
cachio_mvo, hey11:38
cachio_mvo, The changelog for 2.30 rc2 doesn't contain the 2.29.4.2 changes11:40
cachio_mvo, is it ok? are those changes included?11:40
mvocachio_: thanks for catching that, I will double check11:48
cachio_mvo, apart of that I have seen some issues during the execution11:49
mvozyga-ubuntu: thanks! yeah, I think that must be the goal, right now the initramfs stuff cannot boot bases - just core11:49
mvocachio_: tell me more, you mentioned yesterday that the install-cache test fails ?11:49
cachio_mvo, yes11:50
cachio_and the error seems to be genuine11:50
cachio_mvo, similar issue for catalog-update11:51
cachio_mvo, https://paste.ubuntu.com/26120827/11:52
cachio_this is a reexec in pi3 for all the errors that I saw11:52
cachio_some of them are test errors, I am working on fixing them11:53
mvocachio_: for the cache-install failure, does that happen just on arm or on any core device?11:55
cachio_mvo, it was in any core device11:55
cachio_both tests failed in any core device11:55
cachio_the install-cache and the catalog-update11:55
cachio_mvo, I have to go to the doc now11:56
cachio_I'll be back for the standup11:56
mvocachio_: thanks, I need to dig into this then, I was not able to reproduce it from a release/2.30 git checkout and running spread from there, sounds like I need to create an image first11:56
mvocachio_: sure, see you. and thanks for the update11:56
cachio_mvo, np11:56
sergiusenshello everyone11:57
zyga-ubuntuhey sergiusens11:59
zyga-ubuntusergiusens: what's the weather like where you live?11:59
mborzeckii bet it's better than here11:59
mvozyga-ubuntu: why do you ask?11:59
zyga-ubuntumvo: ?12:00
zyga-ubuntujust curious12:00
mvozyga-ubuntu: I was wondering if you want to fly there ;)12:00
sergiusenszyga-ubuntu non deterministic12:00
ogra_zyga-ubuntu, definitely better than yours :)12:02
sergiusenszyga-ubuntu https://www.facebook.com/photo.php?fbid=10159702028205367&set=a.10154038137770367.1073741826.844960366&type=3&theater12:03
sergiusensit might rain, it might not; it might get cooler (like 18), it is 25 now, and it might also go up to 3912:04
ogra_what did you do to your knee ?12:04
sergiusensdepends on if i decides to rain12:04
sergiusensogra_  https://en.wikipedia.org/wiki/Chondromalacia_patellae12:04
ogra_ouch12:05
Chipacasergiusens: nene, eso no se hace! :-(12:09
mborzeckihmm tarvis jobs mostly timing out today?12:15
zyga-ubuntumborzecki: sad travis day12:18
zyga-ubuntuI'm working entirely locally12:18
kalikianabtw sergiusens I tried out the slot feature in the calendar. Can you see any difference on your end? I'm not sure if it handles regular appointments correctly. You should see at least one 'unavailable' slot tomorrow.12:21
mupPR snapd#4362 closed: interfaces: update fixme comments <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/4362>12:25
mupPR snapd#4301 closed: interfaces: PlugInfo/SlotInfo/ConnectedPlug/ConnectedSlot attribute helpers <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/4301>12:28
mborzecki#4354 needs a 2nd review12:30
mupPR #4354: tests/lib: introduce helpers for setting up /dev/random using /dev/urandom in project prepare <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/4354>12:30
mcphailhi. does the automated github build service only build from the master branch, or do all branches get built?12:58
zyga-ubuntumcphail: hey, do you mean on build.snapcraft.io?12:59
mcphailyes, zyga-ubuntu13:02
kalikianalunch time13:02
zyga-ubuntumcphail: ah, I don't know what's the state of that, sorry13:04
mcphailzyga-ubuntu: ok, thanks13:04
sergiusensogra_ is there an amd64 Ubuntu Core image for download?13:10
ogra_sure13:10
zyga-ubuntusergiusens: yes13:10
ogra_sergiusens, http://cdimage.ubuntu.com/ubuntu-core/16/13:10
ogra_pick your channel13:10
zyga-ubuntusergiusens: http://paste.ubuntu.com/26125012/13:11
sergiusenskalikiana slots are interesting new concept in the calendar, but I think it is more of a thing for another person to click to get a slice of your time13:11
ogra_note that this is zero padded for better use with kvm though (unlike the other arches)13:11
zyga-ubuntusergiusens: make boot; make login13:11
sergiusenskind of like a doctor's appointment thing13:11
sergiusensogra_ zyga-ubuntu thanks, I won't be needing any of the automation, it is for a potential demo at the IoT meetup I am presenting at today13:12
zyga-ubuntusergiusens: this is not much automation, just remembers the URL and the long command13:13
zyga-ubuntumvo: btw, why are you using >100 hook numbers?13:16
zyga-ubuntumvo: sad13:18
zyga-ubuntuzyga@kaedwen:~/snap-base-18$ grep -R bindresvport.blacklist .13:18
zyga-ubuntuBinary file ./prime/lib/x86_64-linux-gnu/libc-2.26.so matches13:18
zyga-ubuntuBinary file ./prime/lib/x86_64-linux-gnu/libc.so.6 matches13:18
mvozyga-ubuntu: well, we can patch that13:26
zyga-ubuntumvo: yes but I find it just sad13:26
mvozyga-ubuntu: +10013:26
zyga-ubuntumvo: /etc/letmecallthisfilethatIreallylikeanduseitfromlibc13:26
sergiusenszyga-ubuntu I just noticed it is a makefile, it does look useful!13:26
zyga-ubuntu:)13:26
sergiusensogra_ zyga-ubuntu does stable have subiquitty and all that or should I go and get something like candidate or edge?13:27
zyga-ubuntusergiusens: it has all that stsuff13:28
zyga-ubuntu*stuff13:28
ogra_all of them have subiquity13:28
Chipacamvo: http://paste.ubuntu.com/26123959/ and http://paste.ubuntu.com/26123957/13:31
zyga-ubuntumvo: https://github.com/snapcore/base-18/pull/513:32
mupPR base-18#5: More etc cleanups and reporting <Created by zyga> <https://github.com/snapcore/base-18/pull/5>13:32
zyga-ubuntuls13:32
zyga-ubuntumvo: do we need to keep empty things for later bind mounts or can this be added at a later stage13:33
zyga-ubuntumvo: I'd like to make it so that we know we're done with /etc cleanups13:33
zyga-ubuntumvo: and that the rest is actually desired13:33
mvozyga-ubuntu: lets kill the empty ones too13:37
mvozyga-ubuntu: if we are successful there will be no bind mounts13:37
zyga-ubuntumvo: I'll tweak things so that we can boot-test this13:42
mupPR snapd#4359 closed: interfaces/many: misc updates for default, browser-support, opengl, desktop, unity7, x11 <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4359>13:42
mupPR snapd#4350 closed: debian: make "gnupg" a recommends <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4350>13:43
mvozyga-ubuntu: sounds good, maybe its enough to make it "type: os" to be able to test install it13:44
mvozyga-ubuntu: it will not properly run because it lacks snapd but its might be enough to get to the console13:44
mvozyga-ubuntu: but probably some initrd hacking is required, hopefully not much13:44
zyga-ubuntumvo: yes13:44
zyga-ubuntumvo: fingers crossed13:44
zyga-ubuntumvo: actually may be even easier13:44
sergiusenselopio already around?13:49
zyga-ubuntumvo: some progress, getting over last initrd hurdle13:55
kalikianasergiusens: Yeah, I might just go back to using regular events. It looked like slots would help with scheduling meetings, but it doesn't seem to be meant for that13:55
* kalikiana back from lunch13:55
cachio_jdstrand, hey, the test security-device-cgroups-serial-port is failing in the pi2 and 314:17
cachio_jdstrand, I am researching a bit to understand why14:17
cachio_jdstrand, hey, the test security-device-cgroups-serial-port is failing in the pi2 and 314:19
cachio_jdstrand, https://paste.ubuntu.com/26125367/14:19
cachio_jdstrand, any idea what I can't get info from  /dev/ttyS4?14:20
mupPR core#66 opened: 500-create-xdg.binary: use "set -o pipefail"  <Created by mvo5> <https://github.com/snapcore/core/pull/66>14:27
mupPR snapd#4364 opened: interfaces: added Ref() helpers, restored more detailed error message on spi iface <Created by stolowski> <https://github.com/snapcore/snapd/pull/4364>14:30
mborzeckicachio_: maybe there is no device behind /dev/ttyS4, even though the node is there14:31
pstolowskizyga-ubuntu, ^ this is the other follow-up that addresses your comment from previous PR14:31
zyga-ubuntupstolowski: thanks; looking14:31
zyga-ubuntupstolowski: why not pass the slot directly?14:32
zyga-ubuntupstolowski: not a big deal, just curiou14:32
pstolowskizyga-ubuntu, because the function is used for both SlotInfo and ConnectedSlot14:32
zyga-ubuntuahh14:32
zyga-ubuntuok14:32
zyga-ubuntu+114:32
pstolowskithx14:32
Chipacagrmbl!14:37
mborzeckicachio_: there seem to be only 2 serial ports listed in rpi3 dts files, these should map to /dev/ttyS0 and S1 and udev should list those, 2 and above have no real devices so even if the node is there it won't work and udev will now know about it14:38
mborzeckis/now/not/14:38
zyga-ubuntuChipaca: hmm?14:38
* zyga-ubuntu moves an inch foward14:38
Chipacazyga-ubuntu: I just lost the output of half an hour of debugging this because for some reason the fiddling around that spread does results in the thing not letting you ssh in14:39
Chipacanor log in at all actually14:39
zyga-ubuntuChipaca: is that locally or over linode?14:41
Chipacalocally14:41
Chipacaqemu14:41
zyga-ubuntuhmm14:41
zyga-ubuntuon core?14:41
Chipacazyga-ubuntu: classic14:42
zyga-ubuntuand you don't have qemu console, do you?14:42
Chipacazyga-ubuntu: yes i do14:42
Chipacayou can telnet to it14:42
Chipacae.g. 2017-12-06 14:38:43 Serial and monitor for qemu:ubuntu-14.04-64 available at ports 59479 and 59579.14:42
* mvo added those14:43
Chipaca(the serial has a getty, but that didn't let me log in once spread had started)14:43
Chipacai need to ssh in before the 'preparing' phase is done14:43
zyga-ubuntuChipaca: hmm14:43
zyga-ubuntusorry :/14:44
zyga-ubuntuI was thinking about saving a snapshot14:44
zyga-ubuntuand extracting stuff from that image14:45
Chipacazyga-ubuntu: tried that, but apparently snapshot_blkdev doesn't work well together with -snapshot14:46
ChipacaCould not open '/var/tmp/vl.MGVYHB': No such file or directory14:46
zyga-ubuntuChipaca: you can save that snapshot14:47
zyga-ubuntuChipaca: it is documented in the qemu manual somewhere14:47
zyga-ubuntuChipaca: it talks about running qemu with -snapshot and then giving it a real name in the monitor14:47
Chipacaah, buh14:48
Chipacai'll try that if i get stuck like this again14:48
cachio_mborzecki, well the test is creating this device in case there is not one14:48
cachio_mborzecki, perhaps for the pi3 we shuould create it in a different way14:49
mborzeckicachio_: it's creating a node, that does not mean yet there's a device, and udev knows about devices only14:49
mborzeckican you try ttyS1 on rpi?14:49
mvoChipaca: did you try to login via test:ubuntu?14:49
Chipacamvo: ubuntu:ubuntu14:50
cachio_mborzecki, in my pi3 there is not a /dev/ttyS114:50
mvoChipaca: you said the getty wouldn't let you login after spread has started, iirc we change the setup and add test:ubuntu as a user. I was wondering if that might work to login in the getty14:51
cachio_I created a node for /dev/ttyS114:51
Chipacamvo: i'll try14:51
cachio_mborzecki,  and I have the same problem when I do "udevadm info --path=/dev/ttyS1"14:51
cachio_I get syspath not found14:51
Chipacamvo: ubuntu:ubuntu logs in and is immediately logged out again14:52
Chipacamvo: test:ubuntu gets login incorrect14:52
mvoChipaca: :( ok14:55
Chipacabut thanks to zyga mentioning auditd, i now have logs that are different \o/14:56
Chipacahttp://pastebin.ubuntu.com/26125591/14:56
zyga-ubuntuwoot!14:56
Chipacajdstrand: hiya. I have some rather messed up shenanigans going on in 14.04 that i'd like to understand if possible14:56
cachio_mborzecki, which pi do you have?14:56
mborzeckicachio_: you can try dumping udev db and checking if there's anything suitable14:56
cachio_mborzecki, sure14:57
mborzeckicachio_: i fried the last one i had :)14:57
Chipacajdstrand: i now have an audit log :-) in both the "everything dies" case, and the less interesting "everything abstains from dying"; the difference is the existence of a file, and the thing that triggers the dying is doing ls on the directory that contains the file, as a user that shouldn't be able to list that directory14:58
cachio_mborzecki, https://paste.ubuntu.com/26125620/14:58
mborzeckicachio_: where can i find the dtb that you use?15:00
cachio_mborzecki, dtb?15:01
mborzeckicachio_: what image do you have installed there and can i get it somewhere?15:01
cachio_device tree?15:01
cachio_mborzecki, you need to build it15:02
cachio_mborzecki, download https://github.com/sergiocazzolato/validator15:02
cachio_and then you do "./create.sh beta pi3"15:03
cachio_it is gonna create the beta image15:03
cachio_if you have pi2, "./create.sh beta pi2"15:04
cachio_mborzecki, then you can use that image that is the same we use for beta validation15:04
mborzeckicachio_: it is pi2 or pi3 you're using now?15:06
cachio_pi315:11
cachio_mborzecki, I am gonna lunch now, I'll be back15:11
cachio_mborzecki, export SPREAD_EXTERNAL_ADDRESS=<device ip>15:12
cachio_spread -v -debug external:ubuntu-core-16-arm-32:tests/main/security-device-cgroups-serial-port15:13
cachio_this is to reproduce the issue15:13
mupIssue snapcraft#1733 closed: Apply guidelines from design to error messages with commands that fix <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1733>15:14
mupPR snapcraft#1790 closed: cli: include consistent commands to fix error conditions <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1790>15:14
mvozyga-ubuntu: review for https://github.com/snapcore/core/pull/66 would be great15:15
mupPR core#66: 500-create-xdg.binary: use "set -o pipefail"  <Created by mvo5> <https://github.com/snapcore/core/pull/66>15:15
zyga-ubuntumvo: sure15:16
zyga-ubuntudone15:18
zyga-ubuntualso restarted tests15:18
mvozyga-ubuntu: ta15:20
jdstrandcachio_: so, you are do a mknod, but that isn't sufficient to make the device show up to udev and be exposed in sysfs15:20
ikeyjdstrand, sorry for not replying to your apparmor comments there the other day - just letting you know i saw em, cheers :]15:21
jdstrandcachio_: there is no hardware behind that device file, so the kernel didn't do a uevent for udev to do its thing15:21
jdstrandikey: cool! I also mentioned it to jj, so if he didn't followup, feel free to ping him directly15:21
ikeyaye :]15:22
ikeyhad a mild rebase to do today with 4.14.4 due to some audit.h changes15:22
ikeynothing too difficult tho15:22
jdstrandcachio_: and therefore nothing works15:22
jdstrandikey: cool15:23
mupPR snapcraft#1796 opened: Changelog for release 2.37 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1796>15:23
jdstrandChipaca: hey. I understood what you communicated, but don't feel like I have enough context to effectually respond15:25
jdstrandChipaca: do you have a snap and instructions that demonstrates the issue?15:26
zyga-ubuntumvo: what is going on here: https://travis-ci.org/snapcore/core/builds/312446771?utm_source=github_status15:36
mborzeckicachio_: iirc both 2 and 3 have 2 uarts, i tried to download the kernel you might use (4.4.0-1009-raspi2?), then dtb for rpi2 lists the 2nd uart as disabled, the one for rpi3 lists both uarts as ok, IMO it's best if you check dmesg and look in /sys/devices/platform to see if the devices are there15:37
Chipacajdstrand: I haven't been able to reproduce it outside of a in-progress branch (it's up as a PR, but fails)15:37
mvozyga-ubuntu: I don't know :/15:37
zyga-ubuntuwhat is /var/lib/snapd/environment?15:38
Chipacazyga-ubuntu: a directory (?)15:42
zyga-ubuntusure but what is it for?15:43
Chipacazyga-ubuntu: I hope it's something we no longer use, as opposed to a random directory15:43
Chipacai'm seeing it in the packaging but have no idea15:43
zyga-ubuntuyeah15:43
zyga-ubuntuI'm seeing it in booted images15:43
mupPR snapcraft#1797 opened: tests: update the snap name already registered for store tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1797>15:50
mupPR snapd#4365 opened: interfaces/mir: allow Wayland socket and non-root sockets <Created by gerboland> <https://github.com/snapcore/snapd/pull/4365>15:56
cachio_jdstrand, ok, so we should skeep the test execution in that case15:59
cachio_I mean, in case "udevadm info /dev/ttyS4" failes16:00
cachio_jdstrand, then we exit16:00
cachio_jdstrand, is it ok if I make that change?16:00
geekgonecrazyHey guys, Is anyone aware of any issues with the node part? Have our rocketchat-server snap setup to build on launchpad, but keeps failing after downloading node part.  Only thing that has changed between last version and this the location we download our rocket.chat bundle - https://launchpadlibrarian.net/347779291/buildlog_snap_ubuntu_xenial_amd64_stable_BUILDING.txt.gz  Any ideas?16:01
geekgonecrazyLooks like its failing right as it finishes downloading the part16:04
geekgonecrazy```16:04
geekgonecrazyDownloading ''   0%                                                             Traceback (most recent call last):   File "/usr/bin/snapcraft", line 9, in <module>16:05
Chipacageekgonecrazy: the error is “IsADirectoryError: [Errno 21] Is a directory: '/build/stable/parts/rocketchat-server/src/'”16:06
Chipacageekgonecrazy: looks like it expects a file but it's a directory16:07
geekgonecrazyChipaca: yeah I see that, but seems to happen after the initial exception.16:07
geekgonecrazyHas something changed in snapcraft?  Here is my changeset between versions.  Why would this start now? https://git.launchpad.net/rocket.chat/commit/?h=stable&id=6682e7d79762d4cd1f0957845f35932fea563a9216:07
Chipacageekgonecrazy: that's the last line of the initial exception, ie the bit that triggered it (the rest is the stack)16:07
Chipacait goes up, not down16:08
geekgonecrazyi'm used to js stacks hehe.  My python experience is probably enough to be dangerous :D16:08
Chipacaif that's the diff between your thing not working and your thing working, i think you're right to suspect snapcraft itself16:09
Chipacasergiusens, ^16:10
geekgonecrazyChipaca: Yeah that's why I wondered if the part was messed up mainly because it stops right there. But if the workers are using newer versions of snapcraft that change could be the fault as well16:11
mupPR snapd#4366 opened: interfaces/removable-media: also allow 'k' (lock) <Created by jdstrand> <https://github.com/snapcore/snapd/pull/4366>16:14
mupPR snapd#4367 opened: interfaces/removable-media: also allow 'k' (lock) for 2.30 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/4367>16:19
geekgonecrazyspinning up a clean VM, i'll see if I can hack past it locally.  We cut release a few days back and hadn't had time to debug it.  Hoped it was a launchpad issue that would resolve its self :P16:20
kalikianakyrofa: would you be up for a hangout? to talk about the unmet dependencies16:25
kyrofakalikiana, yep, perfect timing16:25
jdstrandcachio_: sounds reasonable to me16:26
kyrofageekgonecrazy, to be clear, you only see that in LP? Not locally?16:26
cachio_jdstrand, ok, I'll create a PR for that16:26
kyrofakalikiana, want to just use the weekly?16:26
kalikianakyrofa: sure16:26
geekgonecrazykyrofa: i'm double checking to see if that's the case now.  Gotten spoiled by launchpad and our ci just working.  :)16:29
geekgonecrazykyrofa: ok I suppose good news is it happens locally. :)16:36
mupPR snapd#4368 opened: tests: fix security-device-cgroups-serial-port test for rpi and db <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4368>16:37
geekgonecrazykyrofa: might it have something to do with there being a redirect involved in the file download?16:37
zyga-ubuntuwoot16:38
zyga-ubuntufafasafafsaj16:43
zyga-ubuntumy keyboard has gone crazy16:43
zyga-ubuntumvo: we ccccccccccccc16:43
zyga-ubuntuanc now test ocre rsnaps16:43
zyga-ubuntufaak16:43
* zyga-ubuntu reboots16:44
mupPR snapd#4369 opened: add write permission to optical-drive interface <Created by diddledan> <https://github.com/snapcore/snapd/pull/4369>16:52
diddledanaww, and here I was thinking someone wanted me :-p16:52
zyga-ubuntudiddledan: +116:53
diddledanthankyou :-)16:53
* diddledan feels clever now that I've looked at snapd code16:53
kyrofageekgonecrazy, sorry, was in a meeting there for a few minutes16:54
kyrofaYes, the fact that you get it locally is good indeed! Troubleshooting on LP is no fun :D16:55
diddledanand then I feel less clever now I spot I wrote BluRay differently each time I said it16:55
zyga-ubuntumvo: I can now boot our base-18 snaps16:55
zyga-ubuntumvo: it says "welcome to ubuntu core 18" :-)16:55
kyrofageekgonecrazy, being due to a redirect seems odd16:56
zyga-ubuntumvo: I think we need to drop a rule that gives us a getty on tty216:56
kyrofaThat would surprise me16:56
zyga-ubuntumvo: anyway, let me clean this up and send a PR16:56
kyrofageekgonecrazy, I suspect now that you're able to reproduce locally you'll be able to figure out the cause, but do let me know if you want some help16:58
kalikianadiddledan: clearly you need to open lots more snapd PRs and feel the love of snapd's attention :-D17:00
diddledan:-)17:01
geekgonecrazykyrofa yup seems due to redirect.  :( wonder if it only follows certain redirects? I now have a very ugly looking prepare statement17:01
kyrofageekgonecrazy, any chance you could share the URL?17:01
geekgonecrazy`prepare: curl -SLf "https://releases.rocket.chat/0.59.6/download/" -o rocket.chat.tgz; tar xvf rocket.chat.tgz --strip 1; cd programs/server; npm install; cd npm/node_modules/meteor/rocketchat_google-vision; npm install grpc` is what my prepare now looks like o.O17:01
kyrofageekgonecrazy, also, I assume this is something that's changed recently?17:02
kyrofaYikes17:02
* kalikiana preparing to wrap up for the day17:02
kyrofageekgonecrazy, so to be clear: you're saying using source: https://releases.rocket.chat/0.59.6/download is what breaks?17:02
geekgonecrazykyrofa: we've had a redirect of some sort in place for a good while I think... i'll have to look back and verify17:03
geekgonecrazykyrofa: yes fails fast and hard with that as source and source-type: tar17:03
kyrofageekgonecrazy, huh. This works for me: http://paste.ubuntu.com/26126334/17:04
kyrofaAlthough I'm on snapcraft master. What are you using locally?17:05
geekgonecrazykyrofa: snapcraft, version 2.3517:08
cachio_mvo, the snapd.refresh.timer does not exist on pi3, https://paste.ubuntu.com/26126388/17:08
kyrofageekgonecrazy, and does that YAML I pasted break for you?17:08
cachio_it is making the test ubuntu-core-services fail17:08
geekgonecrazykyrofa: it downloads, throws exception at the end i'm guessing because it doesn't know source type is a tar17:11
geekgonecrazyhere is what our snapcraft yaml looked like before my hack around: https://git.launchpad.net/rocket.chat/tree/snapcraft.yaml?h=stable&id=945e4f912f0d5d9dc7416e2998f710da46f1755c17:11
geekgonecrazymight be related to the prepare there?17:11
kyrofageekgonecrazy, huh, interesting. No exception for me. I'll try 2.3517:12
kyrofageekgonecrazy, prepare effects the build step, not pull17:13
kyrofaI still get no issues with 2.3517:15
geekgonecrazykyrofa: thats what I thought.  :D17:16
zyga-ubuntumvo: https://github.com/snapcore/base-18/pull/817:16
mupPR base-18#8: Add rudimentary testing infrastructure <Created by zyga> <https://github.com/snapcore/base-18/pull/8>17:16
diddledanzyga-ubuntu: base-18 sounds like weird counting to me.. base-16 works well with computers :-p17:17
zyga-ubuntudiddledan: wait till base-2017:17
diddledan:-o17:17
geekgonecrazykyrofa: interesting.. Some how I get same error as launchpad and launchpad I assume is building in lxd for clean builds17:17
diddledanso with base-16 we count 0 thru F. what are we gonna do with base-20?!17:17
Chipacadiddledan: base-85 is a thing17:19
Chipacajus' sayin'17:19
diddledandrak me17:19
diddledanfrak*17:19
diddledanthat's crazy numbers17:20
Chipacadiddledan: also called Ascii85, it's in python and go's stdlibs17:20
diddledanee gads17:20
diddledanavoid it like the plague!17:21
diddledanI'm guessing it's used for crypto symbolism17:21
diddledansimilarly to base6417:21
Chipacadiddledan: PDFs use it17:21
Chipacadiddledan: as does Postscript17:21
diddledanoh, well when Adobe are involved all bets are off :-p17:22
Chipacadiddledan: also ZeroMQ and ZMODEM17:22
Chipacathere's also an ascii85 representation of ipv6 addresses17:23
Chipaca(just, what, no)17:23
diddledanif 0mq uses it then I guess htey've ported it to many programming languages17:23
zyga-ubuntuso17:24
Chipacawhen you see “4)+k&C#VzJ4br>0wv%Y” on your terminal your first thought is "oh crap something bought it", not "ah, good old 1080:0:0:0:8:800:200C:417A"17:24
zyga-ubuntuI need a hand17:24
zyga-ubuntuhow do add a simple root shell systemd unit?17:24
zyga-ubuntuno login, just #17:24
zyga-ubuntuon tty2 ideally17:24
Chipacazyga-ubuntu: don't you want the emergency shell?17:24
zyga-ubuntuChipaca: I want _a_ shell17:24
diddledanzyga-ubuntu: get it to run getty?17:24
zyga-ubuntuwhatever you do :)17:24
Chipacazyga-ubuntu: that gives you a root shell on tty9 (iirc), from early boot17:25
zyga-ubuntuI need an answer in terms on systemd units17:25
Chipacazyga-ubuntu: systemd.debug-shell=1 on the kernel commandline17:25
zyga-ubuntuahh17:25
zyga-ubuntuperfect17:26
Chipacazyga-ubuntu: or systemctl enable debug-shell.service if you'd rather that17:26
zyga-ubuntunow17:27
zyga-ubuntuhow do I move ttys in qemu?17:27
Chipacazyga-ubuntu: ctrl-alt-left or -right17:27
Chipacais the easiest way imo17:27
zyga-ubuntunope17:27
zyga-ubuntudoesn't work17:27
zyga-ubuntudo I need some fancy option for GUI?17:27
zyga-ubuntuChipaca: I clicked on the qemu window17:28
Chipacazyga-ubuntu: you're in the gui, yes?17:28
zyga-ubuntu(so that it woud catch my input)17:28
zyga-ubuntuthen tried the combo17:28
zyga-ubuntumaybe it uses it to release17:28
Chipacazyga-ubuntu: does it say your keyboard is captured?17:28
zyga-ubuntuthe title changes17:28
Chipacaah17:28
zyga-ubuntusays use alt-ctrl to escape17:28
Chipaca1 sec17:28
zyga-ubuntu(ctrl-alt)17:28
Chipacazyga-ubuntu: i had to bring a qemu up to remember17:29
Chipacait's in muscle memory17:29
Chipacazyga-ubuntu: just alt-left or -right17:29
Chipacano ctrl17:29
diddledanif you do need to build one yourself, the exec= line would be `getty -n tty2`17:29
zyga-ubuntuChipaca: no change17:29
zyga-ubuntuChipaca: I don't get anything17:29
Chipacazyga-ubuntu: lies17:29
Chipaca:-)17:29
zyga-ubuntuChipaca: wanna see?17:29
Chipacazyga-ubuntu: yes17:30
zyga-ubuntuI'll gladly hangout it17:30
zyga-ubuntuone sec17:30
zyga-ubuntuChipaca: in standup17:31
Chipacaomw17:31
Chipacareasons wayland is not "there" yet #(++n)17:36
Chipacazyga-ubuntu: that's from https://freedesktop.org/wiki/Software/systemd/Debugging/#earlydebugshell FWIW17:37
zyga-ubuntuChipaca: thanks17:38
zyga-ubuntuif anyone wonders what was wrong, wayland and qemu still don't work well17:38
Chipacazyga-ubuntu: <Chipaca> reasons wayland is not "there" yet #(++n)17:38
Chipaca(from just before you logged back on)17:39
Chipacan--17:39
Chipaca:-)17:39
zyga-ubuntuhehe17:40
zyga-ubuntumvo: teaser https://twitter.com/zygoon/status/93846440861075456217:45
sergiusensgeekgonecrazy are you behind a proxy? kyrofa I assume you are not17:56
kyrofaIndeed I am not17:56
kyrofaBut LP is, of course17:56
sergiusenskyrofa yeah, that might be the commonality17:58
kyrofaYeah interesting idea17:58
zyga-ubuntukyrofa: when does a make plugin detect that it is out of date18:13
zyga-ubuntukyrofa: I have a make-based project18:13
zyga-ubuntukyrofa: I keep changing things and snapcraft thinks it's all up-to-date18:13
kyrofazyga-ubuntu, only when something in the yaml changes18:14
zyga-ubuntukyrofa: and then re-squahses stuff18:14
zyga-ubuntukyrofa: why? you can ask make18:14
zyga-ubuntukyrofa: you have all the part lifecycle stuff18:14
zyga-ubuntukyrofa: make -n18:14
zyga-ubuntuor perhaps -q18:14
zyga-ubuntu(yes -q)18:14
zyga-ubuntugiven that this is a network-heavy part I just keep wasting time because it's too silly to make again18:14
kyrofazyga-ubuntu, a few different reasons. First of all, snapcraft doesn't build the source you hand it directly. During the pull step it copies it into the area it controls. So make doesn't see any changes18:15
cachio_pedronis, we have a test failing in rpi18:15
cachio_pedronis, it fails doing > snap ack "$TESTSLIB/assertions/testrootorg-store.account-key"18:15
cachio_error: cannot assert: assert failed: cannot find account (testrootorg)18:16
pedronisit's probably missing a skip18:16
pedroniswe cannot run some tests if it's a real snapd18:16
cachio_any idea why it could fail just on rpi and dragonboards?18:16
pedronis(no test keys)18:16
pedronisit's telling you this a real snapd, not a test build one18:16
sergiusenskyrofa elopio I haven't seen any comment on https://github.com/snapcore/snapcraft/pull/179618:16
mupPR snapcraft#1796: Changelog for release 2.37 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1796>18:16
pedroniss/real/prod/18:16
kyrofazyga-ubuntu, also, while make supports discovering changes, not all build systems are as nice, as we haven't developed a generic method that works for all plugins18:16
cachio_pedronis, ah, ok18:17
cachio_what should I check to skip it?18:17
kyrofazyga-ubuntu, that's not to say we don't want to get there, but it's a good chunk of work18:17
pedroniscachio_: well we have TRUST_TEST_KEYS or something like that?18:17
pedronismaybe you are not setting it properly?18:17
kyrofaAlso, snapcraft is a packaging tool. It isn't best-suited to being so tightly in the development loop18:17
pedronisor the test doesn't have the check yet18:17
cachio_TRUST_TEST_KEYS are true18:17
pedroniscachio_: you cannot set it to true if you are using a prod snapd18:18
pedronisit doesn't have the keys18:18
zyga-ubuntukyrofa: this makes sense, thank you for explaining18:18
cachio_pedronis, mmm, well something else is setting that var to true18:18
cachio_pedronis, I am not setting it18:18
kyrofaOf course18:19
kyrofasergiusens, oh man, I missed it go up!18:19
pedroniscachio_: true is the default18:19
pedronisyou need to set to false yourself18:19
pedronisif I understand18:19
zyga-ubuntukyrofa: is there some way to ask snapcraft to use fast compression?18:19
pedronisSPREAD_TRUST_TEST_KEYS=false18:19
zyga-ubuntukyrofa: especially for test snaps18:19
zyga-ubuntukyrofa: that are not sent anywhere18:20
cachio_pedronis, ok, I'll take a look to that18:20
kyrofazyga-ubuntu, honestly I'm not sure what that means :P18:20
kyrofazyga-ubuntu, you mean for the squashfs image?18:20
zyga-ubuntukyrofa: call mksquashfs without compression18:20
cachio_pedronis, in the spread.yaml it is using TRUST_TEST_KEYS: "false"18:20
kyrofazyga-ubuntu, no, it's hard-coded to xz etc. to make the store happy18:20
cachio_but just for ubuntu-core-16-64 and ubuntu-core-16-3218:21
kyrofazyga-ubuntu, but you could hack it pretty easily if you wan18:21
cachio_pedronis, in this case, for pi3 we use system: ubuntu-core-16-arm-3218:21
pedroniscachio_: ah18:21
cachio_pedronis, so, should I change it?18:21
pedronisthey all need to be the same18:21
kyrofazyga-ubuntu, snapcraft/internal/lifecycle/_packer.py for your reference18:21
geekgonecrazysergiusens: nope not behind proxy (though I know launchpad is)18:21
pedroniscachio_: this is the external backends ?18:22
zyga-ubuntukyrofa: thank you!18:22
cachio_pedronis, yes18:22
cachio_pedronis, external18:22
pedroniscachio_: yes, they all need the same config18:22
pedronisnot sure why some have the false and some not18:22
cachio_pedronis, ok, makes sense18:22
cachio_thanks, I'll check that18:22
pedronisI wasn't really paying attention to that part of spread.yaml18:22
geekgonecrazykyrofa: https://launchpadlibrarian.net/348314093/buildlog_snap_ubuntu_xenial_amd64_stable_BUILDING.txt.gz got one successful doing the curl in the prepare step.  o.O Not pretty but gets the release where I can push it out to the impatient users :D18:22
cachio_pedronis, I do :)18:23
cachio_pedronis, I use it a lot18:23
kyrofaHey jdstrand, I'm playing with another joystick lib, and finding our joystick interface lacking a bit. I'd like to be able to access /dev/input/event* for the joystick... but it's entirely unclear to me how we can determine which events are tied to the joystick18:29
kyrofajdstrand, https://pastebin.ubuntu.com/26126996/18:29
kyrofajdstrand, note how js0 and event17 are pretty clearly provided by the same device18:30
kyrofajdstrand, think that's possible?18:30
jdstrandkyrofa: can you paste 'udevadm info /dev/input/event17'?18:33
kyrofajdstrand, here's both event17 as well as js0: https://pastebin.ubuntu.com/26127016/18:34
kyrofaI don't know much about this-- they both seem to be an interface to the same data. Is one just a newer/different API?18:35
jdstrandI think so, yes18:36
jdstrandkyrofa: so, I do think this is possible. what you would need to do is interrogate udev to map the thing you know (/dev/input/js0) to the thing you don't (/dev/input/event17) then add the device access for event1718:37
kyrofaQuick research leads me to believe js is old, event is newer18:37
kyrofajdstrand, can we do things like that in an interface?18:37
jdstrandkyrofa: that is accurate18:37
kyrofaSo far I've just been adding static ones18:38
jdstrandkyrofa: well, it is something I always hoped we could do for all sysfs entries. Ie, we assign js0 and then allow the precise sysfs entries for that device18:38
jdstrandkyrofa: this isn't that different18:38
jdstrandkyrofa: the problem is this is related to hotplug18:39
kyrofaSay no more...18:39
kyrofajdstrand, would I be correct to assume that whitelisting /dev/input/event* in joystick is a bad idea?18:40
jdstrandkyrofa: so we could come up with a way to look at udev (or possibly more simply, various symlinks), but interfacec connections happen at specific points in time, but reboots, plug/unplug, etc would change the paths18:41
jdstrandkyrofa: oh gosh yes. that would grant anything that plugged the interface the ability to spy and spoof input events18:41
jdstrand*all* input events18:42
kyrofaHeh18:42
kyrofaYeah and profile generation only happens at install/upgrade time, right?18:42
jdstrandconnect/disconnect (obviously)18:43
kyrofaRight, that's more specific. And THAT is what causes them to happen at install/upgrade time I suppose18:43
jdstrandinterestingly, also on reboot if the policy is different on disk from what snapd generates18:43
kyrofaOh, hmm18:44
jdstrandI mention that last point cause you could get there crudely on reboot if snapd did its interrogating to come up with different policy18:44
kyrofaExactly my thought18:44
jdstrandso js0 -> event17 might be js0 -> event1618:44
jdstrandsnapd would detect that18:45
jdstrandbut snapd would have to tie into the uevent kernel framework to get notifications on hotplug/unplug18:45
kyrofaRight, and then in order to get new devices into the profile, one would need to reboot, or disconnect/connect the interface18:46
kyrofaMeh18:46
jdstrandthere is another way to deal with this: static file labels with apparmor. the idea is that you create a udev rule that statically labels the device based on the snap's label18:47
jdstrandbut apparmor doesn't support that yet18:47
jdstrand(that incidentally would get rid of the need for device cgroups, which would be great)18:47
jdstrandkyrofa: exactly (hence the 'crudely' and why this is tied to hotplug)18:48
jdstrandall of this is doable, but as you know, hotplug is on the roadmap but not prioritized for the short term18:49
kyrofaIndeed. Okay, I'll hold off further investigation into this, and look for a python lib that uses the older interface. Very educational, thank you!18:49
kyrofaIndeed18:49
jdstrandnp18:49
mupPR snapcraft#1796 closed: Changelog for release 2.37 <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1796>18:57
sergiusenskyrofa elopio don't merge anything until further notice please18:57
kyrofaack18:57
elopiook18:58
mupPR snapd#4370 opened: tests: set TRUST_TEST_KEYS=false for all the external backends <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4370>19:14
kyrofaHey cjwatson, I'm curious: why, if LP supports all these architectures in the builders, does build.snapcraft.io only support a few of them?19:51
cjwatsonkyrofa: mainly because we want to have the facility to select specific architectures in snapcraft.yaml or similar (as we talked about at the rally, if you remember) before we enable more architectures by default that many developers won't care about without offering them a way to shut up the build failures19:59
cjwatsonkyrofa: also, s390x needs to have the new scalingstack region finished off before we can offer it in BSI20:00
mupPR snapd#4364 closed: interfaces: added Ref() helpers, restored more detailed error message on spi iface <Created by stolowski> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4364>20:02
kyrofaAh, makes sense thank you :)20:15
=== mcphail_ is now known as mcphail
sergiusenscjwatson seems something hit kyrofa on the head, we were just discussing this on Monday ;-)20:55
kyrofasergiusens, we didn't discuss that it was preventing more arch support in build.snapcraft.io20:55
sergiusenskyrofa oh, I am talking about the flashback to the rally conversation :-)20:56

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