/srv/irclogs.ubuntu.com/2015/06/12/#juju.txt

thumperhazmat: the juju deployer uses python-jujuclient, yes?00:00
hazmatues00:00
thumpergood, so I'm fixing the right thing at least :)00:00
hazmatthumper: yes00:00
hazmatthumper: yeah i saw this over email00:01
hazmati thought the traceback into tox was wierd..00:01
thumperme too00:01
hazmatthumper: the env variable its looking for is used by the unit tests  its trying to parse the jenv file to connect a client to the named test env00:02
hazmatbut its unclear if the test code needs to be updated to the newer location, or just an issue with the tox config on passing that env var00:03
hazmatthumper: what version of juju is this?00:04
hazmatwith the format change, trunk?00:04
thumperhazmat: nah, a feature branch right now, but trunk soon00:04
thumpersoon meaning by the end of next week00:05
thumperhazmat: what happens when tox reads this?  {env:JUJU_TEST_ENV:"test"}00:06
hazmatthumper: hopefully the above is enough to find next steps, else if you want to me look and the branch is otherwise solid, i can take a look00:06
thumperas you can see, I did set that env var00:06
hazmatthumper: i assume tox sets that env var for the test, but its barfing it appears there00:06
thumperbut the error says: unkown environment variable 'JUJU_TEST_ENV:"test"'00:06
thumperit appears to think everything after env: is the name of the env variable00:07
hazmatthumper: ask on openstack, much more tox experience floating around there00:07
* thumper grumbles00:07
thumperETOOMUCHELSEON00:07
hazmatthumper: or the tox docs, its not a tool i use00:07
thumperme neither00:08
* thumper blames tvansteenburgh00:08
thumperthe tox docs don't have anything like this00:08
thumperthey specify hard coded values in all the tox examples00:08
* thumper has already looked00:08
hazmatthumper: what happens when you remove that config entirely?00:09
hazmatre the env var00:09
* thumper shrugs, didn't try00:09
* thumper removes the default00:09
hazmatif that runs, then export the env var, and try invoking tox00:10
thumperERROR: tox version is 1.6, required is at least 1.800:10
hazmatpip -U install tox00:10
thumperhence it not knowing about that expression format I bet00:10
hazmatprobably00:10
* thumper hacks stuff...00:12
thumperRan 22 tests in 0.143s00:12
thumperFAILED (errors=13)00:12
thumpersome things to fix I guess00:12
thumpercheers00:12
* thumper adds to the list of shit to fix00:12
thumperhmm...00:15
thumperfixed that bit00:15
thumpernow it is just failing tests...00:15
thumperfor different reasons00:15
hazmatthumper: got a pastebin?00:25
thumperfor?00:25
hazmatthumper: errors in the tests00:26
hazmatfailing test stdout/err00:26
thumperI now have four failures and three errors00:26
thumperI need to go through them to work out why they are failing00:26
hazmatthumper: k00:26
thumpersome are due to different bits in juju00:26
thumpersome seems to be just weird00:26
hazmatthumper: good luck, ping me if you want a second pair of eyes00:27
thumperack00:27
thumperthanks00:27
hazmatDestreyf_: you should have a look at the source to my version to see how to configure lxc for flannel, you basically drop a config into /etc/default/lxc-net and /etc/lxc/default.conf00:32
hazmat after reading the values from flannel's on disk state file00:32
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
=== natefinch-afk is now known as natefinch
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
lukasajamespage: You about?07:13
=== kadams54 is now known as kadams54-away
Odd_BlokeAnyone around to help me debug a Nagios servicegroups problem?11:57
Donghello all? need some light to understand what is the bootstrapper13:15
Dongand when I do manual targeting cloudstack, do I need to have one VM up and running and config it to be the bootstrap13:15
=== mwenning is now known as mwenning-wfh
=== anthonyf is now known as Guest45939
Syed_AHello folks, I was wondering how the lxc template "juju-trusty-lxc-template" is generated ?13:42
Syed_AI want to change the "juju-trusty-lxc-template" before it is transferred to the target host for the lxc container. Is it possible to do it ?13:43
tvansteenburghSyed_A: you could manually modify that template13:45
Syed_Atvansteenburgh: Before it get transferred to the target host ?13:46
tvansteenburghSyed_A: while not bootstrapped, start and attach to it, make your changes, exit, then bootstrap13:47
=== karlthane_ is now known as karlthane
hazmatSyed_A: its not transferred its built on the individual hosts15:49
hazmatSyed_A: specifically its using the lxc ubuntu-cloud template15:49
hazmatwhich is a script to create the actual lxc instance which is used as a template for other containers15:50
Syed_Ahazmat: oh!, intersting. Do you know how can i manually create it ?15:52
hazmatSyed_A: log into to the host.. lxc create -t ubuntu-cloud -n juju-trusty-lxc-template    and pass additional options to the ubuntu-cloud template per taste... perhaps a better question is starting with why?15:53
Syed_Ahazmat: I want all the containers to have 3 nics which gets ip from 3 bridges. And /etc/hosts file of the containers to have the host entry for juju api node.15:56
Syed_Ahazmat: And i don't want to manually edit on every machine which is hosting containers.15:57
hazmatSyed_A: hmm.. you could also use manual provider, most of that config for is going to be the conf for each container, you could set it up in the template container. another option is to modify the lxc ubuntu-cloud template, or modify the lxc default template on each host.... nutshell if that's what you want your going to need to modify something on each15:59
hazmathost, be it lxc conf or templates, or juju.15:59
Syed_Ahazmat: Allow me to explain my setup.16:00
Syed_Ahazmat: I have 4 VM's16:00
Syed_Ahazmat: deploy, alice, bob and charlie16:01
Syed_Ahazmat: On deploy i have the juju gui and juju charms16:01
Syed_Ahazmat: I want to start containers on alice, bob and charlie16:01
Syed_Ahazmat: So i will just use juju deploy sevice-x --to lxc:1(alice)16:02
Syed_Ahazmat: and it will deploy sevice-x in a container on alice.16:03
Syed_Ahazmat: But by default, the container will take the ip address from lxcbr0 bridge. Which i can change by changing the bridge configuration inside /var/lib/lxc/conatiner-x/config16:04
Syed_Ahazmat: I don't want to manually change the configuration on alice. I want to automate it. Such that whenever i add a machine to deploy lxc containers on it; all the containers use 3 bridges specified in the template for the container.16:05
Syed_Ahazmat: So a modified template on alice goes in to /var/lib/lxc and all the new containers use this modified template.16:06
jrwrenSyed_A: can you set your 3 interface network defaults in /etc/lxc/default.conf ?16:07
Syed_Ajrwren: Let me give it a try.16:10
=== kadams54 is now known as kadams54-away
hazmatjrwren: +1 thats the solution imo16:20
hazmatalternatively on the juju-trusty-lxc-template16:20
=== kadams54-away is now known as kadams54
Destreyf_hazmat: your charm works fantastic, but i learned a harsh reality, setting up a OpenStack cluster HA on 3 nodes won't work because you need floating ip's for the services such as Keystone, Cinder and others.16:28
Destreyf_the flannel charm16:28
pmatulisdoes 'juju generate-config' only work on linux? or windows as well?16:49
Destreyf_pmatulis: juju is mostly (if not all) python based, so it should work on windows as well17:06
pmatulisDestreyf_: ok, i'm wondering about the generation of boilerplate file and directory17:09
Destreyf_I haven't used juju on windows (yet) so i'm not certain on where it places files17:10
lazyPowerDestreyf_: actually juju-core (which includes the client application) is Go based.17:25
lazyPowerpmatulis: the generate-config works on windows as well. its part of our CI tests17:26
pmatulislazyPower: thank you17:39
lazyPowerpmatulis: no problem. are you going to be working primarily on windows?17:39
lazyPowerpmatulis: if so, there is a native windows client for juju, and if you find that you *need* that touch of a posix environment we have both vagrant boxes and docker containers with an isolated juju client environment for you to use.17:40
Destreyf_lazyPower: You guys rock btw.17:42
lazyPowerDestreyf_: well thanks :)17:45
Destreyf_lazyPower: I used juju a while back and had nothing but trouble, granted i knew it was an emerging concept and its gotten much better since then.17:45
lazyPowerDestreyf_: we've put a lot of focus over the last year on user experience, focus on the charms and making them really useful17:46
lazyPowernow that actions has landed you'll start seeing even better core concepts with charms that are well written. You'll no longer need to ssh into a server - just juju action do :)17:46
Destreyf_lazyPower: i can tell, its been a great experience so far, sadly doing something as foolish as attemping 3 node HA OpenStack doesn't seem to want to work :P17:46
lazyPowerwell, thats a tough cookie to begin with Destreyf_17:47
lazyPowerHA anything can be problematic to model, let alone cramming services on a single machine17:47
Destreyf_lazyPower: so you can setup charms that don't actually deploy to servers right? kinda like when you setup hacluster to manage say keystone, it just does the local stuff for each instance17:47
lazyPowerand openstack is far from simple17:47
pmatulislazyPower: no, i am helping with the juju documentation17:47
lazyPowerpmatulis: oh excellent!17:47
lazyPowerpmatulis: we appreciate you :)17:47
Destreyf_lazyPower: OpenStack is amazing, in all honesty, but i've never gotten to actually play with a deployment of it before.17:48
pmatulislazyPower: right now the generate-config just says that the linux dir/file is created - nothing on windows17:48
lazyPowerpmatulis: it might be worth poking your head in #juju-dev, or reaching out over the list to get the specifics. I know the cloudbase guys listen to the juju list, and they are the resident experts on juju+windows17:49
pmatulislazyPower: thanks for the tip17:49
=== kadams54 is now known as kadams54-away
=== Syed_A_ is now known as Syed_A
hazmatDestreyf_: bummer re ostack ha and float18:29
hazmatDestreyf_: if you need something that can do more manual ip mgmt, there are other options (weave, and maybe socketplane), but not sure if that's going to play nice with ostack unless its plumbed into nova18:30
hazmatDestreyf_: we've got some folks around here though that probably could point you to a dev setup... typically we run it virtualbox registered into maas, and then a maas env on juju with the ostack charms18:31
hazmatpmatulis: on windows it goes to the user's HOMEDRIVE + HOMEPATH env var then .juju18:33
pmatulishazmat: roger18:34
Destreyf_hazmat: that might be worth doing, i'm just already using VM's for my tests18:38
pmatulishazmat: so the online docs are wrong then. they currently show18:42
pmatulis%LOCALAPPDATA%/Juju18:42
=== Syed_A_ is now known as Syed_A
jrwrendocs folks: https://github.com/juju/docs/pull/47518:57
pmatulisjrwren: is that the only docs file where outfile.name was used?18:59
Syed_ACan anyone please tell me how can i generate "juju-trusty-lxc-template" manually ?19:01
jrwrenpmatulis: good question.19:01
jrwrenpmatulis: yes, that is the only docs file where outfile.name was used.19:02
pmatulisjrwren: ok19:02
Syed_Ajrwren: I can see 3 interfaces inside the containers but  the containers /etc/network/interfaces has congiguration only for eth0. eth1 and eth2 are not configured.19:03
Syed_Ajrwren: *configuration19:03
jrwrenSyed_A: for that you will need to update the -template :(19:04
Syed_Ajrwren: I can set the other two nics by using "lxc.network.ipv4".19:04
Syed_Ajrwren: Yes, i figured that but that's the problem i am trying to solve precisely :(19:05
Syed_Ajrwren: By any chance do you know how can i generate "juju-trusty-lxc-template" manually ?19:06
jrwrenSyed_A: not offhand. hazmat gave you some background on that already. More than I ever knew.19:06
hazmatSyed_A: lxc-create -t ubuntu-cloud -n juju-trusty-lxc-template19:07
hazmatSyed_A: to get all the options lxc-create -h and /usr/share/lxc/template/lxc-ubuntu-cloud -h  (last is from memory) there's one more script for common config.. don't have an ubuntu box handy to spot check19:08
jrwren/usr/share/lxc/hooks/ubuntu-cloud-prep19:09
jrwrenI wrote a blog post on using -t ubuntu-cloud http://jrwren.wrenfam.com/blog/2015/05/26/ubuntu-cloud-image-based-containers-with-lxc/19:09
jrwrenSyed_A: you can steal the cloud-init script to pass with -u by copying it out of /var/lib/cloud/instance/user-data.txt19:11
jrwreni don't think that varies by juju provider, but I could be wrong.19:12
Syed_Ahazmat: creating it ...19:12
Syed_Ajrwren: Cool, Reading it19:13
=== scuttlemonkey is now known as scuttle|afk
=== ming is now known as Guest91806
=== Syed_A_ is now known as Syed_A
=== lazyPower is now known as lazyPower|eow
therealmarvHi. I have a question. I’ve submitted a charm to my personal namespace 5 hours ago on trunk and it is not updated yet on https://jujucharms.com (it still shows the old revision) Did I missed a step beside pushing it to my repo? How long does it take. this ingestion process?22:16

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