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

sergiusenselopio, I pushed an integration test01:49
* sergiusens waves goodnight and calls it a day01:50
=== chihchun_afk is now known as chihchun
dholbachgood morning05:59
=== shuduo-afk is now known as shuduo
shuduokgunn: just want to update what i did yesterday and today. i finally made qt clock demo work with vm. the early error msg might be lead by network problem. I used command line to install mir.mvp-demo few times and got it installed at last. then I followed Darren Landoll's method to change mir-run and install qt clock demo and see it run perfect now.06:56
fgimenezgood morning07:05
Chipacaoh, that's nice08:04
mvohm?08:05
Chipacafmt doesn't check the return value of its internal buffer handling08:05
Chipacaie, do fmt.Println or fmt.Printf08:05
clobranomorning all :)08:06
* Chipaca reads further08:06
Chipacaah, it's not a bytes, but a []byte with their own implementation of write that never returns error08:07
Chipacaok, fair enough08:07
Chipacaooh, and bytes.Buffer's write also has โ€œerr is always nilโ€08:09
* Chipaca throws away some ifs08:09
=== bigcat__ is now known as bigcat
JamesTaitGood morning all; happy Tuesday, and happy Brandied Fruit Day! ๐Ÿ˜ƒ  ๐Ÿ’09:03
Chipacajdstrand: ogra_: mvo: https://code.launchpad.net/~chipaca/snappy/config-modules/+merge/27498709:13
Chipacajdstrand: ogra_: as it says in the branch, please do comment09:13
Chipacalooking for feedback09:13
ogra_Chipaca, why is potato a boolean ?10:08
* ogra_ would expect a list instread ... 10:09
Chipacaogra_: because you potato, or you no potato10:13
Chipaca:-p10:13
Chipacaogra_: why a list?10:13
Chipaca(if you say the above with a pseudo-latvian accent, we could do the whole shtick)10:14
ogra_Chipaca, because for i.e. firewalling i have to load a bunch of modules having a list makes it a lot easier for the admin10:14
ogra_vs calling the same command over and over to load them all10:15
* ogra_ commented on the MP10:15
Chipacai'll reply in the mp for jamie's benefit10:16
ogra_ogra@anubis:~/datengrab/images$ ls /lib/modules/3.13.0-65-generic/kernel/net/netfilter/|wc -l10:18
ogra_11510:18
ogra_there is a module for each and every sub-function of the firewall ...10:19
Chipacaogra_: replied10:21
ogra_me too :)10:27
Chipacaogra_: thanks!10:34
Chipacai'll leave it un-topapproved so jamie can get a word in10:34
ogra_yep10:34
Chipaca@remindme 3h top-approve modules config10:34
nothal_Chipaca: No such command!10:34
ogra_needs the core-config change too anyway10:34
Chipacayes10:34
Chipacaogra_: no time like the present :-p10:37
sergiusensChipaca, hey, mind looking at https://code.launchpad.net/~sergiusens/snapcraft/maven/+merge/27496411:06
sergiusensmvo, if you don't mind https://code.launchpad.net/~sergiusens/snapcraft/1507814/+merge/275021 your input would be good12:23
* Chipaca branches *all* the things12:30
mvoChipaca: and I will start with the make it things instead of if a|b|c{12:36
Chipacamvo: is that a reasonable thing to do this week?12:39
Chipacai mean, me no likey, but deadlines12:39
mvoChipaca: good point, you seemed to suffer so much during the reviews that it looked like a good idea12:40
mvoChipaca: let me time box it12:40
mvoChipaca: and at least outline it12:40
Chipacamvo: ok. I made my suffering explicit just so you knew i wasn't ok with it being like that forever, not for you to fix it now :)12:41
sergiusensmvo, apt has a big ft warning saying it shouldn't be used when scripting; is that no longer the case?12:41
sergiusenss/ft/fat/12:41
sergiusensah, apt install doesn't just search12:42
mvosergiusens: oh, well, its  a bit of a cry-baby12:43
mvosergiusens: but it should be ok, no plans for changes in the cli for 16.0412:43
sergiusensmvo, maybe a different MP? This doesn't look very nice http://paste.ubuntu.com/12876464/12:45
mvosergiusens: hm, ok12:47
sergiusensmvo, there, fixed; maybe approve now :-)13:01
sergiusensmvo, now that the meeting is over, approve my MP :-)13:43
mvosergiusens: sorry I misclicked and did not notice13:45
mvosergiusens: this was never "needs-fixing"13:45
sergiusensmvo, ah, well I abide to what the reviewer told me or it would be just bureaucracy to ask for reviews :-D13:46
elopioogra_: can you help me making sense of this? "Debian supports the runtime modification of the Device Tree which is a feature required by BeagleBone-IO"13:47
elopiothat's the dtoverlay you enabled for rpi, right?13:47
ogra_elopio, where is that from ?13:49
ogra_oh, BBB13:49
elopioogra_: https://github.com/julianduque/beaglebone-io13:49
ogra_well, thats a BBB feature13:49
ogra_i doubt the Pi can support it13:50
ogra_BBB does that through capemgr ... (which seems to have gotten a replacement in 4.2 that ppisati perhaps knows the name for :) )13:50
tedgogra_: davidm was trying to make a library to have standard GPIO across boards.13:50
tedgogra_: Focusing on the 96boards, but might be something useful.13:51
elopioogra_: I'm not looking after pi support for it. I just want to run beaglebone-io on bbb. But U didn't understand that requirement.13:51
elopioI don't have a /sys/devices/bone_capemgr.*13:51
elopios/U/I/13:52
ogra_elopio, right, thats a hack ... and it got replaced by some new mechanism in the mainline kernel afaik13:56
ogra_(capemgr is a hack i mean)13:56
elopioogra_: ok. Let me give it a try.13:57
ogra_tedg, i wish him good luck with that :) (given that each and every board manages them different and in different layers of the system)13:58
tedgogra_: Yeah, his goal was to align it with what users see on the board. i.e. on the header the first pin, because that could be any number of GPIO.14:01
tbrogra_: cape manager is essentially back, now that it's mainline14:01
ogra_tbr, ah, then i dont get why we dont have it in our 4.2 kernel14:01
tbrcheck with rcn?14:01
tbrprobably different api/incantations now14:01
ogra_ppisati, ^^^ ?14:02
tbrthe official debian bbb images with 4.x kernel should support dynamical dtbo loading14:03
ppisatiogra_: nope, there's no cape manager in 4.214:22
ppisatiif they pulled it in 4.3+, i didn't notice that14:23
ppisatibut i might have missed it14:23
ogra_ppisati, well, i wonder how to dynamically load dtbs then14:24
ppisatiogra_: i don't think there's any replacement fir that14:26
ppisatiogra_: my bet is tht they are running with a patched kernel14:26
ogra_well, see what tbr said above ... seems rcn-ee might know something here14:26
ogra_if we need a patch we're indeed screwed14:26
ppisatitbr: i don't see the capemanager in mainline, where is it?14:32
=== chihchun is now known as chihchun_afk
tbrppisati: I'm not familiar with details, but I know overlays should work in 4.2 or 4.3. ask rcn-ee for details, he knows which patches he needs on top of which kernel version14:46
tbror just look at the BBB scripts14:46
ppisatitbr: overlays are a way to change a single field in a DT node, cape manager builds on that14:47
ppisatitbr: and AFAICS, cape manager is not in mainline14:47
tbrppisati: I didn't say that the 3.8.x kernel cape manager was 1:1 available in mainline now...14:47
elopiofgimenez: my only complaint about that waffle is that it's not free. Doesn't taiga give us something similar?14:49
tbrI do know though that rcn has been working on making things work in a *similar* fashion with his builds of mainline for BBB which seemed to have a fairly thin patchset (composition unknown)14:49
fgimenezelopio, mm it's free unless you use github enterprise https://waffle.io/pricing. maybe taiga also integrates with github, i'll take a look14:51
elopiofgimenez: gratis, no libre :)14:52
fgimenezelopio, yep :) iirc there was another project like this hosted in github itself, let me check14:54
fgimenezelopio, this one has an Apache License https://github.com/TWtablero/tablero, haven't tried it though15:00
elopiosergiusens: tedg: nexe creates a single file for nodejs projects. That seems like a nice shortcut :)15:00
elopiohttps://github.com/jaredallard/nexe15:00
tedgSeems like wrapping your JS in Python might be the definition of crazy :-)15:02
tedgThough certainly up for stealing code ideas.15:03
davmor2tedg: but if he wraps the python in bash it's ideal right?15:04
tedgI think it should *compile* the Python to Bash.15:04
elopioall the cool kids are compiling interpreted languages.15:06
RlyehHi15:46
RlyehI cant run apps under docker :(15:46
RlyehThis is my system information: http://paste.ubuntu.com/12877538/15:47
RlyehI cant start cgproxy, here is the status: http://paste.ubuntu.com/12877531/15:47
RlyehAnd this is my apps and their ports: http://paste.ubuntu.com/12877540/15:48
RlyehDocker cant run apps, why?15:48
RlyehHow can I run apps under docker?15:49
Chipacahmm, i don't remember who worked on the docker snap15:50
ogra_Rlyeh, you mean ther eis no owncloud running if you try to connet to it ?15:50
ogra_works fine here15:50
RlyehYes15:50
sergiusenskickinz1|away, ^15:50
RlyehI'm in Iran, recently, docker applied some restriction for Iran and I cant login and pull images15:51
RlyehHowever owncloud is a local image15:51
RlyehBut I cant run it15:51
ogra_no, the snap pulls from docker i think15:51
ogra_you should see info in syslog15:52
ogra_and it should tell you there if it cant startz15:52
ogra_*start15:52
RlyehSnappy downloaded the image, it was about 22MB15:52
ogra_thats only the env ... it then pulls the docker owncloud install on first startup i think15:52
RlyehOK, let me check the log...15:53
ogra_in any case, kickinz1|away is your man ... he m,aintains both packages15:53
ogra_theoretically snappy install docker and then snappy install owncloud should give you a working owncloud install though15:54
ogra_hmpf ...16:04
ogra_i think wer need to do something about our initrd ...16:04
ogra_booting with no root= arg set drops me into a shell ... while i would expect it to reboot on panic instead16:05
ogra_mvo, i'm wondering, does dropping to an initrd shell ever make sense in snappy ? i wonder if we should rewrite the panic() function for this to force a reboot instead16:06
Guest42341why am i on this channel??? wtf16:08
mvoogra_: there is a open bug about this and pitti has some suggestions what we can do to make it do a reboot instead16:10
RlyehOgra_, I didn't see anything wrong, but can you please check my log? http://paste.ubuntu.com/12877687/16:10
ogra_well, we just need to replace initrd's panic function16:10
ogra_Rlyeh, syslog, not dmesg16:10
ogra_dmes will only have kernel messages16:10
ogra_nothing from services usually16:11
RlyehBy what command? syslog is not valid16:11
ogra_sudo less /var/log/syslog ?16:11
ogra_or some such16:11
Rlyehoga_, you were right, the package was not pulled: http://paste.ubuntu.com/12877810/16:25
RlyehDamn it, why did they blocked Iran? :(16:25
Chipacaogra_: do you recall offhand why we have pycurl on the image?16:37
ogra_i think that predates me16:38
ogra_but let me bet .,... zyga ?16:38
ogra_Chipaca, hmm, was snappy itself not initially python ?16:42
Chipacayes16:42
ogra_could be a leftover from that16:42
Chipacawe've got pycurl, urllib3, and requests16:42
ogra_to download snaps16:42
sergiusensChipaca, I know16:43
sergiusensChipaca, system image16:43
Chipacasergiusens: it uses all those?16:43
ogra_oh16:43
sergiusensChipaca, it uses pycurl16:43
Chipacaah, k16:43
Chipacaand requests?16:43
sergiusensChipaca, is that directly seeded16:44
Chipacadunno :)16:44
ogra_likely not16:44
Chipacai just happened to ls /usr/lib/python*/dist-pacakges16:44
Chipacaand saw more than i was expecting16:44
Chipacaincluding jinja (!??)16:44
sergiusensChipaca, urllib3 is a dep for requests; I don't think anyone is using urllib3 directly16:45
Chipacaah, ok16:45
sergiusenswe just need to figure out who uses requests :-)16:45
sergiusensogra_, where is the package manifest for the latest build?16:45
ogra_just ubseed it and see what fails ;)16:46
ogra_http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/wily-preinstalled-core-amd64.manifest16:46
sergiusensogra_, it isn't directly seeded, is it?16:46
ogra_wily16:46
ogra_http://cdimage.ubuntu.com/ubuntu-core/vivid/daily-preinstalled/current/vivid-preinstalled-core-amd64.manifest16:46
ogra_vivid16:46
sergiusensChipaca, ogra_ so cloud-init depends on python3-requests ;-)16:47
ogra_and no, i dont see it in the seeds16:47
ogra_oh man16:47
=== Guest83_ is now known as Norbell
=== greyback__ is now known as greyback
mvo_ogra_: I suspect there is something with the resize script, if I remove system-ab my system hangs forever in what appears to be the resize script. is there a way to enable debug mode, i.e. see what its doing?18:57
kgunnsergiusens: so y;day we were discussing how snapcraft shouldn't look outside it's proj directory for pulled libs...and i ran into something just want to chat thru21:00
kgunnso for mir, i got snapcraft to the point of actually compiling on my wily machine (where boost is installed on the system)21:00
kgunnso went to lxc for vivid, started there...didn't get past cmake...21:01
kgunnwell, mir has a FindBoost.cmake that searches for boost based on $boostroot or some such, if it can't find it goes to /usr where it finds it...21:01
kgunnin this case, should i simply create a plugin extension specific to mir, to pass in a Boost_DIR=<dir>  as part of the cmake .. call ?21:02
kgunnalso...kind of interesting that the cmake file went and looked for stuff outside the project dir, not sure how snapcraft would fight against that...21:03
tedgkgunn: We can't fight against it other than when you push it to LP it won't work.21:08
tedgkgunn: The cmake plugin has a parameter I believe for build flags, let me check.21:09
kgunntedg: i mean that's not awful...but if i hadn't tried it in lxc, i wouldn't have realized21:10
tedgkgunn: Yeah, it's an array, configflags, those will get passed to cmake21:10
tedgI think we need to figure out a warning or something. Not sure how we'd implement it.21:10
tedgBut yeah, I've had that problem.21:10
gchristensenHi, is there documentation on making a snappy package for a docker image?21:14
tedgI think that kirkland wrote a blog post on that... let me look.21:32
gchristensenanother thing is, is there a way to install ruby? :/ `search` isn't showing anything.21:32
tedggchristensen: You wouldn't install ruby in the base system, it would be included in the application that uses it.21:34
tedgAh, there it is. gchristensen: http://blog.dustinkirkland.com/2015/07/prime-time-docker-juju-and-snappy.html21:35
gchristensenok, thank you for the help and information tedg. I don't think snappy is a good fit for this project, though.21:36
gchristensencheers, good luck -- I look forward to checking it out again in a year or so.21:36
sergiusenstedg, kgunn the best way to circumvent that is to put snapcraft under apparmor and restrict access to /include and /usr/include ;-)21:44
sergiusensnot the best way, just a quick way21:45
tedgYeah, I figured that wouldn't be flexible enough. As we'd want the libc headers from there, for instance.21:45
tedgPerhaps if we could make it only give a warning or something like that.21:45
sergiusensright21:46

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