/srv/irclogs.ubuntu.com/2018/06/05/#snappy.txt

=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
zygagood morning05:05
mborzeckimorning05:06
mvohey zyga and mborzecki05:13
zygaHey guys05:13
* zyga has a doctor appointment on the other side of the city at 12:30, wondering if he should go now and wait there or wait and then go when it's hotter outside05:47
zygamborzecki: can you look at 5254 please? :)05:50
zygamvo: I sent the kernel RFC idea we talked about last night to 526005:50
mborzeckibtw. i think we should merge #525805:50
mupPR #5258: tests: fix lxd test which hangs on restore <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5258>05:50
zyga+105:50
zygamborzecki: 5257 is a short low hanging fruit in need of a 2nd review05:52
mvozyga: ok05:53
=== chihchun_afk is now known as chihchun
mupPR snapd#5258 closed: tests: fix lxd test which hangs on restore <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5258>05:55
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mborzeckizyga: 5257 is magic, had to go through snapstate for it to make sense :)06:16
zygajdstrand:06:22
mvomborzecki: thank you! it was sightly annoying because it poped up in the middle of something totally different06:23
mupPR snapd#5257 closed: snapstate: ensure fakestore returns TypeOS for the core snap <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5257>06:23
mborzeckimvo: hah, i can imagine it was tricky :)06:23
mborzeckizyga: can you take another look at #5256?06:24
mupPR #5256: cmd/libsnap-confine-private: helper for extracting store snap name from local-name <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5256>06:24
mupPR snapd#5261 closed: tests: wait more time until snap start to be downloaded on econnreset test <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5261>06:26
mupPR snapd#5241 closed: interfaces/udev: call 'udevadm settle --timeout=10' after triggering events <Created by jdstrand> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5241>06:46
mupPR snapd#5255 closed: cmd/snap-confine: applied make fmt <Simple> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5255>07:02
zygamvo: can I merge https://github.com/snapcore/snapd/pull/5248#pullrequestreview-12584200207:05
mupPR #5248: tests: add test to ensure /dev/input/event* for non-joysticks is denied - 2.33 <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5248>07:05
zygait is a 2.33 branch07:05
zygawith LXD test failing07:05
=== pstolowski|afk is now known as pstolowski
pstolowskimorning07:06
zygapstolowski: good morning07:06
mborzeckimvo: can you cherry-pick https://github.com/snapcore/snapd/commit/7f4d533166b73551317bf421bc88f65cfd6b12f9 to 2.33 ?07:06
mborzeckior let me open a PR with it07:07
mborzecki(that's the lxd bit)07:07
mvomborzecki: if you open a PR please also cherry-pick the econnreset thing07:07
mborzeckimvo: ok07:08
mupPR snapd#5262 opened: tests: backport lxd force stop and econnreset fixes (2.33) <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5262>07:12
mborzeckimvo: zyga: ^^07:12
zygathanks07:12
mvomborzecki: ta07:15
pstolowskijeez, got google:ubuntu-14.04-64:tests/main/econnreset failure this time; it seems to be flaky as well, i saw occasional failures before07:46
mvopstolowski: master should have a workaround (timeout got increased)07:47
pstolowskimborzecki: hey, would you like to take another look at #5215 ?07:47
pstolowskimvo: ah, great, ty07:47
mupPR #5215: ifacestate: improved conflict and error handling when creating autoconnect tasks <Created by stolowski> <https://github.com/snapcore/snapd/pull/5215>07:48
justaskinghello everybody07:52
justaskingwill firefox snap touch my existing firefox profile (ESR 52)?07:52
zygaHey07:53
zygaI’m going offline for a few hours, at least till 1407:54
zygaPing me on irc if urgent07:54
zygaI have an older laptop without a modem with me07:54
zygaAnd I will be gardening my old branches07:54
mvo5204 needs a review07:55
mvoit would unblock some more core18 work07:55
mborzeckimvo: left some comments in 520408:19
mborzeckipedronis: you're breaking my heart, can't use gorename for that Name() -> LocalName() job now :)08:20
pedronismborzecki: ?08:20
mborzeckipedronis: your comment about parallel installs and using a different name for the method to actually go through all the code locations where it's used at08:21
mborzeckipedronis: it's a valid concern btw08:21
pedronismborzecki: well, I'm trying to make suggestions not to break the software08:21
pedronisI understand they are annoying, maybe08:22
pedronisas I said, it's likely that you might learn that most places were fine08:22
pedronisbut is a bit unclear08:22
mborzeckiyeah i tried to jot down some places where i'm certain we'll need the non-local name (eg. apparmor profiles, sice we'll hide the local name inside the mount ns)08:24
pstolowskipedronis: hey, about disconnect hooks, i think that if the snap on either end of connection is not active, we should either error out (but not with retry, it doesn't make much senso imho) or we should run the disconnect hook only on the active side and ignore the inactive one. both options are a little bit problematic though - we don't want to leak resources by not running a hook, but at the same time you may have good08:33
pstolowskireason to have snap disabled. and I don't think we want to block snap removal on not being able to run disconnect hook on the other end (because snap on the other end is not active)08:33
pedronispstolowski: mmh, we have static inactive and dynamic inactive though08:34
pstolowskipedronis: what do you mean, don't we have a single Active flag?08:34
pedronispstolowski: yes, but remember a refreshed snap is inactive for a while08:35
pedronisand then gets back to active08:35
pedronisthat's why we have the complexity in autoconnect08:35
pedronispstolowski: afaik you need the same kind of code as autoconnect, but anyway all of this shows we really need to implement some of my recommendations or something similar. it's clear it's hard to keep in mind this stuff08:38
pstolowskiyes08:38
pstolowskipedronis: btw I've read your recommendations twice last week, very well written, i've yet to read it once more08:40
pedronispstolowski: but yes, if the other side has no pending link* task and its inactive you have to skip its hooks08:47
pedronisthat's probably true for autoconnect as well (unless it's not listed anyway for other reasons)08:48
pedronispstolowski: as we discussed the behavior of disable and connections is probably a bit buggy already09:16
pstolowskiyes09:25
mupPR snapd#5263 opened: errtracker: do not send duplicated reports <Created by mvo5> <https://github.com/snapcore/snapd/pull/5263>09:52
Chipacahow would root know what a user's XDG_CONFIG_HOME is?10:13
mvoChipaca: in what context do you want to know?10:23
mvoChipaca: inspect /proc/$pid/environ10:23
mvoChipaca: of the user10:23
Chipacamvo: daemon running as root needing to look at a user's config10:23
mvoChipaca: but even then nfs-root-squash may squash us10:23
mvoChipaca: maybe running a helper as this user?10:24
Chipaca:-( yeah10:24
Chipacamvo: there might be a way to refactor things to take away the need, also10:26
mupPR snapd#5215 closed: ifacestate: improved conflict and error handling when creating autoconnect tasks <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5215>10:29
mupPR snapd#5248 closed: tests: add test to ensure /dev/input/event* for non-joysticks is denied - 2.33 <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5248>10:29
mvoChipaca: quick question about 5176 - this need to be reworked to just do a net.Dial() - is that correct? and also a new api command?10:33
Chipacamvo: I understand that for some of them, yes10:33
Chipacamvo: but not for all10:34
Chipacamvo: the 'get the details and check the cdn' thing is still full http10:34
Chipacaso really just the auth check10:34
mvoChipaca: ok10:34
Chipacamvo: and one of the auth checks needs dropping entirely10:34
mvoChipaca: do you have any thoughts about the API to use? apparently /v2/debug is out10:35
pedronismvo: we need to discuss,  I think it could go in some for under system-info10:35
pedronisinventing tons of new api is not sane either10:35
pedronisI think10:35
Chipacamvo: so... I'd either like to add a system-info command that better mapped /v2/system-info, with options of all sorts10:35
Chipacamvo: or, maybe, have version grow options10:35
pedronisChipaca: yes, that was my proposoal10:35
Chipacathe second one feels weird10:35
pedronisbut didn't discuss it with Gustavo10:36
pedronisis in a note in the PR10:36
pedroniss/note/commnet/10:36
Chipacaand then, whatever the command, i think a /v2/system-info option would be best for this and the verbose sandboxing thing10:36
Chipacasandbox-features i mean10:36
pedronisthat one landed already though10:36
pedronisbut maybe it's in .33 ?10:37
Chipacae.g. /v2/system-info?select=connectivity and /v2/system-info?select=sandbox-features10:37
Chipacayep, landed, but could be hidden and deprecated10:37
* pedronis needs to go have lunch10:37
mvo2.33 is not released outside of beta yet so that should be fine10:37
pedronismvo: anyway we should have a chat at standup about this10:37
mvopedronis: ok10:38
* pedronis lunch is a bit delayed10:43
pedronismvo: btw discussing  with Gustavo he also proposed that maybe we just continue to stick system config to "core" as key  (even if it's not there), it might work, but it might mean disallowing config on any base until we have understand more/have a use case10:44
mvopedronis: oh, interessting idea10:46
mvopedronis: I was starting to look at the config once 5259 is ready (unless the concensus is that we should solve both in a single PR)10:47
mborzeckiwhat would be the easiest way to stick custom snap-exec into core? bind mount my local copy over the real one?10:50
mvomborzecki: for testing? yeah, bind mount sounds like the easiest option10:50
mborzeckimvo: yup for testing only10:50
mvomborzecki: yeah, manual testing should be fine this way. alternative you can unpack the core snap and repack it10:51
mvo(but no need I think)10:51
mborzeckii actually make the tmpfs for /snap work somehow, snap-exec is the last bit standing in the way10:51
pstolowskiugh, unit test error on debian-9-64:tests/unit/go in master, on undo hooks test; i'm looking at it11:13
mupPR snapd#5252 closed: store, jsonutil: move store.getStructFields to jsonutil.StructFields <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5252>11:23
mupPR snapd#5264 opened: many: use ~/.config/snap if it exists, instead of ~/.snap <Created by chipaca> <https://github.com/snapcore/snapd/pull/5264>11:35
Chipacalaw of preservation of the number of chipaca PRs11:36
mborzeckiChipaca: you should aim for 2, no more, no less, one big one small11:39
mborzeckiyour own rule of two11:39
* Chipaca checks11:40
Chipacayep, that's where I'm at11:40
Chipacanow if we all did this, we'd be *fine*11:40
pedronismborzecki: afair  Gustavo explicitly said he expected to force the dir to always exist, not to use a tmpfs (that might be an issue on systems not having /snap though)11:44
mborzeckipedronis: the /snap/<snap-name> dir?11:45
pedronisyes11:45
mborzeckiack11:45
* Chipaca lunches11:52
zygamborzecki: hey, would you mind reviewing 5254?12:10
pstolowskifyi, my isp seems to be experiencing a major outage, even their own website is down and their phone is completely busy right now12:16
zygapstolowski: orange?12:20
pstolowskizyga: awacom, a local provider12:21
zygaah12:21
zygawired network?12:21
pstolowskiYes12:21
mvo5225 needs a second review, should be simple12:23
* zyga looks12:27
zygamvo: are we putting snapfuse on PATH?12:28
mvozyga: yes and iirc we have to so that fuse finds it12:29
Chipacamborzecki: The proposed constrains <- constraints12:30
Chipacamborzecki: and I'd expect to be able to know the local key from inside the snap, as a debugging aid if nothing more12:31
Chipacahm, i'll repeat this on the forum12:31
* pstolowski back online12:31
mborzeckiChipaca: please do12:32
mupPR snapd#5225 closed: selftest: add new selftest package that tests squashfs mounting <Squash-merge> <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5225>12:32
mvozyga: was 5225 a squash merge or a regular one?12:34
zygapstolowski: https://github.com/snapcore/snapd/pull/5260/files needs a 2nd review and is pretty simple12:34
zygamvo: I don't know, whatever was default on my system :/12:34
mupPR #5260: sefltest: advise reboot into 4.4 on trusty running 3.13 <Created by zyga> <https://github.com/snapcore/snapd/pull/5260>12:34
zygaprobably regular12:34
zygado you need a cherry pick ?12:34
mvozyga: ok, I will do some cherry picks then12:34
mvozyga: yeah, I want this for 2.33 as it may help with the protocol problem issues we see on errors.u.c12:34
zygamvo: hold on, we can revert12:35
zygaand squash12:35
zygashall I try?12:35
mvozyga: its ok, its not that many commits12:35
zygaI'm sorry, I just read the diff and didn't noice the squash label12:35
mvozyga: no worries12:35
Chipacazyga: don't forget the 360 fun12:38
zygaChipaca: already done it12:39
zygaoops12:39
zygaI will skip standup today12:39
mupPR snapd#5265 opened:  selftest: add new selftest package that tests squashfs mounting (2.33) <Created by mvo5> <https://github.com/snapcore/snapd/pull/5265>12:39
zygaI actually should file the day as off as I wasn't of much use (doctor visit)12:39
Chipacazyga: hmmm!12:39
* Chipaca scribbles in his little black book12:39
zygamy daughter is returning from overnight school trip12:39
zygaand I need to pick her up in 20 minutes12:39
sil2100mvo: hey! Hope that you don't mind that to save you some time after I review some smaller merges from you and approve, I'll also merge them?12:39
mvosil2100: sounds great12:40
sil2100mvo: also, my work hours will be a bit strange this week as my team is in Portland12:40
mvosil2100: aha, right. the sprint12:40
mvosil2100: have fun, I understand that you will be less available during the sprint12:40
sil2100So I'm working in the morning and then to be with them on all the meetings I'm sticking around till after midnight12:40
zygasil2100: Portland sounds just like Poland, there was a joke about that somewhere ;)12:41
sil2100(since I stayed home)12:41
mvosil2100: ok12:41
sil2100zyga: almost like home!12:41
zygaChipaca: some comments on 526412:42
mborzeckiChipaca: SNAP_HKEY_LOCAL_MACHINE and we're ready for being bought by MS12:44
Chipacamborzecki: \o/12:44
pstolowski:)12:44
zygamborzecki: you will implement snapd active directory integration12:45
zygaand local group policy12:45
* sil2100 AFK for a bit, will try to be back for standup12:45
ChipacaAs part of that  effort, I'll implement counting the dosh12:45
zygadosh?12:45
Chipacazyga: money12:45
mborzeckizyga: i can do the LDAP login bits, leave the rest for you :P12:45
zygaChipaca: cash++12:45
Son_Gokunooooo!12:45
* Son_Goku runs away from the insanity12:46
* zyga observes Son_Goku run around in a room where all walls are plastered with big-brand company names12:46
* Son_Goku runs screaming with his eyes bugging out12:46
Chipacaalso we need to move from squashfs to that filesystem that was actually just ms's sql12:47
* Son_Goku dies12:47
mborzeckiChipaca: the one that never made its way to windows?12:47
Son_GokuWinFS12:48
Son_Gokuhttps://en.wikipedia.org/wiki/WinFS12:48
Son_GokuDBaaFS12:48
* zyga goes to pick up his daughter12:49
zygamvo: I'm skipping standup, sorry12:49
mvozyga: ok12:50
mvozyga: (fun fact right next to ok (if you shift one row to the right): pl)12:50
Chipacamvo: so you're saying pl is not ok because it's too far east12:53
mvoChipaca: the opposite, its very ok, spelled ok one column on the keyboard to the east actually12:54
Chipacamvo: if you want ok, but you're from the far right, you get pl12:54
Chipacamvo: got it12:54
mupPR snapd#5266 opened: interfaces/builtin/docker: use commonInterface over specific struct <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/5266>13:24
mupPR snapd#5264 closed: many: use ~/.config/snap if it exists, instead of ~/.snap <Created by chipaca> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/5264>13:31
mupPR snapd#5260 closed: sefltest: advise reboot into 4.4 on trusty running 3.13 <Created by zyga> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5260>13:40
mborzeckipstolowski: is this something you are looking into https://paste.ubuntu.com/p/qkNvVZcZZ6/ ?13:42
pstolowskimborzecki: yes!13:42
mborzeckiack13:42
pstolowskimborzecki: where do you see it?13:42
mborzeckipstolowski: saw it here https://github.com/snapcore/snapd/pull/5256 (restarted the build already)13:43
mupPR #5256: cmd/libsnap-confine-private: helper for extracting store snap name from local-name <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5256>13:43
pstolowskimborzecki: debian or something else?13:43
mborzeckipstolowski: ubuntu-16.04-3213:43
Chipacahttps://github.com/snapcore/snapd/pull/5266 seems wrong to me, but I don't know enough to explain (or even count) the ways13:44
mupPR #5266: interfaces/builtin/docker: use commonInterface over specific struct <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/5266>13:44
pstolowskimborzecki: ah, ok. that's good i guess13:44
Chipacaprobably a zyga or jdstrand thing ^^13:44
* zyga looks13:46
TrelI had one question after continuing to read up on this, what interfaces need to be request for access to dotfiles in a user's home directory?13:47
zygadone13:48
zygaTrel: there's no generic interface for all of them13:49
zygaTrel: which dot files are you after, specifically?13:49
zygahttps://github.com/snapcore/snapd/pull/5230 needs a second review13:51
mupPR #5230: interfaces/udisks2: also implement implicit classic slot <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5230>13:51
TrelIn this case the ability to write new dotfiles to a user's home directory (or another they specify) as well as read ones that are already there, specifically .profile and .bashrc13:51
Trelmaybe also .bash_profile13:52
TrelI saw "home" gives homedir access, but not to hidden files13:52
zygaTrel: there is no interface for that13:52
zygabecause that is very dangerous13:52
zygayou can use it to essentially bypass confinement13:52
zygawhy do you need to write to bash/sh profile files?13:52
TrelI'm assuming because of . and ..?13:52
TrelIn this case, I was thinking of converting my new machine/account setup script(s) to a snap13:53
TrelPart of it is adding my standard dotfiles like .vimrc, adding to my PATH and adding some bits to .profile and .bashrc13:54
zygabecause any interface that would allow this is pretty much equivalent to becoming unconfined it would not be something we hand out easily13:54
zygaI would instead suggest to rework the application to show how to add anything to one's profile scripts13:54
zygapart of the appeal of snaps is that they don't have real root/superpower over one's machine anymore13:55
zygaand we don't want to break the trust by creating an interface that can be easily abused13:55
zygaeven if the intentions were pristine13:55
TrelI'm a confused about other than the .. directory entry, how accessing dotfiles in user's home is dangerous to anything other than the user13:56
TrelOr is that the reason why?13:56
zygaTrel: let me explain13:57
zygaTrel: if you can write to ~/.profile13:57
zygathen you can insert a payload that runs the next time a terminal is open13:57
zyga(or the next time any login shell starts)13:57
zygathat code is no longer confined so it could, for instance, wget a script from somewhere13:57
zygaand pipe it to sh13:57
zygaand that can do anything13:57
zygaso this is effectively a way to break out of the sandbox13:57
TrelStill restricted to that user's permissions though, right? That doesn't get you root access for example13:58
zygano, but you can steal user's secrets, install malware, exploit a kernel issue to become root or anything else13:58
zyga(malware doesn't have to be root)13:58
TrelYes, I meant full system compromise vs user compromise is all13:59
TrelI suppose I could have it generate a finalize script and drop it in their home that they'd have to run after manually.13:59
TrelIn this case it's for my use primarily to expidite new setups, so I'd trust it since I wrote it.14:00
zygaright14:00
zygawell,  you can always make a private devmode snap14:00
zygabut if you want to ship it to everyone you need to play by the sandbox rules14:01
TrelThat's not something that'd be depreciated right?  I have no problem using devmode for this since it's primarily personal.  I'd distribute manually to anyone (non-me) who'd want it14:04
niemeyersergiusens: I won't be around at that time today.. can we have it right now?14:04
niemeyerOtherwise it'll probably be too late for Evan14:05
zygaTrel: I don't think devmode for private snaps is something that is going to become deprecated14:05
sergiusensniemeyer: I set it for tomorrow, it is 7am for kyrofa_ right now14:05
sergiusensstarting next week, it is on Tuesdays,14:05
niemeyersergiusens: Ah, that works, thanks14:06
sergiusensdoes that work niemeyer or should I reschedule?14:06
sergiusensah, great :-)14:06
sergiusensI had an issue yesterday with family and scheduling the meeting earlier flew by me, sorry for that14:07
TrelThen I guess that's fine for this one then.  Most of the others I wanted to do are simple text transforms which I have to pipe text into, so I don't think those would need anything at all14:10
TrelI'm thinking of bundling a bunch of the text transforms into a single one and publishing that.14:10
mupPR snapd#5262 closed: tests: backport lxd force stop and econnreset fixes (2.33) <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5262>14:12
zygamborzecki: thank you for the review14:16
sergiusensChipaca: what's the progress on getting the snap command split out and ported over for us to use for `snap pack`?14:22
* zyga -> lunch14:31
Chipacasergiusens: "ported over"?14:35
Chipacasergiusens: snap pack has had --check-skeleton for a while now (i thought you'd reviewed that?)14:35
Chipacasergiusens: we haven't split it into its own .deb yet though14:37
sergiusensChipaca: I had not reviewed AFAIK. We only discussed early March. "ported over", we currently support `snapcraft pack` on osx (and windows)14:37
sergiusensChipaca: yeah, I cannot really use it until it is standalone14:38
Chipacasergiusens: sorry, getting mixed messages14:38
Chipacasergiusens: you wouldn't use the .deb on windows nor osx14:38
Chipacasergiusens: so as far as those are concerned, it's unclear to me what you need14:38
Chipacasergiusens: there are no code changes afaik to make it standalone, unless i'm misremembering14:39
Chipacait's just packaging14:39
sergiusensChipaca: let me state the requirement so I don't impose how you deliver it; I the `snap pack` to be runnable on Windows, OSX and Linux14:39
Chipacasergiusens: ok. Done!14:39
sergiusensjust tell me how to get it on each platform and we are good :-)14:39
Chipacasergiusens: I don't have access to those platforms, but I assume you do. Do you have a go build env?14:40
mvoChipaca: I did the changes as discussed in the standup to connectivity check, what about authConnCheck() - should this become a net.Dial() only check? if so I will delete a lot of code now14:40
Chipacasergiusens: I seem to recall we explicitly agreed that we weren't on the hook for delivering binaries to windows and osx; if that's not correct, then we have a bunch of busywork to have that happen14:41
Chipacasergiusens: so my question is, i think, how do you get the rest of the snapcraft build environ onto windows and osx14:42
sergiusensChipaca: not immediately, no. I don't think it is as important now, but it would be a regression to not support it anymore14:42
sergiusensChipaca: `brew install snapcraft` and on windows in a venv for now14:43
sergiusensbrew install snapcraft is essentially a venv, just wrapped nicely into a higher order package manager14:43
Chipacasergiusens: how does 'brew install snapcraft' or the venv pull in squashfs-tools?14:45
sergiusensChipaca: https://formulae.brew.sh/formula/snapcraft14:45
Chipacasergiusens: and that builds mksquashfs from source?14:46
sergiusensChipaca: it is easy to create a formula for the snap command, I can scaffold it and get the first version if you promise to maintain it ;)14:46
sergiusensChipaca: only on "upload", you would get it in what homebrew calls a "bottle"14:46
Chipacasergiusens: if by "it" you mean the formula or whatnot, that's exactly what I'm trying to understand who owns it14:46
sergiusenswhich is like a wheel in python14:46
sergiusensChipaca: https://github.com/Homebrew/homebrew-core/blob/master/Formula/snapcraft.rb14:47
Pharaoh_Atembrew formulae are similar to rpm specs or Arch PKGBUILDs14:47
mvoChipaca: did my earlier question get lost? or are you just busy?14:47
Pharaoh_Atemmain difference is that unlike the latter two, formulae are based on Ruby rather than shell14:47
mvoChipaca: (busy is fine, just asking to ensure its not lost)14:47
Chipacamvo: I'm trying to understand if we're on the hook for windows and osx binaries of snap and the surrounding build infra or not14:48
ChipacaI wouldn't even start to hazard a guess at how to integrate that with our CI14:49
Pharaoh_AtemChipaca: you are probably not14:49
sergiusensChipaca: I own the snapcraft formula (maintain it), someone else the squash one. Once there is a snap command on homebrew I can replace the squashfs in "depends_on" to whatever the snap thing is called.14:49
mvoChipaca: hm,hm,we will need a minimal snap pack in this case, we use too much syscall imports right now for GOOS=windows (but you know this already :)14:49
sergiusensChipaca: alternatively, I can condition the code to just use the snap command on Linux and fallback to mksquashfs on other OS14:49
Pharaoh_Atemsergiusens: it'd be simpler to just test for the /usr/bin/snap command, and if it doesn't exist, always fall back14:50
sergiusensPharaoh_Atem: yeah, an actual call with parameter checks to be honest as the `snap` command namespace is quite busy ;-)14:50
sergiusensthere is no `snap` formula yet at least14:51
Chipacamvo: yes, authConnCheck should be a single net.Dial to the macaroon endpoint14:52
Chipacasergiusens: do you know how to build things for osx and windows from travis?14:54
* Chipaca googles14:56
sergiusensChipaca: look at our .travis.yml and appveyor.yaml15:10
mupPR snapd#5267 opened: tests: retry 'restarting into..' match in the snap-confine-from-core test <Created by stolowski> <https://github.com/snapcore/snapd/pull/5267>15:11
morphismvo: ping15:15
Chipacasergiusens: ok, i'll take a stab at it15:16
mvomorphis: pon15:17
mvomorphis: h15:17
mvomorphis: pong15:17
mvoChipaca: I updated the PR in question fwiw, but no rush15:17
mvozyga: do you think you could look at 5204 again?15:18
mvozyga: you asked for changes and I think I addressed things now15:18
zygaChipaca: sure15:21
* zyga looks15:21
morphismvo: I tried to create a base snap recently and wanted to check if I was running into a bug or if what I was trying to do is simply not supported yet15:21
morphismvo: basically I was setting `type: base` in my snap, build it and then installed it15:22
morphishowever after running $ snap run --shell snap.app I was still seeing the core snap mounted on /15:22
zygamorphis: we didn't anticipate bases with apps so bases use core for their apps15:22
zyga(which is odd)15:22
morphisisn't that the core principle of a base?15:23
zygamorphis: no, the principle of bases (so far) is to host other snaps15:23
zyganot saying that it's a bad idea15:24
zygabut it is something we didn't anticipate15:24
zygathat's all15:24
morphisisn't that what ubuntu-core will require snapd to do?15:24
zygaI don't understand, can you rephrase please?15:25
zygasnapd won't ship any apps either15:25
zyga(in the sense of snap declared apps)15:25
morphisin terms of ubuntu-core core18 will be a base snap, right?15:25
zygayes15:25
zygabut it won't have apps or services15:25
morphisnone which are exposed through the snap, right15:26
morphisbut something still has to provide systemd which is handled by the initramfs mounting core18 as / and running systemd outside of a snap environment15:26
zygayes, that is whatever has booted, my only point is that snap applications from bases were unanticipated15:27
zygait's a bug15:27
zygabut we need to think what it means if we allow it15:27
morphisso basically snapd ignores all apps defined in a base snap, correct?15:27
zygaI don't think it does15:28
zygaChipaca: ^ does it15:28
Chipacahmmmm15:28
zygaI think we need to decide if we should ignore all apps / hooks or if we should handle them consistently with the same snap used as base15:28
ChipacaI'd have to check, as I don't remember offhand, but it's quite possible there's an "if snap.type is app"15:29
morphisI saw the apps exported as I could do `$ snap run --shell snap.app`15:29
zygamvo: review on 520415:30
morphisChipaca, zyga: let me get that base snap back installed and try again15:32
zyga morphis can you open a thread about this15:32
Chipacamorphis: it's also possible there _isn't_ one15:32
zygaso that we don't forget15:33
morphiszyga: sure15:33
zygaI think it's a valid use case15:33
zygabut I want to be formal about it15:33
zygamy gut feeling is that bases _must_ use themselves as base15:33
zygaI need to walk my dog quickly, 15 min AFK15:33
morphiszyga: if they don't I see weird things happening15:34
morphiswhat if a fedora base snap has an app defined which then is executed against the Ubuntu core snap15:34
zygaYeah15:38
zygaI agree15:38
Chipacagraaaahgh15:39
ChipacaI think I'm going to start from the other end, and move stuff around for pack, instead of trying to make osutil build everywhere15:40
* Chipaca gets more tea15:40
morphiszyga: Chipaca: but thanks for the insights15:40
morphiszyga, Chipaca: ok, both services and apps work when `type: base` is set, however my base is more or less Ubuntu 16.04 as its more or less an app snap relabeled as a base15:44
mupPR snapd#5268 opened: tests: fix flaky test for hooks undo <Critical> <Simple> <Created by stolowski> <https://github.com/snapcore/snapd/pull/5268>15:55
pstolowskizyga, mvo ^ a trivial that should fix flaky test that we currently have15:56
zygaThank you :-)16:00
pstolowskizyga: thanks for review, I enhanced the description, hope it makes more sense16:08
mvopstolowski: nice16:08
pstolowskicachio: addressed your suggestion re #526716:09
mupPR #5267: tests: retry 'restarting into..' match in the snap-confine-from-core test <Created by stolowski> <https://github.com/snapcore/snapd/pull/5267>16:09
pstolowskimvo, zyga ^ and that's another trivial re flaky tests16:10
mvomorphis: sorry, had to step out for a bit, that sounds like something to discuss in the forum, I'm not against having apps for bases but we need to discuss this at least with gustavo16:10
zygaOk16:10
mvozyga: re review> $< iirc only takes the first "dependency" of a make rule16:11
zygayes, did I suggest that?16:14
zygaI meant $^16:14
zygasorry16:14
mvozyga: aha, sure16:18
=== pstolowski is now known as pstolowski|afk
* zyga tea and fixing branches16:23
mvozyga: thanks for the review, I will think about the name a bit over dinner (snapd.manager, snapd.entrypoint, snapd.run-from-snapd, snapd.start-me-up, ...) ideas welcome :)16:29
zygasnapd.stargate16:29
zygasnapd.snapd.snapd16:29
zygasnapd.make-it-so16:29
zygasnapd.startup16:30
zygamaybe just snapd.run-from-snapd-snap16:39
morphismvo: thanks! I will open a forum topic tomorrow16:50
mupPR snapcraft#2157 opened: nodejs plugin: update to the latest 6.x LTS point release <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2157>17:02
mvozyga: updated, thanks for your suggestions17:29
zygaSuper, i will check in a sec, finishing my supper17:30
zygaWhich name did you pick?17:30
mvopedronis: just to double check - we can kill authConnCheck entirely?17:30
mvozyga: your suggestion from earlier: snapd.run-from-snap17:30
pedronismvo: afaiu yes,   all those bits are activate/relevant only on "snap login"17:31
zyga+117:32
pedronis*activated17:32
mvopedronis: great, less code is always better. I removed those bits now17:33
zygamvo: review on 520418:06
cachiozyga, https://paste.ubuntu.com/p/tqghBCHfb6/18:38
cachioany idea why the configure hook is giving me this?18:39
alphawarriorHello everyone. Can I update snapcraft from an older version using itself? I'm on gentoo and the "latest" package linked by the snapcraft tutorial on installing only has a 2 year old version :(18:39
naccalphawarrior: snapcraft is itself available as a snap18:53
alphawarrioroh thanks ^^18:54
=== jz is now known as Guest1025
jzzzHello. I'm having trouble getting new vanilla canonical kubernetes installed into lxd containers on my ubuntu host to come back up after a restart. Wondering if anyone might be able to help me. The error msgs seem to point towards apparmor/snap.19:52
jzzzI'm thinking apparmor/snap is the root cause because `dmesg` shows entries like `[90947.819924] audit: type=1400 audit(1528228545.536:2983): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="/usr/lib/snapd/snap-confine" name="snap-update-ns.kube-apiserver" pid=24205 comm="snap-confine"`19:56
zygaI’m afk but I will check it out soon19:57
jzzzwith snap-update-ns errors for kube-apiserver and etcd, and similar snap.kubelet.kubelet errors.19:58
jzzzthx @zyga. pls let me know whatever I can do on my system for more clues.19:59
zygaAck19:59
jzzzthe stacktrace from `juju debug-log` looks like it might be kicking off a subprocess that is running a sanity check command (giving back the version) to determine that the service is installed in the container. Here's a pastebin: https://pastebin.com/60VR7gSi20:04
jzzzso I'm not sure if the apparmor/snap error is a cause or a symptom. :\20:05
jzzz``` $ uname -r 4.4.0-127-generic  $ lsb_release -a  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.4 LTS Release:        16.04 Codename:       xenial ```20:08
mupPR snapd#5265 closed:  selftest: add new selftest package that tests squashfs mounting (2.33) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5265>20:26
cachioniemeyer, hey, did you see this https://travis-ci.org/snapcore/snapd/builds/388466179 ?20:31
Lukehey guys, is there a recommended way for dealing with creating and using multiple users within a single snap? For example, nginx + pgsql + the app all being on different users?20:38
mupPR snapd#5269 opened: systemd: adjust TestWriteMountUnitForDirs() to use squashfs.MockUseFuse(false) <Simple> <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5269>21:03
jdstrandLuke: not yet. you probably want to follow https://forum.snapcraft.io/t/multiple-users-and-groups-in-snaps/146121:09
Lukejdstrand: thanks!21:19
Lukejdstrand: this is the perfect answer to my question. thanks for taking the time to write this up21:20
jdstrandLuke: np. it is roadmapped and getting closer to implementing, but it'll be a little while yet21:21
Lukejdstrand: I think with this post I can work my way around it without too much compromise21:34
jdstrandcool21:36
zygare21:36
niemeyercachio: No, fix is due22:17
zygajdstrand: can you have another look at 5254 please, I'm still pondering one aspect (has suffix check) but I think I addressed all the points you have raised22:31

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