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

mupPR snapcraft#1399 closed: ruby plugin: new plugin <Created by jamesbeedy> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1399>02:53
mupPR snapcraft#1544 opened: plugins: add the ruby plugin <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1544>02:53
zyga-ubuntugood morning05:35
zyga-ubuntumvo: hello07:03
mupPR snapd#3888 closed: osutil: adjust StreamCommand tests for golang 1.9 <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3888>07:13
mvohey zyga-ubuntu - good morning07:15
zyga-ubuntumvo: hey, I managed to solve my zesty problem. I added some details to https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/171603407:17
mupBug #1716034: Network manager stops managing Ethernet links after upgrade <network-manager (Ubuntu):Confirmed> <https://launchpad.net/bugs/1716034>07:17
zyga-ubuntumvo: I'm curious if you have the file: /etc/NetworkManager/conf.d/10-globally-managed-devices.conf07:17
mvozyga-ubuntu: not on my laptop07:18
mvozyga-ubuntu: but on my workstation07:18
mupPR snapd#3895 opened: osutil: adjust StreamCommand tests for golang 1.9 (2.28) <Created by mvo5> <https://github.com/snapcore/snapd/pull/3895>07:19
zyga-ubuntumvo: interesting, I bet you have non-empty netplan config somewhere07:23
mvozyga-ubuntu: possible, but that file is empty on my workstation07:27
mvozyga-ubuntu: a second look at 3865 would be great, iirc this was something you suggested :)07:32
* zyga-ubuntu looks07:34
mupPR snapd#3859 closed: packaging/fedora: Ensure vendor/ is empty for builds and fix spec to build current master <Created by Conan-Kudo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3859>07:35
abeatohm, has anybody seen this:07:36
abeato- Setup snap "se-test" (unset) security profiles (cannot setup seccomp for snap "se-test": error: cannot parse line: cannot parse token "u:root" (line "chown - u:root g:root"))07:36
abeato?07:36
mupPR snapd#3896 opened: packaging/fedora: Ensure vendor/ is empty for builds and fix spec to build current master (2.28) <Created by mvo5> <https://github.com/snapcore/snapd/pull/3896>07:37
mvoabeato: can you tell me more about this please?07:38
mvoabeato: the output of `snap version` and `snap list --all` would be great (pastebin)07:38
abeatomvo, was using latest from master07:39
mvoabeato: this looks like snap-seccomp and snapd got out of sync somehow but I wonder how that is possible nowdays07:39
abeatomvo, quite weird output: http://paste.ubuntu.com/25513197/07:39
mvoabeato: and `snap version` ?07:41
mvoabeato: ohhh07:41
abeatomaster07:41
mvoabeato: are you running snapd from master in your local tree?07:41
abeatoyeah07:42
mvoabeato: aha, I think that is the problem, you will need to build snapcore/snapd/cmd/snap-seccomp and copy that to /usr/lib/snapd/07:42
mvoabeato: iirc there is a "make hack" command07:42
abeatomvo, oh, I see, I have to update that07:42
abeatomvo, ok, will try, thanks07:43
mvoabeato: yeah, easiest might be: "cd cmd; make hack"07:43
mvoabeato: there is no "make unhack" but "apt install --reinstall snapd" will take care of this07:43
abeatocore system, but no worries, will just backup old seccomp07:44
mvoabeato: ok, good luck and let me know if I can help in any other way07:45
abeatosure, thanks!07:45
zyga-ubuntumvo: done07:53
mupPR snapd#3865 closed: many: provide systemd.MockSystemctl() helper <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3865>07:57
mvozyga-ubuntu: \o/ thank you07:58
mvozyga-ubuntu: 3892 is an easy win now that 3865 is merged07:59
zyga-ubuntuok08:00
zyga-ubuntumvo: done08:01
mvozyga-ubuntu: ta!08:01
zyga-ubuntumvo: I was thinking if any tests would need a systemd.Mock() that would call the two and install NOP functions08:02
=== JoshStrobl is now known as JoshStrobl|zzz
zyga-ubuntumvo: that was my initial idea but now I see that the fine-grained mockers are useful as well08:02
zyga-ubuntumvo: thank you for doing this work!08:02
* zyga-ubuntu -> school again08:26
zyga-ubuntukissiel: hey :)08:26
kissielzyga-ubuntu: yo08:26
mupPR snapd#3897 opened: systemd: do not run auto-import and repair services on classic <Created by mvo5> <https://github.com/snapcore/snapd/pull/3897>08:30
Chipacabelated good morning all09:11
Chipacai was just reading the news and wanted to congratulate us on getting snapd running on android09:11
Chipacaeven though it's strange that autoimport on android only works on vfat and ext409:12
Chipaca/end sarcastic rant about the news getting the wrong end of circular sticks09:12
zyga-ubuntuChipaca: hello09:14
zyga-ubuntuChipaca: oh? where did you get that?09:14
Chipacazyga-ubuntu: http://news.softpedia.com/news/canonical-aims-to-bring-its-ubuntu-snappy-technologies-to-android-devices-517677.shtml09:15
Chipacaand linkedin was the one that pointed me at that, with "your contact Gustavo Niemeyer is in the news" or sth like that09:16
pedronisbootloaders are hard09:16
zyga-ubuntu"The seccomp argument filtering was re-enabled in this release of Snapd, which renames the "snap change" command to "snap tasks," adds new "search" alias for the "snap find" command, adds support for displaying snap types under..."09:25
zyga-ubuntusome weird sentence09:25
* mwhudson o/09:28
zyga-ubuntumwhudson: hey09:28
mupPR snapd#3894 closed: many: fix TestSetConfNumber missing an Unlock and other fragility improvements <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3894>09:30
zyga-ubuntu"Perhaps Snap has problems on other partition types: RTFS, EXT3, NTFS, ... ? This shows some of the difficulties with other operating systems: IOS, Windows, etc. The "competitors" to Snap should be facing similar problems: Pacman, Java, etc."09:33
* zyga-ubuntu stops reading comments09:33
itsfemme[m]Can snapd update itself?09:42
ogra_itsfemme[m], it does all the time09:46
ogra_(when installing your first snap, snapd also installs the core snap ... the core snap ships snapd inside ... if the snapd in the core snap is newer than the ony installed from your distro package snapd will re-exec itself to the ne from core)09:48
ogra_s/ony/one/09:48
ackkhi, running snapd build from master I get errors like this: 2017/09/11 09:45:57.034353 helpers.go:152: cannot regenerate seccomp profile for snap "hello-world": error: cannot parse line: cannot parse token "u:root" (line "chown - u:root g:root")09:50
ackkthis happens both at snapd start and when I try to install a local snap (which makes the install fail)09:50
pedronisChipaca: #3884 is a cleanup you maybe can look at that when you are not otherwise busy09:50
mupPR #3884: store: simplify api url config <Created by atomatt> <https://github.com/snapcore/snapd/pull/3884>09:50
ogra_ackk, are you running from maste because you added a local patch ?09:51
ackkogra_, yes09:51
ackkogra_, fwiw http://paste.ubuntu.com/25513563/ is the error I get at install09:51
ogra_ah, then i'll leave that to zyga-ubuntu :) (if you just wanted to run maste, refreshing your core snap to edge would be sufficient)09:51
ackkogra_, fwiw I'm quite confident my change has nothing to do with it09:52
mwhudsonanyone have any guesses what is happening here? https://launchpadlibrarian.net/336570963/buildlog_snap_ubuntu_xenial_amd64_subiquity_BUILDING.txt.gz09:53
mwhudsonit passes in a local cleanbuild09:53
ackkzyga-ubuntu, hi, do you have any idea about the issue above?09:53
pedronismvo: core transition tests are again failing sometimes09:54
zyga-ubuntuackk: perhaps, where are you running this?09:54
pedronismvo: https://travis-ci.org/snapcore/snapd/builds/274077647?utm_source=github_status&utm_medium=notification09:54
zyga-ubuntu(snap version is best output)09:54
Chipacapedronis: nice, thank you09:54
ogra_mwhudson, tried adding lsb-release to your build-deps (just for laughs) ?09:55
mwhudsonogra_: it's already there, i think it's that that's messing things up09:55
mwhudsonsomehow09:55
ogra_hmm09:55
ackkzyga-ubuntu, http://paste.ubuntu.com/25513578/ in a xenial LXD09:55
mwhudsonogra_: that's what i said :)09:55
ogra_heh09:55
zyga-ubuntuackk: snapd unknown?09:56
ackkzyga-ubuntu, well as said it's built from master09:56
zyga-ubuntuwhich architecture is that?09:56
zyga-ubuntuackk: aha09:56
ackkzyga-ubuntu, amd6409:56
zyga-ubuntuackk: I cannot context swap too much today, can you wait 30 minutes please?09:56
ackkzyga-ubuntu, sure09:56
mwhudsonlet's see if dropping lsb-release from deps helps...09:57
mwhudsonoh wait, no lsb-release is not in build-deps09:58
ogra_mwhudson, note that we explicitlly remove lsb_release from core, so if this is supposed to run on core eventually you rather want to read /etc/os-release instead09:58
mwhudsonogra_: this is subiquity so until/unless curtin can install core...09:59
mupPR snapd#3898 opened: Add bcm type detection <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/3898>10:01
mvopedronis: looking10:03
mvopedronis: some of the errors might be because the store had a HW issue recently10:05
pedronismvo: yes, a couple are 504  from the store, but wondering about the transition one10:06
pedronisthere's not a log there though10:06
pedronis:/10:06
mwhudsonogra_: ah, i had lsb-release in stage-packages but not build-packages, fixing that fixed the build10:07
mvopedronis: hm, not this one I assume https://travis-ci.org/snapcore/snapd/builds/274077647#L6046 (that is a 504)10:07
ogra_:)10:07
mvopedronis: or am I looking at the wrong error log?10:07
pedronisI was confused, the log is separate now?10:09
mvopedronis: not sure, I'm confused now too :) sorry, I thought I had clicked on the failure log that you mentioned earlier, but when I click that now I just see "Hang tight, the log cannot be shown until the build has started."10:13
mvopedronis: fwiw, master is also failing with some 504s10:13
pedronismvo: I squash merged #3894 btw, you marked it for 2.28 so I suppose you want to make a cherry-pick ?10:15
mupPR #3894: many: fix TestSetConfNumber missing an Unlock and other fragility improvements <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3894>10:15
mvopedronis: yes, thank you!10:16
pedronismvo: #3777 needs a master merge?10:16
mupPR #3777: snap-repair: implement basic `snap-repair list` (with --verbose) <Created by mvo5> <https://github.com/snapcore/snapd/pull/3777>10:16
mvopedronis: yes, let me do that10:17
mupPR snapd#3899 opened: many: fix TestSetConfNumber missing an Unlock and other fragility improvements (2.28) <Created by mvo5> <https://github.com/snapcore/snapd/pull/3899>10:23
pedronismvo: the store downloads have still some problems, so tests will be a bit more bumpy for a while more10:25
mvopedronis: yeah, thats ok. thanks for the heads up10:25
mvopedronis: I had to open 3899, the cherry pick did not apply cleanly10:26
pedronisok, will look10:26
mvopedronis: should be super trivial, but when it does not apply cleanly I cherry-pick, resolve and push as a new branch to get the benefit of the spread run10:27
pedronisah, the settle stuff10:27
mwhudsonuh why are store uploads not working10:30
mwhudsoneg https://code.launchpad.net/~canonical-foundations/+snap/subiquity/+build/7941810:30
mvomwhudson: it could be a side effect of a HW failure that happen recently in the datacenter10:30
ogra_well, you have an oops10:30
ogra_give it to wgrant or cjwatson :)10:31
* wgrant looks10:31
wgrantVery probable that it's related to the hardware failure10:31
wgrantmwhudson: Yeah, that'll be the hardware failure. A retry should work.10:31
wgrantWe have people in the DC now bringing up replacement hardware.10:31
mwhudsonwgrant: ok10:32
wgrantI hadn't realised that was actually failing uploads, ugh.10:32
wgrantMust be due to Swift communication.10:32
mwhudsonah yes retry worked10:32
mwhudsonif i have to retry the upload i'll have to do the release-to-channel bit myself, right?10:32
wgrantSorry about that. It's the PS4.5 IR from 2017-09-09 FYI10:33
wgrantHm, shouldn't have to.10:33
wgrantI'd expect it to still autorelease.10:33
mwhudsonah ok10:33
* zyga-ubuntu waits for spread run to finish10:33
zyga-ubuntuhow do I publish this now...10:33
mwhudsonah yes auto-release happened10:36
ackkzyga-ubuntu, fwiw I also get this error at startup: "2017/09/11 10:40:29.655727 helpers.go:99: snap "lxd" has bad plugs or slots: lxd (lxd slots are reserved for the core snap)"10:42
zyga-ubuntuackk: did you self build that snap as well?10:44
ackkzyga-ubuntu, yes10:44
zyga-ubuntuackk: then you probably lack the relevant assertion10:44
zyga-ubuntuackk: it's a bit hard to work with10:44
ackkzyga-ubuntu, I only added a few options to the snapcraft.yaml, didn't change anything else10:45
zyga-ubuntuackk: right but you cannot sign it yourself10:46
zyga-ubuntuackk: and the assertion won't be in place10:46
zyga-ubuntuackk: so you won't get the right interface10:46
zyga-ubuntuackk: I honestly don't know what to do about that10:46
mwhudsonstore uploads still seem a bit wonky, one of my retries failed10:47
ackkzyga-ubuntu, so http://paste.ubuntu.com/25513886/ is release vs my build10:50
zyga-ubuntuthat u:{username} is a separate thing10:50
zyga-ubuntuI'll look into that soon10:50
zyga-ubuntuackk: 2017/09/11 10:47:28.525309 helpers.go:152: cannot regenerate seccomp profile for snap "hello-world": error: cannot parse line: cannot parse token "u:root" (line "chown - u:root g:root") -- this looks like the wrong snap-confine/snap-seccomp pair10:51
ackkzyga-ubuntu, ah, you mean because it's using those from the release rather than the locally built ones?10:52
zyga-ubuntuackk: yes10:53
ackkzyga-ubuntu, I don't seem to  have a snap-confine binary10:53
ackkzyga-ubuntu, will snapd look up snap-seccomp by $PATH ?10:54
wgrantmwhudson: We're still bringing up the replacement hardware.10:55
zyga-ubuntuackk: no10:56
zyga-ubuntuackk: it knows exactly where to look10:56
ackkoh10:56
zyga-ubuntuackk: it also may choose to re-execute from core snap10:56
zyga-ubuntuackk: if you don't know better yet please just rebuild snapd and install the whole package10:57
ackkI see10:57
ackkthanks10:57
zyga-ubuntuackk: you may also need to disable reexec by setting SNAP_REEXEC=010:57
zyga-ubuntuackk: or use a wonky high version number10:58
ackkzyga-ubuntu, disable it where?10:58
zyga-ubuntuackk: in the environment10:59
zyga-ubuntuackk: if you want to do globally (so that it affects snapd try /etc/environment)10:59
ackkok thanks10:59
mupPR snapd#3892 closed: systemd: add systemd.MockJournalctl() <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3892>11:03
mupPR snapd#3895 closed: osutil: adjust StreamCommand tests for golang 1.9 (2.28) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3895>11:03
mupPR snapd#3899 closed: many: fix TestSetConfNumber missing an Unlock and other fragility improvements (2.28) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3899>11:06
mupPR snapd#3896 closed: packaging/fedora: Ensure vendor/ is empty for builds and fix spec to build current master (2.28) <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3896>11:07
* zyga-ubuntu -> lunch while https://github.com/snapcore/snapd/pull/3621 gets tested11:12
mupPR #3621: cmd/snap-{confine,update-ns}: apply mount profiles using snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/3621>11:12
zyga-ubuntujdstrand: I think that is ready for another review11:13
zyga-ubuntujdstrand: alternatively I can split and propose separate parts11:13
mwhudsonwgrant: ah so it was more "a retry will work eventually" than "a retry will work now"11:21
wgrantmwhudson: Oh, yes, sorry.11:22
ackkzyga-ubuntu, fwiw I get the error about the lxd snap even with a rebuilt package, but the u:/g: errors went away11:23
zyga-ubuntuackk: right, as I said you won't be able to rebuild lxd11:24
zyga-ubuntuackk: as lxd has superpowers the assertion is mandatory to get an interface connected11:24
ackkI see11:24
zyga-ubuntuackk: or to even have a plug/slot present11:24
zyga-ubuntuyou must round trip through the store11:24
ackkzyga-ubuntu, is that error fatal for the snap, or just an issue for the snap actually working?11:25
ackkI guess i could build a simpler snap for my tests11:25
zyga-ubuntuackk: lxd is a bit special so if you can test with another snap, please11:25
ackkzyga-ubuntu, ok, thanks11:25
pedroniszyga-ubuntu: you can rebuild lxd but then you need to install with --dangerous, and connect everything manually11:28
sborovkovogra_: yay https://drive.google.com/file/d/0B5xwucQA3JSJOTEzdkwySy04TUU/view?usp=sharing11:28
ogra_WOHOOO!11:28
pedroniszyga-ubuntu: that's a for  develpoment approach though11:28
ogra_sborovkov, any changes that i should merge ?11:28
zyga-ubuntupedronis: can you? I think the base declaration will kill the slots11:28
sborovkovogra_: not sure if I did it clean... and there is extra stuff I commented out that does not matter... https://hastebin.com/werawoyiji.diff (i.e. define changes).... I commented out drawing text since we don't do that. And used the path for drawing full screen images11:30
pedroniszyga-ubuntu: no because --dangerous11:30
Chipacai'm off for a walk (need to take something to the boys' school) and lunch; bbiab11:31
zyga-ubuntuo/11:32
pedroniszyga-ubuntu: with --dangerous we ignore all decls, that's why it's --dangerous, otoh you can develop your snap11:32
ogra_sborovkov, i'll try with your changed patch later today .... if it doesnt break the default setup we use i think it is fine to merge ... (not sure about the psplash_fb_draw_image though)11:33
pedroniszyga-ubuntu: look around ./overlord/ifacestate/ifacestate.go:19611:34
* zyga-ubuntu nods11:34
=== LarreaMikel1 is now known as LarreaMikel
* zyga-ubuntu is worried about his son and goes to school 11:39
zyga-ubuntuah wait11:40
zyga-ubuntuI was looking at the calendar wrong, it's not time yet11:40
ogra_you have a claendar entry "worry about son" ?11:43
=== LarreaMikel1 is now known as LarreaMikel
ogra_sborovkov, hmm, do you know what i think ? ... my splash uses a white bg .... i think one of your white bars is simply the default bg color for the text, if we set that to your actual bg color this might work11:49
ogra_(whitour commenting out the function)11:49
ogra_*without11:49
ogra_(you might eventually want to use text to show a message or so ... so lets see that we dont kill that feature completely)11:50
sborovkovogra_: you can just undefine #define PSPLASH_STARTUP_MSG "" I think if there is no message then it won't be called11:51
sborovkovdraw_text11:51
sborovkovand yeah same bg color should solve the issue11:52
ogra_ah, right11:52
sborovkovbecause it tries to draw it even if there is no text now11:52
ogra_the other "bar" might be the bg for the progressbar11:52
sborovkovyup11:52
ogra_right, but if you take away that UI element completely the psplash-write command will likely not work11:52
sborovkovnot sure if this is going to center stuff (fb->width  - CORE_IMG_WIDTH)/2, - if we start at lower resoluttion x and y will be negative11:53
ogra_so we should definitely keep the message part but make it default to the bg color11:53
ogra_well, not if your image isnt smaller than the most minimal resolution you use11:54
sborovkovyeah but for rpi3 1080p is default one, everything else is edge case when something is not detected I guess11:55
sborovkovogra_: who is maintaining cm3 gadget snap btw? it's now quite far behind11:55
ogra_sborovkov, ondra and i ... since i dont have the HW i'm waiting for ondra to test the "build  from source" PR https://github.com/snapcore/cm3-gadget/pull/111:56
mupPR cm3-gadget#1: build uboot from source, pull blobs from upstream, use dtbs from archive <Created by ogra1> <https://github.com/snapcore/cm3-gadget/pull/1>11:56
ogra_once thats there i'll also add the splash PR for it11:56
ogra_it is on our both TODOs ... no worries ;)11:57
sborovkovalright :-)11:57
Son_Gokumvo, zyga-ubuntu, well, at least right now 2.28 builds on Fedora12:29
Son_Goku:)12:29
Son_Gokuso once you've made the first RC, it can be tested12:29
=== ShalokShalom_ is now known as ShalokShalom
mvoSon_Goku: \o/12:36
mvoSon_Goku: thats great news12:36
Son_Gokuand now, when people change the dependencies, Travis should fail when they don't do the right thing12:36
mvoexcellent!12:37
* mvo hugs Son_Goku12:37
Son_GokuI'm still furious that this was a thing for the longest time, though :(12:37
mvoSon_Goku: :( sorry12:38
Son_Gokubut at least it can't happen anymore unless someone deliberately modifies the spec to prevent vendor leaking in12:38
Son_Gokuit's a pain to read Travis logs though12:40
abeatomvo, is there any way one can download account/account-key assertions for a user from the store?12:52
ogra_abeato, did you check "snap known --help" `12:54
ogra_?12:54
mvoabeato: snap known --remote account should work, you will need the account-id12:54
mvoabeato: e.g. "snap known --remote account account-id=canonical12:55
mvo"12:55
Son_Gokuzyga-suse, zyga-ubuntu, you need to convert the os-release blacklist into a whitelist12:55
zyga-ubuntuSon_Goku: I saw your post, replied on the forum, I don't know how one is better than the other12:56
abeatomvo, ogra_ yayh, that works, thanks :)12:56
zyga-ubuntuSon_Goku: I'd like to remove the list altogether12:57
zyga-ubuntuSon_Goku: it's just that we cannot detect everything yet12:57
abeatoI did not know about that --remote thing, nice12:57
Son_Gokuzyga-ubuntu, yes, but you're never going to be able to12:57
zyga-ubuntuSon_Goku: but white vs black list is not any different12:57
ogra_mvo, abeato note though that only canonical has a cleatext alias fo account-id it seems ... if i want to pull my own assertioon i cant use account-id=ogra12:57
ogra_it needs the hex string from https://dashboard.snapcraft.io/dev/account/12:57
Son_Gokuzyga-ubuntu: the underlying assumption is what's broken12:58
Son_Gokua blacklist implies you know it works until it doesn't12:58
Son_Gokuwhen we both know the opposite is the case12:58
abeatoyeah, it would be great to have some sort of alias ;)12:58
zyga-suseSon_Goku: let's chat on the fourm12:58
zyga-suseSon_Goku: two conversations are harder to keep track12:59
zyga-suseof12:59
ogra_abeato, yeah, simply the snap namespace would do i guess (afaik thats unique too)12:59
jdstrandnessita_: hi! if I go to https://dashboard.snapcraft.io/dev/snaps/8338/rev/3/, click 'Run automated review again' I'm getting a 50413:22
jdstrandnessita_: tried several times13:22
sborovkovogra_, why can't splash be used for showing different splash on the first boot btw? Can't we just bundle 2 images. And check if some file exists to make sure it's first boot (or however that's possible to check). Does not look very complex to implement13:23
nessita_jdstrand, checking!13:23
nessita_wgrant, can the above (504 on firing the review checks again) be related to the network issues from PS45?13:25
nessita_wgrant, as in our celery workers are not reachable13:25
wgrantnessita_: Hm, does that hit CUD during the request?13:25
ogra_sborovkov, well ... patches accepted ;)13:25
wgrantnessita_: CUD is behind the bad router.13:26
wgrantAnd packet loss is getting fairly bad13:26
ogra_sborovkov, i think it would need quite some changes though since psplash actually compiles the image into the binary13:26
ogra_(it cnverts it to a header and then includes the image data)13:26
ogra_this is the reason why it is so small13:27
sborovkovogra_, yeah so the change would be to compile 2 images. Or, we can show text actually13:27
sborovkovDo you know how I can check if it's first boot from inside psplash?13:27
ogra_well, the splash gets loaded and started fom the initrd ...13:28
ogra_so this would be a bit tricky13:28
ogra_(since we load it before anything of the rootfs is mounted ...)13:29
sborovkovYeah that's the main question. Because at least drawing text that it's first boot and configuration is in progress would be trivial and require almost no changes then13:29
ogra_sborovkov, well, as i said before you should use psplash-write to draw text ...13:29
nessita_wgrant, yeah, it has to redownload the snap13:30
ogra_sborovkov, but that would still need changes to snapd to use psplash-write for printing some "setting up the system..." message or some such ...13:31
nessita_jdstrand, wgrant so after a few retries, the action finally worked. There are some issues with hardware going on.13:31
sborovkovogra_ you mean function inside psplash?13:31
ogra_no, i mean the psplash-write tool it builds13:32
sborovkovAh ok13:32
sborovkovThe main question is still how to figure out how to know if it's first boot then13:32
ogra_it wuld have to live in the core snap ...13:32
ogra_the only thing actually knowing reliably that it is first boot is snapd13:33
ogra_you can indeed have some script that toouches a flag file or some such ... but if you i.e. pwer off the board while snapd's firstbooot setup runs you might have it re-run so this isnt super reliable13:34
ogra_sborovkov, what you can do is to change the psplash snapcraft.yaml part, include psplash-write alongside psplash itself, create an initrd/scripts/init-bottom script that looks on the rootfs and prints a message if a certain condition isnt fulfilled or so13:44
ogra_(the build actually creates psplash-write anyway, we just dont install it in the initrd case)13:45
ogra_if you use an initr-bottom script, the writable partition is mounted under /root so you can have your script do some checks13:46
ogra_(the good thing with that setup is that you can actually do everything from the gadget without needing changes in core or any additional snap)13:47
jdstrandmvo: hi! did you have time to look at https://github.com/snapcore/snapd/pull/3850#pullrequestreview-60647180?13:56
mupPR #3850: tests: check for negative syscalls in runBpf() and skip those tests <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3850>13:56
mvojdstrand: yes13:56
mvojdstrand: I just updated the bug and work on a fix13:56
jdstrandoh nice13:56
mvojdstrand: its a regression in libseccomp213:56
mvojdstrand: LP 157606613:56
jdstrand\o/13:57
jdstrandmvo: thanks for trackcing that down :)13:57
mvojdstrand: I hope to be able to provide something useful in ~1-2h or so (most of the time is testing)13:57
mvojdstrand: your welcome! next I plan to build secondary-arch binaries to test that with the build-in bpf machine as well, but first things first. I am having fun :)13:57
jdstrand:)13:58
ogra_sborovkov, quickly hacked together ... http://paste.ubuntu.com/25514581/ something like this14:00
sborovkovogra_ cool I will try it14:00
ogra_well, you still need to work out the check14:01
ogra_this will simply show the message on every boot14:01
sborovkovWhat about your example?14:01
ogra_see line 20-23 in that pastebin14:01
sborovkovYeah that's what I meant can't I just check for that?14:03
ogra_for what ?14:03
ogra_i'm not sure if we ship oor not ship the state.jsn on a virgin image ... you need to find a condition thats unique only on first boot14:04
sborovkovOk understood14:04
ogra_but for the rest this script should work to display a message14:05
ogra_(well, perhaps not in your psplash because you removed the print text stuff  ... )14:05
ogra_(might need to add it back)14:06
zyga-ubuntuand I'm back14:16
zyga-ubuntupaperwork done, she can now *return* by herself too14:16
Chipacazyga-ubuntu: shocking14:19
zyga-ubuntuChipaca: those async protocols14:20
zyga-ubuntuwalk yes, but return no14:20
zyga-ubuntu;-)14:20
mupPR snapd#3900 opened: snap-seccomp: manually resolve socket() call in tests <Created by mvo5> <https://github.com/snapcore/snapd/pull/3900>14:21
zyga-ubuntumvo: I'm seeing failures that look like14:55
zyga-ubuntu+ systemd-detect-virt -c14:55
zyga-ubuntu/bin/bash: line 58: systemd-detect-virt: command not found14:55
ackkzyga-ubuntu, is there a workaround for https://bugs.launchpad.net/snapd/+bug/1712930 to get the snap removed? sometimes reboot + killing squashfuse seems to work, other times the snap is left disabled,broken for a long time, then it disappears14:55
mupBug #1712930: snap-confine: mounts happen in the wrong order <snapd:In Progress by zyga> <https://launchpad.net/bugs/1712930>14:55
zyga-ubuntumvo: have you seen this? is this fixed in master?14:55
zyga-ubuntuackk: not yet, it's on the top of my plate though14:55
mvozyga-ubuntu: no to both, slightly strange systemd-detect-virt should be available, where exactlxy do you see this?14:55
ackkzyga-ubuntu, cool, thanks14:56
zyga-ubuntumvo: on 14.04 and 16.0414:56
zyga-ubuntuah, sorry on 14.04 only14:56
zyga-ubuntuhttps://s3.amazonaws.com/archive.travis-ci.org/jobs/274125373/log.txt?X-Amz-Expires=30&X-Amz-Date=20170911T145438Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJRYRXRSVGNKPKO5A/20170911/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=2a17a16eaf9f3fae7891d7842d7da85772bdbc14821fefb8643a9a2a3d6217c614:56
mvozyga-ubuntu: aha, that makes (some) sense, but super strange that it starts to failing now. in what pr is that?14:59
zyga-ubuntumvo: the long standing one about snap-update-ns14:59
zyga-ubuntuhttps://github.com/snapcore/snapd/pull/362114:59
mupPR #3621: cmd/snap-{confine,update-ns}: apply mount profiles using snap-update-ns <Created by zyga> <https://github.com/snapcore/snapd/pull/3621>14:59
zyga-ubuntuthe comments that landed on top are just small changes that have no chance to cause this14:59
zyga-ubuntuhmm, store still wonky15:00
zyga-ubuntuerror: received an unexpected http response code (504) when trying to download https://068ed04f23.site.internapcdn.net/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_1797.snap?t=2017-09-11T16:00:00Z&h=27f39e227e74faf690363d527e7cbbf0d92bb7fd15:00
sborovkovogra_ hmm if I use psplash-write then I'd have to draw line for text every time I guess :-( We gave gradient on splash screen so that's not very nice, hmm.15:04
noise][zyga-ubuntu: downloads should be stabilizing now15:04
mvozyga-ubuntu: I have a look, still puzzling15:05
zyga-ubuntunoise][: thank you15:09
zyga-ubuntumvo: no worries, I'll inveatigate too, I just wanted to know if this is a known issue15:10
mupPR snapd#3901 opened: snap-seccomp: run secondary-arch tests via gcc-multilib <Created by mvo5> <https://github.com/snapcore/snapd/pull/3901>15:11
ogra_sborovkov, hmm, prehaps move it to the very top or bottom ?15:19
sborovkovStill ugly though15:23
ogra_yeah :/15:23
ogra_build two psplash binaries  ?15:23
sborovkovhmm, so that one draws that row if it's called?15:24
ogra_(then you can also bake the message into the png)15:24
ogra_yeah, or even without psplash-write completely ... just have one psplash with the message and one without and show them conditionally15:24
ogra_though you might need to show it later then since you need the mounted writable partition in /root15:25
sborovkovhmm, how does psplash-write work though? Does it call that binary again? With text parameter?15:25
sborovkovI mean if there is no text is passed I don't have to draw border15:25
ogra_it talks to psplash ... not sure how ... perhaps through a socket15:25
* ogra_ isnt near the code atm15:25
sborovkovHmm then I can check what text we are getting15:26
sborovkovIf there is no text I don't have to draw the row for it15:26
ogra_yeah15:26
ogra_well, thanks to being in the gadget you have all the freedom to hack it up to your liking :)15:27
mupPR snapd#3902 opened: tests: try to fix staging tests <Created by pedronis> <https://github.com/snapcore/snapd/pull/3902>15:35
pedroniscachio: this ^ should help with staging tests I think, but I haven't tried a full run15:35
cachiopedronis, great, thanks15:36
cachiopedronis, I'll make a run15:36
ackkdoes anyone know what can cause this error: Mount snap "sleep" (unset) (internal error: could not unmarshal state entry "snap-type": invalid snap type: "") ?15:37
ackk(at "snap install" time with a local snap)15:38
pedronisackk: what snap --version is this?15:48
ackkpedronis, master15:48
pedronisI haven't seen something like that in a long time15:48
ackkpedronis, I'm not sure what changed, it used to work earlier today15:51
ackkI just rebuilt the package to see if something was messed up, but I still get the error15:51
zyga-ubuntujdstrand: hey15:51
ackkpedronis, where should snap-type be set?15:52
pedronisis set during mount itself15:52
pedronisafter reading it from the snap15:52
mvocachio: do you have fixes pending for 2.28 btw ? iirc you mentioned there are two failing tests currently? anything I could look at?15:53
ogra_do we actually set it in non kernel/gadget/os ones ? i always through unset falls back to a defautl value15:53
pedronisackk: how it this snap build?15:53
ackkpedronis, so the snap should have that value in snap.yaml?15:53
ackkpedronis, from snapcraft15:53
ogra_(was that "app" ?)15:53
pedronissomething is weird15:53
pedronisogra_: correct15:54
pedronisbut something is confused there15:54
ogra_hah, i'm not *that* old :)15:54
* ogra_ still remembers things from a year ago :)15:54
ackkpedronis, the snap installs on my machine (it's failing in a xenial LXD)15:54
zyga-ubuntujdstrand: not sure if you are around, if you have a moment please have a look at the update-ns PR again, I did a round of fixes as requested15:54
cachiomvo, this https://paste.ubuntu.com/25515142/15:54
zyga-ubuntujdstrand: ignore the test failures there, we're going to address them, not related to what this PR is about15:54
cachiomvo, not sure why it is happening15:54
pedronisackk: a xenial ldx with snapd master?15:55
ogra_ackk, and other snaps work in that container ? (did you test)15:55
ackkpedronis, correct15:55
ackkogra_, they used to, lemme try installing one15:55
ogra_+115:55
cachiomvo, not sure if it is a test issue or a minor bug15:55
ackkogra_, they do15:55
ogra_k, jst to be sure :)15:55
* zyga-ubuntu sits at a parent's meeting at school15:56
ogra_*just15:56
zyga-ubuntuso far nobody minds me working on snapd15:56
mvocachio: thanks, looking15:56
cachiomvo, but in some cases it is leaving an end of line at the end of the file and other cases it is not leaving it, not sure why15:56
ogra_zyga-ubuntu, chatting while the teacher talks to you ?15:56
ogra_how rude :)15:56
=== cachio is now known as cachio_lunch
mvocachio_lunch: oh, interessting15:56
ackkogra_, fwiw http://paste.ubuntu.com/25515151/ is my snap definition15:56
ogra_hmm15:57
mvocachio_lunch: that does look like a bug (but minor), I wonder why its not determinist. I have a look, is that the only known issue  right now?15:57
zyga-ubuntuogra_: no, the teachers are not here yet15:57
ogra_i wonder if due to the new socket stuff some validation simply falls over15:57
zyga-ubuntuogra_: so far observing the "parents sit in the back" is very similar to "kids sit in the back"15:57
ogra_haha15:57
zyga-ubuntupeople age but behaviors don't change15:57
ogra_yeah15:57
ackkogra_, so that's the stuff i'm working on. i changed the snapcraft schema do accept that15:58
ackkogra_, and snapd too15:58
ogra_right, seems snapd misses something then15:58
ogra_(just guessing here ... i'm not a snapd dev :) )15:59
ackkogra_, it used to work, but I'll dig more...16:01
jdstrandzyga-ubuntu: I saw, thanks!16:04
=== cachio_lunch is now known as cachio
ackkogra_, do you know if snap-type should be set anywhere in the snap? grep doesn't find anything16:10
ogra_only for kernel, gadget and os usually ...16:10
ogra_not for normal app snaps16:11
pedronisacck: there's code in snap/  that should be happy to default to app when type: is not in the snap.yaml16:24
pedroniswhy is not working for your snap I don't know16:25
pedronisor your snapd16:25
pedroniscan you look at the produced snap.yaml?16:25
zyga-ubuntujdstrand: thanks :)16:46
=== JanC_ is now known as JanC
mupIssue snapcraft#1442 closed: `build-snaps` <designed> <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1442>17:02
=== nacc_ is now known as nacc
=== JoshStrobl|zzz is now known as JoshStrobl
zyga-susere19:32
zyga-suseboy, that was one long school meeting :/19:32
zyga-susethree hours19:33
zyga-susenoise][: hey, I was asked if snappy store will get any web presence and I recall there were some plans to have a public website for all the store snaps19:33
zyga-susenoise][: can you tell me more about it?19:33
noise][zyga-suse: yes, there is work in progress now19:34
zyga-susenoise][: is there any rough estimate as to when that may be visible to the public?19:35
noise][that's being done by the web team (with API support from us) - I don't have an ETA at the moment19:35
zyga-susenoise][: thanks,19:36
zyga-susenoise][: one more thing, is there any public roadmap for the store, such as the one recently made for snapd?19:37
mupPR snapcraft#1545 opened: pluginhandler: error out on scriptlet errors <bug> <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1545>19:38
noise][not at this time19:39
ogra_hmm, so on edge xdg-open is completely borked for all my apps19:40
ogra_Error org.freedesktop.DBus.Error.ServiceUnknown: The name io.snapcraft.Launcher was not provided by any .service files19:41
ogra_Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonial.SafeLauncher was not provided by any .service files19:41
ogra_great ... even on stable i cant open any links from any snap anymore19:41
zyga-suseogra_: you probably need the edge version of the debian package19:42
zyga-suseogra_: to get the service defintion19:42
ogra_so we leave all users broken til the next release ?19:42
ogra_(i'm no the stable core now)19:42
ogra_*on19:43
ogra_ogra@styx:~$ snap version19:43
ogra_snap    2.27.519:43
ogra_snapd   2.27.519:43
zyga-suseogra_: you need master version of the package (just get the deb from the ppa)19:43
ogra_zyga-suse, why ?19:43
zyga-suseogra_: as the snap userd is not started otherwise19:43
zyga-suseogra_: alternatively try to start it yourself from master build19:44
zyga-suseogra_: because it needs a new systemd / upstart service file19:44
ogra_why ?19:44
ogra_so we tell our stable users they need to pull some stuff from master ?19:44
zyga-suseno, I mean this should not have been done in master19:44
zyga-suseer19:44
zyga-susein stable19:44
zyga-suseif this broke in stable we need a new core release to synchronize this with userd work19:45
ogra_i *had* edge installed, but switched to stable19:45
zyga-susemvo: ^19:45
zyga-suseright19:45
zyga-suseso if stable is behaving this way then we have a problem19:45
ogra_and restarted the snap where the error shows up after switching to stable19:45
zyga-susemaybe userd work landed in core snap before the snapd code was released19:45
zyga-suseogra_: so far it was still depending on snapd-xdg-open19:45
zyga-susedo you have that installed?19:46
ogra_if nothing secretly removed it ...19:46
ogra_ogra@styx:~$ dpkg -l |grep xdg-open19:46
ogra_ii  snapd-xdg-open                              0.0.0~16.04                                  amd64        Opens URLs via D-Bus19:46
ogra_ogra@styx:~$19:46
ogra_but that wouldnt produce such an error anyway19:46
ogra_that it was broken in edge is fine ...19:47
ogra_but that it doesnt fix itself when i switch to stable is not19:47
ogra_and i dont think 2.27.5 should have it yet19:47
=== ubott2 is now known as ubottu
=== JamieBennett_ is now known as JamieBennett
=== dkessel_ is now known as dkessel
=== rob-oi-ma_ is now known as rob-oi-ma
=== psftw_ is now known as psftw
=== posi_ is now known as posi
=== victorbjelkholm_ is now known as victorbjelkholm
=== benoitc_ is now known as benoitc
=== andyrock_ is now known as andyrock
=== stokachu_ is now known as stokachu
kwmonroeanyone know how to handle /usr/bin/nohup in a strict snap?  i'm snapping hadoop and one of the daemon scripts calls out to /usr/bin/nohup, which greets me like this:20:52
kwmonroe$ sudo hadoop.hadoop-daemon start namenode20:52
kwmonroestarting namenode, logging to /var/snap/hadoop/x1/var/log/hadoop-hdfs/hadoop-root-namenode-permbox-xenial.out20:52
kwmonroe/snap/hadoop/x1/usr/lib/hadoop/sbin/hadoop-daemon.sh: line 159: /usr/bin/nohup: Permission denied20:52
kwmonroejdstrand: remember in warsaw when you were all like "dude, i'll help you do all things strict!".  ^^ halp ;)20:53
jdstrandkwmonroe: nohup is missing from the template. I've taken a todo to add it. in the meantime, you can ship it yourself20:57
SuperJonotronwith ubuntu core 16, network-manager snap is installed and really the only stable way to do anything with the network since netplan has issues but I need to use the nmcli command within another snap (docker) but really in a container in that docker snap, anybody know if this is even possible?20:59
kwmonroe+1 jdstrand- thanks!21:03
kwmonroewait jdstrand, before i +1 you... by "ship it yourself", you mean stage-packages: coreutils?  or make a wrapper for just the nohup command?21:08
jdstrandkwmonroe: you could stage-packages it, sure. or just grab the binary and shove it into your package. whichever you prefer21:33
kwmonroeack jdstrand.. i'll stage it.  this is a multi-arch snap, so i don't want the hassle of getting the right arch bin in place.  thanks again!21:35
jdstrandkwmonroe: np. I'll get it upstream this week for sure22:02
* mwhudson is confused22:12
mwhudsoni have a project with source-type: git, source: .22:13
mwhudsonand i seem to have to snapcraft clean between builds to get any changes i made to be noticed?22:13
mwhudsonmaybe i'm holding it wrong but this doesn'22:13
mwhudsont seem ideal22:13
mwhudsonoh wait, obviously i need to commit changes in this setup22:19
naccmwhudson: why wouldn't you use dump plugin with . ?22:22
naccmwhudson: yeah, i'm assuming it's becasue git doesn't see the changes22:22
mwhudsonnacc: because it's a python thing, i need to use the python plugin i think?22:23
naccmwhudson: you don't *have* to :)22:23
naccmwhudson: but the source != plugin22:23
mwhudsonwhen i didn't specify source-type: i got lots of apparently unrelated crap in my snap22:23
naccmwhudson: oh wait22:23
naccmwhudson: sorry, confusing myself22:23
mwhudsonheh heh22:23
naccmwhudson: yeah, if you're using the python plugin, then i think you're right22:24
mupIssue snapcraft#1439 closed: target arch default for containers <designed> <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1439>22:45
mupPR snapcraft#1493 closed: lxd: only pass target arch if specified explicitly <Created by kalikiana> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1493>22:45
mupPR snapcraft#1522 closed: catkin plugin: only append PYTHONPATH if set <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1522>22:48
mupPR snapcraft#1545 closed: pluginhandler: error out on scriptlet errors <bug> <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1545>22:48
mupPR snapd#3903 opened: tests: change regex used to validate installed ubuntu core snap <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/3903>23:03

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