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

mupPR snapd#5294 opened: Update SELinux Policy <Created by kevinanderson1> <https://github.com/snapcore/snapd/pull/5294>01:17
=== cpaelzer_ is now known as cpaelzer
mborzeckimorning05:04
Son_Gokumborzecki, night :)05:15
* Son_Goku is nearly about to go to sleep05:15
mborzeckiSon_Goku: an goodnight :)05:15
mborzeckis/an/and/05:15
zygagood morning05:57
* zyga is somewhat tied after yesterday05:57
zygait is good that there is some rain this morning05:58
mborzeckizyga: hey06:01
zygahi :)06:01
mborzeckiit rained a bit here, pity it was the only rain in 2 weeks or so06:02
zygait still rains here, forecast says it will all day06:30
zygaok, kids off to school06:33
zygafirst (or I forget) social security payment06:33
zygathen work06:33
mvopstolowski|afk: 5288 has (ironically) an econnreset test failure :)06:45
mvopstolowski|afk: might be yet another interessting corner case06:45
mborzeckimvo: hi06:52
mvohey mborzecki06:52
zygaok, all taxes and payments done06:53
zyganow back to patches06:53
mupPR snapd#5295 opened: cmd/snap-mgmt: remove system key on purge <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5295>06:56
mborzeckitrivial PR ^^06:56
mvomborzecki: do we do this in debian/postrm already? or does it need to be done there as well07:01
mborzeckimvo: snap-mgmt --purge is used on fedora, opensuse, arch07:01
mvomborzecki: I know, I mean, do we need this on debian/ubuntu as well?07:01
mvomborzecki: or did we add it there already07:02
mborzeckimvo: aah, let me check :) i automatically assumed that it's correct there07:02
mvomborzecki: maybe it is :)07:02
mborzeckimvo: well it does rm -rf /var/lib/snapd07:05
mvomborzecki: heh, that should cover it07:05
mvomborzecki: thanks for checking07:06
mborzeckimvo: np07:06
mborzeckimvo: btw. do you have any idea why the repair timer may be getting stopped before the test?07:06
mvomborzecki: no idea, that is a bit mysterious07:08
mborzeckimvo: i've restarted 5285 but the log on friday showed that snapd.snap-repair.timer was being stopped just before the test07:08
=== chihchun is now known as chihchun_afk
mborzecki(kudos to systemd guys for actually collecting and showing this in systemctl show ..)07:08
=== pstolowski|afk is now known as pstolowski
pstolowskimorning07:10
mvomborzecki: I did a quick git grep over the tests dir but nothing jump out that would touch the repair service07:10
mborzeckipstolowski: hey07:11
=== chihchun_afk is now known as chihchun
mupPR snapd#5294 closed: Update SELinux Policy <Created by kevinanderson1> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5294>08:17
mupPR snapd#5295 closed: cmd/snap-mgmt: remove system key on purge <Simple> <Created by bboozzoo> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5295>08:17
mborzeckizyga: thanks!08:17
mborzeckiwhen mounting a snap fails, does the journal contain anything useful?08:23
zygamborzecki: as much as the kernel provides08:23
abeatohi, how can I get more information when I see this sort of trace?: "handlers.go:372: Reported install problem for "core" as 680c957c-6d4a-11e8-a5bb-fa163e839e11 OOPSID"08:24
mborzeckizyga: i'm wondering if we should try and grab the output of journalctl -u <failed-unit>.mount at least08:24
zygaabeato: this goes to errors.ubuntu.com08:24
zygamborzecki: mmmmm08:24
zygamborzecki: in tests or in general08:24
mborzeckizyga: in tests08:25
zygaI think in tests we do (by extension of capturing lots of output)08:25
zygain general would be interesting08:25
mborzeckizyga: in test's we don't, the tests run journalctl -u snapd .. which will not include the mount unit stuff08:25
abeatozyga, ok, but there is no other information that can be looked into in the system?08:26
zygaI think you can see more in "snap changes"08:26
zygaand "snap tasks NNN"08:26
abeatozyga, got it, thanks08:27
Chipacaabeato: the error report is going to contain things that are in the log (before it talks about the error report), or in the tasks log08:28
Chipacaor general system info08:28
abeatogreat08:28
Chipacaabeato: otherwise, https://errors.ubuntu.com/oops/680c957c-6d4a-11e8-a5bb-fa163e839e1108:28
mborzeckizyga: pff, i see it now, there's something logged :/ but not much08:28
zygaChipaca: heyo :)08:28
Chipacazyga: 'sup08:29
Chipacaabeato: in particular: ERROR [--root / enable snap.network-manager.networkmanager.service] failed with exit status 1: Created symlink from /etc/systemd/system/multi-user.target.wants/snap.network-manager.networkmanager.service to /etc/systemd/system/snap.network-manager.networkmanager.service.08:29
Chipacaabeato: which is not particularly helpful :-)08:29
Chipacaabeato: no doubt you have better debug info locally08:29
abeatoChipaca, right, I just saw that in "snap change 1"08:29
abeatoweird thing, then it retried and the second time it worked :/08:30
Chipacaalso, whoa, 96 bogoMIPS08:30
Chipacaspeed fiend08:30
abeatohehe, yes, it is a pretty slow processor08:31
Chipacamborzecki: what're you trying to do?08:31
zyga96 tail movements in turtle graphics08:31
mborzeckiChipaca: was wondering if there's something more to collect when we fail to mount a snap08:31
Chipacazyga: tail *recursive*?08:31
zygaChipaca: ouch ;)08:32
Chipacamborzecki: AFAIK no08:35
Chipacamborzecki: systemd doesn't even report the errno of the mount call08:36
zygabecause there is none08:36
zygaI mean08:36
mborzeckiChipaca: right, that's the protocol part08:36
zyganot one, it uses libmount08:36
zygalots of more complexity and features handled08:36
Chipaca¯\_(ツ)_/¯08:38
Chipacaif you need to do foo, and you do it by using libfoo, that does not get you off the hook of handling foo errors properly08:39
mborzeckierrors go to /dev/foo08:39
ChipacaI mean, you're responsible for the libraries you use as well as the code you write08:39
Chipacamborzecki: only in 4.16.17 compiled on even days of the month though08:40
zygamborzecki: /dev/foo?08:40
mborzeckizyga: s/f/p/ if you wish :)08:41
zygaah08:41
zygawell08:41
zygayou are actually close ;)08:41
zygathere is a new kernel interface for mount errors08:41
zygaand it is a special device08:41
* zyga looks for the patch08:41
mborzeckino wai08:41
mborzeckizyga: link?08:41
Chipacamborzecki: too late08:41
Chipacamborzecki: EVERYTHING IS ~~SPIDERS~~ block devices08:42
mborzeckibtw. on friday i got my car back from the shop, the damage cost ~1800eur to fix, fortunately i'm not paying :P08:45
zygaI cannot find the patch08:46
* zyga looks through bookmarks08:46
Chipacamborzecki: whoa08:47
pedronishi09:16
zygahey :)09:17
mupPR snapd#5296 opened: daemon: paging is not a thing <Created by chipaca> <https://github.com/snapcore/snapd/pull/5296>09:19
Chipacamvo: if I had a feature I needed to be in 2.34, what's the latest it can land on master?09:25
Chipaca(without causing undue work to other people i mean)09:25
Chipacaalso, that pr ^ is the shortest I've done in ages :-)09:28
Chipacapopey: you should snap OpenNFSv3 just to confuse people09:30
Chipacaneeds some care in writing the description so you don't really know if you're getting a filesystem or a racing game09:30
popeyhah09:31
Chipaca'from scratch rewrite of NFS with a focus on performance and interoperability', say09:31
zygamborzecki: I think your PR is bigger09:51
mupPR snapd#5297 opened: cmd/snap-update-ns: use RCall with SyscallsEqual <Created by zyga> <https://github.com/snapcore/snapd/pull/5297>09:51
mborzeckipedronis: just to be sure i'm not missing something, InstanceKey in snap action == InstanceKey in current snap in context right?09:52
mvoChipaca: for 2.34 would be good to land this week or early next week09:54
Chipacamvo: ok09:54
Chipacamvo: thanks09:54
mupPR snapd#5296 closed: daemon: paging is not a thing <Created by chipaca> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5296>10:03
pedronismborzecki: yes, for refreshes10:14
mborzeckipedronis: thx10:14
mborzeckipedronis: i'm close to finishing with the changes in store, once i push the patch, i'll send you a link for a quick review in case i did something overly stupid there10:16
* zyga -> coffee10:42
mupPR snapd#5298 opened: store, image: have 'snap download' use v2/refresh action=download <Created by chipaca> <https://github.com/snapcore/snapd/pull/5298>11:08
Chipacapedronis: ^ info inch-pebble11:09
pedronisChipaca: thx, I'll look after the break11:12
Chipacapedronis: somewhat trepidatious as it almost seemed to easy :-)11:12
Chipacatoo*11:12
Chipacain other news: you'll be shocked to hear snapd doesn't work in WSL11:13
Chipaca(there's a bug about it an' all)11:14
zygaChipaca: is it snapd or general code around it that breaks?11:19
Chipacazyga: WSL doesn't support daemons11:19
Chipacazyga: WSL doesn't support systemd11:20
zygadaemons are supported11:20
zygabut systemd is not11:20
Chipacazyga: ah, release notes I read said No, but that was a while ago11:20
zygayeah, it is recent11:20
=== pstolowski is now known as pstolowski|lunch
mborzeckiwell, snaps under wsl, on windows, that would be fun11:26
zygamborzecki: well, once they support mount namespaces we could11:28
zygadrop all sandboxing11:28
zygaand handle mounting snaps with something else (unpack?)11:28
Chipacazyga: fuse :-)11:29
Chipaca(does it even)11:29
Chipacai mean, windows does have the idea of mounting stuff11:29
=== jibel_ is now known as jibel
zygaChipaca: WSL does some special things to windows filesystem11:29
zygaso not easily11:29
Chipacazyga: if we really wanted to pursue this we might be able to get in touch with people at ms11:31
zygamborzecki: hey look https://github.com/snapcore/snapd/pull/5297 is green now11:37
zygaI feel I should swap this review for your uber rename one11:37
mupPR #5297: cmd/snap-update-ns: use RCall with SyscallsEqual <Created by zyga> <https://github.com/snapcore/snapd/pull/5297>11:37
zygathis needs a 2nd review https://github.com/snapcore/snapd/pull/5283 and is pretty short and simple11:38
mupPR #5283: snapstate: get rid of needsMaybeCore <Created by mvo5> <https://github.com/snapcore/snapd/pull/5283>11:38
zygahttps://github.com/snapcore/snapd/pull/5230 needs a 2nd review and is otherwise ready11:39
mupPR #5230: interfaces/udisks2: also implement implicit classic slot <Created by jdstrand> <https://github.com/snapcore/snapd/pull/5230>11:40
* cachio afk11:49
zygajdstrand: hello, can you please enqueue some time to look at this https://github.com/snapcore/snapd/pull/5170#issuecomment-39621684511:55
mupPR #5170: interfaces/builtin: add adb-support interface <Blocked> <Decaying> <Created by zyga> <https://github.com/snapcore/snapd/pull/5170>11:55
pedronisChipaca: I think we might have an ubuntu-image test using the fakestore, so it probably needs to learn about download11:59
Chipacapedronis: only one spread error, and it seems unrelated to my change12:00
zygamvo: can you please weigh in on https://github.com/snapcore/snapd/pull/499612:00
mupPR #4996: overlord/ifacestate: store and use revision with security profiles set <Created by zyga> <https://github.com/snapcore/snapd/pull/4996>12:00
zygais that ready for landing or is more stuff needed12:00
pedronisChipaca: ok, I'm probably misremembering then12:01
zygamvo: can you please add a reference to the apt bug on https://github.com/snapcore/snapd/pull/512212:01
mupPR #5122: snap: add support for `snap advise-snap --from-apt` <Blocked> <Created by mvo5> <https://github.com/snapcore/snapd/pull/5122>12:01
Chipacapedronis: maybe fakestore implemented enough of v2 refresh for it to work :-)12:01
Chipacapedronis: tests/main/snap-download talks to the real stores tho12:03
pedronisChipaca: possibly,   no I remembered right:  /main/prepare-image-grub/task.yaml  seems to use the fakestore, maybe a double check that it works for semi-reasonable reasons would be good12:03
Chipacaah, prepare-image12:03
pedronisah, it uses the fakestore only for assertions12:04
pedronisChipaca: anyway it probably is a good idea to make sure the fakestore could handle download12:04
pedronisgiven we are in the middle of introducing it12:04
pedronisChipaca: but yes, seems it should just work, afaict there's just a Action == "refresh" in all the relevant cocde12:06
Chipacapedronis: we could make it barf on unknown actions, or sth12:07
Chipacaseems fine as is though12:07
mvozyga: re 4996> does it need a gustavo review to ensure names (e.g. ifaceRepokey) are agreed upon?12:07
zygamvo: the name was changed since earlier reviews (AFAIR by pedronis) so .. not sure12:08
pedronisit was changed by mborzecki picking one of couple of suggestions12:09
pedronisI made I think12:09
* Chipaca ~> lunch12:10
mborzeckiright, i took over 4996 for a while and addressed all (most) comments12:11
zygamvo: can you look at https://github.com/snapcore/snapd/pull/441612:12
mupPR #4416: tests: performance measurements for basic snapd commands <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4416>12:12
zygayou reviewed it before12:12
zygaand it's the only PR from 2017:D12:12
pedronismvo: the choices were snap-interfaces or snap-profiles or snap-interface-profiles12:14
mvopedronis: its fine with me, just want to ensure gustavo is happy about the naming as well12:14
mvo(as he usually cares a lot about this)12:14
pedronismvo: then you need to wait, but it's been like this since forever12:15
* zyga -> lunch12:15
mvozyga: I looked at 4416 - it looks like your question ("how its supposed to be used") is not answered12:17
pedronismvo: it's going to be used when we reload profiles12:17
mvopedronis: yeah, sorry, I was replying to a different PR (the performance measure one)12:18
pedronisah12:18
mvopedronis: I will +1 the other one, one sec12:18
pedronisI saw the 4**6  I didn't read the middle number12:18
pedroniss12:18
pedronisit seems12:18
mvopedronis: :) no worries12:18
mvopedronis: just shows we still have too many open12:18
pedronisthat is true12:19
mvopedronis: looks like 5221 just needs this tiny tweak that pawel suggests and then it can go in as well(?)12:21
pedronismvo: yes, I will do the change today12:21
pedronisI'm also working on actually using this12:21
mvopedronis: nice12:22
mvomborzecki: how did you create test-snapd-appstreamid? via a snapcraft file?12:25
mvomborzecki: aha, nevermind, found it12:27
mborzeckimvo: yup ;) glad that you found it12:27
mvomborzecki: I make it arch: all, it breaks on non amd64 tests right now:)12:28
mborzeckiright, iirc i've only published amd64 snap12:28
mvomborzecki: yeah, no worries, I take care of it12:29
mborzeckimvo: ok, great12:29
mupPR snapd#5299 opened: tests: publish test-snapd-appstreamid for any architecture <Created by mvo5> <https://github.com/snapcore/snapd/pull/5299>12:35
pedronisChipaca: I did a pass over the download one12:36
mvopedronis: if you have a spare cycle I would love to get an opinion on 527612:39
pedronismvo: it looks good, but I think we want like for core,base,kernel,gadget to make sure  snapd  is done first (even if seed.yaml order isn't what we expect)12:44
pedronisI added a comment there too12:44
=== pstolowski|lunch is now known as pstolowski
mupPR snapd#5300 opened: tests: skip security-dev-input-event-denied on s390x <Created by mvo5> <https://github.com/snapcore/snapd/pull/5300>12:48
=== chihchun is now known as chihchun_afk
Chipacamborzecki: https://www.gumtree.com/p/bicycles/unisex-optima-cougar-mountain-bike./130219447713:35
Chipacamborzecki: https://www.gumtree.com/p/bicycles/gents-bike-ladies-bike/130215606113:35
mborzeckiChipaca: those look legit13:35
Chipacamborzecki: told you13:36
Chipacanot sure why but bikes have very low resale value in uk13:36
mborzeckiChipaca: hmm weird, it's like cars then, isn't it?13:38
popeyalso, gumtree -> stolen goods13:38
zygamy connection broke at around when cachio was talking so I just returned home then13:38
Chipacapopey: not always though13:39
popeySure.13:39
Chipacayou do need a sketchometer though13:39
Chipacasketchy-o-meter13:39
zygahmmm13:40
zygaguys, does anyone have a theory why there are all the test failures recently?13:40
zygaany specific change that triggered it13:40
Chipacazyga: I blame multicasts on broken packets13:41
* Chipaca puts away his BOFH excuse generator13:41
zygafor instance, what broke13:42
zyga+ systemctl is-active snapd.snap-repair.timer13:42
zygainactive13:42
zygamborzecki: can you please look at v13:43
zygahttps://github.com/snapcore/snapd/pull/529713:43
mupPR #5297: cmd/snap-update-ns: use RCall with SyscallsEqual <Created by zyga> <https://github.com/snapcore/snapd/pull/5297>13:43
Chipacamvo: #5294 confirmed wrt cla13:44
mupPR #5294: Update SELinux Policy <Created by kevinanderson1> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5294>13:45
jdstrandroadmr: hi! would you mind flipping on requash enforcement?13:46
roadmrjdstrand: sure! flipping now13:46
jdstrandroadmr: thanks!13:48
roadmrjdstrand: where "now" is now. I'ts just been flipped to ON13:48
mvoChipaca: confirmed that the CLA is singed or not signed?13:48
roadmrjdstrand: also we'll get r1089 rolled out today \o/13:49
jdstrandroadmr: thanks! :)13:49
jdstrandroadmr: unrelated to that, fyi, this seems stuck: https://dashboard.snapcraft.io/snaps/inoxision-webclient/revisions/115/13:52
jdstrandroadmr: as does https://dashboard.snapcraft.io/snaps/falkon/revisions/45/13:52
roadmrjdstrand: let me unwedge them13:53
jdstrandthanks13:53
roadmrjdstrand: interesting, inoxision-webclient says "Task 47c953d4-cb72-4618-9df6-5de67275e931 failed. ". I'll unwedge for now but will have a closer look at that task id later13:54
jdstrandyeah, thanks13:54
roadmrjdstrand: falkon is ready to roll, inoxision-webclient should be in a couple of mins (it's a large snap)13:54
mborzeckioff to pick up the kids13:55
mborzeckizyga: i'll take a look when i get back13:55
zygathanks13:55
zygajdstrand: hey :)13:55
zygamvo: signed13:56
zygajdstrand: you may find https://github.com/snapcore/snapd/pull/5297 interesting :)13:58
mupPR #5297: cmd/snap-update-ns: use RCall with SyscallsEqual <Created by zyga> <https://github.com/snapcore/snapd/pull/5297>13:58
mvozyga: cool, thanks13:58
jdstrandhey zyga :)14:01
=== chihchun_afk is now known as chihchun
mupPR snapd#4700 closed: interfaces: add the dvb interface <Created by ThyMYthOS> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4700>14:08
Chipacamvo: signed14:19
mupPR snapd#5300 closed: tests: skip security-dev-input-event-denied on s390x/arm64 <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5300>14:19
popeyWimpress: ping!14:28
Wimpresspopey: Pong?14:28
Chipacapedronis: do you remember offhand how to get the thing 'snap download' expects for auth?14:28
pedronisChipaca: in which sense?14:29
Chipacapedronis: UBUNTU_STORE_AUTH_DATA_FILENAME=~/.snap/auth.json doesn't work14:29
pedronisthat doesn't work, because we don't store the store macaroons anymore there14:30
pedronisonly the local one14:30
Chipacapedronis: we didn't have a 'snap grab-the-auth' command?14:30
pedronisChipaca: we don't yet14:30
pedronisChipaca: but snapcraft export-login works14:30
pedronisone sec14:30
Chipacaah there we go :-)14:30
Chipacahm, looks like my snapcraft macaroni has expired or sth14:32
pedronisChipaca: just give it  --acls  package_access14:32
Chipacahuh, export-login asks you to log in again?14:33
pedronisyes14:34
pedronisanyway as I said you need different acls than your usual login14:34
pedronissorry, I mean, than the usual snapcraft macaroon14:34
Chipacaright14:35
Chipacapedronis: wrt checking channel & revision, any reason not to let them through and have the store error?14:36
Chipacais there a path in which we set both?14:36
Chipacaif we let them through, we get: error: cannot find snap "http": cannot download snap "http": Both revision and channel are present in the request for this Snap. It should be one or the other exclusively.14:37
pedronisChipaca: you an do snap download --channel=foo --revision=#  no?14:37
Chipaca(and yes I'll drop the 'cannot find' thing)14:37
pedronisare you saying for this it's good enough?14:37
Chipacapedronis: I'm saying it's weird to check it at this level14:37
Chipacapedronis: better to check it in cmd_download14:37
pedronisah, ok14:37
Chipacaand at this level just let it through14:38
ChipacaIOW, I'd drop the one in snapstate14:38
Chipacarather than adding it to image14:38
pedronisplease don't drop the one in snapstate14:38
pedronisif you do, you need to add checks in a lot of places14:38
Chipacaaw! you're no fun anymore14:38
Chipaca:-D14:39
pedronisnot a lot, but enough that is hard to keep track14:39
Chipacapedronis: my 2nd favourite thing would be to move it into store itself14:39
Chipacaunless your point is that we'd have to have that code in fakestore as well?14:40
pedronis?14:40
Chipacapedronis: ok to move it from snapstate to store?14:40
pedronisfakestore is a server14:40
pedronisChipaca: yes, but remember this applies only to install and download14:40
Chipacayes. what's the name of the thing that mocks Store though.14:41
pedronisah, the other fake store14:41
pedronisbut yes14:41
pedronisChipaca: there's an argument to  do it both places tbh14:41
pedronisbelt and suspenders14:42
pedronisas they say14:42
mupPR snapd#5301 opened: snapstate,ifacestate: remove core-phase-2 handling <Created by mvo5> <https://github.com/snapcore/snapd/pull/5301>14:51
mvomborzecki: there is an nmap netcat?14:52
mvomborzecki: woah, I had no idea, fun14:53
mborzeckiSon_Goku: fedora netcat comes from nmap right? cc mvo15:04
Son_Gokuyes15:04
mborzeckiSon_Goku: ack, thx15:04
Son_Gokuredhat / fedora netcat is nmap's variant15:04
ondrakyrofa ping15:41
zygamvo: FYI, https://github.com/snapcore/snapd/pull/5301#pullrequestreview-12762372015:44
mupPR #5301: snapstate,ifacestate: remove core-phase-2 handling <Created by mvo5> <https://github.com/snapcore/snapd/pull/5301>15:44
zygapstolowski: I need a 2nd review on https://github.com/snapcore/snapd/pull/527815:47
mupPR #5278: cmd/snap-update-ns: add IsSnapdCreatedPrivateTmpfs and tests <Created by zyga> <https://github.com/snapcore/snapd/pull/5278>15:47
zygait's a PR with one new simple function15:48
kyrofaHey ondra, what's up?15:48
ondrakyrofa hey15:49
ondrakyrofa I've got problem with snapcraft on one machine15:49
mvozyga: thank you, just replied and updated the test. thanks for noticing. I can look into doing this on apparmor init as well if you feel this is cleaner15:49
ondrakyrofa it gets stacked in pull stage on 99%15:49
zygamvo: I had a look and I don't know how to do it easily15:50
zygamvo: as we'd need the revno for core15:50
zygamvo: in apparmor.Backend.Initialize15:50
zygamvo: let me look at your patch first15:50
kyrofaondra, every time? Have you run in debug mode?15:50
mvozyga: aha, right15:50
zygamvo: ah, debian 915:51
zygamvo: if this passes on Sid I'm happy then15:51
zygamvo: the rest can be re-factored separately15:51
ondrakyrofa every time and on different projects now15:51
zygamvo: any idea why it didn't fail before?15:51
ondrakyrofa I have wiped ~/.cache/snapcraft but some result15:52
kyrofaondra, no errors, though? Is this pulling build- or stage-packages?15:52
ondrakyrofa I think stage packages15:52
mvozyga: its a new test, I added it to check that things really work as we expect them to work15:52
ondrakyrofa https://paste.ubuntu.com/p/k3rfJT6RmG/15:53
ondrakyrofa and then it will sit here forever15:53
zygamvo: https://github.com/snapcore/snapd/pull/5301/commits/e6eb26c46718747e7e328dba1db24958f45cda7f#r19445497615:53
mupPR #5301: snapstate,ifacestate: remove core-phase-2 handling <Created by mvo5> <https://github.com/snapcore/snapd/pull/5301>15:53
zygaI see15:53
kyrofaondra, huh, that's just fetching indexes15:53
kyrofaEr, indices15:54
zygaplease make this modification and if it passes I'm +115:54
zygahaving no 2nd phase tasks would be a major simplification15:54
pstolowskizyga: looking15:54
mvozyga: ok, will do tomorrow (or feel free to just tweak yourself). I need to go and play hockey now :)15:54
* mvo waves15:54
zyga:)15:54
ondrakyrofa running apt-get update passes fine15:54
ondrakyrofa I do have multiple architectures on that machine though15:55
kyrofaondra, hmm, that could make things a little odd. Try running `snapcraft pull --enable-geoip` as well15:56
ondrakyrofa so it was working fine, can't really say when it broke, not apparent reason there15:56
ondrakyrofa loads of errors with that option15:56
ondrakyrofa and indeed errors are related to arm64 and armhf15:57
ondrakyrofa interestingly I have another machine with similar setup, same errors there, but build still works15:59
pstolowskizyga: 1 comment16:00
ondrakyrofa OK so it looks like snapcraft is trying to be smarter and it's not actually following /etc/apt/sources.list16:01
kyrofaondra, when you ctrl+c is while it's hung there, do you get a traceback?16:01
ondrakyrofa there I have correct setup for each arch16:01
ondrakyrofa https://paste.ubuntu.com/p/Mb9zBYFZY5/16:03
zygapstolowski: thank you, looking now16:05
zygapstolowski: replied now16:06
Lukehow does snapcraft decide what to include in the install/stage after the build phase? Is it just any file or change that is applied outside of the build dir?16:10
kyrofaondra, huh, it really is just the apt api sitting there16:11
kyrofaondra, I'm really not sure what's happening there16:13
kyrofaondra, what happens if you remove the multiarch stuff?16:13
ondrakyrofa then I won't be able to cross build :)16:14
kyrofaondra, haha, you can't right now anyway ;)16:14
mupPR snapd#5278 closed: cmd/snap-update-ns: add IsSnapdCreatedPrivateTmpfs and tests <Created by zyga> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/5278>16:14
ondrakyrofa lol16:14
kyrofaI'm just throwing darts at the wall, trying to figure out what's causing it to get caught up16:14
ondrakyrofa fair point :P16:15
zygathank you pawel!16:15
ondrakyrofa testing it now16:15
ondrakyrofa so I removed arches with dpkg, I left them in sources, which seems to be ignored somehow anyway16:15
ondraand that is same result, stacked at 99%16:16
kyrofasergiusens, any idea what would cause the apt API to do that ^ ?16:17
ondrakyrofa and 'snapcraft pull --enable-geoip' passes without error16:17
kyrofaondra, wait, that finishes the pull step?16:17
ondrakyrofa ha and now that continues to pulling other parts16:17
kyrofaInnnteresting16:17
kyrofaIt sounds like one of the repos being used it having issues, then16:18
ondrakyrofa so calling snapcraft will hang, calling ''snapcraft pull --enable-geoip' will complete pull stage16:20
kyrofaondra, yeah, by default it just uses archive.ubuntu.com, but with geoip will use your country prefix16:24
ondrakyrofa I'm running it in the cloud, so god knows what that actually is16:25
kyrofaOh, fun16:26
sergiusensondra: please post on the forum16:26
mupPR core#38 closed: Add another pi-config option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/38>16:30
mupPR core#83 closed: move most of the ubuntu-core config deb into the snap snap build <Created by mvo5> <https://github.com/snapcore/core/pull/83>16:30
mupPR core#38 opened: Add another pi-config option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/38>16:31
mupPR core#83 opened: move most of the ubuntu-core config deb into the snap snap build <Created by mvo5> <https://github.com/snapcore/core/pull/83>16:31
zygajdstrand: do you think we could fast-track https://github.com/snapcore/snapd/pull/529716:36
mupPR #5297: cmd/snap-update-ns: use RCall with SyscallsEqual <Created by zyga> <https://github.com/snapcore/snapd/pull/5297>16:36
zygaand land it?16:36
jdstrandzyga: I'll move it to the top of the list, but the others need to wait. I owe morphis a review16:37
zygaack16:38
zygathank you16:38
zygait's a large and very boring review16:38
zygaso I just want to land it to help me out and not conflict16:38
ondrasergiusens https://forum.snapcraft.io/t/snapcraft-getting-stacked-at-99-during-pull-stage/587616:56
* zyga explores a descriptor leak that makes no sense17:04
mupPR core-build#11 closed: remove cruft from the writable-paths <Created by mvo5> <https://github.com/snapcore/core-build/pull/11>17:14
mupPR core-build#22 closed: unit testing for sync_dir() <Created by mvo5> <https://github.com/snapcore/core-build/pull/22>17:14
mupPR core-build#26 closed: move most of the customization into the core snap build <Created by mvo5> <https://github.com/snapcore/core-build/pull/26>17:14
mupPR core-build#11 opened: remove cruft from the writable-paths <Created by mvo5> <https://github.com/snapcore/core-build/pull/11>17:16
mupPR core-build#22 opened: unit testing for sync_dir() <Created by mvo5> <https://github.com/snapcore/core-build/pull/22>17:16
mupPR core-build#26 opened: move most of the customization into the core snap build <Created by mvo5> <https://github.com/snapcore/core-build/pull/26>17:16
mupPR core#38 closed: Add another pi-config option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/38>17:22
mupPR core#83 closed: move most of the ubuntu-core config deb into the snap snap build <Created by mvo5> <https://github.com/snapcore/core/pull/83>17:22
mupPR core#38 opened: Add another pi-config option <Created by sergey-borovkov> <https://github.com/snapcore/core/pull/38>17:23
mupPR core#83 opened: move most of the ubuntu-core config deb into the snap snap build <Created by mvo5> <https://github.com/snapcore/core/pull/83>17:23
* zyga found the bug but first walk17:25
kyrofazyga, if I have an `environment:` keyword in the root of my YAML, that applies to all apps and hooks, right?17:50
zygakyrofa: let me check18:05
zygakyrofa: I'd say yes18:05
zygabut I'll look18:05
zygakyrofa: ha18:07
zygaso it looks buggy18:07
zygakyrofa: ah, sorry18:08
zygait looks good18:08
zygaso yes,18:08
kyrofazyga, alright, something odd is happening on my hook... still investigating18:08
zygawe take the global (snap-global) environment18:08
kyrofaThanks for the quick check!18:08
zygathen take the per app environment18:08
zygaoh, hook you say?18:08
zygakyrofa: curious18:09
zygakyrofa: hooks don't take environment at all18:09
zygakyrofa: yes, hooks just take the snap-level environment keys18:10
zygaand with that I'm off for another round of bicycling18:10
roadmryeay zyga18:13
* cachio afk19:02
mupPR snapd#5302 opened: snap: don't include newline in hook environment <Created by kyrofa> <https://github.com/snapcore/snapd/pull/5302>20:22
kyrofazyga, that's ^ the problem I was hitting20:23
zygakyrofa: I saw that just now. I will review it first thing tomorrow21:31
kyrofaThanks zyga21:38
zygaThank you x10 for the patch!21:39
wililupyquestion: what is '/var/lib/snapd/hostfs' used for?22:50
zygawililupy: hey22:53
wililupyhi zyga!22:54
zygawililupy: it is used at runtime to host the / of the host system22:54
zygatechnically when a snap application runs it constructs some temporary directories and then makes moves all of the root filesystem (/) to /var/lib/snapd/hostfs, replacing the / with something else22:54
zygathen hostfs is used as a "view" to the rest of the filesystem22:54
wililupyzyga: thats what I thought. I have a weird apparmor error trying to confine my snap and the path.22:56
wililupyI created an interface with the rule: /var/lib/snapd/hostfs/{,*} rw,22:57
zygawhat is the denial you are getting, exactly?22:57
wililupyJun 11 22:52:36 dpdk-test kernel: [ 1408.757203] audit: type=1400 audit(1528757556.659:90): apparmor="DENIED" operation="open" profile="snap.dpdk-wililupy.testpmd" name="/var/lib/snapd/hostfs/mnt/huge/" pid=2546 comm="testpmd" requested_mask="r" denied_mask="r" fsuid=0 ouid=022:58
zygaRight22:58
zygaI think what we want instead is to mirror /mnt from the host22:58
zygaand add it to removable media or a new interface22:59
zygathere's a thread about that on the forum22:59
wililupyand mnt/huge is not there22:59
zygaI will make a patch for this tomorrow22:59
zyga(it's 1AM for me)22:59
wililupyzyga: no problem. Its for a hugepages interface I am working on (https://github.com/wililupy/snapd/blob/master/interfaces/builtin/hugepages_control.go)23:00
zygaI can quickly say that https://github.com/wililupy/snapd/blob/master/interfaces/builtin/hugepages_control.go#L35 is probably not going to fly23:01
zygaas this gives full write access to the host23:01
zygawhy /mnt/huge? isn't there a standardised place for huge pages elsewhere?23:01
wililupyzyga: I'm following their testing documentation and that is the path they use in their example.23:02
zygacan you refer to that?23:02
wililupyzyga: http://dpdk.org/doc/guides/linux_gsg/sys_reqs.html#running-dpdk-applications23:03
zygamount | grep huge23:04
zygahugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)23:04
zygaunless dpkd requires that specific path23:05
zygawililupy: could you open a forum thread about this effort? it will be easier to sync this way than on IRC23:06
wililupySure thing. Get some sleep.23:06
mupPR snapd#5297 closed: cmd/snap-update-ns: use RCall with SyscallsEqual <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5297>23:56

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