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

liuxgping woodrowshen03:08
=== chihchun_afk is now known as chihchun
pittiGood morning06:40
pittiChipaca: I am now06:40
renatHi all. It's renat from Screenly. I have a question about snapcraft tool. I want to specify $SNAP_APP_DATA_PATH but07:45
renatBut I get this error: "services description field 'Start' contains illegal 'usr/bin/screenly-playlist.wrapper -c '$SNAP_APP_DATA_PATH/config.yaml'' (legal: '^[A-Za-z0-9/. _#:-]*$')07:46
renat"07:46
deenleeeww07:46
renatDoes this mean that I shouldn't use environment variables in a start command, or it's a bug?07:47
dholbachgood morning07:55
liuxgdholbach, ping08:04
dholbachhi liuxg08:07
liuxgdholbach, I created a python project using requirements.txt at https://github.com/liu-xiao-guo/restapi08:08
dholbachliuxg, I never played around with pip and snapcraft08:09
liuxgdholbach, however, there is a problem with the project. It works well on the desktop. When I deploy it onto KVM, it does not work. I see a symbolic link in the snap file http://paste.ubuntu.com/13780578/08:09
liuxgdholbach, would you please help me to confirm whether it is a bug or not.08:10
dholbachlet me see08:10
liuxgdholbach, thanks a lot. the django stuff seems not packaged into the snap though they are pulled down.08:11
ricmm_renat: it means the path is just a path, not a command line08:11
ricmm_you should put this -c ARG into the wrapper itself08:12
=== ricmm_ is now known as ricmm
dholbachliuxg, why don't you use django from the Ubuntu archive? didn't that work? or do you strictly need django 1.9?08:12
dholbachliuxg, for me django is contained in the snap08:13
dholbachit's in ./usr/lib/python2.7/dist-packages/django08:13
dholbach(run dpkg -c mysnap.snap | less)08:13
liuxgdholbach, in fact, anything should work. I just tried to see whether it works or not. if I want to use it from the ubuntu archive, I should use the "stage-packages", right?08:14
dholbachyep08:14
liuxgdholbach, after I deploy it, it is a little strange, in the KVM, it is a symbolic link there though the file is in the "snap" directory.08:15
liuxgdholbach, this is what is seen in my place http://paste.ubuntu.com/13780734/08:17
dholbachyes, it's a broken symlink08:18
dholbachso yes, I can confirm the issue08:19
liuxgdholbach, is this a bug in the tool?08:19
liuxgdholbach, maybe I need to report a bug for it?08:20
dholbachyes, as far as I can tell, there shouldn't be symlinks going to locations which just exist in your home-directory when snapping08:20
dholbachyes08:20
dholbachyour case is very good for testing08:20
liuxgdholbach, it took me quite a while to debug this problem08:21
renatricmm_, thanks. I was thinking about it. I can't do it from a snapcraft. So I decided to create a bug in the launchpad.08:21
ricmmrenat: I dont understand, why cant you do it with snapcraft?08:22
dholbachliuxg, maybe we can, as a safety measure, get the reviewers tools to give a warning if the symlinks are going to be broken08:22
dholbachliuxg, let me know once you've filed the bug08:22
ricmmyou are using a wrapper script, so those arguments are better suited inside of the wrapper08:22
liuxgdholbach, sure, I am reporting a bug for it.08:22
dholbachthanks liuxg08:24
liuxgdholbach, i have reported the bug at https://bugs.launchpad.net/snapcraft/+bug/1523384. please take a look at it. I hope it can fixed soon!08:27
ubottuLaunchpad bug 1523384 in Snapcraft "broken symlinks when snapping a python project using requirements.txt" [Undecided,New]08:27
dholbachbrilliant - thanks08:28
dholbachI'll add a task for the reviewers tools as well08:28
liuxgdholbach, thanks for your confirmation. I think this is a serious bug for it :)08:29
=== davidcalle_ is now known as davidcalle
renatricmm, that wrapper script is created by snapcraft tool. So I want it  to include my command line options.09:00
ricmmahh I understand, yes09:03
ricmmrenat: you can modify the .wrapper in snap/ and manually build, or make your own and put it in the right location with a copy plugin09:04
mvoogra_: any concerns about http://paste.ubuntu.com/13782938/ ? we currently rely on /etc/sudoers.d/90-cloud-init-users for sudo but it seems a group makes more sense09:55
ogra_mvo, no objections at all ... but doesnt that also need a change in could-init then ?09:57
ogra_(it creates some stuff in /etc/sudoers.d IIRC)09:58
mvoogra_: it won't hurt (the cloudinit stuff). its just *if* we use a system without cloud init (a os snap) then things still work with sudo, right now they don't without cloud init10:00
mvoogra_: I will upload then, thanks for the sanity check10:00
ogra_ah, cool, yeah, if it is preventive thats fine indeed :)10:00
mvoogra_: looks like bzr and archive are out of sync *grrr*10:14
ogra_oh ?10:14
ogra_and sil2100's last commit misses a changelog entry10:17
mvoogra_: indeed it does10:18
ogra_wow, what a mess10:18
mvochoas!10:18
mvoogra_: I will untangle the mess (unless you are already on it)10:19
ogra_no, i only checked, didnt start anything yet10:20
mvoogra_: ok, should be fixed in some minutes10:21
Chipacapitti: it seems systemd's journal loses messages during shutdown10:42
Chipacapitti: is this expected?10:42
Chipacapitti: or are we doing something wrong?10:42
Chipacapitti: as in: 'stop' action prints some messages that normally appear in journal, but they're nowhere to be seen on shutdown, but stop action can be seen to be working by tee'ing the messages to a file under its control10:44
renatricmm, seems it's really possible to use shell variables. You may see here that "args" argument is not used in _wrap_exe. https://github.com/ubuntu-core/snapcraft/blob/a06a75e70bcbc76f02f4cbeacee11010f3f24440/snapcraft/meta.py#L25610:46
renatricmm, thanks for help. I want to experiment with snapcraft and see what I can improve.10:48
Guest9543stevebiscuit: hello11:01
=== Guest9543 is now known as beowulf
stevebiscuitbeowulf: 'ello11:01
beowulfmvo: Chipaca: stevebiscuit is the "Steve" for webdm now11:02
stevebiscuitthere can be only one11:02
=== andyrock_ is now known as andyrock
mvostevebiscuit: welcome!11:41
stevebiscuitmvo: cheers :)11:41
rsalvetiogra_: ricmm: so, what are the kernel plans for dragonboard?13:10
rsalvetiI want to make sure we're aligned in there somehow13:10
rsalvetiand avoid yet another kernel tree13:10
ogra_rsalveti, no idea, waiting for ppisati ...13:10
ogra_i just want his deb ;)13:10
ogra_<- lazy13:10
rsalvetigot it :-)13:11
rsalvetitell him to ping me later13:11
ogra_he is out today i was just told13:12
ogra_so probably rather tomorrow13:12
rsalvetiyeah, no worries :-)13:12
rsalvetiogra_: next ubuntu release is going to use 4.4, right?13:12
ogra_do you know if i need all of the 8 boot partitions ?13:12
ogra_i.e. the blob stuff13:12
rsalvetididn't yet try booting without them, so not so sure13:13
ogra_ok, then i'll do trial and error as usual :)13:13
* ogra_ is still pondering how to reflect that partition mess in the oem snap 13:14
ogra_hmm, tha dragonboard u-boot tree or the booti command dont understand CONFOG_RAW_IN'ITRD13:17
ogra_even with the option set i need to use an uInitrd13:18
rsalvetijust ping the maintainer, he can easily find out why13:18
rsalvetihallor at #96boards13:18
ogra_ah i *knew* there was a board channel :P13:18
pittiChipaca: are these messages from very late shutdown, perhaps after journal already stopped?13:29
pittiChipaca: also, I thought snappy uses ephemeral journal only (i. e. not in /var/log)?13:29
ogra_pitti, no, it uses both13:29
ogra_we have rsyslog installed and running13:29
pittiChipaca: oh, you mean you are not seeing late messages in /var/log/syslog? that's rsyslog, not journal13:33
pittirsyslog gets stopped earlier indeed; but still a bit blurry about what kind of messages are missing13:33
=== chihchun is now known as chihchun_afk
liuxgChipaca, ping14:08
=== |svij| is now known as svij
kyrofaelopio, don't merge yet14:30
elopiokyrofa: ahhhh14:31
kyrofaHaha, that's okay14:31
kyrofaelopio, not important14:31
elopiokyrofa: I'm on the hangout.14:31
kyrofaelopio, getting on now14:31
kyrofadholbach, so you've been adding some documentation for the snapcraft plugins?14:43
dholbachkyrofa, yep, I've been going through the app developer manual and checking where we could reintegrate some of the bits from there14:45
kyrofadholbach, I'd like to help with documenting the ROS Catkin plugin14:46
dholbachkyrofa, it would probably make sense to make it a separate article, right?14:47
dholbacha tutorial with an example on how to use the plugin maybe?14:47
kyrofadholbach, yeah probably14:48
dholbachkyrofa, probably easiest to just add it to snapcraft trunk and we import it from there :-)14:48
kyrofadholbach, okay. You're pulling from 1.x, right?14:48
kyrofaelopio, how do you feel about cherry-picking the ROS plugin updates into 1.x?14:49
dholbachkyrofa, right now yes, but soon from both14:49
kyrofadholbach, oh good to know14:49
dholbachkyrofa, right now it's still manual, but we're working on the automatic imports14:49
kyrofadholbach, do you have a favorite article who's format I can follow?14:50
elopiokyrofa: I would prefer not to touch the other branch if we don't have to. Maybe once you finished doing all the changse and are totally happy with the plugins, we can just replace them.14:51
kyrofaelopio, good deal14:51
dholbachkyrofa, no, not really - maybe just make it a walkthrough how to turn an existing ROS project into something which works with snapcraft?14:52
kyrofadholbach, right, I guess that was more of a "where exactly should I put it and how do I make it look similar" question15:05
dholbachkyrofa, if you just place it as a .md file in snapcraft's ./docs that should be good enough15:05
kyrofadholbach, alright. Would it be worth creating a "plugins" subdir there so that directory doesn't just balloon as we add plugin docs?15:06
dholbachI don't know15:06
kyrofadholbach, not important I suppose. I'll just add to the root for now and we can move stuff around if necessary15:07
dholbachyep, let's do that15:07
plarselopio: joining?16:04
elopioplars: uf, sorry.16:04
sergiusenskyrofa, elopio, in case you are feeling bored https://github.com/ubuntu-core/snapcraft/pull/16021:09
kyrofaHey sergiusens, how is brazil?21:10
sergiusenskyrofa, great, going out for dinner now; but the sprint conversation was great, covered many things, all snaps and capabilities more than anything else21:11
sergiusenstomorrow it will be assertions21:11
kyrofasergiusens, awesome :)21:11
geniiblount22:02

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