/srv/irclogs.ubuntu.com/2017/11/28/#snappy.txt

=== chihchun_afk is now known as chihchun
mupPR snapcraft#1765 opened: store: refactor acquirement of attenuated macaroon <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1765>00:41
mupPR snapd#4307 opened: Fix for issues when snad service is canceled and cleanup for snaps <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4307>05:17
mborzeckimorning06:02
zyga-ubuntugood morning07:01
mborzeckizyga-ubuntu: hey07:18
mborzeckizyga-ubuntu: how's your daughter? better?07:19
zyga-ubuntumborzecki: yeah, she's better but will stay one more day at home07:22
zyga-ubuntumborzecki: but hopefully I won't have to spend most of my time next to her as she will not (hopefully) stay in bed all day07:23
mupPR snapd#4308 opened: packaging/arch: install snap-mgmt tool <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/4308>07:40
zyga-ubuntumborzecki: reviewed07:54
mborzeckithanks07:54
zyga-ubuntupstolowski: hey08:20
pstolowskizyga-ubuntu, morning!08:21
zyga-ubuntupstolowski: I looked at 4303 and it seems to be really failing08:21
pstolowskizyga-ubuntu, indeed, thanks for heads up, will check08:29
=== __chip__ is now known as Chipaca
Chipacamoin moin09:25
pedronisChipaca: hello09:27
mvohey Chipaca, good morning and good morning to pedronis09:27
Chipacapedronis: mvo: hiya :-)09:27
Chipacawhat's on fire?09:28
mvoChipaca: surprisingly little this morning09:28
mvoChipaca: the 2.30 branching is immanent but thats hardly a fire :)09:28
Chipacamvo: unless you mean 2.30 branching pervades the universe, i think you mean it's imminent09:29
pedronismvo:  we still have some PRs open for 2.30 right?09:29
Chipacasnapd is imanent \o/ nothing more for us to do09:30
Chipacaimmanent*09:30
Chipacasilly english09:30
pedroniss/IOT/immanent computing/09:31
mvoChipaca: haha, indeed, sorry. ENEEDMORETEA09:31
mvopedronis: yes, we are still waiting for those09:31
zyga-ubuntuChipaca: hey09:36
Chipacazyga-ubuntu: hiya :)09:39
Chipacacan anyone see what went wrong in the spread run of #4299? It seems to have just stopped mid-dance09:45
mupPR #4299: osutil/user: replace our uses of os/user and filepath.Glob("/home/*") <Created by chipaca> <https://github.com/snapcore/snapd/pull/4299>09:45
mvoChipaca: yeah, confusing09:46
Chipacamvo: #1734845 sounds like fun09:50
mupBug #1734845: hook (core) configure → exit status 1 cannot create lock directory /run/snapd/lock → Permission denied <snapd (Ubuntu):New> <https://launchpad.net/bugs/1734845>09:50
ogra_pedronis, where does the firstboot key generation exactly live again ? could you point mvo to it in 4304 ?09:51
pedronisoverlord/devicestate/crypto.go  using ssh-keygen09:52
pedronisnothing to do with gnupg09:53
ogra_eek ... damn09:55
ogra_mvo, sorry for the noise ...09:55
ogra_i thought we also generate gpg keys there09:56
pedronisso we need openssh-client09:58
ogra_yeah09:58
ogra_but 4304 is about dropping gnupg only ... so thats fine09:59
pedronisthat's used only for snap *-key commands10:00
pedronisand the corresponding snapcraft ones10:00
ogra_yeah10:00
mvoogra_: no worries, that was my understanding that we don't need it but it does not hurt to double check10:01
ogra_true indeed10:01
Chipacaoooh, bug10:10
Chipacapedronis: I like the idea of making Init more Mock-like more and more10:17
Chipacapedronis: would a bare Mock be alright?10:17
pedronistaking nothing?10:17
Chipacapedronis: taking nothing, but returning a restorer func10:17
Chipacapedronis: otherwise every test that calls this would leave the system in a weird state after10:18
pedronisah10:18
pedronisthen yes10:18
pedronisyou  probably want a function that does the init bit alone though10:18
pedronisto call from init()10:18
Chipacaor viceversa10:18
Chipacai could call init by hand from the mock :-)10:18
Chipacazyga-ubuntu: if you have a bunch of distros hanging around, could you do a login.defs zoo?10:21
zyga-ubuntuChipaca: haha, sure10:23
zyga-ubuntuChipaca: I never looked at that file10:23
Chipacazyga-ubuntu: also: man subuid10:23
zyga-ubuntuChipaca: what's interesting about it?10:23
Chipacazyga-ubuntu: for osutil/user, SYS_UID_MAX10:24
Chipacai didn't know about subordinate uids10:26
pedronisChipaca: I don't think you can call init functions, they are special10:35
pedronisyou can have many of them, but not call them10:35
Chipacapedronis: I'll call it innit then10:35
Chipaca:-)10:35
Chipacazyga-ubuntu: I don't need the login.defs zoo, fwiw -- i'm reading the file directly11:01
zyga-ubuntubrb11:07
mupPR snapd#4309 opened: snap: fix TestDirAndFileMethods() test to work with gccgo <Created by mvo5> <https://github.com/snapcore/snapd/pull/4309>11:08
zyga-ubuntumvo: that's weird11:11
pedronismvo:  do we need more special casing now that we are removing configure-snapd to make it so, that snap set core works also before there's core at all ?11:20
mvozyga-ubuntu: yes it is - gccgo11:30
mvopedronis: maybe, I need to look11:30
pedronismvo: we do11:31
mvopedronis: thank you11:35
pedronismvo: is not easy to have no core snap in a spread test, right? unless it has its own prepare sequence?12:04
zyga-ubuntupedronis: I think so, though some tests just purge snapd12:04
pedronisah12:04
zyga-ubuntupedronis: I'd like to fix some things and change the prepare/restore code so that each test automatically installs snapd and starts from a clean slate otherwise12:05
zyga-ubuntupedronis: (the fixes would involve making that operation very cheap)12:05
zyga-ubuntupedronis: IMO the prepare/restore code is a bit complex today and optimizes for time rather than clarity while we can have both12:05
pedronisanyway I just need some expedient for today, and now I see indeed some tests start purging snapd12:09
mvopedronis: yeah, purging is probably the easiest, or just rm -f /var/lib/snapd/state.json if you need to simulate an empty state12:17
=== chihchun is now known as chihchun_afk
simosxthere is a source code repository (plugin: qmake) that does not implement "make install". How would I pick up the executable in order to move it in the snap?12:38
jdstrandsergiusens: hey, is 'SNAPCRAFT_BUILD_INFO=1 snapcraft cleanbuild' supposd to work? (ie, SNAPCRAFT_BUILD_INFO with cleanbuild)12:43
mupPR snapcraft#1766 opened: Enhanced fake store to detect that metadata can't be pushed prior to pushing the binary, and fixed the test <Created by facundobatista> <https://github.com/snapcore/snapcraft/pull/1766>12:44
jdstrandsergiusens: I have 2.34+17.10 and I don't see a build artifact12:44
jdstrand(maybe I am looking in the wrong place?)12:44
sergiusensjdstrand it is inside the snap, under the `snap` directory12:45
jdstrandsergiusens: yeah. that is where I looked12:47
jdstrandnot there12:47
zyga-ubuntujdstrand: hey,12:47
jdstrandhey zyga-ubuntu :)12:47
zyga-ubuntujdstrand: do you have some time, I made updates to https://github.com/snapcore/snapd/pull/422412:47
mupPR #4224: cmd/snap-update-ns: teach update logic to handle synthetic changes <Created by zyga> <https://github.com/snapcore/snapd/pull/4224>12:47
zyga-ubuntujdstrand: just comment changes + one function rename12:47
zyga-ubuntujdstrand: there's also one other PR that waits for your review: https://github.com/snapcore/snapd/pull/4140 a new interface12:48
mupPR #4140: interfaces: add an interface for gnome-online-accounts D-Bus service <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/4140>12:48
zyga-ubuntujdstrand: and lastly you have some feedback on https://github.com/snapcore/snapd/pull/4100 that looks like low hanging fruit, maybe something I can help with?12:48
mupPR #4100: add ssh-keys, ssh-public-keys, gpg-keys and gpg-public keys interfaces <Created by jdstrand> <https://github.com/snapcore/snapd/pull/4100>12:48
jdstrandzyga-ubuntu: all are on my list for this week (I mentioned this yesterday)12:48
jdstrandzyga-ubuntu: 4224 is for today12:49
jdstrandzyga-ubuntu: 4140 requires some investigating from me. 4100 I need to think through a little bit more12:49
zyga-ubuntujdstrand: thank you on all counts :)12:50
mupPR snapcraft#1763 closed: Make the pip filtering in the Python plugin more fine-grained <Created by OddBloke> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1763>12:50
zyga-ubuntujdstrand: I'm preparing follow-up for layouts, I'd like to finally finish that and I think we are really close now12:50
jdstrandsergiusens: 06:47 < jdstrand> not there12:56
jdstrandsergiusens: wait, what snap directory? snap/ during the build or in meta/ of the snap?12:56
jdstrandzyga-ubuntu: nice12:57
=== alan_g is now known as alan_g|lunch
jdstrandsergiusens: I have a toplevel snapcraft.yaml. let me put it in snap/13:00
zyga-ubuntuoh13:04
zyga-ubuntustandup13:04
zyga-ubuntujoining13:04
jdstrandsergiusens: ok, I moved snapcraft.yaml to snap/snapcraft.yaml, then ran 'SNAPCRAFT_BUILD_INFO=1 snapcraft cleanbuild'. I now have a snap/ directory in the snap, but no manifest13:05
sergiusensjdstrand oh, with cleanbuild you need 2.35, the env var wasn't being passed in before13:08
sergiusensjdstrand `snap install snapcraft --classic` :-)13:08
jdstrandhmmm, if I do that I need to remember what you said to do about lxd and networking13:09
jdstrandsergiusens: yes, that worked. thanks13:36
sergiusenscjwatson btw, mind if we work on switching snapcraft to use the snap for lp buidlers?13:40
cjwatsonsergiusens: I don't mind, but how were you planning to go about it?13:40
cjwatsonit's a bit involved13:40
sergiusenscjwatson oh, then step one would be to get an idea of how involved it is :-)13:41
sergiusensI had the impression it would be more about testing that s/apt install snapcraft/snap install snapcraft --classic/ was working as expected on staging13:42
cjwatsonsergiusens: we need to make it be a switch, not just change it in the code (which is harder to roll back, harder to experiment with on particular snaps, etc.); and probably as part of the same chunk of work we need to add channel control13:43
cjwatsonsergiusens: which means it needs to be propagated down from the LP buildd-manager, and probably needs data model changes13:43
sergiusenscjwatson up to LP or even build.snapcraft.io ?13:47
sergiusensI'll write up the proposed set of steps on the forum13:48
cjwatsonsergiusens: not build.snapcraft.io IMO.  We can flip the switch eventually but it needs to be controlled13:53
cjwatsonsergiusens: IMO the steps are: (1) design data model in LP (possibly taking into account where core is installed from too, at least for the future?) (2) add option to snap build type in launchpad-buildd to cause it to install snapcraft as a snap (3) LP database migration to add whatever new columns we need (4) implement new data model and API changes in LP, and adjust the build args sent to ...13:56
cjwatson... builders (5) possible UI changes13:56
cjwatsonsergiusens: ordering is important because builders, DB migrations, LP code are all deployed independently so we need to ensure the right kind of compatibility13:57
niemeyercachio: Spread-24 is now a brand new machine13:58
niemeyercachio: Let me know how it goes please13:58
cachioniemeyer, great, thanks13:58
cachioniemeyer, I'll put an eye on it13:59
=== alan_g|lunch is now known as alan_g
mupPR snapd#4310 opened: many: allow to configure core before is installed <Created by pedronis> <https://github.com/snapcore/snapd/pull/4310>14:13
pedronismvo: ^    it has conflicts though, what stops merging your PR ?14:14
jdstrandzyga-ubuntu: I've not looked at this at all, but fyi https://bugs.launchpad.net/bugs/173484514:14
mupBug #1734845: hook (core) configure → exit status 1 cannot create lock directory /run/snapd/lock → Permission denied <snapd (Ubuntu):New> <https://launchpad.net/bugs/1734845>14:14
zyga-ubuntujdstrand: ack14:15
pedronismvo: your PR is red14:15
zyga-ubuntujdstrand: I looked at this when initially made aware of this about a week ago, my best theory is this is in a privileged container without apparmor stacking14:15
jdstrandzyga-ubuntu: like I said, I don't know, but there are quite a few issues on errors.u.c: https://errors.ubuntu.com/problem/cf07c2fa3f39a98f0b52aaf20ff82faab796912914:17
jdstrandzyga-ubuntu: 515 instances in the last week: https://errors.ubuntu.com/?period=week14:20
mvopedronis: yes, timeout14:21
mvopedronis: interestingly in snap set core prxy.store=fake14:22
pedronisreal bug?14:22
mvopedronis: maybe but it looks a bit random14:23
pedronisit's never been green afaict14:23
mvopedronis: :/14:23
mvopedronis: I debug once I have the nvidia done14:25
mvopedronis: if its real it might be some race, I wonder if something with the state lock, that would explain why it times out, but I don't think there is anything racy in there14:25
pedronismvo: probably something wrong with the lock14:25
pedronisthat's my guess as well14:26
pedronis(that we don't see in the unit tests)14:26
mupPR snapd#4311 opened: debian: ensure /var/lib/snapd/lib/vulkan is available <Created by mvo5> <https://github.com/snapcore/snapd/pull/4311>14:27
pedronismvo: I see  corecfg.Run expects to run without the lock, but the new code in hookmgr locks14:30
mvopedronis: heh, that would explain it14:31
pedronisI think we need to think a bit who should be responsible for what14:31
pedronismvo: we probably shouldn't lock around the hijack, and make it it's problem14:34
pedronismvo: I need to take my walk break, but I can look in to this afterward14:38
zyga-ubuntujdstrand: FYI, after "plan writable mimic" branch lands I'd like to propose this: https://github.com/zyga/snapd/commit/9b4507bdbfd22f858808924fa45c633209d290c114:38
zyga-ubuntujdstrand: I think it fits into the discussion and I'm just letting you know in case you need context for the other review14:39
mvopedronis: sounds good, lets sync when you are back, I'm fighting apparmor right now14:39
zyga-ubuntujdstrand: this patch does the execution of the plan and creation of the undo changes14:39
* zyga-ubuntu jumpst onto the user mount namespace topic14:45
jdstrandmvo: is that the include issue or something else?14:48
mupPR snapd#4312 opened: snap-confine: create mount target for lib32,vulkan on demand <Created by mvo5> <https://github.com/snapcore/snapd/pull/4312>14:53
mvojdstrand: I was refering to the include issue earlier, but I think its a non-issue now, we fixed it by using #include now instead of "include"14:53
mvojdstrand: well, when I say "we" I mean zyga-ubuntu14:53
lundmarHi guys, I'm looking forward to more +1 in this alias request: https://forum.snapcraft.io/t/request-automatic-aliases-for-lxi-tools/2956 . Thanks! :)14:54
* jdstrand nods14:54
jdstrandlundmar: you don't need any more14:55
lundmaroh great. Can it move to next step already?14:56
jdstrandlundmar: you have two votes. we just need to wait the allotted time to allow others the opportunity to vote against14:56
lundmarok14:56
jdstrandlundmar: then we'll grant the alias. fyi, the voting period is one week, so next monday I'll tally/grant14:57
lundmarok, parience it is then :)14:57
lundmarpatience*14:57
mupPR snapd#4313 opened: timeutil: refresh timer take 2 <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/4313>14:58
lundmarjdstrand: btw, I'm the guy who made the feature request for completions scripts support long ago. I recently revisited snap and I'm happy to see it has been added. However, it seems it is not working for aliased commands.14:58
Chipacalundmar: hello14:59
mupPR snapd#4314 opened: interfaces: switch to ConnectedPlug/ConnectedSlot API <Created by stolowski> <https://github.com/snapcore/snapd/pull/4314>14:59
Chipacalundmar: https://forum.snapcraft.io/t/tab-completion-for-snaps-bash/226114:59
Chipacalundmar: 2.30 has support for aliased commands14:59
lundmarChipaca: Ahh, 2.30 . Got it. Thanks.15:00
Chipacalundmar: let me know how it breaks :-)15:00
lundmarof couse, I expect it to :)15:00
lundmarcourseØ15:00
lundmarcourse*15:00
Chipacalundmar: also note the completion snippet doesn't "see" the alias15:01
Chipacaie if a snap foo has an app called bar that has a snippet, the snippet is always called as if the user had used foo.bar, even if the user aliased foo.bar to quux and used that15:02
mvopedronis: nvidia is under control, I will fix the locking now (unless you are already on it)15:03
lundmarChipaca: I'll look into to the snippet stuff. The less defintion we have to add to get completion scripts working in its traditional form the better.15:03
Chipacalundmar: you should be able to just drop in the snippet you'd usually drop in /usr/share/bash-completion/completions into you snap, set a 'completer' key in the yaml, and things work. At most you need to make it handle foo.bar instead of just bar.15:04
lundmarChipaca: Like this right? https://github.com/lxi-tools/lxi-tools.snapcraft/blob/master/snap/snapcraft.yaml15:04
Chipacalundmar: like so15:04
lundmarI'm adding the alias manually, however I noticed it does not work.15:05
zyga-ubuntumvo: what do you know about the locking issue15:05
zyga-ubuntumvo: do you have any theory?15:05
Chipacalundmar: completion, or the alias?15:06
mvozyga-ubuntu: none at all currently :(15:06
zyga-ubuntumvo: question is 2.29 really open as milestone? are you doing a 2.29.x release?15:07
lundmarChipaca: completion not working for the lxi-tools.lxi command nor lxi alias (the latter is most important).15:07
mvozyga-ubuntu: not sure I understand but yes, 2.29 is still open because its not released yet to stable core and also it looks like there are some warts with the SRU15:08
Chipacalundmar: is it the one in the store?15:08
mupPR snapd#4311 closed: debian: ensure /var/lib/snapd/lib/vulkan is available <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4311>15:08
lundmarChipaca: yes15:08
Chipacalundmar: complete -o default -F _lxi lxi15:09
jdstrandlundmar: glad completion scripts are (finally) getting there for you :) they were a very interesting feature to enable (huge thanks to Chipaca)15:09
Chipacalundmar: that bit in your snippet will only work with "lxi"15:09
jdstrand(he did all the heavy lifting)15:09
Chipacalundmar: and that will never get called with 'lxi' because the snap is called lxi-tools15:09
Chipacalundmar: so... you probably ant complete -o default -F _lxi lxi-tools.lxi15:09
Chipacawant*15:10
lundmarChipaca: which is just fine. I'm really only interested in it working for the 'lxi' alias, not lxi-tools.lxi15:10
Chipacalundmar: the snippet doesn't see the alias, as i tried to explain15:10
Chipacathe snippet always sees the 'canonical' (heh) app name15:10
Chipacalundmar: (because the user can alias it to _anything_ and still want completion to work)15:10
lundmarjdstrand: yeah, I know getting it working across confiment was interesting. Now, next feture we need to have first class commandline support is support for the 'man' command to view man pages ;)15:11
=== cachio is now known as cachio_lunch
jdstrandlundmar: work on that recently continued, thanks to cjwatson15:12
jdstrandonce the confinement is working in the man command, then snapd can implement the bits to put man pages from snaps in the right place15:12
mupPR snapd#4309 closed: snap: fix TestDirAndFileMethods() test to work with gccgo <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4309>15:13
lundmarChipaca: Hmm. Then I will have to create a duplicate completion script just for the sake of snap.15:14
Chipacajdstrand: next after that... devhelp :-D15:14
jdstrandChipaca: heh15:14
Chipacalundmar: aw15:14
Chipacalundmar: or! or15:14
Chipacalundmar: “complete -o default -F _lxi lxi lxi-tools.lxi”15:14
Chipacalundmar: that should work in both places15:15
lundmarChipaca: yes, and that line belongs in the completion script (that I will have to create specifically for snap) unless I can somehow add the single line in the .yaml?15:15
Chipacalundmar: i mean, you can ship that line in both places, it won't break stuff15:16
jdstrandmvo: whenever is convenient, can you take a look at https://dashboard.snapcraft.io/dev/snaps/8748/feedback/15:16
jdstrandmvo: (base-18 issues)15:16
jdstrandmvo: I approved it for now, but it would be nice to get it to pass automated review15:17
mvojdstrand: sure15:17
lundmarI guess my point is, if possible I want to avoid changing anything in my source to reflects snap support. If possible it would be better to find a way for snap to support standard configurations.15:17
mvojdstrand: thank you, it looks really messy :)15:17
jdstrandmvo: (note that r950 of the review tools have changes for base-18 but aren't in prod yet)15:17
mvojdstrand: but note the version number15:17
jdstrandmvo: yes. I like your style :)15:17
mvojdstrand: thank you for doing those15:17
mvojdstrand: :P I will work on the errors after the other fires are under control15:18
Chipacalundmar: i didn't find a way for that to work, unfortunately15:18
mvojdstrand: thanks for the heads up15:18
lundmarChipaca: I can see how it is tricky to solve.15:18
Chipacalundmar: that is: users can decide not to install your aliases (snap install --unaliased), or to override it with anything else, and we still want completion to work in those cases15:19
Chipacaif there's a trick i missed, i'd be happy to learn it15:19
lundmarChipaca: I'm thinking what if we define “complete -o default -F _lxi lxi lxi-tools.lxi” directly or indirectly (through simple key) and have that be picked up and source by some of the command wrappers. This way we can support standard completion scripts and end users don't have to touch their original completion scripts.15:23
lundmarsourced*15:23
Chipacalundmar: doable but a lot of work, because of how hairy complete can get15:24
lundmarI mean, we could create maybe a completer-alias: lxi-tools.lxi key and support it that way.15:25
cjwatsonjdstrand: Yeah, I landed the apparmor work in unstable/bionic but I still need to finish the seccomp work15:27
lundmarthe have the command wrapper source the completer script in case the _lxi bash function does not already exist (not sourced before). Might be simple to do.15:27
lundmarthen*15:27
lundmarChipaca: either way, users are free to change aliases manually. It seems to me we need to figure out a way to support that. I think changing the command wrapper accordingly might be a way.15:37
mvopedronis: my local spread run appears to be happy now, fingers crossed for the spread run15:38
pedronismvo: thanks, I think the test need some tweaking to fail earlier15:42
mvopedronis: the spread test you mean?15:43
mvopedronis: or do you mean we need a unit test that tests this particular combination ?15:43
pedronismvo: no, the unit tests, I think the Mock function in configstate is a bit strange15:43
pedronisit mocks too much15:43
pedronisanyway I'm picking up the branch to work a bit on this15:43
mvopedronis: much appreciated, thank you15:43
Chipacalundmar: in all the above you refer to 'command wrappers'. What do you mean?15:45
pedronismvo:  am I confused, or there are no tests for the hijack in  configstate itself?15:50
Chipacalundmar: note that if your snap were called just 'lxi' things would just work :-)15:50
mvopedronis: iirc only indirect via coreCfgRun mocking15:50
mvopedronis: so +1 for adding one, let me know if I should do this. sorry for this15:51
pedronismvo: no, the mocking is not called in configstate15:51
pedronisit's only used far away (devicestate)15:51
mvopedronis: autsch, indeed15:52
pedronisI'll see if I can add one15:52
lundmarChipaca: Yes, however - that is not an option. We can't name all snaps after the primary tool it includes ;)15:52
Chipacalundmar: one can dream though15:52
Chipacalundmar: (also: why not?)15:53
mvopedronis: please let me know if its too annoying, then I will do it :)15:53
kyrofasergiusens, is there a reason we're using mypy 0.540 instead of the newest?15:54
lundmarChipaca: image a snap package with many tools (apps). You would need aliases for each app to avoid the <snap name>. prefix.15:54
lundmarimagine*15:54
kyrofaIf not, mind if I update?15:54
Chipacalundmar: most tools that are parts of a whole do have a common prefix or suffix, though15:55
lundmarChipaca: I assume the overall goal with aliases is to make it possible for the users to never know they are using a snap.15:56
lundmarthat is very aliases become powerfull feature15:57
lundmarwhere*15:57
lundmarChipaca: I was looking at this file: /snap/lxi-tools/current/command-lxi.wrapper15:57
Chipacalundmar: ah, that's a snapcraft thing15:57
Chipacanot sure what's in there today15:57
Chipaca(haven't had to look in a while because it mostly just works)15:58
lundmarChipaca: oh, it's not used when firing commands?15:58
Chipacalundmar: completion doesn't run the command though15:58
lundmarI thought maybe this file was fired every thing you fire the lxi-tools.lxi command15:59
kyrofalundmar, indeed it is15:59
kyrofalundmar, that's how snapcraft gets the LD_LIBRARY_PATH in there, runs any required setup scripts, etc.16:00
lundmarin which case it would be possible to add a check to see if the e.g. _lxi function (defined via eg. new completer-alias key) and if the _lxi function does not exist it will simply source the completion script.16:01
zyga-ubuntujdstrand: I'll resume work on the base snap staleness issue16:01
kyrofaHey zyga-ubuntu, any more progress on the lxd upgrade issue?16:01
zyga-ubuntukyrofa: no, not yet16:03
=== cachio_lunch is now known as cachio
Facusergiusens, so, my last commit in the metadata branch failed in travis with "The job exceeded the maximum time limit for jobs, and has been terminated." ... what should I do?16:16
Facuroadmr, matiasb ^16:16
matiasbhm.. no idea, trigger it again? :/16:18
mupPR snapcraft#1580 closed: cli: setup gitignore when working from git directory at init <Created by msis> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1580>16:18
roadmrFacu: I'd trigger it again. Travis is brutal, it takes ages :(16:18
Facuroadmr, ack16:18
Chipacalundmar: https://forum.snapcraft.io/t/2972?u=chipaca16:19
jdstrandsergiusens: I meant to ask before, are snap rebuilds expected to work now? I tried by just copying manifest.yaml over snapcraft.yaml but it didn't work. if it is expected to work, what is the right way to do it?16:24
roadmrjdstrand: hey, we made a proposal on how to solve https://bugs.launchpad.net/snapstore/+bug/1732781, could you check the last comment (mine!) and let me know if that sounds acceptable? if not, I'm happy to find other alternatives16:24
mupBug #1732781: store should detect and reject changing snap types <Snap Store:New> <https://launchpad.net/bugs/1732781>16:24
jdstrandroadmr: oh I missed that16:24
* jdstrand reads16:24
roadmr:D16:25
jdstrandroadmr: commented16:26
roadmrthanks116:26
roadmr!16:27
jdstrandhehe16:27
pedronismvo: I noticed that configmanger has still the runner but now is unused16:27
pedronismvo: I pushed the test and tweaks if you want to look16:28
Facuroadmr, the github page says "failed", should it say "testing" or something?16:29
lundmarChipaca: great, let me get back to that thread later. I have a few things to take care of first.16:30
Chipacalundmar: forum is async \o/16:30
lundmarmy brain is async :D16:30
pdefreitashello guys, I'm looking forward to get a full dev reference of snapcraft. Can anyone guide me regarding that?16:32
zyga-ubuntupdefreitas: hey, did you see snapcraft.io16:33
zyga-ubuntupdefreitas: we have a forum, tutorials and other documents16:33
roadmrFacu: let me check16:33
niemeyermborzecki: Btw, I don't know if I ever sent you the link to https://forum.snapcraft.io/t/task-workflow-in-the-forum/20616:35
pdefreitasyes, I did, but I am looking for more advanced reference.16:36
niemeyermborzecki: I know we talked about it, but I don't recall if I did send the link or not16:36
mborzeckiniemeyer: thanks, i'll check it out16:36
mvopedronis: re runner> yeah, we can kill that one again I think16:37
pedronismvo: I pushed the test if you want to look16:37
pedronismvo: killing the runner, yes, don't know if it's urgent16:37
mvopedronis: test is nice, thank you16:37
niemeyermborzecki: I just removed one of your nick tags from a topic because I thought you forgot to drop that when you dropped upcoming or backlog, but now I realize that you were probably not aware of those conventions16:37
mvopedronis: probably not urgent, I make a note and fix it in my morning16:37
zyga-ubuntupdefreitas: which topic in particular are you interested in?16:37
mborzeckiniemeyer: yup, i was not16:38
roadmrFacu: checking how to re-trigger the travis run16:38
Facuroadmr, thanks16:38
mvopedronis: nice simplification in your commit, thanks for this16:39
roadmrFacu: I don't think I can trigger a rebuild, you might be able to, I found some advice in https://stackoverflow.com/questions/17606874/trigger-a-travis-ci-rebuild-without-pushing-a-commit16:39
Facuroadmr, but if I close the PR and reopen it again won't lose all the conversation?16:40
Facusergiusens, you have write access to the repo? may re-trigger that travis?16:41
roadmrFacu: yes, that sounds scary :( sounds like the best option is to get someone with write access to retrigger the build16:41
mupIssue snapcraft#1767 opened: stage-packages does not respect architectures <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1767>16:51
Chipacaniemeyer: ping16:51
niemeyerChipaca: pongus16:51
Chipacaniemeyer: running spread with -debug, and not getting shell prompts; instead i'm getting “Error running debug shell: EOF”16:52
Chipacaniemeyer: and then “Error restoring linode:ubuntu-14.04-64:tests/main/ : EOF”16:52
niemeyerChipaca: That means a disconnection16:52
niemeyerChipaca: Thus no shell16:52
Chipacaniemeyer: 20+ in a single run?16:53
niemeyerChipaca: Clearly something wild going on16:53
pdefreitaszyga-ubuntu: the use of interfaces, in particular the bluez interface16:54
niemeyerChipaca: Note that if the connection is killed in general it's not reestablished, as Spread assumes the machine is in a random state16:54
Chipacaniemeyer: i can tell you think you're explaining something to me, but alas16:55
Chipacaniemeyer: "a disconnection" -- what disconnected?16:55
niemeyerChipaca: The Spread connection to the machine16:55
niemeyerChipaca: ssh16:55
Chipacaniemeyer: so, all my ssh's disconnected16:55
Chipacabecause they're all doing the same thing16:56
niemeyerChipaca: Were you connected to multiple machines, or a single machine?>16:56
Chipacabut, if it disconnected, how is it still reporting progress?16:56
niemeyerChipaca: IOW, was it a full run, all systems in Linode, or a custom run with only a single machine?16:56
Chipacaniemeyer: a full run on linode16:57
niemeyerChipaca: Ok, so that tastes a lot like a local network hiccup16:57
Chipacaniemeyer: if the EOF is a disconnect, how does it continue after that?16:57
niemeyerChipaca: If all machines were disconnected at once, your ISP might have quickly bounced your connections16:57
niemeyerIP change or whatever16:58
niemeyerChipaca: It does not continue.. not on the EOFd machine.. that's why no shell16:58
niemeyerChipaca: So the tasks will keep up waiting, and if nothing else picks up (a second worker with the same exact system, if any) the remaining tasks are reported as Aborted at the end16:59
Chipacaniemeyer: i'm not sure that matches what i see, but fair enough; i'll wait for it to finish and then kick it off again17:00
niemeyerChipaca: If the errors is across machines, it needs to be network related17:02
niemeyerChipaca: Even more if it's an EOF, that's a huge hint17:02
niemeyerChipaca: Either on your end, or on Linode's17:03
niemeyerChipaca: We have half of our systems on our DC and half on another.. if vaguely half of your systems got an EOF, I'd suspect one data center got a kick17:03
niemeyerSorry, s/our DC/one DC/17:03
Chipacaniemeyer: this is an excerpt of what I see (removed the "running late" lines): https://pastebin.canonical.com/204297/17:06
Chipacaniemeyer: the thing that puzzles me is that, if each EOF takes a machine out of the pool, and we have 4 14.04 workers, how are there so many more than 4 EOFs?17:06
Chipacaniemeyer: i think i can answer that now though17:07
niemeyerChipaca: I see, so the EOF actually happened on a single system17:07
Chipacait's an EOF for the debug output, an EOF for the two restores (test and project) and an EOF for the debug shell itself17:08
niemeyerChipaca: Looks like Spread is not realizing the EOF isn't going away any time soon, and should stop trying to debug those17:08
Chipacaniemeyer: or that :-)17:08
niemeyerChipaca: This is a single system, most likely a single machine too17:08
niemeyerChipaca: (most likely because we have multiple workers per system)17:08
pdefreitasIf I want to run multiple snaps that use the very same bluetooth API (bluez) would I have any kind of trouble? Are they independent?17:11
kyrofampt, cprov I'd like to meet with you two some time this week to discuss `snapcraft enable-ci`. Any chance you have some slots available?17:22
mptkyrofa, it’s possible, but we’re in quite different time zones, so check the calendars17:26
kyrofampt, alright, will do17:26
kyrofasnappy-m-o, autopkgtest 1765 xenial:amd6417:38
snappy-m-okyrofa: I've just triggered your test.17:38
kyrofaNoo, wrong PR17:39
kyrofasnappy-m-o, autopkgtest 1760 xenial:i38617:39
snappy-m-okyrofa: I've just triggered your test.17:39
cprovkyrofa: I am available, please schedule something in my calendar too.17:41
kyrofaThanks cprov, taking a look now :)17:41
kyrofasergiusens, by the way, given that it's just us and we talked this morning, I have nothing new for our 1-1 today. Want to skip?17:42
kyrofampt cprov invite sent17:55
zyga-ubuntupdefreitas: re, sorry for lagging18:07
zyga-ubuntupdefreitas: so I was thinking about this and indeed I could not find any good documentation18:07
sergiusenskyrofe sure18:07
zyga-ubuntupdefreitas: but in fact we have an interface for bluetooth and we even provide a good snap for core devices18:07
sergiusensFacu sure, just finished lunch with perrito18:08
zyga-ubuntupdefreitas: perhaps you could start a topic on the forum and this topic could, over time, transform into a documentation of those aspects (the canonical bluez snap, the bluez and bluetooth-control interfaces18:08
cachiozyga-ubuntu, did you see that? https://travis-ci.org/snapcore/snapd/builds/308480596#L458618:13
cachiozyga-ubuntu, It is not happening always18:14
cachioI am trying to reproduce it here but I can't18:14
sergiusenskyrofa do you have an ETA on that split?18:19
kyrofasergiusens, PR modified, tests running18:20
sergiusenskyrofa great, because everything is timing out :-)18:20
kyrofasergiusens, ugh18:20
davidcallepdefreitas: zyga-ubuntu: we have a bluez snap reference here https://docs.ubuntu.com/core/en/stacks/bluetooth/bluez/docs/18:22
davidcalle(not sure if it's advanced enough, though)18:23
KrzysiekSiemvHi!18:40
zyga-ubuntucachio: looking now18:42
zyga-ubuntu+ rm -rf /snap18:46
zyga-ubuntulooots of "read-only file system"18:46
zyga-ubuntusnaps are still mounted18:46
zyga-ubuntucachio: it may be related to the LXD issue18:46
zyga-ubuntucachio: it would be good (if you ever get to reproduce it) what is the state of the mount table then (/proc/self/mountinfo)18:47
zyga-ubuntudavidcalle: awesome, could we link to that page from the forum18:48
andre-geerthey all, I have a question about encryption18:49
andre-geertwe are considering adopting Snappy Core to replace some of our existing OS on devices18:49
zyga-ubuntuandre-geert: hey18:50
andre-geertwe would be producing a snap (not published on the store)18:50
m4sk1nhi18:50
zyga-ubuntuandre-geert: you can publish that snap on your own LAN in your private store proxy18:50
zyga-ubuntuhey m4sk1n18:50
andre-geertand would want that snap (and all the configuration/generated data) to live on an encrypted partition18:50
andre-geertah, that's good to know, thanks!18:50
andre-geertis there a way to choose the install directory (symlink before an install, etc?)18:51
zyga-ubuntuandre-geert: are you thinking about a "core" system where you just use snaps or a classic system that is a hybrid of other packages and snaps?18:51
cachiozyga-ubuntu, still trying to reproduce it18:51
zyga-ubuntuandre-geert: we don't have support for encrypted partitions _yet_ AFAIK18:51
zyga-ubuntuandre-geert: unless canonical commercial engineering has something I'm not aware of (they might), it'd be worth asking on the forum18:52
zyga-ubuntuandre-geert: on a classic system you can certainly use snaps and encrypted disk or home partition18:52
* Chipaca sees the time and disappears in a cloud if tardy smoke18:55
* zyga-ubuntu never knew chipaca was a genie but that explains a lot of things :)18:56
davidcalleI'm looking for a Polish native speaker https://github.com/canonical-websites/tutorials.ubuntu.com/pull/50519:20
davidcallezyga-ubuntu: would you happen to know one, reasonably well versed in snaps too ? :-)19:21
sergiusenszyga-ubuntu stgraber any idea why I cannot mount snaps in lxd on fedora or non ubuntu kernels in general?19:23
zyga-ubuntudavidcalle: re19:25
lundmarzyga-ubuntu: Hi. Are you aware of any issues with accessing the avahi-daemon via the avahi-observe plug on Ubuntu snap? I notice that my lxi-tools snap (see https://github.com/lxi-tools/lxi-tools.snapcraft/blob/master/snap/snapcraft.yaml) works fine in Fedora but not on Ubunu 17.10 (it reports avahi daemon not running, despite it works fine when not using snap).19:25
zyga-ubuntudavidcalle: hehe gladly :)19:25
zyga-ubuntulundmar: oh, interesting, do you have any apparmor denials when you do that?19:26
zyga-ubuntulundmar: I'm not immediately aware of any issues but I didn't look at the interface code,19:26
lundmarI haven't checked, I'm running defaults19:26
zyga-ubuntulundmar: let me check the PR from davidcalle first and I'll look at avahi-observe next19:26
zyga-ubuntulundmar: dmesg | grep DENIED19:26
lundmarzyga-ubuntu: thanks19:26
lundmarzyga-ubuntu: correct, I get some DENIED messages for lxi-tools regarding avahi daemon. Should i use the avahi-control plug instead?19:28
lundmarI thought the avahi-observe plug was meant for clients (which should be my case).19:28
zyga-ubuntulundmar: not sure, show the denials and what you were expecting to do19:29
zyga-ubuntulundmar: bonus points for asking on the forum ^_^19:29
sergiusensdavidcalle are you a mentor for codein? you don't seem to be on #ubuntu-google19:29
lundmarwell, irc is always a good starting point ^^19:29
lundmarI'll try avahi-control, if that does not work I'll ask aroun in the forum. thanks.19:30
sergiusenszyga-ubuntu now answer me :-)19:30
lundmararound*19:30
lundmarAhh, i think I know what is the issue. The avahi-observe nor the avahi-control plug autoconnects to any snaps.19:35
lundmarso the snap providing the avahi daemon is not connected/loaded.19:36
zyga-ubuntulundmar: ah, that explains it19:39
lundmaryup, 'snap connect lxi-tools:avahi-observe :avahi-observe' and now it works fine.19:39
lundmaris there any way to avoid firing this command to make it work automagically?19:40
lundmarI mean, can I add something to the snapcraft.yaml to make it work19:40
zyga-ubuntuyes19:43
lundmarI guess Fedora runs a more relaxed security policy and simply autoconnect most plugs19:43
zyga-ubuntulundmar: you can request your snap declaration to contain some language that will make that connection happen automaticlaly19:43
zyga-ubuntubut this is per-snap store-side decision19:43
zyga-ubuntulundmar: no, on fedora you don't have the confinement that kept that from connecting19:44
zyga-ubuntuapparmor does DBus mediation19:44
lundmarzyga-ubuntu: I understand. Makes sense. So I should request a vote for it like I recently did a request for aliases?19:44
lundmarFedora is not running apparmor?19:45
* lundmar is not that familiar with the internals of Fedora19:45
zyga-ubuntuyes19:46
zyga-ubuntulundmar: nope19:46
zyga-ubuntulundmar: fedora uses SELinux and SELinux doesn't (AFAIK) do per-method mediation (though maybe I'm wrong, Pharaoh_Atem can correct me probably)19:47
lundmarzyga-ubuntu: got it. Thanks for you help. FYI - your *-ubuntu nick makes you a natural target for Ubuntu questions ;)19:48
lundmaryour*19:48
zyga-ubuntudavidcalle: done19:50
zyga-ubuntulundmar: haha, nice19:50
zyga-ubuntulundmar: I use many OSes and I keep the -$OS suffix to avoid them from crashing19:50
zyga-ubuntuon crazier days there's a good chunk of zyga's in the channel19:50
zyga-ubuntudavidcalle: please look at my review19:50
davidcallezyga-ubuntu: that was fast o_o19:51
zyga-ubuntudavidcalle: with such a large minority of snapd developers using polish that is something we could perhaps look at periodically19:51
zyga-ubuntudavidcalle: polish is probably 1st native language in the team :)19:52
zyga-ubuntudavidcalle: some things need changes in the original19:53
zyga-ubuntudavidcalle: I'd rip out gentoo (see my comment) and actually put solus in its place19:53
davidcallezyga-ubuntu: definitely19:53
zyga-ubuntudavidcalle: solus has great snapd integration and has some interesting features (thank you ikey) straight from the distributor19:53
zyga-ubuntu(and is preinstalled now)19:53
mupIssue snapcraft#1710 closed: Research circle-ci <Created by sergiusens> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/issue/1710>19:58
lundmarguys, just one question more. Am I correct to assume that my lxi-tools snap does not connect the hosts avahi daemon but rather it connects to an avahi-daemon runnning in another snap?19:58
zyga-ubuntulundmar: on classic, it talks to the normal avahi daemon running on the host19:59
zyga-ubuntujdstrand: any chance for a 2nd look on https://github.com/snapcore/snapd/pull/4224 today?20:02
mupPR #4224: cmd/snap-update-ns: teach update logic to handle synthetic changes <Created by zyga> <https://github.com/snapcore/snapd/pull/4224>20:02
mupPR snapd#4315 opened: cmd/snap-update-ns: add code that executes a plan for writable mimic <Created by zyga> <https://github.com/snapcore/snapd/pull/4315>20:03
zyga-ubuntuI need a review for https://github.com/snapcore/snapd/pull/431520:03
mupPR #4315: cmd/snap-update-ns: add code that executes a plan for writable mimic <Created by zyga> <https://github.com/snapcore/snapd/pull/4315>20:03
kyrofasnappy-m-o, autopkgtest 1760 xenial:amd6420:04
lundmarzyga-ubuntu: Great thanks. Then I understand correctly.20:04
snappy-m-okyrofa: I've just triggered your test.20:04
lundmarI've put a vote here if anyone would like to +1 it :) https://forum.snapcraft.io/t/request-autoconnect-avahi-observe-plug-for-lxi-tools/297620:06
lundmarI mean, request.20:06
mupPR snapcraft#1766 closed: Enhanced fake store to detect that metadata can't be pushed prior to pushing the binary, and fixed the test <Created by facundobatista> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1766>20:10
mupPR snapd#4298 closed: many: remove configure-snapd task again and handle internally <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/4298>20:18
Facuyay20:39
jdstrandzyga-ubuntu: yes, done20:42
zyga-ubuntuthanks, looking20:44
kyrofasergiusens, snapcraft#1760 is green on Travis anyway20:46
mupPR snapcraft#1760: tests: move the catkin integration tests to a separate suite <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1760>20:46
kyrofaYour call on adt20:46
kyrofaplugins suite is back to 44 minutes or so20:48
zyga-ubuntujdstrand: thank you!20:49
zyga-ubuntujdstrand: I tried to document and be clear about everything in https://github.com/snapcore/snapd/commit/5e75000f604a2eddece5c1c3669164999b453b2d20:50
zyga-ubuntujdstrand: not sure if you have the time to look at that today20:50
jdstrandzyga-ubuntu: I added it to my todo to review as part of your next PR20:51
jdstrandzyga-ubuntu: is that not sufficient?20:51
jdstrandzyga-ubuntu: ie, part of PR 4315?20:52
mupPR #4315: cmd/snap-update-ns: add code that executes a plan for writable mimic <Created by zyga> <https://github.com/snapcore/snapd/pull/4315>20:52
zyga-ubuntujdstrand: yeah, that's the same thing20:55
zyga-ubuntujdstrand: thanks, I should stop nagging :)20:55
kyrofazyga-ubuntu, alright, any ETA on the lxd upgrade issue, then? It's super painful, and has been for months20:58
zyga-ubuntukyrofa: it's in the top of my list but I'm rotating among this and two other topics20:58
zyga-ubuntukyrofa: I'll talk to mvo tomorrow and plan something based on past attempts20:58
kyrofaHaha, so your list is a lazy susan?20:59
kyrofaThanks zyga-ubuntu20:59
zyga-ubuntulazy susan?20:59
zyga-ubuntunot sure what that is but I try to keep it close to roundy robin20:59
mupPR snapcraft#1760 closed: tests: move the catkin integration tests to a separate suite <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1760>21:07
mupPR snapcraft#1718 closed: lxd: let lxd choose the architecture <Created by mwhudson> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1718>21:31
mupPR snapcraft#1768 opened: project: export the arch triplet into the environment <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1768>21:31
Pharaoh_Atemzyga-ubuntu: I don't know if per-method mediation is supported, you should ask the SELinux guys22:16
Pharaoh_AtemI suspect it may be partially there22:16
ikeyi saw a ping but i know not why22:23
ikeycursed be the small back buffer..22:23
mcphailikey: 19:53 < zyga-ubuntu> davidcalle: solus has great snapd integration and has some interesting features (thank you ikey) straight from the distributor22:51
ikeyo. :322:52
* ikey doesn't get context now xD22:52
* ikey buys a bigger backbuffer22:52
ikey(ty for sharing ^^)22:52
mcphailikey: http://termbin.com/gbqm22:55
mcphailcontext is everything22:55
ikeyty ^^23:02

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