/srv/irclogs.ubuntu.com/2017/03/23/#snappy.txt

mupPR snapcraft#1214 opened: asset-tracking: add subversion source tracking <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1214>00:34
mupPR snapcraft#1215 opened: asset-tracking: add mercurial source tracking <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1215>00:58
=== lifeless_ is now known as lifeless
=== chihchun is now known as chihchun_afk
=== mup_ is now known as mup
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== mup_ is now known as mup
=== mup_ is now known as mup
=== mwhudson_ is now known as mwhudson
=== chrisccoulson_ is now known as chrisccoulson
zygaPharaoh_Atem: you may be interested in joining https://plus.google.com/communities/10335626806017875506809:50
Son_Gokuzyga: I'm in it now10:16
mupPR snapd#3071 opened: many: Ignore configure hook failures on core refresh <Created by mvo5> <https://github.com/snapcore/snapd/pull/3071>10:20
zygaSon_Goku: great, thanks10:23
zygaSon_Goku: I set moderation for 1st post of new members10:23
zygaSon_Goku: but after that you should be good10:23
Son_Gokuwell, I don't have anything to say...10:23
zygaSon_Goku: aww, I'm sure you will have something to say one day :)10:27
* Son_Goku shrugs10:27
mupPR snapd#3071 closed: many: Ignore configure hook failures on core refresh <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/3071>10:43
* zyga does school run11:25
mupPR snapd#3071 opened: many: Ignore configure hook failures on core refresh <Created by mvo5> <https://github.com/snapcore/snapd/pull/3071>11:48
Son_Gokumorphis, golang deps packaging?11:54
morphisSon_Goku: I've started and coming along11:56
mupPR snapd#3072 opened: interfaces: use udev spec <Created by stolowski> <https://github.com/snapcore/snapd/pull/3072>12:16
mupPR snapcraft#1216 opened: cleanbuild: don't copy cache into container <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1216>13:00
morphisSon_Goku: can you have a look at https://github.com/CanonicalLtd/snappy-docs/pull/47 and check the Fedora part of you see something wrong?13:03
mupPR CanonicalLtd/snappy-docs#47: Extend snapd installation instructions <Created by morphis> <https://github.com/CanonicalLtd/snappy-docs/pull/47>13:03
Son_Gokumorphis: yeah, there are no working snappy packages13:05
morphisSon_Goku: the 2.16 ones from zyga's repo worked to some degree .. however this is more for the near future where we have working packages again13:05
Son_Gokuwhen we have working packages, they'll just be in the Fedora repos13:06
morphisSon_Goku: sure, but keeping what is written there doesn't make sense so this just takes it and rewrites it13:06
Son_Gokuyes13:06
Son_GokuI guess13:06
Son_Gokuby that token, I could have just built and released 2.16 now13:07
morphisand if we can provide something in a repo until its in the main distribution we should do that to have something people can test13:07
morphisSon_Goku: hm, lets not do that, it has too many unknowns for me right now13:07
Son_GokuI held off on releasing 2.16 because zyga said we'd have 2.23 done in a week, several weeks ago :(13:08
morphisthere were quite some problems recently with getting people upgraded and if we release to main it should use the core instead of ubuntu-core snap from the beginning13:08
morphisSon_Goku: yeah 2.23 is there now and I am here to put speed on this :-)13:08
Son_Gokuyeah, except 2.23 and 2.23.1 don't build13:08
morphiswe can fix this and I am working on the golang packages13:09
Son_Gokuwell, I'm tired of receiving the errors from the buildsystem about snapd-glib needing snapd and it's unresolvable, so I hope you have the golang packages today for me to review :)13:09
morphisSon_Goku: lets see13:09
Son_GokuI also am able to sponsor new packagers into the packager group, so we can get it done very quickly13:10
morphisSon_Goku: awesome!13:15
morphisSon_Goku: can I enter the chroot mock builds somehow?13:16
Son_Gokuyes13:16
Son_Gokumock [-r <name-of-root>] --shell13:17
morphisok13:17
morphisSon_Goku: I love this .. the guy named the repo gettext.go and if you call go test github.com/ojii/gettext.go go can't deal with it as it things its a .go file13:22
Son_Goku:/13:22
morphisyou need to put / behind it to make sure its a dir13:23
zygamorphis: you may use go test github.com/ojii/gettext.go/....13:25
zyga(one less dot)13:25
pmcgowanzyga, is snapd checking the content: name in a newer version? does not seem to on 2.23.113:26
pmcgowanalso what is the advantage of having a content: value specified13:27
mupBug #1675413 opened: snap disconnect doesn't support tab completion <Snappy:New> <https://launchpad.net/bugs/1675413>13:27
Son_Gokumorphis: it used to be called gogettext :/13:41
Son_Gokuthen they broke it13:41
zygapmcgowan: I think it does13:42
zygapmcgowan: there was a regression at one revision but it was fixed AFAIR13:42
pmcgowanzyga, I have 2.23.1 and it doesnt seem to get checked13:43
=== spineau is now known as spineau_afk
pmcgowanzyga, but I am wondering, what is it good for?13:43
pmcgowansince I cant really rev interface versions using it aiui13:44
zygapmcgowan: it's a "protocol" handshake13:46
zygapmcgowan: you cannot connect if plug and slot don't agree13:46
pmcgowanzyga, but I already need to have the names agree, how is this different13:47
zygapmcgowan: the regression was in one place where we didn't return the default one based on interface name13:47
zygapmcgowan: which names?13:47
pmcgowanthe plug and slot13:47
zygapmcgowan: those are irrelevant13:47
zygapmcgowan: you cna name them any way you want13:47
pmcgowanso they dont need to match13:47
pmcgowanok13:47
zygapmcgowan: the content attirbute matters13:47
pmcgowanso its just broken in this version13:47
zygaI think so13:47
pmcgowanok13:48
zygapmcgowan: but if you define content explictly it should work in any version13:48
pmcgowanyeah its not13:48
pmcgowanzyga, I just connected foo to bar basically and it worked13:48
pmcgowanzyga I also filed a bug about connecting to the wrong snap entirely13:50
pmcgowanzyga, unless the checking is not happening with locally installed snaps with dangerous13:53
zygapmcgowan: I think that's possible14:00
zygapmcgowan: this is based on assertions14:00
zygapmcgowan: so without assertions that will happen14:00
pmcgowanzyga, ok thanks14:01
morphisSon_Goku: hah! INFO: Done(/home/simon/rpmbuild/SRPMS/golang-github-ojii-gettext.go-0-0.1.gitb6dae1d.fc25.src.rpm) Config(default) 0 minutes 36 seconds14:05
Son_Gokuyay14:05
morphisSon_Goku: ok, this is pretty rough, where can I submit for review?14:05
Son_Gokuprocess is mentioned in https://fedoraproject.org/wiki/Join_the_package_collection_maintainers#Create_Your_Review_Request14:06
morphisok14:09
zygamorphis: note that first review is a bit different14:10
zygamorphis: you need a space to put your spec file and srpm14:10
morphisyeah14:10
zygamorphis: after the first review you get assigned space (though not sure since fedorahosted was shut down)14:10
Son_Gokufedorahosted != fedorapeople14:10
Son_Gokufedorahosted was like Debian Alioth14:11
Son_Gokuexcept using Trac instead of FusionForge14:11
Son_Gokufedorapeople is just a space for people to use :)14:11
mupPR snapcraft#1216 closed: cleanbuild: don't copy cache into container <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1216>14:12
zygaaaah14:13
zygaso that's fine14:13
* zyga wonders why this doesn't work14:13
zygahttp://paste.ubuntu.com/24235103/14:13
mupPR snapcraft#1217 opened: tour: make it work when its a snap <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1217>14:15
jdstrandzyga: fyi https://github.com/snapcore/snapd/pull/2624#issuecomment-28873268214:16
mupPR snapd#2624: cmd/snap-confine: re-associate with pid-1 mount namespace if required <Critical> <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2624>14:16
zygajdstrand: checking14:28
zygajdstrand: noted14:28
morphisPharaoh_Atem: https://bugzilla.redhat.com/show_bug.cgi?id=143532714:38
morphisPharaoh_Atem: this is mostly what gofed gave me + some small additions to get the tests running14:39
morphiszyga: ^^14:39
=== chihchun is now known as chihchun_afk
=== JanC_ is now known as JanC
Pharaoh_Atemmorphis: left comments on review14:59
morphisPharaoh_Atem: great15:00
morphisPharaoh_Atem: fine for you if I update the spec and srpm at the same location?15:06
Pharaoh_Atemyes, just make sure you note it as a comment15:06
Pharaoh_Atemit's not significant enough to require anything else...15:06
morphisaye15:07
morphisPharaoh_Atem: done15:09
=== Tryum_ is now known as Tryum
mupPR snapcraft#1218 opened: asset-tracking: use a more likely to be found global build-package <Created by josepht> <https://github.com/snapcore/snapcraft/pull/1218>15:32
NicolinoCurallihi all which test ran on a snap as soon as published on a channel?15:41
morphisPharaoh_Atem: for the other package I need to see why gofed crashes on it15:42
mupPR snapd#3073 opened: overlord: make sure all managers packages have *state.go with the main state manipulation/query APIs <Created by pedronis> <https://github.com/snapcore/snapd/pull/3073>15:54
Pharaoh_Atemmorphis: ERROR: 'Error [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) downloading https://mm.gravedo.de/files/golang-github-ojii-gettext.go-0-0.1.gitb6dae1d.fc25.src.rpm' (logs in /home/makerpm/.cache/fedora-review.log)16:01
morphiswhat?16:02
morphisPharaoh_Atem: it's singed by LetsEncrypt16:02
morphismaybe that is the issue here for your build host16:02
mupPR snapcraft#1219 opened: kernel plugin: learn how to assemble the ubuntu config using kconfigflavour <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1219>16:14
mupPR snapd#3074 opened: configstate,hookstate: limit runtime of the configure hook to 1 minute <Created by mvo5> <https://github.com/snapcore/snapd/pull/3074>16:29
Pharaoh_Atemmorphis: something isn't set up right with your cert, since the only thing that lets me access it is Chrome16:46
mupPR snapd#3073 closed: overlord: make sure all managers packages have *state.go with the main state manipulation/query APIs <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3073>16:59
stokachuanyone seen returns: "snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid17:35
stokachu                 permission escalation attacks"17:35
stokachubefore?17:35
stokachuThiagoCMC: can you post `snap version` as well?17:36
ThiagoCMCsure17:36
ThiagoCMC1 sec17:36
ThiagoCMC"dpkg -l | grep snapd" = snapd 2.22.617:36
ThiagoCMCIt is a fresh installed Ubuntu 16.04.217:37
ogra_better use "snap version"17:37
ThiagoCMCOh...17:37
ogra_and also make sure to have all updates before trying to use snap17:37
ThiagoCMC"apt full-upgrade" was executed a few minutes ago...17:37
ogra_snapd is on a pretty frequent SRU cadence17:37
ThiagoCMCsandvine@juju-1:~$ snap version17:37
ThiagoCMCsnap    2.23.117:37
ThiagoCMCsnapd   2.23.117:37
ThiagoCMCseries  1617:37
ThiagoCMCubuntu  16.0417:37
ThiagoCMCkernel  4.8.0-41-generic17:37
ogra_that looks better :)17:38
ThiagoCMCdamn... pasted my private login... lol17:38
stokachudont worry we're all saints here17:38
ThiagoCMCSo, how to fix: "snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks" ?17:38
ogra_we wont tell anyone (only the IRc logs and google will though)17:38
ThiagoCMCI know....  ^_^17:38
ThiagoCMCthat's ok.. haha17:38
ogra_looks like zyga is already off ... snap-confine is his area :/17:39
stokachufound this http://askubuntu.com/questions/888497/snap-confine-refuses-to-launch-application-to-avoid-permission-attack17:39
stokachuno answers but..17:39
ThiagoCMCI found that too...  =/17:39
ThiagoCMCSo, http://conjure-up.io/ instructions are basically, broken.   :-(17:40
stokachuThiagoCMC: you aren't on mint are you?17:40
ThiagoCMCNop!17:40
ThiagoCMCUbuntu 16.04.2, fresh installed.17:40
ThiagoCMCfrom Ubuntu Server ISO...17:41
stokachuhmm17:41
stokachuso where was "dpkg -l | grep snapd" = snapd 2.22.6 run from?17:42
zygahello17:42
stokachub/c your snap version shows 2.23.117:42
stokachuah17:42
zygastokachu: hey17:42
stokachuzyga: hey!17:42
zygaso I wrote that part17:42
stokachuzyga: have a user running into snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks17:42
zygastokachu: I'm curious where are you running this17:42
mupPR snapcraft#1218 closed: asset-tracking: use a more likely to be found global build-package <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1218>17:42
stokachuThiagoCMC: ^17:42
stokachuzyga: ThiagoCMC is the user with the issue17:42
ogra_<ThiagoCMC> snap    2.23.117:42
ogra_<ThiagoCMC> snapd   2.23.117:42
ogra_<ThiagoCMC> series  1617:42
ogra_<ThiagoCMC> ubuntu  16.0417:42
zygastokachu: is this on Ubuntu or is this somewhere else?17:42
ogra_<ThiagoCMC> kernel  4.8.0-41-generic17:42
stokachuzyga: yea ubuntu 16.04.217:42
zygaThiagoCMC: hey17:42
ThiagoCMCHey!17:42
zygavery interesting17:42
zygaok, can you please look at ...17:43
ogra_seems up to date and all17:43
zygasudo cat /sys/kernel/security/apparmor/profiles17:43
zygaThiagoCMC: can you please run that and pastebin17:43
ThiagoCMC1 sec17:43
ogra_oh, that looks like a hwe kernel btw17:43
ThiagoCMCzyga, https://paste.ubuntu.com/24236144/17:44
ThiagoCMCyeah, Linux 4.817:44
zygaThiagoCMC: thanks, so lines 12 and 13 are what we needed to see17:44
zygaThiagoCMC: can you please set SNAP_CONFINE_DEBUG=yes and run something that is a snap17:45
ThiagoCMCLet me try17:45
ThiagoCMCzyga, you mean, something like "conjure-up openstack" ?17:46
zygaThiagoCMC: or even hello-world if you have that snap installed17:46
zyga(the smaller the better)17:46
ThiagoCMCright, 1 min...17:47
ThiagoCMCzyga, https://paste.ubuntu.com/24236164/ look good17:48
zygaThiagoCMC: now run it17:48
ThiagoCMCzyga, https://paste.ubuntu.com/24236179/17:50
zygahmmm17:51
zygaso hello-world worked17:51
ThiagoCMCyep17:51
zyganow run what you tried earlier17:51
ThiagoCMCmaybe I need "$ sudo conjure-up openstack", with "sudo" ?17:51
ThiagoCMCinstructions on conjure-up.io doesn't tell to use sudo...17:51
zygaThiagoCMC: that error you saw should never show up17:52
ThiagoCMC=(17:52
zygaThiagoCMC: maybe conjure-up runs some snap commands itself17:52
ThiagoCMCeasy to reproduce...17:52
zygaThiagoCMC: can you run conjure up again?17:52
ThiagoCMCsure17:52
ThiagoCMCLOL Worked after a reboot!17:53
ThiagoCMCWTF!   =P17:53
zygaThiagoCMC: curious17:53
ThiagoCMCWindows!17:53
ThiagoCMCaheuHAEuae17:53
zygaThiagoCMC: what did you do before reboot?17:53
zygaThiagoCMC: what that error message said essentially17:53
zygaThiagoCMC: is that snap-confine didn't have its apparmor profile loade17:53
zyga*loaded17:53
ThiagoCMCzyga, "sudo snap install conjure-up --classic" then reboot17:53
ThiagoCMCotherwise, "conjure-up openstack" doesn't work...17:53
zygaaha17:54
ThiagoCMChehehe17:54
zygahmmm17:54
zygawell17:54
zygano idea really :/17:54
zygaThiagoCMC: thanks, if this happens again please report it17:54
ThiagoCMCLooks like that conjure-up.io needs a review!17:54
ThiagoCMCIt happens all the time!17:54
zygaoh?17:54
ThiagoCMCI tried it 3 times...17:54
zygacan you report a bug with instructions on how to cause it?17:54
zygaI never saw that myself17:54
ThiagoCMCyes17:54
stokachuThiagoCMC: you are the only one to hit this issue17:54
zygaaaah17:55
zygaI think I know17:55
ThiagoCMCI'm the Master of Bugs!   ;-)17:55
zygawell, maybe suspect17:55
zygasuspect this is related to classic confinement which does not reset PATH17:55
zygaso you run with your own path17:55
zygabut ...17:55
zyganah17:55
zygathat doesn't explain anything17:55
ThiagoCMCRight, I'll even record my screen and upload to youtube, then, fill a "video bug report" on launchpad17:55
stokachuthanks17:56
stokachui'd like to reproduce it17:56
zygaThiagoCMC: if you can report that I would appreciate the details17:56
zygaThiagoCMC: then we can get to the bottom of it17:56
ThiagoCMCSounds cool! I'll be happy to help!17:56
Bizonhey there. i'm packaging an app and while it runs completely fine if i start it through /snap/app/current/usr/bin/app, it just prints "F" and quits if i start it from /snap/bin18:05
Bizondoes anybody have a clue what could be wrong please?18:05
naccBizon: iirc, /snap/bin apps are just wrapper scripts? you might be able (as root) to use bash -x or so (maybe, check what the script is first, i guess) to see what command is failing?18:09
kyrofanacc, they aren't wrapper scripts anymore, they're symlinks18:11
Bizonnacc: /snap/bin apps are symlinks to snap run <app>18:11
kyrofanacc, snapd uses those symlinks to determine the environment programatically, so it's a little opaque18:12
nacckyrofa: ah! sorry, i dont' follow it actively, was going off what i recalled18:12
naccBizon: sorry for the misinformation!18:12
Bizonnacc: np18:12
kyrofanacc, oh no criticism meant on my part. You were absolutely correct until a few releases ago18:12
Bizonhmm, now i see with snap run i can do --shell and try run it manually right?18:12
zygaBizon: if you run it via /snap/bin it gets confined18:13
kyrofaBizon, `snap run --shell` will put you into a shell confined with the same environment as the app, so yeah, try that18:13
kyrofaBizon, I assume it'll fail the same way as when you run the app in /snap/bin/18:13
zygaBizon: if you run it from /snap/$SNAP_NAME/current/... you just run whatever is there unconfined18:13
morphisPharaoh_Atem: that is lets-encrypt I guess18:14
Bizonkyrofa: it doesn't, i get a ldd error18:14
niemeyerBizon: Note you need to provide any command line arguments yourself18:14
kyrofaBizon, ah, you're missing the snapcraft wrapper that's probably setting LD_LIBRARY_PATH for you, then18:14
niemeyerkyrofa: It'd be nice to get rid of those wrappers at some point18:14
niemeyerkyrofa: We have the environment settings support now18:14
Bizonkyrofa: oh, i have that18:14
kyrofaniemeyer, I doubt it'll ever happen. Some plugins actually inject real shell script18:15
Bizonkyrofa: running the wrapper i get just F again18:15
kyrofaniemeyer, i.e. not just exports18:15
niemeyerkyrofa: It'd be nice to find an alternative to that18:16
niemeyerkyrofa: Also, this is not a reason to not move the env itself into snap.yaml18:16
kyrofaniemeyer, I agree that they're an annoying level of redirection. What sort of alternative to you envision?18:16
niemeyerkyrofa: FIrst step would be to kill the wrapper altogether unless necessary18:16
niemeyerkyrofa: In the conversation above, note how the shell ends up in a completely different environment from the one the application will actually run on18:17
niemeyerkyrofa: More complexity, more confusion, ...18:17
kyrofaniemeyer, yes, like I said, I agree18:17
niemeyerkyrofa: So let's do it :)18:17
Bizonbut yeah, if i run the app, i just get "F" printed to stderr, not even a line break18:18
Bizonand it quits immediately18:18
kyrofaniemeyer, but the environment keyword only supports state variable definitions, which doesn't cover all use-cases. The catkin plugin for example actually has real shell scripting in there18:18
kyrofas/state/static/18:18
kyrofaniemeyer, I'm not clear on a viable alternative18:19
ThiagoCMCzyga, "conjure-up openstack", after staring the OpenStack deployment, failed again: https://paste.ubuntu.com/24236284/18:19
ThiagoCMCI'll give it up for now...   :-(18:19
zygaThiagoCMC: hmmm18:21
ThiagoCMC;-(18:21
zygaThiagoCMC: is that because of snap-confine?18:21
morphisPharaoh_Atem: ok, retry, should work now18:21
ThiagoCMCno idea...18:21
ThiagoCMCI'll try juju only, conjure-up is not working.18:21
kyrofaniemeyer, snapcraft could start placing all of its static environment in the snap.yaml and only generate those wrappers as a more special case for the plugins that need them, but that switches the order around so the plugin's environment doesn't come first which may have unintended side effects18:22
niemeyerkyrofa: In which sense would it not come first?18:23
mupPR snapcraft#1217 closed: tour: make it work when its a snap <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1217>18:24
kyrofaniemeyer, right now snapcraft evaluates the plugin environment and then sets the stuff it knows it needs (LD_LIBRARY_PATH, PATH, etc.). If that was moved into the snap.yaml, snapd would evaluate it before the plugin's environment was evaluated18:24
kyrofaniemeyer, changing the LD_LIBRARY_PATH ordering, etc.18:24
pmcgowankyrofa, where do I read about the environment keywword18:26
niemeyerkyrofa: This sounds like the more natural choice?18:26
niemeyerkyrofa: Defaults usually come first18:27
ogra_ThiagoCMC, that pyhon stacktrace is probably something stokachu would like to see too18:27
kyrofaniemeyer, perhaps, I'm simply stating that it's a change that could have unintended side effects. We should be careful18:28
ThiagoCMCogra_, right... I posted on #juju as well... I'll ping him... In the end of the day, conjure-up.io instructions does not work.18:29
kyrofapmcgowan, haha, I'm having a heck of a time finding docs for you, that's bad18:30
niemeyerkyrofa: Indeed, but note that this only affects new builds18:30
pmcgowankyrofa, yeah I did look myself18:30
jrwrenis there a way to run https://snapcraft.io/docs locally? the 3-4s page loads are slow enough to be annoying.18:32
kyrofaniemeyer, new or not, if the builds I publish via daily CI started breaking because of snapcraft changes I'd be unhappy18:33
kyrofaRegardless, I agree that it's something to move toward. Those wrappers drive me nuts18:34
niemeyer\o/18:34
kyrofaJust don't want to put more work on the shoulders of snap developers18:34
kyrofapmcgowan, mind logging a bug about the environment keyword?18:36
kyrofapmcgowan, you can see a demo of it here if you're curious, though: https://github.com/snapcore/snapcraft/blob/master/demos/git/snap/snapcraft.yaml18:37
pmcgowankyrofa, what do I log against18:37
kyrofapmcgowan, definitely snapcraft, though I couldn't find anything in snapd either18:37
pmcgowanok18:37
pmcgowankyrofa, as long as the wrapper needs to do things conditionally, this only helps a bit18:38
kyrofapmcgowan, yeah that's what niemeyer and I were talking about. As soon as something other than static variables are required, we require wrappers18:38
pmcgowankyrofa, or most of the time to even set them you test something18:39
mupPR snapd#3075 opened: overlord: split out handlers.go in devicestate and snapstate, other small order/naming tweaks <Created by pedronis> <https://github.com/snapcore/snapd/pull/3075>18:39
pmcgowanlike to make the arch specific path18:39
pmcgowanor find the right socket location18:39
kyrofapmcgowan, indeed. Check out what the catkin plugin has to do: https://github.com/snapcore/snapcraft/blob/master/snapcraft/plugins/catkin.py#L38118:40
pmcgowanoy vay18:40
kyrofaSoo many faces on keyboards18:41
ogra_there is a backslash missing ...18:41
ogra_... i'm sure ...18:41
ogra_:P18:41
pmcgowankyrofa, michi reported one already at bug #166674518:42
mupBug #1666745: environment appears to be undocumented <Snapcraft:New> <https://launchpad.net/bugs/1666745>18:42
Pharaoh_Atemmorphis: package approved18:42
kyrofaOh good!18:42
kyrofaShush ogra_18:43
ogra_pmcgowan, https://github.com/myriadrf/snapcraft-sandbox/blob/master/limesdr-grc/snapcraft.yaml a good example for environment btw18:43
Pharaoh_Atemmorphis: however, you're not quite done yet :)18:43
kyrofaniemeyer, would it be downright dreadful to support more verbose shell in snapd instead of just static variables?18:45
kyrofaniemeyer, the point pmcgowan makes is a good one18:45
morphisPharaoh_Atem: you mean with submitting that package?18:45
kyrofaniemeyer, but I can see that resulting in really gross YAMLs18:45
kyrofaBut as far as snapcraft is concerned, we already have the scriptlets18:46
Pharaoh_Atemmorphis: well, since you're a first time packager and you're quite literally new to RPM packaging, I want you to do a couple of (non-binding) package reviews in the package review queue18:46
niemeyerkyrofa: Yes, that'd probably not end up well, but we might introduce the idea of a setup script18:46
niemeyerWhich ends up in the same place18:46
niemeyerBut not dreadful18:46
kyrofaniemeyer, yeah, something like that would help a lot18:47
morphisPharaoh_Atem: sounds good, should I just pick some from https://fedoraproject.org/PackageReviewStatus/NEW.html ?18:47
Pharaoh_AtemYep18:47
Pharaoh_Atemsome from the newest ones, rather than the oldest ones18:47
morphisyeah, will take a few golang ones18:48
Pharaoh_Atemyou'll want to familiarize yourself with https://fedoraproject.org/wiki/Packaging:Guidelines and https://fedoraproject.org/wiki/PackagingDrafts/Go18:49
mupPR snapcraft#1220 opened: Release changelog for 2.28 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1220>18:51
Pharaoh_Atemmorphis: also, you should announce yourself on the fedora-devel mailing list19:11
morphisPharaoh_Atem: yeah was planing to do that tomorrow19:12
jrwrenis there a way I can run strace in a snap environment to see what is going on?19:55
zygajrwren: yes19:56
zygajrwren: you need to do a few things but it is possible19:56
zygajrwren: the trick is to use "snap run --shell" to run a shell with confinement the same as a given app19:56
zygajrwren: then run a copy of strace (you need to put it somewhere reachable)19:57
zygajrwren: you may need to adjust confinement (not sure, I do this without thinking sometimes)19:57
zygajrwren: you can copy strace from your host19:57
zygajrwren: and e.g. stick it in /run where you can copy it from19:57
zygajrwren: note that you will not be able to run it from /run (apparmor) so you will have to copy it somewhere else (try /tmp but again not sure because whenever I do it I do it automatically and think too little to remember)19:58
jrwrenok, i'll play around with that. the snap in question is not confined anyway, so maybe it will be easier?19:58
zygajrwren: yes, it will be easier19:58
zygajrwren: you can then run it directly from /var/lib/snapd/hostfs/usr/bin/strace19:58
zygajrwren: (that is, use snap run --shell and then run strace like I said)20:00
jrwrenstrace helped. thanks zyga20:23
jrwrenI filed a bug, but I'm snappy new enough that I wonder if it is a bug. https://bugs.launchpad.net/snapcraft/+bug/167554520:24
mupBug #1675545: undefined symbol: _Py_RefTotal <Snapcraft:New> <https://launchpad.net/bugs/1675545>20:24
jrwrenDoes the python plugin support C modules with python-version set to python2?20:24
jrwrenI get ImportError: ... undefined symbol: _Py_RefTotal20:24
jdstrandroadmr: can you add a pull of r851 to your queue? like the last one, not urgent at all20:26
jdstrandroadmr: and hi! :)20:26
roadmrjdstrand: hello! sure thing, I'll prepare the merge20:27
jdstrandthanks20:27
zygajdstrand: upstream kernel has something that fails our seccomp code20:36
zygajdstrand: https://bugs.launchpad.net/snappy/+bug/167419320:36
mupBug #1674193: core snap's configuration hangs on debian|openSUSE <Snappy:In Progress by morphis> <snapd (Debian):New> <openSUSE:Fix Released by morphis> <https://launchpad.net/bugs/1674193>20:36
zygajdstrand: we should run our seccomp test suite on one20:36
zygajdstrand: (I'm EOD, just wanted to let you know)20:36
zygajdstrand: and perhaps extend it to test bind specifically20:37
zygajdstrand: (it gets killed on bind)20:38
zygajdstrand: this was tested on xenial with both xenial kernel (-41) and mainline kernel (linux-image-4.10.2-041002-generic)20:38
zygajdstrand: the mainline kernel fails reliably each time20:38
jdstrandzyga: it is possible it is not the kernel but their seccomp20:39
jdstrandzyga: see this changelog for trusty's https://launchpad.net/ubuntu/+source/libseccomp/2.1.1-1ubuntu1~trusty320:40
zygajdstrand: no, it was tested on a machine with just rebooting to stock kernel20:41
zygano other updates were installed20:41
jdstrandzyga: if they have 2.1.x, then they should use those patches or upgrade to 2.2.3 (what is in xenial)20:41
jdstrandwhat version of seccomp do they have?20:41
zygajdstrand: asking20:42
zygajdstrand: apt-cache policy libseccomp is sufficient?20:42
zyga(libseccomp2)20:42
jdstrandcause the issues that bug showed with 2.1 were weird20:42
jdstrandzyga: I thought this was opensuse?20:42
jdstrandbut however you can give me the version, that's fine20:43
zygajdstrand: no, I'm telling you this happens on *xenial* using a mainline (non ubuntu sauce) kernel20:43
zygajdstrand: it happens on debian, opensuse and now xenial with !patched kernel20:43
jdstrandoh, that was not clear20:43
zygaah, sorry, about that20:43
jdstrandI don't know of any seccomp patches to our kernel to fix bind20:44
zygayeah, it's pretty odd20:45
jdstrandI'll see if I can trigger it locally, but may not be today-- I have several other people who asked for help from me this afternoon20:45
zygaOK20:45
zygajdstrand: just wanted to let you know that the plot thickens :)20:45
zygaI think it may be related to apparmor in the end, if we boot a mainline kernel we may run without apparmor so snapctl may end up doing things it normally doesn't because it gets EPERM from apparmor20:45
zygajdstrand: this was on libseccomp2 at version 2.2.3-3ubuntu320:46
jdstrandzyga: ok 2.2.3 is fine20:48
roadmrzyga: are you still using git-lp sometimes?20:50
zygaroadmr: no, just native git20:53
roadmrzyga even better :)21:04
mwhudsonjdstrand: is there anything i can help with re: bug 1674193 ?21:29
mupBug #1674193: core snap's configuration hangs on debian|openSUSE <Snappy:In Progress by morphis> <snapd (Debian):New> <openSUSE:Fix Released by morphis> <https://launchpad.net/bugs/1674193>21:29
mwhudsonit seems mostly like people who know more about the innards than me are onto it, but i thought i'd ask21:29
mwhudsonhm not the best timing there, i need to disappear for a while21:30
mwhudsonbut anyway, offer stands :)21:30
jdstrandmwhudson: I'm not looking at it yet, I'm helping pmcgowan with something. I've added it to my list to look at. what I plan to do is boil it down to a simple reproducer so I can hand off to someone21:30
mupPR snapd#3075 closed: overlord: clean up organization under state packages <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3075>21:38
=== nacc_ is now known as nacc
mwhudsonuh can someone name a trivial confined snap that isn't hello?22:14
sbeattiemwhudson: pwgen-tyhicks ?22:17
mwhudsonsbeattie: ta22:18
* tyhicks lets out a mwahahaha22:19
roadmrevil laughter \o/22:20
mwhudsonuh well this is with apparmor off so i guess confined wasn't necessary22:21
mwhudsonwait no it isn't22:22
Pharaoh_Atemmorphis: where are we on merging in the fixes that zyga created for the openSUSE snapd package?22:25
mwhudsonheh debugging things that only happen confined is impressively impossible22:31
mwhudsonhow do you make snapcraft actually use your python package when the snapcraft.yaml is in the same tree as your python?23:22
mwhudsonoh apparently i still want the source-type git23:27

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