/srv/irclogs.ubuntu.com/2015/10/27/#snappy.txt

liuxghi, I have my raspberry pi 2 device. I do not have a HDMI display yet for it. I have flashed the Snappy software for it at the instructions: https://developer.ubuntu.com/en/snappy/start/raspberry-pi-2/. Now, I boot it, how can know it is booted? I connect it to my TTPlink router. I want to find its IP address to ssh login01:12
=== chihchun_afk is now known as chihchun
dholbachgood morning07:59
clobranomorning all08:02
fgimenezgood morning08:06
shuduomorning, anyone has made mir working as snap on arm platform like RPi2 or BBB?08:11
Chipacashuduo: not yet08:20
Chipacashuduo: that's blocked on mir having a software renderer i think?08:20
shuduoChipaca: can it be rendered by software render with bad performance?08:22
Chipacashuduo: I don't think it can, at present, but I'm not entirely sure.08:23
shuduoChipaca: :(08:27
=== Guest42341 is now known as supadupa
supadupa??????08:34
dholbachmvo, the diff in https://code.launchpad.net/~mvo/click-reviewers-tools/snappy/+merge/275058 looks like it has a conflict - I also had a question about the recommends: wouldn't it be better to just make it depends instead?08:46
mvodholbach: let me fix the conflict08:47
mvodholbach: not sure about the depends/recommends, I have no strong opinion08:48
dholbachmvo, I just thought that if it's a recommends c-r-t would need a check if the tools are actually available08:49
mvodholbach: yeah, it will fail to unpack a squashfs and error in this case. I'm happy to make it a depends08:49
dholbachoh ok... if we have the check, then I guess it's fine - I don't have a strong preference either08:50
mvodholbach: maybe you can mention it in the review and jamie can decide what he prefers?08:51
dholbachsure08:51
dholbachmvo, good work08:55
Chipacatop of the morning, people!08:57
* Chipaca 's coffee kicked in08:57
dholbachhey, good morning Chipaca08:57
Chipacadholbach: how's things?08:57
dholbachgood good - just scheduling UOS sessions :)08:58
dholbachhow about you?08:58
Chipacadholbach: no, not scheduling uos sessions :)08:59
dholbachyeah, that would have surprised me :)09:00
JamesTaitGood morning all; happy Tuesday, and happy Cranky Co-Workers Day! 😃10:12
ogra_mvo, oops, sorry, i only landed the modules bits in wily it seems10:20
mvoogra_: no worries, I uploaded it to vivid now10:21
* ogra_ sighs, so much email backlog11:02
ogra_mvo, sergiusens, so if i understand the oem snap change  correctly i now need to ship all the files that would live under /boot/overlay/* in the toplevel, need to mention each of them separately in the yaml and define a dst /boot/overlay/foobar.dtb ?11:17
sergiusensogra_, heh, mvo is working on it, not me ;-)11:17
sergiusensave you heard, I'm not doing provisioning anymore :-P11:17
ogra_sergiusens, ah, i thought it was also a u-d-f feature11:17
sergiusensit is ;-)11:17
ogra_oh, not at all ?11:17
ogra_k11:18
sergiusenswell I am helping out, but not driving features anymore11:18
mvoogra_: its a u-d-f feature but sergiusens is sneaking away from it. so I think /boot/overlay was not working at all before11:18
mvoogra_: now it works, would you prefer a glob? I'm not sure I understand the question, what will be needed? i.e. what should /boot/overlay/ look like eventually?11:19
ogra_mvo, no, it wasnt, which is why i simply shipped a tarball of it on the RPi that the admin can extract11:19
mvoogra_: ok, now it does11:19
ogra_mvo, the binary blob expects the overlay dtb's in the overlay subdir relative to where itself is stored (in oyur case /boot/overlay)11:20
mvoogra_: ok, thats support by u-d-f now, snappy does not yet have it11:20
ogra_err11:20
ogra_sorry11:20
ogra_/boot/uboot/overlay11:20
mvooh11:20
ogra_(RaspberryPi2)ubuntu@localhost:~$ ls /boot/uboot/over*11:20
ogra_/boot/uboot/overlays.tgz11:20
mvo/boot/uboot/overlay should already work11:20
ogra_this is what i ship now11:21
ogra_so you ave to cd /boot/uboot/ and tar xf that file11:21
ogra_(RaspberryPi2)ubuntu@localhost:/boot/uboot$ sudo tar xf overlays.tgz11:22
ogra_(RaspberryPi2)ubuntu@localhost:/boot/uboot$ ls -l overlays|wc -l11:22
ogra_4011:22
mvoogra_: so you want a glob to avoid to list the 40 things idividually?11:22
ogra_it would indeed be good to have globbing, so i dont need 80 extra lines in the yaml ...11:22
ogra_but at least it is better than before if i can somehow ship them by default without the untarring11:23
mvoogra_: hm, so if the target is /boot/uboot/overlay that should work now already, what am I missing? what failure do you get?11:23
ogra_mvo, i'm not getting any failure :) i was asking if this works now11:28
ogra_so i can change the build setup for the oem11:28
ogra_(and get rid of the untarring)11:28
mvoogra_: it should also work before, it requires the files to be listed individually though11:28
ogra_(before it simply ignored /boot/uboot/overlay completely, it didnt show up at all)11:29
mvoogra_: you can give it a "target: overlay/new-name" iin the yaml11:29
ogra_ok, thats what i tried in the past and didnt work ...11:29
ogra_if that works now i'm fine11:30
ogra_(dirs were completiely ignored)11:30
mvoogra_: it should, lets talk after lunch11:30
ogra_ok11:30
mvoogra_: no glob support yet though, that would have to be added11:30
ogra_that would surely be helpful ... but i'm also fine defining two lines for each file11:31
ogra_mvo, but we need to talk about dtb handling on RPi anyway ... since the dtb needs to be loaded by the blob before uboot and we have no way to make that happen from /boot/uboot/a|b ...11:32
ogra_(so kernel upgrades will not work)11:32
FacuHola :)12:42
ogra_hey hey :)12:42
Facusergiusens, so, what do you mean with "my cache"? in my host?12:42
ogra_Facu, do you run multiple snappy installs in your lan (with each of them having a webdm) ?12:43
sergiusensFacu, mdns is just multicast dns; something multicasts a name (webdm.local) and the clients cache it12:43
Facuogra_, no, only one (a raspi)12:43
ogra_mDNS can indeed only assign that name once12:43
sergiusensFacu, the cache should be as the ttl of the multicast dns entry (iirc)12:44
noise][fwiw, we've seen that IP bug in a few different environments now12:45
noise][cprov and I have both run into it as well, and for some odd reason it seems to resolve properly from OS X hosts but not from Ubuntu hosts12:46
ogra_sounds like our avahi client setup might be buggy12:53
mvoogra_: yeah, maybe we can talk after the standup?12:59
ogra_mvo, sure12:59
ogra_btw ... could we probably fix the schedule somehow ?13:00
mvoogra_: sure, just create a meeting13:00
ogra_i mean the standup one :)13:00
mvoogra_: oh13:00
mvoogra_: fix in the sense of moving it 1h later?13:00
ogra_when brazil got DST it moved by 1h ... now that germany got DST it moved by another hour13:00
ogra_so effectively (for me at least) it moved 2h13:01
ogra_(15:00 local time for me instead of the former 17:00)13:01
sergiusensogra_, move one hour into the future again would not hurt :-)13:02
ogra_i mean, i'm fine if we keep it that way but i think thats a bit early for the western countries13:02
ogra_sergiusens, yeah13:02
sergiusensogra_, that way, it would be steady all year long for the saner countries ;-)13:02
ogra_well, sane countries are rare in this case ... thats the prob :)13:03
longsleep+1 for the snappy timezone13:04
mvofgimenez, elopio: if its trivial for you, it woudl be great if you could stop tarmac. the git move is happening today. if you are busy I can try to find the right card and do it myself (stop cron)13:15
longsleepurgs snapcraft now has JSON schema13:17
fgimenezmvo, ok on it13:19
mvothanks a lot fgimenez13:19
fgimenezmvo, i've commented out the crontab entry, now it should be disabled13:21
mvofgimenez: \o/13:22
=== chihchun is now known as chihchun_afk
Chipacaogra_: why have bip and kiwi in the same snap? wouldn't them being separate be just as easy?13:42
ogra_Chipaca, to make install and maintenance easier ...13:43
Chipacaogra_: ok :)13:43
plarsis there a good way to pass ssh options to snappy-remote?13:43
ogra_Chipaca, i wouldnt drop the standalone ircproxy bip snap ... this would be more a "irc-client-phone-backend" project snap that actually bundles everything needed and has all bits hardwired13:44
ogra_i.e. an "application backend" that ships all parts pre-configured already13:44
ogra_indeed there could be standalone a kiwi snap too13:45
Chipacaogra_: three snaps: one bip snap, one kiwi snap, one ogra-badass-oem snap to tie them up and config them13:48
ogra_Chipaca, i dont want to build an appliance13:49
ogra_(you make it sound like i could just use oem as "metapackage" replacement)13:49
Chipacaogra_: i'm *shocked* you'd even *hint* at me saying something like that13:50
* Chipaca tries to deliver that without smiling13:50
ogra_heh13:50
plarssergiusens: is snappy-remote intended to be a supported tool? seems to be in a junk branch?14:01
plarssergiusens: or should I just bypass it and do everything over ssh14:01
ogra_plars, isnt it the same as ssh ... ?14:02
* ogra_ doesnt really see the advantage over just plain ssh14:02
plarsogra_: I could do the same by just doing scp the package, install over ssh, yes14:02
sergiusensogra_, as soon as we use the rest api it will add more value14:03
plarsogra_: it's just a convenience thing, and if it's a supported tool I'm happy to use it14:03
ogra_ah14:03
plarsogra_: but that's why I asked. I'm getting the impression I should just ignore it14:03
plarsfor now at least :)14:03
ogra_i surely do :)14:04
Facusergiusens, ogra_, noise][, it seems that webdm is answering the bad IP14:07
Facusergiusens, ogra_, noise][, remember, first ping webdm.local goes to 192.168.100.130, second one goes to 254.86.90.14014:08
Facusergiusens, ogra_, noise][, and this is the multicast dns response from the raspi: http://linkode.org/U6Tclhm1i4S9VcbmNjMEM614:09
Facusee line 98 there14:09
noise][interesting14:11
ChipacaFacu: what logs do you get from webdm? the Publish <....> are the ones i'm interested in14:13
ChipacaFacu: sudo snappy service logs webdm14:13
FacuChipaca, http://linkode.org/DnzzdEWN8dffBE3FkpCzk214:14
FacuChipaca, see the IPv6 in the last line of the logs, the weird IPv4 returned in the mdns response, and this:14:16
Facu>>> 0xfe, 0x56, 0x5a, 0x8c14:16
Facu(254, 86, 90, 140)14:16
Chipacathat was what i was looking at just now, indeed14:16
Facuit looks like it's adapting the IPv6 to a IPV4 to fit in the mdns response using... a hammer?14:17
ChipacaFacu: yes, but i'm not sure who 'it' is in that sentence14:17
FacuChipaca, neither do I, for sure14:18
sergiusensFacu, that is why I asked for the webdm logs ;-)14:19
sergiusensChipaca, we need to skip ::114:19
sergiusensChipaca, and we can probably just ignore ipv6 in general14:20
Facusergiusens, who is "we"?14:21
noise][i disabled ipv6 on my trusty vm and it gets the right IP after14:21
Chipacait's webdm building the wrong rr14:21
Chipacausing a instead of aaaaaaaaaaahrgh14:22
sergiusenselopio, care to rejoin?14:31
elopiosure14:36
elopiomvo: your msg branch needs a po update.14:38
mvoelopio: will do that, thanks!14:41
dholbachppisati, can we do something about https://bugs.launchpad.net/snappy/+bug/1506480?14:45
ubottuLaunchpad bug 1506480 in Snappy "Broken link in https://developer.ubuntu.com/en/snappy/guides/porting/" [Undecided,New]14:45
elopioogra_: we are getting the watchdog config error, the one that says it's read-only.14:53
elopioBut I see that the last wily commits are your fixes14:55
ChipacaFacu: noise][: can i give you a new webdm to try?15:00
noise][sure, probably in 20' or so15:01
FacuChipaca, yes, please15:04
ChipacaFacu: noise][: http://people.canonical.com/~john/webdm_0.9.4_multi.snap15:05
FacuChipaca, is there a way to install it directly into the raspi?15:06
ChipacaFacu: sudo snappy install http.chipaca15:06
Facuawesome15:06
ChipacaFacu: http.GET http://people.canonical.com/~john/webdm_0.9.4_multi.snap > webdm.snap15:06
* Facu installs a chipaca15:06
ChipacaFacu: sudo snappy install ./webdm.snap15:07
FacuChipaca, no http.GET or wget in the raspi15:07
ChipacaFacu: but you just got it by installing http.chipaca15:08
Facuoh, right15:08
Facusorry15:08
Chipaca:)15:08
FacuChipaca, just because it may be useful for you: 2015/10/27 15:15:48.720387 verify.go:85: Signature check failed, but installing anyway as requested15:16
sergiusensChipaca, elopio initial thoughts? https://code.launchpad.net/~sergiusens/snapcraft/help/+merge/27585815:16
ChipacaFacu: yep, that's expected15:16
FacuChipaca, it doesn't want to install it because there's other package already installed with same name... should I remove the old one, or do an upgrade?15:16
ChipacaFacu: remove it, yeh15:17
ogra_elopio, which one exactly, there were two15:19
Chipacasergiusens: the “can be used in any part irrespective of the plugin” seems to be stronger than what you were describing yesterday15:25
sergiusensChipaca, there are two; what I was describing yesterday is what is in sources15:26
sergiusensChipaca, those are builtin keywords15:26
sergiusensoh and ted https://code.launchpad.net/~sergiusens/snapcraft/help/+merge/27585815:27
Chipacasergiusens: print(getattr(_TOPICS[module_name], '__doc__'))15:27
Chipacasergiusens: why not _TOPICS[module_name].__doc__ instead of the getattr?15:27
sergiusensChipaca, hah, that is indeed better15:27
Chipacasergiusens: the getattrs are getting to you :)15:28
clobranoI'm having a problem with a snap that contains both a binary and a shell script. I'm using security-template: unconfined, but when the binary (called by the script) tries to access an assigned serial device I got this error: ubuntu-core-launcher: error while loading shared libraries: cannot apply additional memory protection after relocation: Permission denied. Any idea?15:28
sergiusensChipaca, the only sucky thing, and elopio pointed it out is if I do a 'help' against this I get a mix of markdown and whatever python's help does15:29
Chipacaclobrano: sounds like you're doing a double-wrap15:29
Chipacaclobrano: your binaries should just call your binaries15:29
sergiusensclobrano, as in the non exported ones; also read as, the internal ones15:30
jdstrandor put another way. call them from SNAP_APP_DATA15:30
ChipacaSNAP_APP_PATH15:30
jdstrandmeh15:31
Chipaca:)15:31
jdstrandyes, SNAP_APP_PATH15:31
jdstrand:)15:31
Chipacaalthough some people are copying the whole snap to SNAP_APP_DATA because their binaries write stuff (?)15:31
FacuChipaca, http://linkode.org/DnzzdEWN8dffBE3FkpCzk2/XoBMe0RVZe8azht6zd006115:31
sergiusensif you built it with snapcraft some things inside there are already in your PATH (./bin, ./usr/bin)15:31
FacuChipaca, doing multiple pings now it works!!!15:31
FacuChipaca, I assume that the mdns response comes ok15:31
ChipacaFacu: shocking!! :)15:31
FacuChipaca, you'll publish this new webdm?15:32
ChipacaFacu: i'll have sergiusens check the code, and then ask him to publish it, yes :)15:32
sergiusensmvo, about the comment from gustavo, I feel it might be good to use target-absolute instead of dst; are we too late to change that?15:32
jdstrandclobrano: do you have snappy-debug installed? you could run in another console 'sudo snappy-debug.security scanlog' and it will give you suggestions (your case here is detected)15:32
FacuChipaca, gracias :)15:32
mvosergiusens: we can do that, I think target-abolute is better indeed15:33
noise][Chipaca: many thanks for the quick fix there15:34
clobranojdstrand: unfortunately snappy-debug crashes with an UnicodeDecodeError...15:34
sergiusensmvo, I approved the size one btw15:34
mvosergiusens: ta15:34
Chipacasergiusens: https://code.launchpad.net/~chipaca/webdm/mdns-nicer-with-ipv6/+merge/275866 when you have a mo15:34
sergiusensmvo, but I leave the addition of the commit message to you15:35
sergiusensChipaca, I have moments now, idling waiting for comments on that help branch now ;-)15:35
jdstrandclobrano: interesting. can you file a bug? alternatively, can you paste the output of 'sudo grep audit /var/log/syslog'15:35
jdstrand?15:35
clobranojdstrand: sure I'll do it15:36
jdstrandclobrano: if you file a bug, please attach /var/log/syslog15:36
clobranojdstrand: SNAPP_APP_PATH is? I tried all the dirs starting from /apps/<package-name>/, but the result's the same15:36
sergiusensChipaca, no need for reverse lookups?15:37
jdstrandSNAP_APP_PATH15:37
clobranojdstrand: yep, typo, SNAP_APP_PATH15:37
Chipacasergiusens: you weren't doing them before, so ¯\_(ツ)_/¯15:37
jdstrandit is /apps/<pkgname>/<version>/15:37
sergiusensChipaca, hah, touche15:38
clobranojdstrand: ok, tried but still the same15:38
Chipacaclobrano: how are you exec'ing the other program, in your program?15:39
Chipacasergiusens: http://people.canonical.com/~john/webdm_0.9.4_multi.snap <- publish plz :) tested by facu15:40
clobranoChipaca: is <programname>.<programname> inside the script15:40
Chipacaclobrano: why programname.programname?15:41
Chipacaclobrano: say you have two programs15:41
Chipacaclobrano: one in bin/foo, one in bin/bar15:41
Chipacaclobrano: say foo is a shellscript15:41
Chipacaclobrano: to run bar, you do: $SNAP_APP_PATH/bin/bar15:42
elopioogra_: sorry, they started cutting down the power here :@15:42
Chipacaclobrano: bin/bar doesn't even need to be in your package.yaml, even15:42
elopioogra_: so I see your two fixes in the wily package in the ppa.15:42
ogra_right15:42
clobranoChipaca: it's the opposite, actually. Is the script that calls the binary. So I have bin/foo, which I can call typing pkgname.foo. Inside foo I call the binary using pkgname.bar15:44
Chipacaclobrano: yes, you do, and that's why it fails15:44
ogra_elopio, so show me the exact error ....15:44
Chipacaclobrano: that's what i'm telling you15:44
Chipacaclobrano: don't do that15:44
elopioogra_: Error: open /etc/default/watchdog.HXUWIktPalrj: read-only file system15:45
clobranoChipaca: get it, $SNAP_APP_PATH/bin/bar is the right way to do it?15:45
Chipacaclobrano: yes15:45
* clobrano tries 15:46
ogra_elopio, and /etc/default/watchdog is a link to /etc/writable/default/watchdog ?15:46
elopioogra_: give me a second to check that.15:47
clobranoChipaca, jdstrand: that works, thank you. Of course I have another problem now :D but not sure is cause by snappy15:47
Chipacaclobrano: i'm sure it is :-p15:47
=== kyrofa_ is now known as kyrofa
clobranoChipaca: ahaha, don't know. Just the binary is blocked opening the device :|15:48
clobranoChipaca: might be the device15:48
fgimenezelopio, have you seen IS email? we can finally access scalingstack from canonistack's lcy01 \o/15:49
elopiofgimenez: yes :)15:49
elopiofgimenez: have you tried it?15:49
fgimenezelopio, yep, i've been playing around, the key is in tarmac's host15:50
elopioogra_: there is no /etc/writable/default15:50
elopioand /etc/default/watchdog is not a link.15:50
elopiofgimenez: great, thanks!15:50
ogra_thats the issue then15:50
ogra_is that a recent image ?15:50
fgimenezelopio, we need to make some adjustments in snappy-tests-job, i'll prepare a branch15:50
* ogra_ goes to check the rootfs build logs if anything with the linking went wrong15:51
fgimenezelopio, there are no snappy images in scalingstack, we must upload our own, snappy-cloud-image fits here well :)15:51
elopiofgimenez: just in time :D15:51
ogra_hmm15:51
ogra_I: Moving /etc/watchdog.conf to /etc/writable/15:52
ogra_I: Linking /etc/watchdog.conf to /etc/writable/15:52
ogra_I: Moving /etc/default/watchdog to /etc/writable/default15:52
ogra_I: Linking /etc/default/watchdog to /etc/writable/default15:52
ogra_the log for the last stable image looks fine15:52
Chipacasergiusens: sorry this review is taking long -- getting sidetracked a lot15:52
ogra_elopio, we are talking about stable, right ?15:53
elopioogra_: this is rolling edge #208 generic amd.15:53
ogra_oooh15:53
ogra_elopio, bah, sigh ... the change went to the PPA livecd-rootfs because the distro was in final freeze, seems that even though it was frozen, a newer livecd-rootfs ended up in wily ...15:54
ogra_i'll bump the version15:55
niemeyer_Folks, I'm starting the dance to move the code into GitHub..15:56
niemeyer_mvo: Is Tarmac frozen?15:57
* tedg hopes this is like a rain dance15:57
elopiothanks ogra_15:57
elopioniemeyer_: yes, tarmac is not running.15:57
niemeyer_tedg: Pretty much :)15:57
niemeyer_elopio: Thanks15:57
ogra_niemeyer_, videos please :)15:58
clobranojdstrand: where's the right place to file the bug? Under the snappy project itself?15:59
niemeyer_ogra_: Ah, that wouldn't work.. the vcs gods don't like soul-stealing devices15:59
ogra_lol15:59
jdstrandclobrano: yes, that's fine15:59
clobranojdstrand: ook15:59
ogra_elopio, i assume it was fine in stable when you tested for the release  (just to make sure)16:02
ppisatidholbach: i commented lp150648016:05
dholbachthanks ppisati16:05
sergiusensChipaca, no worries, I'm going for lunch; my only big regret and open is handling markdown and python help16:05
sergiusensoh, elopio told me to reach out to alecu for that16:06
Chipacaoh, i dunno, alecu is a *manager* now16:06
Chipacawe are not worthy16:06
Chipaca:-D16:06
sergiusensalecu, do you know how to write fancy titles in python docstrings16:06
sergiusensyou have to come full circle, right? :-)16:07
dholbachppisati, brilliant - I'll change it16:07
mvoniemeyer_: yes, tarmac is out of cron16:08
sergiusensmvo, ah, you kill all of tarmac and not just lp:snappy? That explains why other projects aren't landing ;-)16:09
niemeyer_Hmm.. strange..16:10
niemeyer_Got a complaint about tags16:10
niemeyer_14:09:10 WARNING: not creating tag u'\t' pointing to non-existent revision G1szODs1OzIyNm0bWzQ4Oz......16:10
niemeyer_and the output of "bzr tags" indeed seems dirty16:10
mvosergiusens: you move as well, no?16:10
niemeyer_Is it just me?16:10
mvoniemeyer_: uh, indeed16:10
elopioogra_: yes, stable passes the test.16:11
ogra_phew16:11
Chipacasergiusens: reviewed! phew16:21
Chipacaniemeyer_: no, it's not just you16:21
Chipacaniemeyer_: that's my fault, or bzr's fault16:21
Chipacaniemeyer_: you can delete those two tags locally16:21
Chipacabut lp seems to resurrect them16:21
niemeyer_Chipaca: Ok, no worries.. the import process seems to have filtered out exactly the bad ones16:21
clobranojdstrand: I had a look at snappy-debug, a possible fix would be to open the codecs adding the argument errors='replace' (codecs.open(path, 'r', encoding="UTF-8", errors='replace')).16:21
Chipacaniemeyer_: ah, good16:22
jdstrandclobrano: thanks!16:22
clobranojdstrand: I mean, with that change, the crash does not occur anymore on my env, but I'm not sure t'is acceptable as solution16:22
jdstrandI'll take a look16:22
jdstrandclobrano: can you also add the output of this to the bug: set|egrep '(LC_|LANG)'16:24
clobranojdstrand: sure16:24
* clobrano done16:27
Chipacajdstrand: have you been able to look at https://code.launchpad.net/~c-lobrano/snappy/hw-assign-symlink/+merge/274908 at all?16:46
sergiusensChipaca, thanks for the review16:47
Chipacasergiusens: you say that, but :)16:48
ogra_elopio, i kicked off a new rolling build16:52
Chipacajdstrand: sys:1: PyGIWarning: Click was imported without specifying a version first. Use gi.require_version('Click', '0.4') before import to ensure that the right version gets loaded.16:52
elopio:)16:52
=== davidcalle is now known as davidcalle_afk
jdstrandChipaca: re click-apparmor. I can fix that. fyi, still chipping away at removing click-apparmor/go rewrite17:12
Chipacajdstrand: i never doubted it17:12
longsleepHey folks, anyone knows when/if the /tmp/snap.* folders are supposed to be cleaned up?17:13
Chipacajdstrand: that warning is brought to you from xenial, btw17:13
Chipacalongsleep: right now, never17:13
longsleepChipaca: ok - simple enough answer17:13
Chipacalongsleep: eventually, we want something like tmpreaper17:13
Chipacalongsleep: but it's not there yet17:13
longsleepChipaca: any suggestions what i could do in the meantime?17:13
Chipacalongsleep: if it's becoming an issue, file a bug and let us know17:14
Chipacalongsleep: we've only not done anything because it's not been an issue17:14
Chipacaand, priorities17:14
longsleepChipaca: well, every command run does create a new temp file when that command is from a snap17:14
longsleeptemp folder i mean17:14
longsleeprun hello-world.env 1000 times - you have 1000 temp folders17:15
Chipacalongsleep: yes. otoh /tmp is tmpfs, so you're not going to run out of inodes or anything17:16
Chipacayou will eventually run out of space though17:16
longsleepChipaca: right, but if there are files in it it eats ram17:16
Chipacalongsleep: care to file a bug?17:17
jdstrandChipaca: regarding that branch-- fyi, I didn't write the hw-assign udev bits and I wasn't sure how this fit into the future direction for hw assignment, which is why I haven't been looking at it. I figured a snappy core/architect would look at it and I could be pulled in to verify (ie, once the implementation and approach was deemed ok)17:17
longsleepChipaca: sure17:17
Chipacajdstrand: good point. ok.17:18
Chipacaoh, wait17:20
Chipacalongsleep: hold on17:20
Chipacalongsleep: we might actually be doing automatic cleanup already17:20
Chipacalongsleep: AFAIUI we're running systemd-tmpfiles --clean once a day17:21
longsleepChipaca: oh? i just filed bug #1510638 which is slightly different from automatic cleanup17:21
ubottubug 1510638 in Snappy "Per process tmp folders in /tmp/snap.0* are not removed" [Undecided,New] https://launchpad.net/bugs/151063817:21
alecusergiusens: Chipaca: I didn't get the bit about me helping with python docstrings...17:23
alecuI thought nessita was the authority there17:23
Chipacaalecu: sergiusens is a struggling artist of the docstring scene17:24
sergiusensChipaca, ok just pushed your review fixes17:27
sergiusensalecu, heh, elopio said either or :-P17:27
elopioalecu: I imagined you had  something to do with the u1 clients man.17:28
longsleepwhooohooo https://github.com/ubuntu-core/snappy !! Now if snapcraft would move to GitHub too - that would be aweseome!17:30
sergiusenshey elopio neither you or me show up as contributors :-P17:57
elopiosergiusens: we are not wanted :'(17:58
sergiusenselopio, we do show up in the commits though :-P17:58
elopiosergiusens: I see my face in some commits.17:58
sergiusensalecu, nessita so as the docstring folk I'd like to ask: is there an easy straighforward way to override 'help' so it doesn't show the __<atrib-name>__'s such as __weakref__ et. al.? The other one is, are there any formatting rules I can use?18:01
elopiosergiusens: I think it's because I am missing the canonical email in my account18:01
sergiusenselopio, ah18:01
* sergiusens tries18:01
sergiusenselopio, nope18:04
nessitasergiusens, never done that... google does not know?18:04
sergiusensnessita, google might know, I'm sure I just haven't done the right search :-)18:05
sergiusensthere is no way google can't know :-P18:05
alecusergiusens: elopio: I think after changing/adding emails in github it takes a while until contributions start showing properly.18:10
sergiusensseems I need to fork pydoc which I don't want to :-)18:10
alecusergiusens: formatting rules: https://www.python.org/dev/peps/pep-0257/18:11
alecusergiusens: and, if help(dict) shows all the __xxx__ methods, why do you worry about not showing yours?18:12
sergiusensalecu, right, all good with the peppy stuff ;-) Just wondering if there was a way to say "bold" :-)18:14
sergiusensalecu, I don't want to show them because elopio asked me not to :-P18:14
alecusergiusens: elopio: I just did "import httplib; help(httplib)" and I can see *a lot* of __weakref__'s18:16
elopioalecu: right, but they don't show them in the man page.18:16
elopiosergiusens is trying to autogenerate the man from docstrings. And I think it's showing too much info.18:16
elopiosergiusens: I think you can generate the man with sphinx. So you choose the format and what to show.18:17
alecusergiusens: elopio is right, sphinx is what you want there.18:18
alecualso, define the __all__ list at the toplevel of the module, so only those symbols are "public" and I guess the doc generators have some smarts regarding that.18:20
sergiusenselopio, oh, I don't want to generate a man page18:20
elopiowell, a help page. Almost the same :)18:21
sergiusenselopio, but with --devel as a switch ;-)18:22
ogra_argh18:22
ogra_mvo, seems we cant build rolling anymore18:22
ogra_the builds already point to xenial and that completely fails18:23
sergiusensalecu, elopio is it easy to generate documentation on the fly with sphinx?18:23
sergiusensall the intros I've seen require a lot of setup18:23
alecusergiusens: no idea there18:28
alecusergiusens: it seems that a little of markup is allowed on python docstrings: http://thomas-cokelaer.info/tutorials/sphinx/docstring_python.html18:28
alecuand https://pythonhosted.org/an_example_pypi_project/sphinx.html#full-code-example18:29
=== chihchun_afk is now known as chihchun
sergiusenselopio, Chipaca so for the general case I'm not going to worry about sphinx as this looks good to me http://paste.ubuntu.com/12981760/18:50
ogra_mvo, so i did a final wily image build manually now ... nightly rolling will build xenial by default then18:50
ogra_mvo, tomorrow we need to check what we want to copy around in the PPA and what should instead go to the archive, i think this is the moment to clean up the PPA bits for the next release :)18:51
elopioogra_: \o/ xenial18:51
ogra_heh18:52
elopiosergiusens: that looks good. I'm not quite sure about starting with a new line, but looks nice.19:03
sergiusenselopio, oh, it is because my docstrings are not right after """ I can fix that19:12
sergiusenselopio, ok, pushed that, I'll wait for your review19:23
elopiosergiusens: I would leave the deprecated comment for when you do the deprecation.19:25
sergiusenselopio, ok19:25
sergiusenselopio, done19:26
elopiosergiusens: the key is the internal filename whilst the value *IS* the exposed filename19:28
=== chihchun is now known as chihchun_afk
sergiusenselopio, ah, there used to be a comma there... :-)19:29
sergiusensdone19:30
elopiosergiusens: on the topic docstring, you are using ''' instead of """19:30
sergiusenselopio, where? I thought I switched, but habits :-)19:31
elopiosergiusens: do you want the review here or in the branch?19:31
elopiol19219:31
sergiusenselopio, done19:32
elopiosergiusens: l222, s/exists/exist/19:33
=== davidcalle_afk is now known as davidcalle
elopiosergiusens: l251, s/topis/topics/19:34
elopiosergiusens: The maven plugin is useful for building parts that use the maven.19:36
elopioI supposed you are missing a word after the second maven, but I doubt it will fit in 88 chars.19:36
sergiusenselopio, let me rephrase19:37
elopiomaybe: The plugin is useful for building parts that use maven.19:37
sergiusenselopio, word! :-)19:37
elopiosergiusens: and feel free to top-approve after that, because I'm starving.19:39
* elopio leaves for lunch.19:39
alecuSo, it's *the* Dan Kegel (of C10K fame) the one asking about binary video drivers packaged for snappy...19:43
alecuI wonder if he wants to use snappy for mezzanine: http://www.oblong.com/19:44
alecuit looks really slick19:44
sergiusenselopio, great I had already pushed ;-)19:48
sergiusenselopio, is tarmac on again?20:02
sergiusensmvo, or was it you driving tarmac disabling/enabling?20:04
tedgalecu: I hope so, I think we'll need test system though... to help with... collaboration.20:08
mvosergiusens: I was driving the disable20:08
mvosergiusens: I mean, I asked for it20:08
mvosergiusens: if we just disable snappy, thats all I need20:08
sergiusensmvo, great, your goget branches are stuck too btw ;-)20:09
alecusergiusens: btw, it seems that the dev portal is already using sphinx for some of our APIs:20:57
alecuhttps://myapps.developer.ubuntu.com/docs/api/click-purchases.html20:57
alecuhttps://myapps.developer.ubuntu.com/docs/api/iap.html20:57
alecusergiusens: that means that all the styling bits should be solved20:57
alecusergiusens: I understand that the deploy bits too, but I'm guessing you want this to be run on 3rd party devels build environments.20:58
sergiusensalecu, yes, I want it to be interactive and local. In any case; we've moved to the model of writing markdown and d.c.c pulls that in automatically for actual portal docs. With the popularity of github I've seen some projects drops sphinx in favor of githubs internal renderer which to be honest is the perfect balance between simplicity and elegance23:07
AlekMabryHello!23:26
AlekMabryWhen you create a snappy app, can you add applications installed with apt-get to it?23:28
AlekMabryI am making an application that relies on flite, installed with 'sudo apt-get install flite'23:28
AlekMabryBut I don't know how to include flite in my snappy application23:29

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