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

=== timchen1` is now known as timchen119
dholbachgood morning07:16
fgimenezgood morning08:19
zygahey fgimenez :)08:20
fgimenezhi zyga! :)08:21
dshihovtsevChipaca, ogra_  hey guys. Is there any way to set nofile limits for service before snap packages install, in package.yaml or somewhere else?09:23
JamesTaitGood morning all; happy Wednesday, and happy Day Of Reconciliation! 😃09:37
=== ara is now known as Guest6835
ogra_dshihovtsev, i doubt that ... the new "capabilities" implementation miht change that in the future though10:22
ogra_but probably Chipaca knows more10:22
=== ara_ is now known as ara
=== beowulf is now known as Guest16591
Chipacadshihovtsev: no. I'd expect the gadget (in 15.04: oem) snap to do that, fwiw11:04
=== beowulf_ is now known as beowulf
dshihovtsevChipaca, ogra_ got it, thanks11:41
=== verterok-away is now known as verterok
stevebiscuitChipaca: for your pleasure: https://github.com/ubuntu-core/snappy/pull/25814:29
kyrofaelopio, having trouble?14:32
kyrofaelopio, you must be, heh. Ping me when you get back :)14:36
fgimenezChipaca, regarding snappy-m-o's comment https://github.com/janinko/ghprb14:37
jdstrandChipaca: hi!14:58
jdstrandChipaca: I had a couple of questions regarding all snaps. are you around?14:58
kgunnstgraber: hey there, i've been using lxc reliably and had lxcbr0 working....but after just updating my xenial host last night, not lxc fails to start15:58
kgunni've reinstalled15:58
kgunnand tried to delete, and launch new containers...15:58
kgunnall fail to start with the same err15:58
kgunnhttps://drive.google.com/a/canonical.com/file/d/0B4GvOYxwuvpFQ0tDZjh4YVJlVlk/view?usp=sharing15:59
kgunnstgraber: that's my lxc info --showlog ^16:00
stgraberkgunn: looks like the problem is that cgmanager isn't running or not working16:14
stgraberkgunn: do you have lxcbr0 on your system?16:15
kgunnstgraber: nope, it's weird and it fails to start if i try to ifup manually....16:15
kgunnstgraber: full disclosure, i've also got it tied to static ip....wondering if i need to reboot my router ?16:16
* kgunn is a networking noob16:16
stgraberkgunn: can you run "sudo /usr/lib/x86_64-linux-gnu/lxc/lxc-net restart", see if lxcbr0 comes back up16:16
kgunnwill try that in a sec...actually on a HO :)16:16
kgunnoh..lxc, can do now16:17
kgunnstgraber: ah...yeah, i see it's up now16:18
kgunnstgraber: fwiw, also...that command spewed back16:20
kgunnhttps://pastebin.canonical.com/146291/16:20
kgunneven tho lxcbr0 came up...16:20
kgunndunno if that matters16:20
kgunnstgraber: thanks btw, back in biz16:34
plarselopio: around? Did you see that I got it working yesterday?17:03
elopioplars: I am now.17:15
elopioplars: I didn't, but that's great news :)17:15
elopiokyrofa: hey, sorry. There was a blackout all morning, and crappy 3g internet.17:16
kyrofaelopio, wow!17:16
kyrofaelopio, not a problem at all17:16
kyrofaelopio, power back up now?17:16
plarselopio: It was building from the downloaded trunk rather than the branch I told it to build, so I had to just symlink my branch after removing the one it pulled down. Do you have some way of automatically dealing with stuff like this? It seems like it would be common to want to use a local copy for testing rather than pulling trunk in every case17:16
elopiokyrofa: all good now. I survived :)17:18
elopioplars: what was pulling trunk?17:18
kyrofaelopio, glad to hear it ;)17:18
Chipacajdstrand: i am around now!17:18
elopioballoons: yesterday I reviewed xcub snap and it is installable, but it doesn't do anything.17:19
Chipacastevebiscuit: um ... do you want to go that way?17:19
Chipacastevebiscuit: I would've expected to use the REST API directly?17:19
plarselopio: in the go path, from getting the dependencies17:19
elopioballoons: if I understand correctly, he's packaging a chat server, so it should be a service that runs on the background, not a binary.17:20
jdstrandChipaca: hey, I was just wondering what the status is of all snaps and 16.04. can I flash an rpi2, bbb, amd64 vm? how? do I need a special snapcraft for all snaps? where is it? will all-snaps os image support installing tar snaps or just squashfs?17:20
elopioballoons: when I was about to reply to him, he left. And I don't understand how to leave comments in codein.17:20
elopioplars: I'm not sure how do you have your workspace set up. I have workspace/go/src/github.com/ubuntu-core, and there I cloned the git repo.17:21
Chipacajdstrand: i don't know about snapcraft and all-snaps. you do need a special u-d-f for all-snaps. An all-snaps os image will not support ar snaps.17:21
elopioso I can checkout a branch that's not master.17:21
Chipacajdstrand: http://people.canonical.com/~mvo/all-snaps/ is what i have for all-snaps17:21
jdstrandChipaca: ok, thanks17:22
plarselopio: I just pointed my GOPATH to /tmp/go, and I was hacking on it in ~/code/snappy or something like that, along with git remotes for your repo17:22
plarselopio: so it sounds like with go, you either adhere to their way of doing things, and either swap dirs around by hand or manually manage the checkout you have there, or you push symlinks around to hack around the way it pulls things in through GOPATH?17:23
elopioplars: yes, my go path and workspace are the same. I suffered a lot with bzr and symlinks trying to keep them separated. git makes it a lot easier.17:23
plarsI imagine so... for some definition of "easier" :). at least with git you can have multiple branches and just checkout the one you want17:24
elopiowith symlinks you can do pretty much everything you like, but it becomes messy.17:24
plarselopio: so one thing that is still keeping it from running without me manually doing something, is that it seems to want a json testconfig file. Is this something we would need to create by hand? I see it's done in main.go right now, but that's not getting used I think if we just use go test17:25
elopioplars: yes, that's how we pass arguments from the host to the testbed.17:25
stevebiscuitChipaca: do you think it would be better to have that code in WebDM itself instead? I saw that work to develop a client lib had already started and thought it wouldn't be great to duplicate effort. I almost had to toss a coin tbh17:26
Chipacastevebiscuit: I ... i honestly don't know. I *do* know that the situation we have now, where webdm needs to be released in lockstep with snappy is a pain (and running webdm on systems with old snappys a nightmare)17:27
Chipacastevebiscuit: I fear we may inadvertently slip into this again even using the rest api if we link against a client in snappy itself17:28
Chipacastevebiscuit: that's why for a while i entertained making client a separate project entirely17:28
Chipacaotherwise it's too easy to make it chummy with snappy itself17:28
Chipacaand on good days i'll catch those, but on bad days i won't17:28
stevebiscuitChipaca: yeah, separating webdm from snappy is a priority from my pov, currently that client lib is just handling HTTP-over-socket17:30
stevebiscuitChipaca: maybe bite the bullet and create a new snappy-client project now?17:31
stevebiscuitChipaca: as it stands, my PR can be relocated easily17:31
Chipacastevebiscuit: go for it17:32
DoughballHello all. I'm working on a new product that uses the Beaglebone Black as a gateway device. I would really like to use Ubuntu Snappy Core in this product, but I am worried that it is not yet "production" worthy. Is Ubuntu Core completely stable at this point for product use?17:32
Chipacamectors: ^17:33
ChipacaDoughball: 15.04 is being used for production by a few folks17:35
ChipacaDoughball: I work on rolling, which is most definitely not stable :-)17:35
Chipacabecause we break it all the time17:35
ChipacaDoughball: but 15.04 should be stable enough (and we do fix bugs in it if you find any)17:35
ChipacaDoughball: but mectors is probably a better person to talk to if you need commercial guarantees17:36
stevebiscuitChipaca: ok, I'm game, I'll close that PR and work at creating a new project containing the existing commits to the client lib17:36
Chipacastevebiscuit: holler if you need help, as always17:37
plarselopio: from what I gather, I mostly just need to give it the release and channel17:37
DoughballChipaca: Thanks.17:37
Chipacazyga: elopio: ^^^ stevebiscuit is going to create a snappy rest api client project17:37
Chipacaa lot of the team is out most days until next year (the old “yikes, i never used my holidays” dance)17:38
stevebiscuitheh17:38
Chipacastevebiscuit: but i guess you know that already17:38
zygaChipaca: mmm?17:39
elopioplars: we could probably also get default values if the file doesn't exist.17:39
zygaChipaca: so now bits go to separate project?17:39
zygaChipaca: client bits17:39
plarselopio: do the tests actually need them?17:39
Chipacazyga: so webdm and snap both talk to that17:39
Chipacazyga: yarr17:39
zygaChipaca: ok, so I guess 'snap' the executable is going to live there too?17:39
Chipacazyga: and ubuntu-image17:39
Chipacazyga: either there, or in a *third* place17:40
zygaChipaca: so all the capable patches I'll post (har har) will target that17:40
elopioplars: we use it to tell the setup to start with an update or rollback. If you don't want those scenarios, then it won't be needed.17:40
Chipacazyga: how deep is your pipeline right now?17:40
Chipacastevebiscuit: hold it17:40
zygaChipaca: well, all the stuff I have now can be neatly dropped on top of trunk, it's entirely self contained17:41
Chipacastevebiscuit: maybe we land zyga's work first, then split, in which case your change could land as is17:41
zygaChipaca: I haven't touched renaming CLI bits and other things we've agreed to17:41
Chipacastevebiscuit: zyga: you guys work it out, i've got to go make kids do homework :-)17:41
zygaChipaca: I don't have any strong feelings about landing it before17:41
zygastevebiscuit: so without reading the backlog, how urgent is this?17:41
Chipacai'm flexible, you both know the forces driving the change, so17:42
stevebiscuitChipaca, zyga: I'm just about to EOD now so wouldn't be starting until tomorrow17:42
zygastevebiscuit: same here17:42
elopiostevebiscuit: please involve fgimenez tomorrow.17:43
Chipacaah, ok, let's talk tomorrow then17:43
Chipacafgimenez is like elopio but utc+117:43
elopiowe could use the same client for the user tests.17:43
elopioand less hair.17:43
stevebiscuitheh17:44
stevebiscuitok, I'll start a discussion in the GMT morning and we can decide what's going in and being taken out of where17:45
=== stevebiscuit is now known as stevebiscuit|awa
elopioogra_: would this work even if test exists != 0?17:47
elopiotest "$(./stage/bin/test)" = "Hello world"17:47
ogra_elopio, what are you assigning that hello world to ?17:49
elopioogra_: mmm, nothing. It's just checking the output of the test binary.17:51
ogra_test "$(./stage/bin/test)" && echo  "Hello world"17:52
ogra_that will echo "hello world" if test exits true17:52
Chipacastevebiscuit|awa: zyga: elopio: ftr niemeyer says we should split it later, to keep the speed, as long as we can keep an eye on the issue of chumminess17:52
ogra_test "$(./stage/bin/test)" || echo  "Hello world"17:52
ogra_and that if test exits false17:53
elopioogra_: right. But I wanted to know if test "$bin" = "something" would be affected by the exit value of bin.17:54
elopioI've just thrown it at travis, we'll see soon.17:54
ogra_oh, no, it shouldnt if you exec it in a subshell and just use the output value( i.e. "$(...)"  )17:55
elopiodamn it. I spend the whole night debugging why the binary failed when run from python.18:00
elopioit was not that. It has always failed when run in travis. :@18:00
=== foli_ is now known as foli
balloonselopio, load https://codein.withgoogle.com/dashboard/task-instances/5486692492378112/, and enter your comments18:41
kyrofaelopio, when you're able: https://github.com/ubuntu-core/snapcraft/pull/169/files18:45
kyrofaelopio, https://github.com/ubuntu-core/snapcraft/pull/169 rather18:45
=== j12t_ is now known as j12t
jerryGtedg are u there?22:13
tedgYup, howdy jerryG22:14
jerryGtedg: I'm trying to get pkgconfig working.  How do i use pkg-config-sysroot in snapcraft?22:15
jerryGtedg: I found this: https://github.com/ubuntu-core/snapcraft/blob/master/examples/godd/snapcraft.yaml22:15
jerryGtedg: but I'm trying to add .pc files22:16
jerryGtedg: the .yaml in that example is only .so files22:16
tedgjerryG: pkg-config will work generally if you just install it as a stage-package, we'll setup the paths and such.22:18
tedgjerryG: Are you trying to mkae a part fo the library with a .pc file?22:18
jerryGtedg:  yeah I've got a few .pc files I need to add to pkgconfig22:19
tedgjerryG: So if you stage-packages pkgconfig you should be able to install them into the staged area of /usr/lib/pkgconfig22:20
tedgjerryG: Make sure to use the after directive to align your parts so they build in order.22:21
jerryGtedg:  thank you22:22
jerryGtedg: do I put the .pc files under filesets?22:23
tedgjerryG: You shouldn't need to worry about that starting out as the default is to copy everything. You'll probably want to filter them later, but don't worry about that at first.22:25
jerryGtedg: do u have any examples on pkg-config w/ stage-packages ?22:26
tedgjerryG: Hmm, I can't think of one. But I know I fixed a few bugs with it, so we've done it. Doesn't look like the current examples do it though.22:28
jerryGtedg: can u send me one?22:28
jerryGtedg: :)22:28
jerryGtedg: plz22:29
tedgjerryG: I don't have one, but if I run across one I can pass it along.22:30
jerryGtedg: k thx.  do u need my email?22:30
tedgjerryG: Sure, but also you could post a message to snappy-app-dev to see if anyone else has one.22:32
jerryGok22:32
jerryGtedg: is that another irc?22:32
jerryGtedg: or just mailing list?22:32
tedgjerryG: Mailing list22:32
jerryGtedg: pastebin.com/raw/wSjA2zVp22:36
tedgGot it22:39
jerryGtedg: thx22:39
=== retrack is now known as Guest24857

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