/srv/irclogs.ubuntu.com/2015/12/08/#snappy.txt

liuxghas anyone successfully deployed a python project with installed packages like django? I have a little problem here. thanks00:12
liuxgsergiusens, ping00:13
geniimeh00:55
Chipacajdstrand: tyhicks: so it turns out the perl locale warnings of config are because it uses aa-exec, which is perl. I misremembered about it being deeper in the stack :-)01:01
Chipacai'm wondering if there's any situation where we want to run config with the user's locale, and coming up with "maybe?" :-(01:02
liuxgChipaca, have you tried to install a python project onto snappy system?01:14
Chipacaliuxg: yes01:15
Chipacaliuxg: I put it into a snap01:15
liuxgChipaca, I've got a problem https://bugs.launchpad.net/snapcraft/+bug/1523384. could you please help to confirm it is a bug?01:15
ubottuLaunchpad bug 1523384 in Canonical Click Reviewers tools "broken symlinks when snapping a python project using requirements.txt" [Undecided,In progress]01:15
liuxgChipaca, basically, I want to install some extra packages into the snap.01:16
Chipacaliuxg: looks like dholbach already confirmed it's a bug01:16
liuxgChipaca, is there any alternative way to do it?01:18
Chipacaliuxg: well, I don't know why you end up with a symlink there01:19
Chipacathat seems wrong, for starters, but I don't know01:19
liuxgChipaca, i do not know it either. I just simply use the tool to do it. In fact, it seems that dholbach also got the same problem for another project inside one of the examples of snapcraft.01:21
liuxgChipaca, anyway, thanks for helping.01:23
Chipacaliuxg: normally i'd be able to look into this, but i'm only getting 5kB/s so can't realistically pull snapcraft i'm afraid01:25
=== devil is now known as Guest48289
=== Guest48289 is now known as devil_
=== devil_ is now known as devilzz
=== devilzz is now known as devil__
=== chihchun_afk is now known as chihchun
dholbachgood morning07:41
mvo_ogra_: is there anything with rpi2 rolling that I should be aware of? I created an image the other day and it does not boot. but might be a issue with pretty much anything (bad u-d-f, bad sd card). I will try again09:22
JamesTaitGood morning all; happy Tuesday, and happy Pretend To Be A Time Traveler Day! 😃10:13
ogra_mvo_, not that i know of, mine works here and has autoupdate turned on10:46
mvo_ogra_: could you paste the commandline you used? maybe I did something wrong there10:46
ogra_ugh, that was a month ago or so :)10:47
* ogra_ tries to get it together again :)10:47
ogra_sudo ubuntu-device-flash core rolling --channel edge --oem pi2.canonical/stable --enable-ssh --device raspi2_armhf --output raspi2-rolling.img10:49
ogra_(i didnt have to use /stable back then though)10:49
mvo_ogra_: works now, thank! the --device was missing12:03
ogra_ah, cool12:04
kyrofadholbach, when you're able would you mind looking this over? https://github.com/ubuntu-core/snapcraft/pull/15913:41
dholbachkyrofa, sure13:47
kyrofadholbach, it's a bit of a book I'm afraid, but I tried to make it relevant13:49
dholbachso far it reads just fine :)13:53
kyrofadholbach, crap, I've never used snappy-remote. Does that just sideload via ssh?13:58
dholbachyes13:58
dholbachkyrofa, nice work - I didn't go through the example myself yet, but the text is just fine - I just added two small comments13:58
kyrofadholbach, good ones, I'm fixing the snapcraft.yaml brief now, thank you! I'd like to be consistent with other docs regarding how snaps are sideloaded-- snappy install or snappy-remote, you tell me13:59
dholbachkyrofa, I just thought that snappy-remote might be easier14:02
kyrofadholbach, alright I'll update that as well :)14:03
renatHi all! It's renat from screenly. I have a question. Here: https://developer.ubuntu.com/en/snappy/guides/filesystem-layout/ documented that application should create /home/user/apps/<app-name>/<version>/ directory itself. But I'm getting permission denied when trying to create it from the application. How that directory should be created?14:06
davidcallemvo_, ogra_ , do you happen to know? ^14:15
mvo_renat: sorry for this mistake in the docs, the dir is created automatically by the generated wrapper and is available via the SNAP_APP_USER_DATA_PATH environment variable14:15
kyrofarenat, checkout the /apps/bin/<your_executable_wrapper> and you'll see it created14:16
davidcallemvo_: I've just fixed it in the doc, but can you check the other fields of this table?14:20
renatThanks. Now I can see it in the wrapper script. But /home/user/apps directory is not created.14:20
renatAhh... Now I can see it.14:22
renatIn /home/bubntu/14:22
=== chihchun is now known as chihchun_afk
kyrofarenat, right, it uses $HOME so it's whatever user is running it14:28
renatkyrofa, thanks. Is it possible to extend /apps/bin/<executable_wrapper> script to create other directories too?14:29
kyrofarenat, such as?14:30
kyrofarenat, remember the security policies are pretty tight-- it creates pretty much everything you can access14:30
kyrofarenat, but the actual answer to your question is no. You'd have to either do it in the binary itself or create a wrapper script that creates the directories and then calls your binary14:31
renatkyrofa, We need to share very heavy files downloaded from the internet between 2 snaps. So I need to create a directory, for example /home/assets. I've already modified security-override file. But I still cannot create that directory from the application itself.14:32
kyrofarenat, getting apparmor denials?14:37
renatkyrofa, yes.14:38
kyrofarenat, can you paste in the denials as well as the generated profile?14:38
kyrofarenat, (pastebin, heh)14:38
renatkyrofa, Sure. Understood. 2 min14:39
plarselopio: so I was able to get a test binary built I think, with go test -c integration-tests/tests - but it's not clear what I could do with it14:41
* ogra_ would also sugest to have someone from the security team to take a look at your role changes to make sure they are safe14:41
plarselopio: it doesn't seem to take any args on its own, or anything like that14:41
plarselopio: not even the ones we talked about yesterday14:41
renatkyrofa, sorry for disturbing you. Now I can see that files created after I used "bruteforce" security config. I will try to revert everything back and if I will get any issue - ask a question again.14:46
elopioplars: it does, pass -h to it.14:50
elopioit receives things like check.f, to filter.14:51
kyrofarenat, no need to apologize, you're why we're here!14:51
plarselopio: no, it just tries to run no matter what I pass to it14:51
elopioplars: ah, tries to run the init. That's the news I have for you.14:51
elopioplars: yesterday I found a command check.list to list the tests. That's the good news.14:52
plarselopio: oh? where does that init get defined?14:52
elopiothe bad news is that we are wrapping the gocheck runner because it doesn't allow to change the results reporter.14:52
plarsargh14:52
elopioso I can give you a quick fix today. Or a correct fix in a couple of weeks, because we need upstream changes.14:52
kyrofarenat, do note, though-- it sounds like you're trying to use Snappy in a way it was not intended (sharing dependencies between .snaps). If you could share some more information about what exactly you're trying to achieve there may be a better way14:52
elopioplars: also I need to revert this init change: https://github.com/ubuntu-core/snappy/blob/master/integration-tests/tests/base_test.go#L3714:53
elopiothat one is easy, I'm starting with that now.14:53
plarselopio: ah, right. That looks like what it's trying to do14:55
elopioplars: it will accept check.f though, and run the tests that match after the init.14:55
ogra_mvo_, hmm, your sudo change seems to have broken the world15:12
kyrofadholbach, I've updated that PR to address the points you raised15:18
=== fginther` is now known as fginther
davmor2ogra_: Don't try blaming mvo_ for your inability to use sudo correctly, you know it's your fault ;)15:31
ogra_mvo_, hmm, seems --ingroup can a) only be used once (only the first one is respected) and b) makes the specified group the default group for that user which c) omits creation of the "ubuntu" group15:33
ogra_mvo_, i'll split that into multiple adduser lines instead ...15:33
mvo_ogra_: thanks and *urgh*15:34
mvo_ogra_: sorry for that, I was not aware that adduser has these limitations, a bit disappointing15:34
=== beowulf is now known as Guest65640
ogra_its written in the manpage (i didnt know you can only use it once thouh)15:35
ogra_mvo_, oh, and btw, this group assignment is happening in the real /etc/group in the readonly fs so "ubuntu" is hardcoded there ... we might need to look if we can move the adm and sudo groups over to /var/lib/extrausers15:40
ogra_(i.e. if sudo and rsyslog actually get along with this)15:41
elopiokyrofa: build-packages installs them in the host, doesn't pull them into the snap.17:40
kyrofaelopio, thank you! Funny, I was just experimenting with that :)18:18
elopioI added a build-package, a stage-package and a node-package to my yaml. I'm getting a different error now, not sure if that's progress :)18:19
kyrofaelopio, hahaha18:21
kyrofaelopio, let's say I have a source tree that can build several things, and I want to create different .snaps out of it. How would I do that is the `snapcraft.yaml` needs to be at the root?18:26
kyrofaJust rename them as necessary?18:26
elopiokyrofa: yes, you can't currently.18:27
elopioI think we need to allow snapcraft.yamls in subdirectories, I send an email to the mailing list but didn't got many replies as I expected.18:27
kyrofaelopio, perhaps that comes back to your yaml-not-in-root question from ealier18:28
kyrofaYeah18:28
kyrofaelopio,  I'll respond with that question, then ;)18:28
elopiomaybe also supporting different yaml files in the same dir, but then the parts and install dirs need to be handled differently too.18:28
kyrofaEven something like make, use `snapcraft -f subdir/snapcraft.yaml`18:30
elopiokyrofa: yes, that's what I want.18:36
elopiothe question would be where to put the part and step dirs. But well, those are details. We just need people to agree that's a good use case to support.18:38
deenleethis channel18:41
kyrofaelopio, agreed18:44
camakoI have added the snappy ppa and did "apt-get update/upgrade", but I'm getting19:13
camakoE: Unable to locate package snappy-tools19:13
camakowhen I do 'sudo apt-get install snappy-tools'19:14
ogra_what would "snappy-tools" be ?19:14
camakoI'm on xenial (desktop). Anyone know what might be wrong?19:14
ogra_on xenial you dont need the PPA19:14
ogra_what do you want to do ?19:15
camakoI'm assuming tools for snappy?19:15
camakoI'm following a doc created by kgunn19:15
ogra_snappy-tools is a PPA name, not a package name19:15
camakoah ok.. he probably has it wrong in the doc19:15
ogra_anyway, what do you plan to do ?19:16
camakothe end goal is to help him with bring up a mir server on snappy19:16
camakohe was getting me started with snappy with some instructions19:16
ogra_well, install snapcraft ... that should get you everything you need installed19:17
ogra_(and technically snaps should nowadays only be built using it)19:17
camakofurther down in the instructions I see 'snapcraft assemble' so I guess you're right19:17
kyrofaelopio, I have two options: shell out to a binary, or try using past.translation to use python2 lib in python3. I don't like either. Thoughts?19:45
elopiokyrofa: can you start with why you need a python2 lib?19:49
kyrofaelopio, rosdep is a python2 binary, but it also has a python2 API19:49
elopiokyrofa: I think I'd go with the binary.19:50
kyrofaelopio, alright, thank you :)19:51

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