/srv/irclogs.ubuntu.com/2019/05/17/#snappy.txt

=== jamesh_ is now known as jamesh
mborzeckimorning05:04
zygagood morning05:21
zygamborzecki: will you be reworking https://github.com/snapcore/snapd/pull/6874/files?05:30
mupPR #6874: cmd/snap-confine: do not mount over non files/directories <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6874>05:30
mborzeckizyga: hey, yes05:30
zygacool, thanks!05:30
zygamborzecki: https://github.com/snapcore/snapd/pull/6873/reviews05:42
mupPR #6873: gadget: improve device lookup, add helper for mount point lookup <Gadget update> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6873>05:42
mborzeckizyga: thanks05:42
zygamborzecki: I just pushed https://github.com/zyga/snapd/tree/wip/lp-1828354 (diff https://github.com/snapcore/snapd/compare/master...zyga:wip/lp-1828354?expand=1 )05:50
zygait doesn't nearly pass tests05:50
zygaI'm trying to understand which of the fragments of mimic construction breaks sharing05:50
mborzeckizyga: updated #687406:05
mupPR #6874: cmd/snap-confine: do not mount over non files/directories <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6874>06:06
mborzeckizyga: tagged it for .39.1 too06:06
=== pstolowski|afk is now known as pstolowski
pstolowskimorning07:02
mborzeckipstolowski: hey07:04
mborzeckipstolowski: https://news.ycombinator.com/item?id=1992998607:05
jameshzyga: hi.  Do you know if anything came of the "desktop session agent" idea we brainstormed at the last engineering sprint?07:07
jameshzyga: and if the answer is nothing, would it be something worth while for me to work on?07:08
pstolowskimborzecki: uhmmm07:16
pstolowskimborzecki: they even mention xplane, wow07:17
mborzeckipstolowski: so you know, when you put that antenna on your balcony ;)07:25
Chipacainteresting read, if you're into that sort of thing: https://songlh.github.io/paper/go-study.pdf08:32
Chipacazyga: i know you probably are ^08:32
mupPR snapd#6873 closed: gadget: improve device lookup, add helper for mount point lookup <Gadget update> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/6873>08:36
zygajamesh: hey, not 100% sure if that's the topic but I think we agreed to use snap userd a lot more; having said that we're not doing anything towards  that08:36
zygaChipaca: thank you, queued08:37
jameshzyga: this was the idea of having a unix socket activated service in the user session that snapd could talk to08:39
jameshzyga: this could either be userd, but wouldn't necessarily be the same thing.08:40
zygajamesh: note, I'm at a sprint now, partial focus08:40
jameshzyga: ah.08:40
zygajamesh: I think that's the agreement08:40
zygajamesh: I don't think we've ageed on anything byeond the general idea that there's a two way communication between system-wide snapd and per-user "aid"09:39
jameshzyga: okay.  Would it be useful to start adding the infrastructure for the user agent?  From my memory, we discussed socket activated user session service speaking an HTTP API similar to snapd09:41
zygamborzecki: so because that wip  branch I  posted  is arguably huge  and the test there is hard to follow, I'm making a standalone shell script that illustrates the issue so  that we can discuss this properly next week09:41
zygajamesh: I think you need to get an ack from pedronis before you do that09:42
mborzeckizyga: ack09:42
zygajamesh: explain that this is going towards bi-directional communication and this is the protocol idea and if you get an ack, work on  it09:42
zygajamesh: I would refrain from proposing thnigs that need design review before there's written agreement on what it is09:43
jameshzyga: okay.  Would the forum be the best place to do  that?09:44
zygajamesh: yes, and a call as  well10:29
GirtabluluChipaca: are you around?11:00
ChipacaGirtablulu: yes11:00
Girtabluluremember my issue on solus with snapd 2.39 and creating the snapshot by removal?11:01
ChipacaGirtablulu: yes11:02
Chipacawell, no, but yes11:02
Chipacai didn't remember it was you :-)11:02
Chipacabut i remember the issue11:02
Chipacamborzecki: is --prune in 2.39.1?11:02
cachioChipaca, hey, if you want to enjoy  a bit you can take alook to https://github.com/snapcore/spread/pull/7711:02
mupPR spread#77: Add testflinger backend <Created by sergiocazzolato> <https://github.com/snapcore/spread/pull/77>11:02
Chipacacachio: sure!11:02
Chipacacachio: and i get the impression you asked me to do something last night and i never did :-/11:03
Girtabluluwell talked to JoshStrobl and he had a look and made this patch https://dev.getsol.us/source/snapd/browse/master/files/0001-Force-usage-of-sudo-over-runuser-on-Solus.patch, and he said we have to look into the util-linux if it's setup wrong on Solus11:03
cachioChipaca, hehehe, it is ok11:03
cachiono hurry11:03
mborzeckiChipaca: isn't that wip still? pstolowski will know11:03
Chipacamborzecki: i meant purge, and it's not even in master, so yeah11:03
cachioChipaca, I need a final review for #661811:03
mupPR #6618: tests: validates snapd from ppa <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6618>11:03
ChipacaGirtablulu: wow11:04
pstolowskimborzecki, Chipaca: yes, not even in master, needs Samuele's review11:04
ChipacaGirtablulu: thanks for the update! that's very interesting11:04
Chipacapstolowski: yep yep11:04
GirtabluluChipaca: np you said I should come back if a solution is found :)11:05
ChipacaGirtablulu: it does sound like something's awry in solus's plumbing, but glad that's getting sorted one way or another11:05
cachiopstolowski, hey, yesterday I could make work the user my keys to sing the models11:05
cachiobut then testing I realized I need to make some changes for core1811:06
cachiobecause the vms are not starting with the user111:06
cachioI'll try to have it working before standup11:07
Chipacacachio: do systems start with numbers in testflinger?11:08
cachioChipaca, no11:09
cachionames are alphanumeric11:09
Chipacacachio: the change to validSystem seems bogus then11:09
cachioChipaca, yes, you are right11:10
cachioshould be something like [a-z]+[0-9]+11:10
Chipacacachio: the * seems intentional also11:11
Chipacawhich you removed11:11
Chipacabut dunno11:11
cachioChipaca, no, because the name enforced has a - between11:11
Chipaca?11:12
Chipacaah11:12
Chipacayou mean in testflinger systems can't have -s?11:12
cachioI need [a-z]+[0-9]+-[a-z0-9*]11:12
Chipacano you don't :-)11:12
cachioChipaca, the name enforced by default is like11:12
Chipacacachio: what do you actually need? give me examples please11:12
cachiorpi-3-6411:13
cachioand we need rpi3-6411:13
cachiobecause then we use the rpi3 as name for testflinger11:13
Chipacaah11:14
cachioChipaca, rpi3 is the device name on tf11:14
Chipacacachio: and do you know what systems have an '*' in them?11:14
Chipacawondering what that was there for11:14
cachioChipaca, no idea, I never seen one with *11:14
Chipacalet's ask gustavo :)11:15
cachioChipaca, yes :)11:15
Chipacaniemeyer: in spread, why does the validSystem regexp allow explicit asterisks in the system name? "^[a-z*]+-[a-z0-9*]+(?:[-.][a-z0-9*]+)*$"11:15
Chipacaniemeyer: what's the use case for this? (examples? tests?)11:15
Chipacacachio: in any case what you want is probably "^[a-z][a-z0-9]*-[a-z0-9]+(?:[-.][a-z0-9]+)*$"11:18
Chipacacachio: modulo *s inside the []s pending gustavo's reply11:18
Chipacacachio: that is, changing the [a-z]+ to a [a-z][a-z0-9]*11:18
Chipacameaning there can be numbers in the first chunk as long as it doesn't start with numbers11:18
cachioperfect11:19
Chipacacachio: simplest way forwards is to assume the *s are there for a reason, and replacing the [a-z*]+ with [a-z*][a-z0-9*]*11:19
cachiochange done :)11:19
niemeyerChipaca: Might be a bug depending on where this is used, but systems filtering allows wildcards11:20
Chipacaah! +ubuntu-* etc?11:20
Chipacacachio: there you go :)11:20
cachioChipaca, niemeyer nice11:20
Chipacacachio: so11:21
cachioI never tried it :)11:21
Chipacacachio: ^[a-z*][a-z0-9]* instead of ^[a-z*]* and the rest stays the same11:21
niemeyercachio: I'm pretty sure snapd tests depends on this11:22
Chipacaof course that means you couldn't say rpi*11:22
Chipacae.g. tests/main/xdg-open/task.yaml:systems: [-ubuntu-core-*]11:23
Chipacacachio: ^11:23
cachioniemeyer, we run snapd tests like doing google: that should use the * as wildcard right?11:23
Chipacacachio: it's for the filtering in tasks11:23
niemeyercachio: No, that uses ... because wildcards are special for shells11:24
Chipacacachio: I suspect you forgot to push to snapd#661811:25
mupPR #6618: tests: validates snapd from ppa <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6618>11:25
cachioniemeyer, ok, thanks for the explanation11:26
Chipacaniemeyer: ditto, thanks11:27
niemeyernps!11:27
cachioChipaca, right, pushing11:27
cachioChipaca, pushed11:32
pstolowskicachio: ack, thanks for update!11:35
cachiopstolowski, I just pushed the new models I am trygin to make that work11:43
cachiopstolowski, to run the test you need to set the variable SPREAD_NEW_CORE_CHANNEL to edge11:44
pstolowskicachio: ack, ty, i'll try that11:44
mborzeckioff to pick up the kids12:03
* Chipaca lunches12:04
popey_how long should a refresh from of core from stable to candidate (2.39) take? It's taking forever here.12:13
popey_"snap changes" hasn't returned anything at all.12:13
popey_Consider re-refresh of "core"   is all it says in the terminal where I am refreshing core12:14
popey_perhaps it's regenerating all apparmor profiles or something?12:19
popey_(yes, looks like that's what it's doing, incredibly slowly)12:19
pstolowskipopey_: possible, ps aux and check for apparmor parser? i just checked and it was almost instant, but i have very few snaps12:20
popey_pstolowski: yes, i see a lot of apparmor parser in syslog. i have 260 snaps and this is taking an age and I'm not getting any feedback from the "snap refresh core --candidate" about what's happening12:23
popey_if I was a normal person, I would likely have turned my computer off right now12:23
popey_(not that a normal person has 260 snaps ofc) :D12:23
popey_\o/ finished12:24
popey_that was about 20 mins. not bad for 260 snaps :D12:24
pstolowskipopey_: i agree, no feedback is problematic12:26
pstolowskisomething worth exploring/imrpoving12:27
pstolowskibbiab12:28
jdstrandpopey_: this gets precisely to the snapd team's roadmap item to make this faster (cc zyga). snapd is calling apparmor_parser for *every* interface connect in every snap command rather than once per snap command12:54
jdstrandpopey_: which makes it particularly terrible for you and as snaps get more popular12:55
jdstrandpopey_: but, it's known and understood and now marked as a deliverable for the next cycle (last I saw)12:55
=== ricab is now known as ricab|lunch
popey_\o/12:56
popey_https://www.youtube.com/watch?v=ZtAzeoA0UgE12:56
popey_</spam>12:56
Chipacapstolowski: mborzecki: cachio: standup?13:01
kenvandinezyga: is bug 1825883 fixed in 2.39 or is there still some work to do?13:05
mupBug #1825883: stale copy of plug and slot attributes is kept in connection state <snapd:In Progress by zyga> <https://launchpad.net/bugs/1825883>13:05
Chipacamborzecki: i thought for mkfs.extN you could avoid the root/non-root weirdness via root_user13:07
mupPR snapcraft#2537 closed: dotnet plugin: fix parsing of newer sdk releases <Created by ianmetcalf> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2537>13:08
mborzeckiChipaca: is that an option for mkfs?13:08
Chipacamborzecki: yes13:09
Chipacamborzecki: under extended options13:09
mborzeckiChipaca: isn't that the owner of / only?13:09
Chipacamborzecki: what else does it do that needs fakeroot?13:11
mborzeckiChipaca: ownership of all entries dropped into the fs, it's basically doing `mkfs.ext.4 <magic-options> -d <rootfs>`13:12
mborzeckis/ext.4/ext4/13:12
=== ricab|lunch is now known as ricab
* cachio lunch15:31
mupBug #1829558 opened: Unable to install fwupd <Snappy:New> <https://launchpad.net/bugs/1829558>16:08
=== pstolowski is now known as pstolowski|afk
zygakenvandine: pstolowski|afk did the fix in reduced capacity for 2.29 but I don’t remember if that is .0 or .116:31
Chipacazyga: 29, or 39?16:36
kenvandinei'm sure it had to be 3916:36
Chipacakenvandine: I _think_ it's e4c706fb7bf9f19279d54f1ce610ef2bbfaae8b1/b2c48938155f8e05f53843fe718e6f326c0362ec but I can't see that in any tag16:41
Chipacakenvandine: mvo will know for sure16:41
Chipacaif i'm right, then not in any tag → not in 2.39; hopefully 2.39.116:42
Chipacabut if you need certainty (heh) ask mvo16:42
kenvandinei'll talk to him on monday16:43
ChipacaEOW, ttfn17:01
cachiopstolowski|afk, I pushed the change in the model to make the nested vms start correctly17:53
cachioand other changes17:53
cachiothe problem is that the qemu is not appearing when doing snap connections system17:54
cachiopstolowski|afk, it is easy to reproduce by running: SPREAD_NEW_CORE_CHANNEL=edge spread -debug google-nested:ubuntu-18.04-64:tests/nested/core/hotplug17:54
cachiostill missing the change to reuse the test script17:54
cachiopstolowski|afk, but first I want to make it pass :)17:55
pstolowski|afkcachio: thanks, I’ll check it, the symptoms are as if my fix isn’t present or was not sufficient18:17
cachiopstolowski|afk, when was it merged?18:18
cachioit should be on edge18:18
* cachio afk19:03

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