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

=== chihchun_afk is now known as chihchun
dholbachgood morning08:01
mvofgimenez: good morning! I will preare another stable release of 15.04 today, anything looking risky here?09:25
JamesTaitGood morning all; happy Wednesday, and happy International Anti-Corruption Day! 😃09:29
fgimenezhey mvo! not AFAIK, moreover once the image is published a new cloud image would be generated and the suite will be executed in http://162.213.35.179:8080/09:29
mvofgimenez: awsome09:29
fgimenezmvo, i'm off this week, anyway if you need anything from my side don't hesitate to ping me, i'll be available from 14:00 CET onwards09:30
mvoogra_, ricmm: fwiw, I triggered a new 15.04 build preparing a new stable09:30
mvofgimenez: uh, if you are off then enjoy your time off :) I will bother elopio09:30
fgimenezmvo, thx, anyway i'm not very afk, so if you need a hand just ping me :)09:31
mvofgimenez: thanks! much appreciated09:32
liuxgdholbach, ping09:35
dholbachliuxg, pong09:37
liuxgdholbach, for python package installation, can we put the packages into the setup.py like the way for webcam?09:38
liuxgdholbach, this is the example https://github.com/ubuntu-core/snapcraft/blob/master/examples/webcam-webui/setup.py09:38
dholbachliuxg, I don't understand09:41
dholbachwhich packages do you want to install? which do you want to add to setup.py?09:41
liuxgdholbach, for example, we can put the django packages into the "install_requires" field in the file if the package is needed for the app. Currently, it is suggested using the requirements.txt file to do it.09:42
dholbachIIRC "install_requires" will make the build/installation fail if the package is not available09:43
dholbachrequirements.txt is a mechanism to obtain and install the package09:44
dholbach(I personally would still go for using the archive unless you need a specific version which is not available in the archive, it should be the easiest)09:44
dholbachbut maybe zyga, sergiusens and others have an opinion on that too09:44
liuxgdholbach, the problem with the archive one is that we need to use the fileset stuff to choose the files and then combine them into a snap. it is a little more complex in this sense.09:45
dholbachwhy do you need the filesets? to make the package smaller?09:45
dholbach... I mean to limit the number of installed files?09:45
dholbachI'll be right back... I need to take care of something else for a few minutes09:46
liuxgdholbach, yeah, that could be the purpose for it.09:46
liuxgdholbach, sure, it is OK:)09:47
dholbachstrictly speaking for this example you either don't need the filesets or you would use it as well for the other methods of installing django09:47
dholbachall of them are likely going to install a lot of files you don't strictly need09:48
liuxgdholbach, do you mean if I just simply put " stage-packages: -Django", it will install all of the files for django?09:49
dholbachliuxg, the package name in Ubuntu is python-django, but yes09:57
dholbachand without the '-'09:57
liuxgdholbach, thanks. I will try it later on.09:58
dholbachgreat09:59
=== Guest65640 is now known as beowulf
=== beowulf is now known as Guest86859
=== vrruiz_ is now known as rvr
Sweet5harkHi there! So Im looking at snappy and wonder how I get to tell snappy on how to order the builds and stages for the parts of a package ...11:43
Sweet5harkany hints?11:43
=== greyback__ is now known as greyback
livcddoes anyone have an experience with snappy vagrant box ?12:03
mvoelopio: I pushed candidates to alpha, could you trigger the automatic snappy update test when you are online?12:11
mvoelopio: there is a new released planned :)12:11
=== verterok is now known as verterok-away
livcdi get ssh timeout with snappy on vagrant. Does anyone experience the same issue ?12:25
=== verterok-away is now known as verterok
livcdoh ok that happens only when i try to set a private network12:29
livcdwhat are the default credentials ?12:38
stevebiscuitlivcd: ubuntu:ubuntu I believe12:41
livcdsheesh this is annoying12:45
=== dholbach_ is now known as dholbach
Sweet5harkso, I try to build something with snapcraft that depends on libxml2. The ./configure is all happy about it, build gcc doesnt find headers like libxml/xpath.h when compiling. libxml2-dev is install on the host system and is listed in the snapcraft.yaml as "build-packages: [... ,"libxml2-dev", ...]". What am I doing wrong?12:51
=== chihchun is now known as chihchun_afk
Sweet5harkso ... whats the difference  between "snap-packages" and "build-packages" in a snapcraft.yaml?13:57
=== verterok is now known as verterok-away
=== fginther` is now known as fginther
elopiomvo: yes!14:50
=== chihchun_afk is now known as chihchun
elopiomvo: what's the trick now to flash this? --oem generic-amd64/alpha doesn't seem to work.15:01
kyrofaSweet5hark, where are you getting `snap-packages`? I don't believe such a key exists in the snapcraft.yaml15:02
elopioSweet5hark: the build-packages will be installed in the host. You require them to perform the build step and generate the files that will be installed.15:07
livcddoes anyone know how to set a private_network with snappy's vagrant box ?15:07
livcdit won't let me login15:07
elopioSweet5hark: to define the order in which the parts are built, use the after keyword.15:08
kyrofaSweet5hark, in case we're misreading that question, snap packages are what are generated by snapcraft, and build-packages are the .deb dependencies required on the host to build the snap packages15:09
elopiolivcd: I haven't tried vagrant in a long time, sorry. I'll give it a try when I have some free time today.15:09
Chipacaelopio: "alpha" isn't a channel15:10
Chipacaelopio: generic-amd64/stable should work15:10
livcdelopio: thanks. :-/ default settings work fine but I want to use nfs and for that i need private network :/15:10
elopioChipaca: ah, I see.15:11
Chipacalivcd: what's the name of the ethernet device when in private_network?15:11
livcdChipaca: i do not specify that15:11
Chipacalivcd: i didn't say you did15:12
livcdall i do is config.vm.network :private_network, ip: "10.1.0.10"15:12
Chipacalivcd: and when you do that, and boot, and log in, what interface name do you find?15:12
livcdvagrant up shows adapter 1: nat, adapter 2: hostonly15:12
livcdChipaca: can't log in15:12
Chipacalivcd: you don't even have a serial console?15:13
livcdnope15:13
Chipacaso how do you debug boot issues, for example?15:14
livcdmmnt i'll run it with debug mode15:15
Chipacalivcd: alternatively boot something else with private_network and check the interface names there15:15
Chipacalivcd: I'm taking a wild guess that it's naming the interface something non-standard that snappy firstboot doesn't recognise as an ethernet device15:16
livcdthanks for input15:16
livcdi'll try that15:16
Chipacaso to use private_network you'd need to write an oem snap that specified an interface file, or that installed network-manager15:17
Chipacalivcd: but maybe vagrant lets you name interfaces something more standard :-)15:17
Chipacalivcd: alternatively it's possible that you're not setting up dhcp on the private network15:18
Chipacain fact, pretty sure that's what you're doing15:19
Chipacaas you seem to be specifying a static ip15:19
Chipacato vagrant15:19
Chipacabut not to snappy15:19
Chipacaso that won't work :-)15:19
Chipacalivcd: ^15:19
Chipacalivcd: if you absolutely need a static ip, you can probably: boot snappy with dhcp, so you can log in, then overwrite the interfaces file from the booted system15:20
Chipacalivcd: then shutdown, change the vagrant config, and boot again15:20
Chipacalivcd: this is assuming you don't want to write an oem snap, which would be the 'right' way to do this15:20
livcdChipaca: i am just trying snappy15:21
livcdChipaca: ok i'll try dhcp first and report15:21
Chipacalivcd: yep, it sounded like you were just tinkering, hence my tinker-y suggestion15:21
Chipacalivcd: specifying all this in a snap is the more scalable/robust/production way :-)15:22
livcdfirst of all i need to know more about snap :-). I was planning to use snappy as a bare image for docker and orchestrate with terraform15:24
livcdok specifying dhcp has the same effect15:25
Chipacalivcd: same effect == no network?15:27
elopiomvo: flashed 19, updated to 20, rolled back, updated to 20 again, and the full suite is running now on that image for kvm amd64.15:28
elopiomvo: can you push the rpi alpha to try there too?15:28
livcdChipaca: yeah15:29
Chipacalivcd: and does it work without private_network?15:30
livcdwith the default settings that work there's lo and eth015:30
livcdyeah15:30
livcdi am somehow dissappointed :/15:35
mvoelopio: many thanks, rip2 is also copied15:42
mvoelopio: eh, not quite15:42
mvoelopio: but soon15:42
mvoelopio: now15:42
elopioI see it, thanks mvo.15:43
livcdi am out of options...not sure what else should i try15:43
elopiomvo: should we document the need of /stable when flashing before the new release? Or is that going to be fixed before we release?15:44
mariogripwhen i try to reboot my raspberry pi, it seem like it doesn't reboot correctly. is this known issue?16:05
dholbachogra_: jcastro made something for you: http://i.imgur.com/CcwkgN7.jpg :-)16:08
elopio:D16:13
ogra_dholbach, hah ! cool !16:27
ogra_thats a really nice pic, i have never seen it16:27
livcdChipaca: the private_network setting has lo,eth0 and eth1 adapters16:28
elopioogra_: I get choppy output on the serial console of the rpi. Does it have a different rate? I'm using 11520016:39
ogra_elopio, nope, 115200 is correct16:43
ogra_works fine here16:43
elopioogra_: it's not garbage, it's just misaligned.16:43
elopiomaybe the cable.16:44
ogra_what terminal program do you use ?16:44
elopioogra_: screen16:48
ogra_hmm, me too16:48
ogra_so yeah, probably the cable16:49
=== verterok-away is now known as verterok
xnoxwhat is ubuntu-core-meta and should i care?16:50
elopiomvo: On rpi, flashed 3, updated to 4, rolled back, updated to 4 again, and the full suite is starting.16:50
mariogripreboot -f does not work either16:50
elopiomvo: is there something special you would like me to check or explore?16:50
elopiomvo: is there something special you would like me to check or explore?16:51
ogra_xnox, good question, i didnt think there exists a meta for -core16:51
elopiosorry, hiccup.16:51
ogra_xnox, -core only uses tasks, we do not have a meta16:51
ogra_s/have/need/16:51
ogra_xnox, perhaps that meta is from infinitys "ubuntu-core" (not snappy) ?16:52
xnoxprobably16:52
mariogriphow do i switch channel on the rpi? (stable -> rolling/edge )16:53
elopiomariogrip: there is no supported way yet. You can edit /etc/system-image/channel.ini, but for that you have to make the partition writable, and we don't guarantee success16:57
mariogripthanks, I'll give it a try16:58
mariogripbut do you know if there is any known issue with reboot on the rpi?16:58
mariogripon version 316:59
mariogripsorry i mean version 216:59
elopiomariogrip: not that I know of. Please report a bug if you see something weird.17:04
mvoelopio: nothing in particular 15.04 has not changed much so we should be mostly fine17:24
elopiomvo: things look good from here. I'll go and have lunch and can run the tests on bbb.18:21
mvoelopio: thanks18:28
=== bschaefer_ is now known as bschaefer
kyrofaelopio, I want to make a helper class for my plugin. How should I organize that? Clutter up the plugin file with another class, or is there a sensible place to extract it?20:18
mvoelopio: amd64/armhf/rpi2 released to stable20:36
sergiusenskyrofa, elopio just a tiny hello :-)20:52
kyrofasergiusens, hey, been a while!20:52
kyrofasergiusens, how's it going?20:52
sergiusenskyrofa, fine, 7PM and still discussing things here... talking is tiresome :-P20:53
kyrofasergiusens, yeah... exhausting20:53
sergiusenskyrofa, how's it going with you?20:53
kyrofasergiusens, I hope you're sleeping alright20:53
kyrofasergiusens, things are going well! Still adding some ROS features, figuring out snapcraft, whining about the lack of a clean build, etc20:54
sergiusenskyrofa, yeah, more than ever, but having to follow conversations for 9 hours straight and then do the same during dinner gets you really tired20:54
kyrofasergiusens, definitely20:54
sergiusenskyrofa, hah, clean build I can implement on the way back :-)20:54
kyrofasergiusens, :D20:54
kyrofasergiusens, you should relax on the way back though20:55
sergiusenskyrofa, I really want to land the new-cli branch into master ASAP, but I haven't had a chance to fix the integration tests20:55
kyrofasergiusens, ah, yeah that'll be nice20:55
sergiusensand it has been a laptops closed meeting20:55
kyrofaOh man... so you REALLY have to pay attention20:56
sergiusensyeah20:57
kyrofasergiusens, don't worry man, we'll get there. You can slow down a little :)20:58
sergiusenshah21:03
sergiusenskyrofa, I am suffering from depravation21:03
sergiusens;-)21:03
kyrofaI can't get to Universe. Anyone else?21:43
kyrofaRather, I'm getting a hash mismatch of some kind21:45
kyrofaAh, looks like it's working now21:47
Sweet5harksooo, I have libxml2-dev installed on the host system and have "stage-packages: - libxml2-dev" in my snapcraft.yaml. I see my configure using getting a .../snap/usr/include/stage/usr/include/libxml2 from pkg-config. However that dir does not exist ....22:11
Sweet5harkshouldnt "stage-packages" ummm  ... stage packages?22:12
Sweet5hark... so that they are actually found where pkg-config claims them to be in the snapcraft env?22:12
elopiokyrofa: if the helpers are only used in your .py, put them in there with _ in front.22:17
elopiothen if we need them in other module, we can discuss if removing the _, or putting them in a different .py, or both.22:18

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