/srv/irclogs.ubuntu.com/2014/07/16/#juju.txt

jamrharper: marcoceppi: we don't support containers anywhere except for MaaS ATM, we're working on that code (since if you want to make a routable container you need to bridge the network but then also ask for an assign an IP address for the container, etc004:01
jamrharper: marcoceppi: there is the "network-bridge" environment config, but I'm pretty sure that is only used in MaaS (in 1.20) and local04:06
=== uru is now known as urulama
=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
schegihey, if i deploy a service to an lxc container, how do i define the bridge interface the container should use?07:40
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
schegihey, if i deploy a service to an lxc container, how do i define the bridge interface the container should use?07:51
schegimaas environment bootstraped not local07:51
=== psivaa-off is now known as psivaa
schegiis it enought to make the changes in /etc/lxc/default.conf /etc/defaults/lxc-net?07:52
=== CyberJacob is now known as CyberJacob|Away
g0d_51gm4hi guys, this morning I've re-made all steps from the begin to build a vMaaS with Juju and I saw this warning in the vm node "http://imgur.com/rdRC9hm", the error on the status of juju environment is the same......08:10
jamespageschegi, the maas provider should automatically setup a br0 -> eth008:25
jamespageschegi, but its very basic right now in the context of multiple netwokrs08:26
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
schegijamespage, is it possible to somehow force it to use an existing bridge or create one over another interface?09:36
jamespageschegi, trying to figure that out09:36
schegijamespage, btw how to destroy containers from juju?09:37
jamespageschegi, 'terminate-machine'09:37
jamespageuse the machine-id of the container you want to destroy09:37
schegijust destroying the service doesnt destroy the related container09:38
schegiat least in juju status it still exists09:38
jamespageschegi, indeed it does not09:38
jamespageschegi, you can do a "juju terminate-machine --force 0/lxc/2" for example09:38
schegiah ok nice09:38
jamespagewhich will just rip the machine out of the service and terminate it, but leave the service deployed09:38
jamespagebut without units09:38
=== psivaa is now known as psivaa-lunch
schegijamespage, played around a little bit with lxc. If i lock in to a machine i like to deploy a service in lxc container to and change the lxc settings in /etc/lxc/defaults.conf and /etc/defaults/lxc-net before deployment and restarted all necessary services12:24
schegijamespage, it seems to work but still got some conectivity issues i think container stucks in pending state and if i look into the container log on the node it was deployed to ill see lots of these http://pastebin.com/agr77dnK12:26
schegiand if i try to ssh into container using juju ssh it states ERROR machine "15/lxc/4" has no internal address12:30
lazyPowerschegi: what did you change?12:54
lazyPowerschegi: i've modified lxc container bridge devices and network settings successfully for the local provider12:54
lazyPowerschegi: relevant post: http://blog.dasroot.net/making-juju-visible-on-your-lan/12:55
schegiok, thats what i tried. only difference my bridge interface is not statically defined but gets its ip via dhcp12:57
lazyPowershouldn't make a difference so long as thats being passed off to the bridged device12:58
lazyPowerand LXC knows about it when it gets fired up12:58
lazyPoweri did however have some issues with the interfaces racing12:59
lazyPoweri forget how i solved it, i think it was the order in /etc/network/interfaces12:59
lazyPowersometimes the bridge device would collide with the physical adapter and collide12:59
lazyPowerer, yeah. i need more coffee... cant speak english...13:00
schegibtw is this your blog?13:00
schegijust to mention /etc/init.d/networking restart does not work anymore in trusty13:01
lazyPowerit is, teh article was written prior to 14.0413:01
lazyPowerso it was tested on 12.0413:01
rharperjam: marcoceppi:  would be interested in testing something; in my case, I wouldn't need to assign an IP if the default network already runs DHCP;  AFAICT, this is how it works with MaaS, bridge the host device, lxc runs a container on it, MaaS sees a new dhpc request with a new mac, gets and IP.  This should work fine for networks that run DHCP.   I suppose "expose" would require floating ip allocation, but I expect that the code is the same since that's n13:02
rharpereeded for the hosts as well.13:02
schegilazyPower, still no connectivity ERROR machine "15/lxc/6" has no internal address on juju ssh 15/lxc/613:07
g0d_51gm4lazyPower: hi. have y look here http://imgur.com/rdRC9hm. it's the situation after to reboot the host mahcine!13:07
lazyPowerhmm13:08
lazyPowerschegi: this is when you're deploying to an lxc container in a host right?13:08
lazyPowereg: deploy mediawiki --to lxc:1513:08
schegiright13:09
lazyPowerthat article was for the local provider - i was unaware you were working on an agent-based installation13:09
lazyPowerthat changes a bit - the network bridging there still is pioneer territory for me13:09
lazyPowerThere was a talk on the mailing list about this a while back, about some WIP for a subordinate to handle the networking via relations13:09
lazyPowerg0d_51gm4: hang on, i doubt i'm going to nkow the answer to this though, as i stated yesterday, it really appears to be a configuration issue with how your maas/juju environment is setup13:10
lazyPowerg0d_51gm4: so, there's only so many things that can be wrong here. 1) IP Address changes of the bootstrap node. 2) SSH Keys have changed. 3) the juju services aren't running13:11
lazyPowerif you cannot juju ssh 0 - and it says permission denied, pubkey - you know its the ssh keys.13:11
schegilazyPower can you point me to the mailinglist or some archives?13:14
lazyPowerhttps://lists.ubuntu.com/mailman/listinfo/juju13:16
lazyPowerarchive link is at the top, i'd suggest a signup since there's always activity on the list about the future of juju - its a great place to keep informed about whats coming at you in the next revision13:16
g0d_51gm4lazyPower: i was thinking if is the problem is the firewall? because everytime i start the vMaaS environment i've to flush the table roles and clean it on the Region Cluster for working with juju.13:29
lazyPowerg0d_51gm4: could be13:30
g0d_51gm4lazyPower: the command juju ssh -0 gives me the prompt of the node.13:30
lazyPowerthats good! that means juju is there and responding13:30
lazyPoweri had not considered UFW to be honest13:31
lazyPowerand it stands to reason that it would be the blocker if its reloading your FW ruleset on reboot13:31
g0d_51gm4let me try to disable the ufw and13:31
g0d_51gm4reboot everything13:31
schegiok its getting really starnge following situation. did a juju deploy --to lxc:15 mysql, juju status shows the container constantly in pending state. the /var/log/juju/machine-15-lxc-X.log shows plenty of these and juju ssh 15/lxc/X returns ERROR machine "15/lxc/6" has no internal address, but using ssh ubuntu@192.168.25.158 succeeds and the machine is pingable13:41
lazyPoweris it reachable by the bootstrap node though?13:41
schegihttp://pastebin.com/agr77dnK -->/var/log/juju/machine-15-lxc-X.log13:41
schegipingable and ssh-able from the maas master and all other nodes in the cluster. but not via juju only plain ssh to the ip of the container works13:42
lazyPowerinteresting13:43
schegithe whole cluster is also pingable from within the container13:44
datalazyPower: I asked yesterday about the mixed deployment with manual mode. I have the problem now when following https://juju.ubuntu.com/docs/config-manual.html, that I get a "su: authentication failure" directly in the beginning14:01
datafrom what I can tell from the debugging output, it thinks the user it logs in with is root14:01
lazyPowerthe user you add manually will need to be a passwordless sudo user14:01
lazyPowereg: the ubuntu user on most clouds14:02
datait is14:02
datahttp://pastebin.com/NRMH6D6N14:02
datait is just not using sudo14:03
=== Ursinha is now known as Ursinha-afk
lazyPowerdata: what am i looking at here? verbose output from what juju is doing to add the unit?14:05
data juju bootstrap --debug14:05
datasorry, normally, I'd have pasted everything, but too many machine names etc. in there, that I don't want in logfiles14:06
lazyPowerits doing sudo14:07
lazyPowerif you look at the tail end of that command14:07
lazyPowersudo "/bin/bash -c '14:07
dataI am blind, thanks14:07
lazyPowerso make sure it is indeed a passwordless sudo user14:07
lazyPoweri've had that bite me before14:08
datait is14:08
databetter yet, "someone" created /home/ubuntu on the machine, but it is owned by root:root14:09
datais it possible to change the name of the user and the directory it is using? Because we have an ldap on that machine for users, and I'd hate to mess with the pam config14:12
g0d_51gm4lazyPower: i disable the ufw on boot and started the whole vMaaS environment. the node now is working and in juju status i see the node without error14:15
lazyPowerg0d_51gm4: awesome news!14:16
g0d_51gm4lazyPower: a question now is...how do i have to set the ufw to use it14:16
g0d_51gm4without to disable it!!!!14:16
lazyPowerjcastro: http://askubuntu.com/questions/174171/what-are-the-ports-used-by-juju-for-its-orchestration-services - candidate for updating since we no longer use zookeeper14:18
g0d_51gm4a firewall appliance front to host machine is already present, but to implement some rules also on host which ports i've to open to work with juju14:20
g0d_51gm4i see it just now y answer sorry!14:20
g0d_51gm4i've to permit just ssh connection from that vnetwork?14:22
lazyPowerg0d_51gm4: you'll need to expose port 22, and 1701714:23
g0d_51gm4juju uses only a tunnel ssh to connect to MaaS, isn't it?14:23
g0d_51gm417017 for which service?14:23
lazyPower17017 is the API port for juju14:23
jcastrolazyPower, yeah, edit away14:24
lazyPowerjcastro: edits are in queue14:27
=== Ursinha-afk is now known as Ursinha
g0d_51gm4lazyPower: ok thanks, i make a further tests.14:33
=== psivaa-lunch is now known as psivaa
schegiis it impossible to deploy the mysql charm to an lxc container and then relate it to a ceph cluster? i got some issues that during ceph relation changed the charm tries to load the rbd module, which is not possible from within a container. adding the module outside to the kernel does not help it still tires to load the module14:38
jamespageschegi, no14:48
schegihow to get it working. in my setting it always fails because it tries to load the rbd module from within the container14:50
datajust to give a bit of feedback: it is working now, but ssh auth failed due to wrong rights on .ssh (which they weren't), but it had cached the wrong user id as the ubuntu user is local so the nfs server didn't know it, created it there, of course first time around with the wrong user id... But all that mess is now harmonizd14:51
schegihttp://pastebin.com/FJkSRnkY14:52
schegijamespage, this is from the /var/log/juju/unit-mysql-0.log on the node which actually runs the container14:52
dimiternschegi, you can modprobe the rbd module on the host first, and it will be in the container as well15:14
dimiternschegi, and you can also do lsmod | grep rbd first to check if it's there before modprobbing it15:15
jamespageschegi, one sec15:17
dimiternschegi, for an example, look in https://github.com/juju/juju/blob/master/provider/maas/environ.go#L53515:17
jamespagenegronjl, lazyPower: hrmm - mongodb?15:17
lazyPowerjamespage: what about it? :)15:17
jamespageschegi, HA for MySQL and RabbitMQ backed by ceph is not supported in LXC containers15:17
jamespagelazyPower, http://paste.ubuntu.com/7803902/15:18
jamespagelazyPower, the last commit was quite a large delta - and breaks the relation_set calls15:19
lazyPowerservice('stop', 'mongod')15:19
lazyPowerthats line 900 on my local copy - how would stopping the service cause failure?15:19
jamespagelazyPower, that's not L900 on the charm in the charm store15:20
lazyPowerah wait is ee, i misread the stack trace15:20
lazyPowerits down in teh relation_set block trying to send the replsets15:20
jamespagelazyPower, database_relation_joined15:21
lazyPowerjamespage: i see this, i've got a fix15:21
lazyPowermy branch is pretty dirty atm, let me try to cherrypick out the fixes15:22
lazyPowerits missing a None before the dict its sending15:22
jamespagelazyPower, there are a whole heap of incorrect relation_set calls15:23
jamespagelazyPower, suggestion - back out the last commit and test this better first....15:23
jamespagelazyPower, being explicit is better relation_settings={....}15:24
lazyPowerwhat do you mean being explicit? setting the relationship name vs using none?15:25
jamespageschegi, sorry - there is a way todo this - the percona-cluster charm provides an active/active mysql option which does not rely on ceph - its all userspace15:25
jamespagelazyPower, just saying don't None out relation_id, just be explicit as to which parameter you are intending to pass - in this case its relation_settings...15:26
lazyPowerthis is missing quite a bit of what i've done, what i just fetched from the store15:28
lazyPowerits still got the gnarly retval block at the bottom15:28
* lazyPower sighs15:28
lazyPowerwhat the hell15:29
jamespagelazyPower, I stand by my recommendation to revert and try again15:29
lazyPowerjamespage: reverted your mongos instances will fail though when you go to deploy this cluster.15:34
lazyPowerwhen you relate mongos => configsvr15:34
jamespagelazyPower, well right now I can't relate and clients to mongodb15:34
lazyPowerjamespage: what client are you using? i'll add one to teh amulet test before i resub a MP15:38
jamespagelazyPower, ceilometer15:39
lazyPowerthanks15:39
lazyPowerjamespage: and you've got mongodb deployed in standalone correct?15:42
jamespagelazyPower, yes15:42
lazyPowerperfect. easy enough15:42
ctlaughHi - I'm looking for some help with manual provisioning.  I have a working MaaS / Juju environment that I have deployed Openstack on using all the charms.  I have, however, a single node that I can not add into MaaS and want to manually provision using Juju.  I'm having some trouble understanding what I need to do from here: https://juju.ubuntu.com/docs/config-manual.html16:14
ctlaugh^^ Is bootstrap-host the same host or a different host from what I actually want to provision?16:15
lazyPowerctlaugh: the bootstrap node is what warehouses the juju api server. its responsible for orchestrating the environment16:16
lazyPowerctlaugh: sounds like you want to add this additional host as a unit into your environment16:16
lazyPowerjcastro: did we ever get adding units manually to an environment docs published?16:16
ctlaughlazyPower: Does it need to be a different host from the one already running Juju?16:17
lazyPowerctlaugh: i dont understand the question.16:19
ctlaughlazyPower: I used juju bootstrap (using the MaaS provider) so that node has all the Juju bits running on it.  (I also deployed the juju-gui on another node but that's probably not important)16:20
ctlaughlazyPower: So, do I need to add another bootstrap node?16:21
lazyPowernah, you can manually add hosts into an existing environment aiui16:21
lazyPowerthats why i'm pinging jcastro to find out if we ever published docs, that functionality landed a few revisions ago16:21
ctlaughDo I need to configure anything for the manual provider in environments.yaml, or just do an add-machine ssh:xxxx?16:22
ctlaughok - thank you for your help -- sorry, mid-typing before I saw your last msg.16:22
lazyPowernp ctlaugh16:24
lazyPowershould just be add-machine ssh:xxx16:24
ctlaughlazyPower: I'll try that and see if it works16:25
ctlaughlazyPower: That seems to have worked.  New machine added and in the process of deploying a charm to it.  Thank you16:33
lazyPowerNo problem :) glad its sorted16:33
ctlaughlazyPower: Well, the charm just failed to install, but I was expecting something like that to go wrong.  But, at least Juju can see it.16:34
lazyPowerctlaugh: if you need help debugging, dont hesitate to reach out16:34
ctlaughI'll go ahead and ask one question before I start digging into it myself... I just ran juju debug-log and got this:16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 DEBUG juju.worker.rsyslog worker.go:75 starting rsyslog worker mode 1 for "unit-nova-compute-1" ""16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 DEBUG juju.worker.logger logger.go:45 reconfiguring logging from "<root>=DEBUG" to "golxc=TRACE;unit=DEBUG"16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 INFO install Traceback (most recent call last):16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 INFO install   File "/var/lib/juju/agents/unit-nova-compute-1/charm/hooks/install", line 5, in <module>16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 INFO install     from charmhelpers.core.hookenv import (16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 INFO install   File "/var/lib/juju/agents/unit-nova-compute-1/charm/hooks/charmhelpers/core/hookenv.py", line 9, in <module>16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 INFO install     import yaml16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 INFO install ImportError: No module named yaml16:35
lazyPowerctlaugh: > 3 lines pastebin it please16:35
ctlaughunit-nova-compute-1: 2014-07-16 16:32:24 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 116:35
ctlaughSorry16:35
lazyPowerwhich charm is this?16:35
lazyPowernova-compute?16:36
ctlaughnova-compute.  It looks like it's just missing a dependency.  I didn't have this issue when deploying using MaaS nodes.16:36
lazyPowerseries precise?16:36
lazyPoweri recall on precise you had to install python-yaml16:36
lazyPowerthats not the case on trusty16:36
ctlaughtrusty-icehouse.  Does the MaaS deployment process install dependencies automatically that I might need to install manually here?16:36
=== scuttle|afk is now known as scuttlemonkey
lazyPowerthat shouldn't have anything to do with it16:37
lazyPowermaas is booting cloud-images16:37
lazyPowers/booting/serving up16:37
ctlaughlazyPower: I wasn't sure if the images (and the packages installed by default) might have dependencies already present that I wouldn't necessarily have on my manually-provisioned node.16:38
lazyPowershouldn't be the case - is the node you manually added to your env a precise host?16:39
lazyPoweryou should be able to do juju run --unit # "sudo apt-get install python-yaml" && juju resolved -r nova-compute/#      -- and it'll at bare minimum get further along in the install process.16:40
ctlaughIt's running trusty16:40
=== vladk is now known as vladk|offline
ctlaughAfter installing python-yaml, it's getting a lot further now.16:42
ctlaughlazyPower: Thank you for your help.  I'll reach out if I run into anything else I can't work through.16:43
lazyPoweranytime ctlaugh16:45
kirklandmarcoceppi: howdy17:04
kirklandmarcoceppi: I'm trying to submit my transcode-cluster bundle to the charm store17:04
kirklandmarcoceppi: according to: https://juju.ubuntu.com/docs/charms-bundles.html#sharing-your-bundle-with-the-community17:04
kirklandmarcoceppi: which says: juju bundle proof ../bundle-directory/ #default current working directory17:04
kirklandmarcoceppi: however, whenever I run: kirkland@x230:~/src/transcode/transcode/preciseāŸ« juju bundle proof transcode-cluster17:05
kirklandERROR unrecognized command: juju bundle17:05
marcoceppikirkland: do you have the latest charm tools?17:06
marcoceppiJuju charm version17:06
kirklandmarcoceppi: sure, I'm on 14.0417:06
kirklandii  charm-tools                              1.0.0-0ubuntu2            all                       Tools for maintaining Juju charms17:07
marcoceppikirkland: archives are severly behind17:07
kirklandmarcoceppi: well, that should be fixed ;-)17:07
kirklandmarcoceppi: you're telling me I'm going to need to slop up my laptop with a ppa?  :-)17:07
marcoceppiWell, we tried but missed the cut off17:08
marcoceppiIt's the best ppa around, ppa:juju/stable17:08
marcoceppikirkland: latest version requires software not yet in trust archives. If you know how to get around that I'm all ears17:10
kirklandmarcoceppi: dfdt?17:10
=== roadmr is now known as roadmr_afk
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
=== roadmr_afk is now known as roadmr
ziliu2020_I'm having some problem with juju authorized-keys add command... It keeps saying my public key is invalid and can't add... any reason?  I'm sure my key is ok because it has been used in other places with no problem,19:22
ctlaughjamespage: I am using the cinder charm and am trying to work through a problem installing on a system with only a single disk.  I see your name all in the charm code and hoped I could ask you a quick question about it:  what's the right way to specify using a loopback file on trusty/icehouse?  I am putting    block-device: "/srv/cinder.data|750G"  in a config file, and I can see that the file gets created, but the loopback device and19:29
ctlaughvolume group don't get created.19:29
=== alexisb is now known as alexisb_lunch
cory_fuI'm having an issue with a service I removed not going away entirely and causing issues when trying to re-deploy it: http://pastebin.ubuntu.com/7805234/19:51
cory_fuAny suggestions?19:51
cory_fuOn how to get rid of it19:52
lazyPowercory_fu: is the machine its attached to destroyed?19:55
cory_fuYes, it's gone19:55
lazyPowercory_fu: also, what about the relations? are any related services in error?19:55
lazyPower9/10 its a related service thats trapped in error keeping it from going away19:55
cory_fuIt has no relations at the moment19:55
lazyPowerweird19:55
cory_fuI'm full of lies19:55
cory_fuYes, related services are in error19:56
lazyPowerhaha19:56
lazyPowerthats why19:56
lazyPowerif you resolve the services its related to, it'll go away19:56
cory_fuThanks19:56
cory_fuYep, that worked19:57
* lazyPower thumbs up19:57
lazyPowerglad we got it sorted19:57
=== vladk is now known as vladk|offline
=== alexisb_lunch is now known as alexisb

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