/srv/irclogs.ubuntu.com/2012/01/26/#juju.txt

_mup_Bug #921895 was filed: local provider should offer ability to turn on '--force-unsafe-io' for dpkg to speed up package installs. <juju:New> < https://launchpad.net/bugs/921895 >01:53
=== rog is now known as thursday
=== thursday is now known as rog
mplrog: and tomorrow is?09:08
mplhi all09:08
rogmpl: almost the weekend!09:08
mplhehe, that's right.09:10
mplhopefully I'll finally have some time for some juju hacking then09:10
=== _mup__ is now known as _mup_
hazmatgary_poster, ping13:05
gary_posterhey hazmat13:05
hazmatgary_poster, i think i might have a line on the problem you where experiencing, but one question first.. what ubuntu version are you running on the host?13:07
gary_posterhazmat, did you see the email I sent you?  I think it was explainable simply by my environment.yaml (but maybe I'm wrong :-) ).  My host is precise.13:08
hazmatgary_poster, cool, so i think the problem is the 'distro' version of juju differs between precise and oneiric significantly. the oneiric containers are getting a much older version of juju.. if you add a line to your environment with 'juju-origin': 'ppa' that should resolve it.13:13
gary_posterhazmat, cool, yeah, it did, thanks.  Like I said in email, I also added an edit to http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage to hopefully help others.  I actually explicitly had "juju-origin: distro" because of cargo-cult (or at least following-the-fine-manual-cult).13:15
hazmatdoh13:15
gary_poster:-)13:15
smoserhazmat, ping13:49
hazmatsmoser, pong13:49
smoserlocal provider.... if i just juju deploy say N things at once13:50
* hazmat nods13:50
smoseris there anything that will protect the initial create form happening N times ?13:50
hazmatsmoser, serial instantiation13:50
smoseri think in juju terms, that is the creation of "master template" that i'm talking about.13:50
smoserare you saying I should do that serially? or you're saying juju covers that for me..13:50
hazmatsmoser, indeed, juju should cover that for you13:51
hazmatit will create the unit containers serially not in parallel13:51
hazmatsmoser, question for you re getting a cloud image suitable for lxc13:52
smoserso i'm just curious, where/how is that accomplished?13:52
smosercloud images should boot in lxc.13:52
hazmatafaics, i need to qemu-nbd or guestfs to mount the qcow2 and then copy it over to an fs dir or lvm mount13:52
smoserah. don't use the disk image13:52
smoserand you might be duplicating effort13:52
hazmatsmoser, what should i use?13:52
smoserutlemming might also be looking at createing 'ubuntu-cloud-image' (ie, in 'lxc-create -t ubuntu-cloud-image')13:53
smoserthe easiest consumable thing for you is the .tar.gz file13:53
hazmatit should be an additional option to the ubuntu template13:53
hazmatmaybe not13:53
hazmatsmoser, what format is that in? tar.gz?13:54
hazmati mean the f iles inside13:54
smoseryou'll unfortunately have to extract it (tar -Sxvzf image.tar.gz "*.img" && mount -o loop *.img /mnt && rsync -a ....)13:54
smoser.img file, kernel, ramdisk.13:54
smoserwe used to create a .img.tar.gz,which was just a sparse partition image compressed with sparse tar13:54
smoserbut stopped doing that.13:54
smoserso you'll aste the download of th e ocmpressed kernel and ramdisk13:55
smosermore annoyhing (to me) is that the .tar.gz isn't immediately useful like the qemu image is.13:55
smoseryou can use the qemu image, if you'd like. but using the partition image will mean you don't have to deal with qemu-nbd13:56
smoserhazmat, if it would make your life massively simpler, i would consider adding a filesystem contents tarball13:57
smoseralthough i worry about somewhat arbitrarily adding things to the downloads.13:58
smoserhazmat, SpamapS pointed me at http://paste.ubuntu.com/816820/ which he started on13:59
hazmatsmoser, thanks, thats useful14:12
smoserhazmat, so were you looking to create an lxc template script?14:16
hazmatsmoser, i was just looking at the problem, we could either bypass and do the download in juju or use a new template script14:20
smoseri think the template script in lxc is generally more useful14:20
smoserit serves a wider audience.14:20
hazmatprobably won't fly with others, but i was leaning towards trying to do the download in juju to be able to give the user some feedback14:20
hazmattrue14:21
smosera middle of the road solution..14:21
smoserwoudl be to let juju do the download (duplicating download code)14:21
smoserand then let it pass '--image' to lxc14:21
smoseralthough.. id dont' know.14:22
=== mbarnett` is now known as mbarnett
dpb_Was looking for information on how to properlly configure .juju/environments.yaml for an openstack deployment.  I understand the basic stuff (url, key, secret key), but what about control-bucket and admin-secret?16:01
dpb_Also, do I need a special branch?  or would the packages on oneiric suffice?16:02
m_3dpb_: control-bucket and admin-secret can be anything afaik... juju generates it when you try to run 'juju' without an environemnts.yaml file16:05
m_3dpb_: I typically let vi replace it with `echo "some junk" | md5sum` when creating a new env16:06
jimbakerm_3, the control bucket simply needs to be unique globally for s316:06
m_3right.. thanks16:07
dpb_m_3: OK, great, thanks for the info16:07
m_3dpb_: here's a cleaned-up example I use atm http://paste.ubuntu.com/817806/16:08
dpb_m_3: awesome, thanks!16:09
m_3dpb_: obviously, make the default match.. that's a typo16:10
jorgehi folks! I'm testing juju with a diablo openstack installation. when i run 'juju status', i get an error but the command do what is expected.16:15
jorgeroot@sold016:~# juju status16:15
jorge2012-01-26 14:07:54,476 INFO Connecting to environment.16:15
jorge2012-01-26 14:07:59,576 ERROR SSH forwarding error: bind: Cannot assign requested address16:15
jorgemachines:16:16
jorge  0: {dns-name: 172.16.0.2, instance-id: i-0000001b}16:16
jorgeservices: {}16:16
jorge2012-01-26 14:08:05,313 INFO 'status' command finished successfully16:16
jorgeIs that normal?16:16
m_3jorge: it's normal for some networking setups16:21
jorgeok16:22
m_3jorge: you have to associate a public address with the bootstrap instance16:22
jorgenow I lost my connection.16:22
m_3then it should respond to subsequent juju commands16:22
jorgeCannot connect to machine i-0000001b (perhaps still initializing): could not connect before timeout after 2 retries16:22
koolhead17m_3: is there a proper doc on this part available somewhere? i tried my best and failed to get it working.16:23
* m_3 looking for using openstack with juju docs16:23
m_3koolhead17: ha!16:23
koolhead17and i thought its happening because whole openstack infra is behind proxy16:24
koolhead17even nova16:24
m_3koolhead17: the setup can vary... greatly16:24
koolhead17m_3: yeah i have not been successful with my deployment :(16:24
m_3koolhead17: lemme see if I can find my notes for the openstack cloud I'm using now16:25
koolhead17although juju works with my LXC16:25
jorgei'm using proxy too16:26
jorgewhen running the euca* commands you cannot have the http_proxy variables set up.16:27
m_3so I'm using euca2ools... that's probably the first place to start16:27
m_3from a machine where you can hit the endpoint urls directly16:28
m_3(so either your endpoints need to be public or your client machine needs to be in a visible network segment)16:29
SpamapSjorge: if there is a box in between you and the instances that you can SSH bounce off of, you don't need a public address, btw16:31
SpamapSjorge: you just have to setup ~/.ssh/config to bounce properly16:31
jorgesome information more:16:32
jorgewhen I run juju bootstrap and after juju status (the first time), all worked fine.16:33
jorgeafter some minutes, stop to work.16:33
jorgenow I can ssh to the instance using just the ssh command, with the ip of the instance. i'm on the controller and the instance in running on it. all in the same host.16:34
koolhead17jorge: your executing all this from the same internal network as of the instances16:34
koolhead17hey SpamapS16:35
jorgeyes. my instances are in 172.16.0.0/24 and i'm executing these commands from the network controller (from the host with ip 172.16.0.1)16:35
jorgethe connectivity to the instance are ok using ssh from command line. I can log in that.16:36
jorgesee that16:36
jorgejuju -v status16:36
jorgeDEBUG Spawning SSH process with remote_user="ubuntu" remote_host="172.16.0.2" remote_port="2181" local_port="41754".16:36
SpamapSkoolhead17: o/16:36
SpamapSjorge: right, thats so juju can talk to zookeeper over a secure connection16:37
koolhead17jorge: k. does it tries to connect with user ubuntu16:37
koolhead17also home your using smoser`s cloud-image for the instances16:38
jorge2181 is zookeeper?16:38
jorgelet me think... shouldn't i create a rule to permit this port? maybe iptables is dropping this connection.16:40
jorgeeuca-authorize -P ....16:40
jorgei'm going to start tcpdump in the instance to see the connections attempts.16:41
SpamapSjorge: no, you don't need to euca-authorize 218116:45
SpamapSjorge: its connecting to it on 127.0.0.1 *through* an ssh tunnel16:45
jorgehumm, ok16:45
SpamapSjorge: can you pastebin the whole failure? like 'juju -v status 2>&1 | pastebinit'16:46
negronjlm_3: ping16:47
m_3negronjl: hey16:47
jorgeSpamapS: http://pastebin.com/SHmAszL716:52
koolhead17SpamapS: i was getting similar error16:53
SpamapSjorge: is there something listening on port 54122 ?17:01
jorgeSpamapS: no. I've tried many times and juju tries to use other ports and the problem is the same.17:03
jorge DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="172.16.0.2" remote_port="2181" local_port="50093".17:03
jorgeERROR SSH forwarding error: bind: Cannot assign requested address17:04
SpamapSjorge: try ssh -v -L 50093:127.0.0.1:2181 ubuntu@172.16.0.217:05
jorgeOk, just a minute because i destroy the environment. It is starting again.17:06
jorgeSpamapS: ssh -v -L 45039:127.0.0.1:2181 ubuntu@172.16.0.2 WORKED!!! I've changed the port because I've started the env again.17:19
jorgebut juju status return error.17:20
SpamapSjorge: ok, thats good, and on that box, do you see zookeeper running?17:20
jorgeSpamapS: yes, a java process and port 2181 opened.17:21
SpamapSjorge: ok, same juju status error though?17:21
jorgeSpamapS: yes17:24
SpamapSjorge: really puzzling17:25
jcastrohazmat: I need to drop off for another call, thanks for inviting me!17:25
hazmatjcastro, thanks for joining17:25
jorgeSpamapS: inttermitent problems. I run the juju status and in the first attemp i can see an error, in the second it worked. and, trying one more time, error. see http://pastebin.com/T4xE3KAG17:54
SpamapSjorge: I wonder if this is somehow related to the fact that you're running this on the network controller17:57
* hazmat lunches17:57
jcastrohttp://pad.ubuntu.com/charmschool18:25
_mup_juju/deploy-invalid-conf r448 committed by kapil.thangavelu@canonical.com19:39
_mup_validate config before deploying service.19:39
hazmatbcsaller, jimbaker could i get a +1 on this trivial?  its a fix for bug 90314919:58
_mup_Bug #903149: juju fails silently with empty revision file. <juju> <juju:New> < https://launchpad.net/bugs/903149 >19:58
hazmathttp://paste.ubuntu.com/818065/19:58
bcsallerhazmat: so you don't trap ServiceConfigError anymore? Thats more than just revision and can stop the processing of the repository, right?20:00
hazmatbcsaller, CharmError is a base class for serviceconfigerror20:01
hazmatits a more generic handling case20:01
bcsallerahh, ok20:01
bcsaller+120:01
jcastroniemeyer: I have this work item on the community charm docs for you "[niemeyer] drive dicussion about interface documentation on juju mailing list"20:22
jcastrohave we done this yet?20:22
niemeyerjcastro: yo20:33
niemeyerjcastro: We haven't, but I'm on a roll on some development here ATM.. would you mind to ping me about this tomorrow?20:33
jcastrosure20:34
niemeyerjcastro: Thanks!20:34
jcastroSpamapS: you've got one WI too20:36
jcastro[clint-fewbar] add README to 'charm create' template20:36
_mup_juju/repo-find-report-charm-error r448 committed by kapil.thangavelu@canonical.com21:25
_mup_[trivial] Repositories report/log charm structural errors. [r=bcsaller][f=901495]21:25
SpamapSjcastro: ACK, that one should be done b4 FF21:29
jcastroSpamapS: ok, just keeping an eye on our burndown, ta.21:29
statikhey niemeyer, newbie question about lbox22:16
statikI tried goinstalling lbox on precise, and got some dependency package? errors22:16
statikI'm think I'm running the golang packages from precise. http://pastebin.ubuntu.com/818207/22:16
statikany tips on how to get lbox installed? I'm probably missing something simple22:17
sidneibcsaller, hey, around?22:43
bcsallersidnei: hey, whats up?22:43
niemeyerstatik: Hey23:19
niemeyerstatik: Ah, yes, I see23:19
niemeyerstatik: You'll have to install golang-tip from the ppa23:20
niemeyerstatik: Optionally, you can install lbox from the PPA as well23:21
niemeyerstatik: pre-built23:21
SpamapSWatching debug-log .. its kind of a bummer that the output of the hooks is double-newlined23:26
SpamapShrm.. upgrade-charm needs to re-join all peer relationships23:29
SpamapSOtherwise if you change joined/changed hooks.. they won't be re-run23:29
adam_gany way to specificy an environments.yaml located somewhere other than ~/.juju/environments.yaml?23:30
adam_gya, specificy23:32
m_3adam_g: you might get away with resetting HOME for a subshell of juju commands... it'd move .ssh too I guess though23:52

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