/srv/irclogs.ubuntu.com/2018/09/28/#snappy.txt

zygao/05:14
pstolowskimornings07:02
zygaHey Paweł07:32
zygaQuite a quiet07:32
zygaMorning :-)07:32
zygaMaking coffee, I somehow could not wake normally07:33
pedronisseems there's a new gccgo version in bionic and we are hitting a bug that is fixed only in newer dh-golang07:34
pedronisgccgo tests have started failing on 18.0407:35
pedronismmh07:42
zygapedronis: oh, do you have a bug reference?07:48
zygashall we disable 18.04 for the weekend so that we can keep pushing things?07:49
pedroniswe get this:  https://paste.ubuntu.com/p/GVvz4qq4hY/07:49
pedronisthere's a debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=90726307:49
zygapedronis: perhaps we can pin the previous version of the package if it is still in the archive07:49
zygathank you, looking07:50
pedronisthat mentions dh-golang 1.35 to have the fix,  but bionic has still only 1.3407:50
zygaor we can add a ppa with dh-golang 1.35 perhaps07:50
wgrantHave you reported the critical SRU regression?07:51
pedronisnot yet07:52
pedronisit took me a while to understand it was not new code07:52
pedronisbut new package07:52
pedronisversion07:52
wgrantdoko: ^^07:53
joelkraehemannhi all07:53
joelkraehemannDo all snap packages need manual review or is it only because the warning showing?07:54
zygajoelkraehemann: hello, what warning is that?07:55
zygajoelkraehemann: normally snap package do not require a manual review07:55
joelkraehemannzyga: great to know. I was using experimental layouts but for now I pass the environment variable $AGS_SNAP_PATH07:56
joelkraehemann... and no more layouts07:56
zygajoelkraehemann: yeah that _may_ trigger a manual review for now, I'm trying to get that to be enabled by default07:56
joelkraehemannwhat do you think, when is it enabled by default?07:57
zygaI'd like to do that for the 2.36 release07:57
zygathere's a PR for that07:57
zygasome people are going to be off today so I don't know if it will land yet07:58
zygaprobably monday07:58
joelkraehemannnice07:58
zygapedronis, wgrant: so shall we file a bug for this and wait?07:58
wgrantzyga: File a bug, tag it with regression-update, and ping the uploader and/or release team on IRC08:00
wgrants/release/SRU/08:00
zygakk08:00
wgranthttps://wiki.ubuntu.com/StableReleaseUpdates#Regressions08:00
zygathank you!08:01
Chipacamoin moin08:04
Chipacamwhudson: o/08:05
zygapedronis: so gccgo is the faulty package?08:05
* zyga tries to phrase the bug report08:05
Chipacamwhudson: if we have 1.10 in 16.04 etc, that still wouldn't pull gccgo equivalent in, right?08:05
pedroniszyga: https://bugs.launchpad.net/ubuntu/+source/dh-golang/+bug/179493608:05
mupBug #1794936: new gccgo version update ()  is triggering dh-golang bug <dh-golang (Ubuntu):New> <gcc-defaults (Ubuntu):New> <https://launchpad.net/bugs/1794936>08:05
zygaah, thanks,08:06
mborzeckimorning08:06
pedroniszyga: it's not a bug on gccgo but things will fail with dh-golang unless we also get a new dh-golang08:07
zygapedronis, wgrant: I added the regression-update tag to your bug08:07
mborzeckistarting later than usual, had to run an errand08:07
Chipacamwhudson: maybe I should ask this question on the bug08:07
pedroniszyga: I tried to mention both packages, but gcc packages are a maze, not sure I picked the right one08:07
zygayeah, I was lost at gcc-defaults, dh-golang is easier08:08
wgrantRetargeted at gcc-808:08
wgrantWhich was the SRU that broke things08:08
Chipacapedronis: should we skip  gccgo tests on 18.04 until this is sorted?08:11
mupPR snapd#5868 closed: tests/main/snap-env: extend to cover parallel installations of snaps <Parallel installs> <Simple> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5868>08:11
mupPR snapd#5872 closed: tests/main/parallel-install-local: rename from *-sideload, extend to run snaps <Parallel installs> <Simple> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5872>08:11
pedronisChipaca: I suppose08:12
mborzeckizyga: can you take a look at https://github.com/snapcore/snapd/pull/5870 ?08:12
mupPR #5870: tests/main/parallel-install-services: add spread test for snaps with services <Parallel installs> <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5870>08:12
pedronisis michael off today?08:13
zygapedronis: I think so08:13
zygamborzecki: yes08:13
=== KaitoDaumoto is now known as Guest13744
zygapedronis: I've asked him in private08:14
zygapedronis: confirmed08:14
pedronisChipaca: a 2nd review of #5824 would be appreciated08:14
mupPR #5824: fetch the device store assertion together and in the context of interpreting snap-declarations <Created by pedronis> <https://github.com/snapcore/snapd/pull/5824>08:14
mborzeckizyga: thanks!08:16
ograppisati, your kernel patch works great !08:18
mupPR snapd#5880 opened: interfaces/repo: two helper methods for houtplug <Created by stolowski> <https://github.com/snapcore/snapd/pull/5880>08:20
Chipacapedronis: should the assertion fetchers get a context at some point?08:24
Chipacato be cancelable i mean08:24
pedronismaybe, at some point08:24
Chipacapedronis: maybe as part of the move to bulk08:25
Chipacatbh this code with functions getting functions that get passed functions is not super easy to follow :-)08:26
pedronisChipaca: we have a bigger problem, in this sense that we fetch assertions from sync places08:26
mupPR snapd#5870 closed: tests/main/parallel-install-services: add spread test for snaps with services <Parallel installs> <Simple> <Created by bboozzoo> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5870>08:26
pedronis(for good reasons but it will not end well at some point)08:26
Chipacamhmm08:27
Chipacanot that I'd spotted it, but yes it sounds like trouble08:27
pedronisit's totally preexistent08:27
pedronisand it's a potential issues with hundreds of snaps08:28
* Chipaca hopes popey isn't listening08:28
popey*ears prick up*08:28
pedronisanyway we really have a problem that is either sync  or changes08:28
pedroniswe don't have an inbetween to do things08:29
popeywhat's up?08:29
Chipacapopey: talking about things that can't ever happen, ever ever08:30
Chipacapopey: unless somebody had hundreds of snaps08:30
popeyalan@hal:~$ snap list | wc -l08:31
popey23408:31
Chipacapedronis: which sync things do this?08:31
popeyWho would do such a thing?08:31
pedronisChipaca: snap refresh08:31
Chipacapopey: IKR08:31
Chipacapedronis: ah, it does it as part of pre-changes work?08:31
pedronisyes08:31
pedronissince forever08:32
Chipacashouldn't be too hard to move it into a change then08:32
pedronisit is08:32
Chipacahe says, like an idiot08:32
* Chipaca grins08:32
pedronisremember why we moved pre-flight checks out of changes08:32
pedronisit would undo that08:32
ChipacaTBH, I don't remember why, but I'm sure it's a good reason08:32
Chipaca(and I can re-remember it by reading, probably)08:33
Chipacaanyway, this isn't landing PRs08:33
pedronisto be fair it was specifically about downloads08:33
pedronisso maybe there's a why08:33
pedronisbut is not a simple change08:33
pedroniss/why/way/08:33
ograhmm ... does the prepare_device hook of a gadget snap only run at the end after all snaps have been processed ? ... when i set a hostname from that hook and have avahi installed, the name resolution only works after a reboot08:34
pedronisogra: it was not defined exactly08:35
ograah08:35
pedronisit might have been changed recently tough08:35
pedronisI need to go look08:35
ograshould the install hook run earlier ?08:35
pedroniswhich install hook?08:36
pedronisof the gadget08:36
pedronis?08:36
ograyeah08:36
ograi see the gadget beinmg processed before the app snaps08:36
pedronisyes08:36
ograso perhaps thats the better choice08:36
ograok08:36
pedronisit's core kernel gadget apps08:36
pedronisthat is well defined08:37
ograsomehow the name tricked me that prepare_device runs before anything else :)08:37
ograwill use install then08:37
pedronisogra: with 2.35 or so  prepare-device is strictly after seeding08:43
ograyeah, that explains the behaviour08:43
pedronisChipaca: zyga: do you remember whether we have anywhere bash code that make choices based on comparing snapd version in the spread tests?08:44
* zyga thinks08:45
zygaapart from debian control scripts I don't think we do08:45
Chipacapedronis: we have tests that fail if the version is not what's expected, but I don't think that's what you mean08:46
pedronisI would like to do something in upgrade/basic only if the old snapd is newer than 2.3508:46
Chipacait actually might be the prepare bit of the test tbf08:46
pedronisbut writing might be a pain08:47
pedronisthe issue really affects only debian in practical terms (the relevant change is actually older than 2.35)08:47
Chipacapedronis: i thought we had a compare-versions in there but can't find it08:49
pedronisthought the same08:49
pedronisbut not clear how to write portably except with python or something08:49
pedronis(we can't assume dpkg anymore)08:49
Chipacapedronis: 'snap version --greater-than "$otherversion"'?08:54
Chipacamaybe python is easier :-)08:54
pedronisby definition the old snap will not have that08:55
pedronisanyway I might just do something blunter08:55
pedronisChipaca: thx for the review08:56
Chipacanp08:56
mupPR snapd#5881 opened: tests: disable gccgo tests on 18.04 for now, until dh-golang vs gccgo are fixed <Created by pedronis> <https://github.com/snapcore/snapd/pull/5881>09:24
pedronisChipaca: zyga: ^09:24
zygaack09:27
Chipacapedronis: Error executing google:ubuntu-16.04-64:tests/main/interfaces-accounts-service09:50
ChipacaError: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Type of message, '(ssssa{ss})', does not match expected type '(sssa{sv}a{ss})'09:50
pstolowskiChipaca: looks like the elusive error we see very sporadically on spread tests09:52
Chipacamhmm09:53
Chipacapstolowski: go away you're sick09:53
pstolowski(i saw it a couple of times over last few months)09:53
zygatravis is slooow09:56
Chipacawow, I hadn't realise we were doing ~1k commits per release09:59
Chipacasounds like a lot09:59
=== scroll is now known as hfjvjffju
pstolowskizyga: commented on #586710:01
mupPR #5867: many: enable layouts by default <Created by zyga> <https://github.com/snapcore/snapd/pull/5867>10:01
* Chipaca takes a break10:01
zygapstolowski: thanks10:05
* zyga -> walk10:13
dokosnappy is using golang?10:27
zygadoko: yes10:34
dokozyga: please ask mwhudson about that10:49
Chipacadoko: about what?10:55
mupPR snapd#5881 closed: tests: disable gccgo tests on 18.04 for now, until dh-golang vs gccgo is fixed <Created by pedronis> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/5881>10:56
Chipacawoohoo10:57
* Chipaca merges master10:57
pstolowskiyess10:59
Chipacatravis now experiencing stampeding herd of snapd PRs11:00
ograpedronis, (not sure you are the right person, but i'll ask anyway) is there a way for me to obtain the model name from a hook in the gadget (i would like to set the default hostanme to the model name on frst boot) ... without having snapd-control ?11:45
ogra(would "snapctl known model" work without extra interface ?)11:46
mupPR snapcraft#2302 closed: requirements.txt: stop using pymacaroons-pynacl <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2302>11:51
mupPR snapcraft#2303 closed: [legacy] requirements.txt: stop using pymacaroons-pynacl <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2303>11:51
pedronisogra: not atm11:55
pedronisthere are some argument that we could have snapctl ack and snapctl known at least for gadgets but they are not there atm11:55
ograhmm, ok11:56
ograthats sad ... since it means i'll need one gadget per image type11:56
ograthanks anyway !11:57
stgrabersergiusens: so in theory we have the new logic in place in both edge and stable snaps now, the next upgrade will still be bad for you (because it's running the old stop logic) but hopefully you'll be good after that12:13
sergiusensstgraber: nice, can I see the PR that implements this? Just for curiosity12:14
sergiusensI am glad I raised it then too12:14
stgrabersergiusens: https://github.com/lxc/lxd-pkg-snap/commit/82950207244f445ad9c59ab22967ab20c002bd2512:14
pstolowskihmmm, snapcraft tells me this: The linker version '2.23' used by the base 'core' is incompatible with files in this snap:12:31
pstolowskikyrofa: hey, any idea ^? i'm not doing anything with bases in the snap i'm building. snapcraft installed from snap, i presume it's the base of the snapcraft?12:33
sergiusensstgraber: looks much more robust12:34
sergiusenspstolowski: it means you are probably not building on 16.0412:35
mupPR snapd#5882 opened: many:  support and consider store friend-stores when checking device scope constraints <Created by pedronis> <https://github.com/snapcore/snapd/pull/5882>12:35
stgrabersergiusens: yep and the type field really shouldn't be translated :)12:37
pstolowskisergiusens: indeed, i'm on 18.0412:37
jdstrandpopey, Wimpress: hi! can one of you comment on https://forum.snapcraft.io/t/requesting-approval-for-goreleasers-classic-snap/6571/9?12:47
zygajdstrand: hey12:47
zygajdstrand: gentle ping for https://github.com/snapcore/snapd/pull/539512:47
mupPR #5395: interfaces: generalize writable mimic profile <Created by zyga> <https://github.com/snapcore/snapd/pull/5395>12:47
jdstrandzyga: I know, sorry12:47
zygasure, I understand12:48
zygaChipaca: standup?13:01
Chipacaomw13:01
sergiusensjdstrand: I commented13:28
sergiusensjdstrand: fwiw, it was elopio and myself who were involved in that13:29
mupPR snapd#5824 closed: many: fetch the device store assertion together and in the context of interpreting snap-declarations <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/5824>13:31
jdstrandsergiusens: ah, thanks :)14:06
jdstrandWimpress, popey: sergiusens responded to https://forum.snapcraft.io/t/requesting-approval-for-goreleasers-classic-snap/6571/12, but can one of you vet the publisher?14:07
popeydone14:10
kenvandinezyga: found a snapd bug in the cosmic live session https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/179495314:16
mupBug #1794953: GNOME Calculator snap has wrong theme in live session <rls-cc-tracking> <gnome-calculator (Ubuntu):Invalid by ken-vandine> <snapd (Ubuntu):New> <gnome-calculator (Ubuntu Cosmic):Invalid by ken-vandine> <snapd (Ubuntu Cosmic):New> <https://launchpad.net/bugs/1794953>14:16
kenvandinezyga: permission denied errors mounting the content interface14:16
Chipacahttps://pastebin.ubuntu.com/p/nYmtwkYWXp/ :-D14:19
Chipacaniemeyer: new category, or should I put them into "other"? ^14:20
* niemeyer look14:20
niemeyers14:20
Chipacawe still have space for a few more categories, fwiw14:20
zygakenvandine: hey14:20
niemeyerChipaca: That seems to fit nicely into a "Snapshots" one14:20
Chipacayerp14:20
niemeyerChipaca: Nice tests, btw14:20
zygakenvandine: interesting, can you add the apparmor denials please?14:21
Chipacaniemeyer: :)14:21
kenvandinesure14:21
zygaI need coffee, brb14:22
mupPR snapd#5833 closed: asserts,interfaces/policy: add support for on-store/on-brand/on-model plug/slot rule constraints <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/5833>14:24
kenvandinezyga: added to the bug14:24
kenvandinezyga of particular interest is the content interface for gnome-3-26-1604 must be mounting just fine14:25
kenvandineit's only gtk-common-themes14:25
zygare!14:29
zygaman14:29
zygaI put the powdered coffee beans into the mug14:29
zygaSep 28 14:08:52 ubuntu kernel: [ 68.310240] audit: type=1400 audit(1538143732.840:235): apparmor="DENIED" operation="open" profile="snap-update-ns.gnome-calculator" name="/upper/snap/" pid=6535 comm="3" requested_mask="r" denied_mask="r" fsuid=0 ouid=014:30
zygathat's the thing14:30
zygawell, I can look at that next week14:30
kenvandinezyga: thanks, that bug is a cosmic release blocker14:31
kenvandinezyga: just FYI14:31
zygayeah, no pressure ;)14:31
zygait's not an LTS, right? ;-)14:31
kenvandinelol14:31
kenvandinewillcooke: ^^ FYI zyga's on the case14:32
willcookethanks chaps14:32
zygaI assigned it to myself14:32
zygawell14:33
zygakenvandine: while I have you14:33
zygado you have the session open?14:33
kenvandineyes14:33
zygacan you poke at one file please14:33
zygalet me give you the details14:33
zygacan you go to /var/lib/snapd/apparmor/snap-confine14:35
zygaand tell me what you have there14:35
zygathere _should_ be a file called "overlay-root" there14:35
kenvandineyes14:35
zygakenvandine: can you also share /proc/self/mountinfo from the live session14:35
zygaand if the file is there, pastebin the file please14:35
kenvandinehttp://paste.ubuntu.com/p/PhsbzsCzZ8/14:38
kenvandinezyga: and just to confirm, there is just one file in snap-confine, overlay-root14:40
zygahmmm14:40
zygathat's very cool14:40
zygabut ...14:40
zygasomething new in the kernel apparently14:40
zygawhat's in the overlay-root file?14:40
zygalook at the mount table you pasted14:40
zygathe Wally is /cow14:40
zygawhere's Wally?14:40
zygais there a /cow directory?14:41
kenvandineoverlay-root has "/upper/{,**/}" r,14:41
kenvandinethere is no /cow14:41
zyga29 1 0:24 / / rw,relatime shared:1 - overlay /cow rw,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work14:42
zyga!14:42
zygaright?14:42
zygaso what's /cow?14:42
zygaI mooost know14:42
kenvandineno idea :)14:42
zygaa sample denial is:14:43
zygaSep 28 14:08:52 ubuntu kernel: [ 68.309885] audit: type=1400 audit(1538143732.840:232): apparmor="DENIED" operation="open" profile="snap-update-ns.gnome-calculator" name="/upper/snap/" pid=6535 comm="3" requested_mask="r" denied_mask="r" fsuid=0 ouid=014:43
ograit makes milk usually :P14:43
zygabut the pattern you pasted should cover that14:43
ogra(shake it and you have cream !)14:43
kenvandine:)14:43
zygakenvandine: can you look at /var/lib/snapd/apparmor/profiles and look for /upper there?14:43
kenvandinezyga: and the mount for gnome-3-26-1604 is working fine14:43
zygain the snap-update-ns.gnome-calculator profile?14:43
zygajdstrand: ^ FYI, not sure if you know about any changes to overlayfs between 18.04 and 18.1014:44
zygakenvandine: please collect all those log files in the bug report14:45
kenvandinezyga: there is no occurrences of upper in the profile14:45
zygamaybe as files for easier access14:45
zygaoh!14:45
zygayou mean that snap-update-ns.gnome-calculator has no /upper in it?14:45
kenvandineright14:45
jdstrandzyga: I do not. this is on the livecd?14:45
zygayep14:45
kenvandinezyga: yes, live session14:45
zygakenvandine: that's the bug perhaps14:45
kenvandineworks fine installed14:45
jdstrandwell, someone needs to adjust the policy for that. it me, it will be a little while, but someone can submit a pr and I'd look at it14:46
zygakenvandine: please add the file you looked at to the bug report14:46
jdstrands/it me/if me/14:46
zygajdstrand: not sure if there's something to adjust yet14:46
zygait looks more magic than before14:46
Chipacaniemeyer: should I add SnapID to snapshots before, together with, or after landing the commands?14:46
zygajdstrand: anyway, I just wanted to check if you were aware of any changes to overlayfs14:47
zygakenvandine: I'll break for dinner now, ok?14:47
kenvandinezyga: ok14:47
kenvandinei'll attach stuff to the bug14:47
Chipacaniemeyer: there's already an after-landing tasklet of blocking epochs, and restoring configs, both of which aren't done14:47
Chipacacould be part of that14:47
niemeyerChipaca: Sounds fine either way.. as long as we don't release in the wild before the disk format is stable14:48
niemeyerChipaca: We can add an experimental flag for that, if necessary14:48
Chipacaniemeyer: I can mark the PR blocked and just not land it until the followup is ready as well14:49
Chipacammm14:49
Chipacadunno14:49
Chipacaniemeyer: I'll do something sensible. Thanks.14:49
niemeyerChipaca: Thanks for that :)14:51
* Chipaca takes a break14:58
ograogra@localhost:~$ snap interfaces15:04
ograerror: no interfaces found15:04
ograGRRRRRR !!!!15:04
Chipacaogra: eh, you didn't need them anyway15:04
* Chipaca really tries to take that break now15:04
ograChipaca, well, you guys make setting a hostname from a gadget hook really really hard ... i switched from prepare_device to the install hook of the gadget (because prepare_device only runs after the device hads been prepared which makes it completely useless for that case) ... and that got me into that state15:06
ograseems snapd simply stopped seeding the system completely now15:06
ograogra@localhost:~$ snap list15:08
ograNo snaps are installed yet. Try 'snap install hello-world'.15:08
ogra:(15:08
pedroniswhat does snap changes says?  and snap tasks for the ones there15:10
ograogra@localhost:~$ snap changes15:10
ograID   Status  Spawn               Ready               Summary15:10
ogra1    Error   today at 14:52 UTC  today at 14:54 UTC  Initialize system state15:10
ogra2    Error   today at 14:53 UTC  today at 14:53 UTC  Initialize device15:10
ogra3    Error   today at 15:01 UTC  today at 15:02 UTC  Initialize system state15:10
ogra4    Error   today at 15:01 UTC  today at 15:02 UTC  Initialize device15:10
ogra5    Error   today at 15:09 UTC  today at 15:10 UTC  Initialize system state15:10
ograError   today at 15:08 UTC  today at 15:09 UTC  Run install hook of "pi-kiosk" snap if present15:10
ograpedronis, that install hook calls "/usr/bin/hostnamectl set-hostname ..." the gadget.yaml has the right connect statement and the snapcraft.yaml allows the hostname-control plug for the install hook15:12
pedronis?15:12
pedronisconnect is called later15:12
ograugh15:13
pedronisyou really need an auto-connect for that15:13
pedronisconnections doesn't make a lot of sense for those kind of interfaces15:13
ograany chance the configure hook would be late enough ?15:13
zygare15:13
ograi really just need to set a hostname before avahi comes up for the first time15:13
pedronisI would need to check but unlikely15:13
ograsigh15:13
pedroniswe set up connections after everything else15:14
pedronisanyway they are not a good fit for this15:14
ograwe're making this really hard15:14
pedronisthis is really more a auto-connect case15:14
pedroniswhich would work15:14
ograyeah, but i dont really want to wait for someone to set up autoconnect for the gadget ...15:15
Chipacaogra: the avahi service could wait, couldn't it?15:15
ograChipaca, how ? (without me modifying the avahi snap)15:16
Chipacaah15:16
Chipacapicky, picky15:16
ograi'm trying to exercise a customer usse case here of simply creating an appliance image from mostly exissting snaps15:16
Chipacaright15:16
Chipacaand having the gadget set the hostname does sound reasonable15:17
ograyeah15:17
ograwell, and it works from prepare_device ... but thats too late to work with avahi ... there will be client images that will try to auto-conect to that server appliance15:17
Chipacamaybe the bug is that we start things before prepare device is done?15:18
ograright, i wouldnt expect prepare_device to be run as last thing after all apps have been processed15:18
ogradoesnt really sound like "prepare" anymore15:19
ograrather like "postprocess"15:19
ChipacaOTOH, one of the things that we start might be network manager15:19
Chipacawithout which prepare-device wouldn't15:19
Chipacait's worms all the way down i tell you15:20
* Chipaca runs off to some place with less worms15:20
* Chipaca sends beer15:20
ograheh, well ... all in all trying to build a simple appliance makes me hop from one roadblock to another atm15:20
ograthe worst thing is that i do not get a snap id for sideloaded gadgets so even to test if something works i have to do a full turnaround through the store15:22
ogra... even for one line changes15:23
* ogra moves back to the prepare_device hook and adds reboot interface support to it ... 15:24
ograi'll just force a reboot after setting the hostname ... even though thats the worst UX i can imagine15:24
ogra(not to mention that the firt boot on a pi3 takes 15-20 min just for sseeding the snaps)15:25
ogra*first15:25
ograoh ... wait15:28
ograpedronis, on a device with an unofficial (non canonical) image, is the prepare_device hook called over and over ? i.e. would the above get me a reboot loop ?15:29
pedronisogra: yes, the prepare-device hook can be called multiple times15:31
ograoh my15:31
ograso no way out for me unless i add gross hacks ... which is exactly what i didnt want for this specific image :(15:31
ograsad ...15:32
pedronisogra: the doc says as much,  https://forum.snapcraft.io/t/the-gadget-snap/69615:32
pedronissee the first paras of prepare-device hook15:33
ograyeah, i remember reading that somewhere15:33
ograah, well, i can work around that in the hook i guess15:37
ograoh sigh ... so the shutdown interface only allows dbus connecttions ... not calling the reboot command directly15:42
pedronisogra: why do you need to reboot?15:42
ograpedronis, i need avahi restarted after the hostname has been set15:42
pedronisreboot is a big hammer to restart avahi15:43
pedronissounds more like you need to restart avahi15:43
ograsince i dont have snapd-control (and dont want it) to restart avahi from the gadget hook, thats the other option15:43
ograhahahaha15:43
pedronisthat doesn't make a lot of sense to me15:43
ograyes, "just restarting avahi" or "setting the hostname before avahi starts" would be the right things15:44
pedronisI mean it's not a reasonable practice, to reboot to restart one thing15:44
ograbut the current design doesnt allow either15:44
pedronisif your gadget as the right auto-connect it would work15:44
pedronisthere was an idea to make connections in gadget.yaml more like auto connect15:45
pedronisbut it was punted15:45
ograyes, but only via requesting that from the store15:45
ograimagine i'm a developer that evaluates core for his company15:45
ograthis is the role  i'm currently trying to play15:45
pedronisI understand but also unclear that setting hostname is so relevant15:45
ograexercising the existing stuff we have15:46
pedronisanyway it seems you should make a case in the forum to make connections in gadget more like auto-connections15:46
pedronisthe part that was punted there is deciding what was the limit of that15:46
pedronisgeneral auto-connect behavior was deemed too much15:46
ograthe thing i'm building is a two image system ... one server applance that runs a digital signage tool and a bunch of leaf systems running from a second image that will find their sever via an mdns request15:47
pedronisalso you could probably use an interface hooks15:47
pedronismaybe15:47
pedronisthat runs once the interface you need is *connected*15:47
pedronisbit strange but better than rebooting I suppose15:47
ograthe expectation is that you just shove in pre-flashed SD cards into a bunch of RPi's and have your store running the ads ... with a web mgmt UI on the server system15:48
ograso both images should set up themselves fully automatic15:49
ograand sadly avahi on the server side is a must15:49
pedroniscan't you invoke the equivalent of avahi-set-host-name15:51
pedronisthrough avahi-control?15:52
ograhmm... and build an additional snap just for that ?15:52
pedronis?15:52
pedronisfrom the gadget15:52
pedronisas I said you can probably use interface hooks to run things from the gadget15:53
pedronisonce you have the interfaces you need15:53
pedronisfrom connections15:53
ograhmm15:53
pedronisif I understand how they should work15:53
pedronisthey = interface hooks15:53
ograthe prob is: i dont think avahi-set-hostname is persistent ...15:54
pedronisyou do both15:54
pedronisset the hostname through systemd15:54
pedronisbut also for avahi15:54
pedronisso you don't have to restart the latter15:54
pedronisor at least that's the idea15:54
ograwell, thinking of it a -config snap that runs a service might not be the worst idea anyway ... and leaving all of this out of the gadget15:55
ograi might find more things i want to set and i would really like to re-use the gadget for the client images too15:55
ogra(and setting hostanmes on the client image isnt needed at all)15:56
ograi'll tinker with that15:56
* zyga iterates on interesting mount issues 16:31
zyganext week I'll split 50% for mount bugs and for new features16:32
zyganot to starve either16:32
zygabut no more distractions16:32
* zyga dives into 3.10 kernel16:42
ograpedronis, FYI: i actually found that i can use a default setting from gadget.yaml for the avahi snap to set the hostname in parallel (this is only for the first boot anyway and a reboot wouldnt have been that bad given seeding the 4 app snaps the image ships already takes 15-20 min, so a reboot only adds a minute in max) ... but i guess in general thats an area for improvement16:50
mupPR snapd#5883 opened: tests,cmd/snap-update-ns: add test showing mount update bug <Created by zyga> <https://github.com/snapcore/snapd/pull/5883>17:02
jdstrandzyga: approved 539517:19
zygajdstrand: awesome, thank you :)17:19
zygajdstrand: I'm exploring a pair of bugs highlighted by that PR above17:20
zygabut I think I'm on it and it's all good :)17:20
mupPR snapd#5395 closed: interfaces: generalize writable mimic profile <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5395>17:21
* zyga is super happy and grateful!17:21
mupPR snapd#5884 opened: overlord/snapshotstate: store the SnapID in snapshot, block restore if changed <Created by chipaca> <https://github.com/snapcore/snapd/pull/5884>18:21
* Chipaca ~> dinner18:21
zygaenjoy Chipaca :)18:34
mupPR snapd#5885 opened: Adding DPDK interface for DPDK Snap <Created by wililupy> <https://github.com/snapcore/snapd/pull/5885>18:48
smoserhave other people seen slow download times for snaps ?18:49
smoserin some testing we have, the 'snap install lxd' which is the first snap so it gets the core snap sometimes took 15 minutes or more to download.18:49
smoserwhere the link was not the problem18:50
smoseri realize the fastly cdn is where the data comes from, but i would expect higher speeds than we're consistently seeing.18:50
zygasmoser: no idea18:52
Chipacasmoser: that is very slow. Can we set debugging to see where it's getting the things from?19:44
smoserChipaca: well, it doesnt always happen. but last night when it did it was from fastly. i think the ip was in 104. or 103. range19:46
smoserthats from memory though19:46
smoserranges at https://api.fastly.com/public-ip-list19:46
smoserhttp://paste.ubuntu.com/p/vCMMCvK3ZZ/19:47
smosersom emory was wrong.19:47
smoser151.101194.21719:47
Chipacasmoser: I don't know if that's enough to know enough19:49
smoserwhat else would you want ?19:49
smoserother than my uplink being saturated at that point.19:50
Chipacasmoser: if you can set, in the environment where this happens, SNAPD_DEBUG=1 and SNAPD_DEBUG_HTTP=3 (e.g. as in https://forum.snapcraft.io/t/http-response-503-when-installing-anbox/6823/4) and then, when it happens, you can access the snapd logs (as in journalctl -u snapd), that would help19:50
smoserbut i was anot aware of other issues at that time.19:50
smoseri think its pretty clear that it was just downloading stuff slowly.19:51
smoserwhat other explanation could you have?19:51
smoseruless snapd is debug showing route information (mtr like output)19:51
Chipacasmoser: was it slow because you were getting RST packets thrown at you by a hostile ISP? Because you were getting network timeouts? Because you connected to the wrong fastly? Because the store was in distress? I don't know19:52
smoserbut what information would snapd debug bring to the table ?19:53
Chipacasmoser: if the download was being retried, there'd be a log line for each retry / continuation19:53
smoseri dont think it would likely give you any of those things.19:53
smoserit wasnt being retried19:53
Chipacasmoser: it also logs what fastly it downloads from19:53
smoseri provided the ip of the fastly there.19:53
Chipacaoh, I thought that was your ip19:54
smoserbah. i typod' it. but 151.101.194.21719:54
smosernice19:55
smoseri hit the same IP as ejfinneran did there.19:55
Chipacasmoser: and where was the server located?19:55
Chipacaor what was its ip :)19:55
Chipacai mean, the one you were running snapd on19:55
smoserhere. in detroit area19:55
Chipacafrom where I stand that sounds close enough to scottsdale to be reasonable19:56
Chipacanoise][: is there anybody with bandwith to check on a slow download thing?19:57
Chipacanoise][: i know people are running ragged right now19:57
smosermaybe reasonable... but i'd surely expect a CDN to have an east coast and west coast US mirror19:57
smoserand for arizona to hit the west coast19:57
smoserand detroit to be east19:57
smoserif there were not others in the mix19:57
smoser:)19:57
Chipacasmoser: bah, i used a geolocator that seems broken (I give it  151.101.194.217 and it rewrites it to 50.63.136.217 for whatever reason)19:58
noise][Chipaca: I'd guess not on a friday afternoon after a crazy week :)20:03
noise][ID'ing the IP and having snapd logs is a good start20:04
noise][and then traceroutes/mtr to the IP helps too20:04
noise][often the case is just some issue between user's network and the CDN PoP20:04
Chipacanoise][: thanks20:06
noise][smoser: feel free to file a snapstore bug with as many details as you can, but these tend to be hard to repro w/o a machine in the same location20:07
smoserof course20:07
smoserwe did seem to be having some pain yesterday , both on our jenkins and local systems20:07
Chipacasmoser: for the record, yes it should be a lot quicker than that20:07
smoserbut... having not collected debug information it is all in the realm of non-useful information20:07
ChipacaI get better download speeds on my ADSL :-)20:08
smoserChipaca: fastly does seem to want to send me to mirrors on the west coast20:10
Chipacasmoser: detroit isn't that far west, is it20:10
smoser~600 miles to new york city. ~2500 to san fran20:12
smoserbut i  dont knwo where they have data centers20:13
Chipacahttps://www.fastly.com/network-map says they probably have something closer20:14
smoseroh well20:20
mupPR snapcraft#2301 closed: tests: move most tests to spread and reorder travis.yaml <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2301>23:10
mupPR snapcraft#2304 opened: project loader: remove remote parts support for bases <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2304>23:16
k1412Hello everyone, I'm just beginning with Snapd. I wanted use a custom netns configuration but I not understand how I must use that with network-control. Have someone a little expain about that ? Thanks.23:21

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