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

josesebas5384: well, you don't lose anything by trying, if it works then awesome! :)00:12
sebas5384thks jose00:29
josenp, and let me know if you need a hand with testing!00:29
=== Guest14971 is now known as wallyworld
sebas5384if there's some pt-br out there take a look http://blog.taller.net.br/taller-lanca-serie-de-infograficos/ :)02:05
sebas5384the next one is going to be about ubuntu juju :)02:05
=== uru-afk is now known as urulama
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
=== CyberJacob is now known as CyberJacob|Away
schegijamespage, online?09:07
jamespageschegi, I am09:08
schegihey, i got some issues when redeploying a destroyed ceph charm. it seems like something is going wrong with the zapping of the disks. here is the log http://pastebin.com/mbtXtfKA. calling ceph-prepare-disk --zap-disk /dev/sdX manually solved the problem for me. just to let you know09:11
schegijamespage, don't know if this is true for the ceph charm in the store, i used your network-split version.09:12
schegibtw anyone out there experienced with the hacluster charm??09:14
jamespageschegi, that would be me as well09:15
jamespageschegi, hmm - you might need to use the osd-reformat configuration option09:16
schegiyeah, thats the problem it is set to yes.09:17
jamespageschegi, hmm - I've not exercised that option with btrfs - we test with xfs as default09:18
* jamespage pokes at the code09:18
=== CyberJacob|Away is now known as CyberJacob
schegihere is my config, http://pastebin.com/mXBTyuLs09:19
schegijamespage, might be a btrfs problem. but as i said, when i log in to the machine and perform the zapping manually the error state resolves and the odds populate.09:20
schegiosds09:20
jamespageschegi, the charm should perform a pre-zap prior to calling ceph-prepare-disk - looks like that is not enought....09:24
jamespagehmm09:24
schegijamespage, the error is a bit strange, currently deploying ceph to 3 nodes and ceph-osd to 10 more nodes and the error occurs from time to time but not reliably on all of the nodes. But if it occurs, on a node then for all of the disks. Btw the partition table in use it GPT.09:29
schegiAnd as described, just logging in to the node and performing ceph-prepare-disk --zap-disk /dev/sdX manually from the console resolves the error and the deployment succeeds.09:30
schegiBut you have to do this for all of the disks on the node seperately09:31
jamespageschegi, how ubiqutous is the --zap-disk option in ceph-prepare-disk? does that go back to older versions? if so I can tweak how that's called09:36
* jamespage checks09:36
schegijamespage, to be honest, i have no idea i am just 4 weeks old with ceph/juju and all this. I am scientist and just got hands on a bunch of hardware and trying to make use of it.09:39
schegi:)09:39
jamespageschegi, its sufficently supported in older versions back to grizzly/raring so I'll poke that in09:40
jamespageschegi, I just nudged that into my network-splits branches09:42
jamespageif you want to give it a spin09:43
jamespageschegi, what question did you have about the hacluster charm?09:44
schegishure, if i have to redeploy my ceph i'll try. currently i hang a bit on percona/corosync/pacemaker but i am not familiar enough with the whole to figure out why. could be caused by my network configuration. seems like all nodes in the corosync cluster running separately nd not connecting to each other.09:44
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== psivaa is now known as psivaa-off
=== CyberJacob is now known as CyberJacob|Away
=== wwitzel3_ is now known as wwitzel3
g0d_51gm4hi guys, I've a question for you, I made a test after to install MaaS and Juju deployed a juju-gui, last one works perfectly...why each time I re-boot the host machine and re-launch the VM, Region and Cluster Controler with the nodes, the juju's status is always "WARNING discarding API open error: unable to connect to "wss://1.1.2.21:17070/environment/814bd22b-4438-4ea6-8f22-92b39b866a42/api"13:07
g0d_51gm4ERROR Unable to connect to environment "maas".Please check your credentials or use 'juju bootstrap' to create a new environment".  to resolve that I've always to remove the directories .juju/enviroments and .juju/ssh and re-sync  juju and make the bootstrap again????thanks13:07
g0d_51gm4the ubuntu's installer re-begin the installation of OS? thanks a lot13:09
=== scuttle|afk is now known as scuttlemonkey
g0d_51gm4anyone can answer me?13:38
avoineg0d_51gm4: I guess the juju team are still sleeping at that time13:41
avoinemost of them are in pst time I think13:41
g0d_51gm4avoine: maybe you right!!! last week they gave support at this time!!!!13:42
g0d_51gm4it's strange but it's ok!!!13:43
lazyPowerg0d_51gm4: in the MAAS gui are your nodes still marked as assigned to whichever user's credentials are plugged into juju?13:52
lazyPowerif the machine is going through the fastpath installer again, that typically means the node is not registered with maas.13:52
g0d_51gm4 lazyPower: hi how are y?anyway the answer for your q is yes13:52
lazyPowerand the bootstrap node is online, with the juju processes running?13:53
lazyPowerand the IP address of the node has not changed?13:53
g0d_51gm4lazyPower: all nodes are registered on MaaS13:53
lazyPowerregistered != assigned.13:53
lazyPoweri'm talking the node is assigned to the user.13:53
=== aruiz__ is now known as aruiz
lazyPowerhttp://i.imgur.com/vGhLGZA.png13:54
lazyPoweras you can see in this screenshot - i ahve several nodes registered. Only node 12, 5, 4, and 0 are actually assigned to my juju environment13:54
g0d_51gm4the ip address is not changed is always the same used to allocate the node to MaaS13:56
g0d_51gm4after to create a juju environment I've run the following commands: "juju sync-tools -e maas" and "juju bootstrap -e maas --debug". with last one I see the node starts and the ubuntu's installer runs. at the end of this process the prompt of that one is "Bootstrapping Juju machine agent13:58
g0d_51gm4Starting Juju machine agent (jujud-machine-0)13:58
g0d_51gm42014-07-15 13:32:12 INFO juju.cmd supercommand.go:329 command finished"13:58
g0d_51gm4I've seen your image and I've the same situation with my node.13:59
g0d_51gm4after that I've also deployed juju-gui and it works well.14:00
marcoceppiahasenack: I think it is, at least I think it's coded that way14:03
marcoceppiahasenack: is that causing a problem?14:03
marcoceppiahasenack: re: calling config-changed14:03
g0d_51gm4the problem is present when I shut down the host machine (my PC). why after I re-start all virtual environment and, from MaaS  start the node where I've deployed juju-gui juju gives me that error!!!!14:04
lazyPoweri don't exactly know, i've got a vmaas setup that comes back up when i restart the host.14:06
lazyPoweri'm thinking, but not really coming up with anything that would be an inherent blocker14:06
lazyPowerare you using KVM based virtual machines or bare metal?14:06
g0d_51gm4and another q is: adding a second node to MaaS how can I register the new node to the same juju's environment used for the first one?14:07
g0d_51gm4lazyPower:I use KVM14:08
lazyPowerg0d_51gm4: are you wanting to manually add machines? otherwise juju deploy will communicate with maas and maas will return a machine randomly to add to the environment.14:09
ahasenackmarcoceppi: yes, it caused a problem with a reboot14:09
ahasenackmarcoceppi: a race between juju running config-changed, which restarts a service14:10
ahasenackmarcoceppi: and the normal service start that happens during boot14:10
ahasenackthe same initscripts called twice, at the same time14:10
g0d_51gm4no, I've added the vm node via PXE14:10
=== CyberJacob|Away is now known as CyberJacob
g0d_51gm4http://imgur.com/4SylrD614:14
marcoceppiahasenack: I know config-changed is run a certain times during certain events, may want to chat with a dev about it, but it sounds like the config-changed hook isn't 100% idempotent?14:14
g0d_51gm4http://imgur.com/1xJbvyk for the virsh14:14
ahasenackmarcoceppi: it is, you can run it as many times as you want14:14
marcoceppiahasenack: then why is there a race condition forming?14:15
ahasenackmarcoceppi: because of the boot!14:15
marcoceppiahasenack: which charm - out of curiousity14:15
ahasenackmarcoceppi: during boot, ubuntu starts services14:15
ahasenackmarcoceppi: landscape-server14:15
ahasenackmarcoceppi: so you have two things calling "service sometstuff start"14:15
ahasenackmarcoceppi: config-changed, via juju14:15
ahasenackmarcoceppi: and the boot process of the machine14:15
marcoceppiOkay, so I follow why there's a race condition. Upstart is bring up a service while config-change is doing the same14:15
ahasenackright14:15
marcoceppiahasenack: why not just do `restart somestuff || start somestuff`14:16
marcoceppiinstead of assuming that you will always need to start it14:16
g0d_51gm4from the first image if I add a second node and leave that in ready status which is the way to say to juju that is present a new node and how to add it to the same environment?14:16
ahasenackmarcoceppi: we assume that if config-changed was called, something changed14:16
marcoceppiahasenack: that's not a valid assumtion14:17
ahasenackit was, from reading the doc14:17
marcoceppiany hook can be called at any time for any reason14:17
ahasenackwhich also states that config-changed is called everytime the agent is started14:17
marcoceppiconfiguration change is just an example where config-changed is envoked14:17
ahasenackso doc-wise, it's correct14:17
ahasenackmarcoceppi: I wonder how many charms are tested regarding a reboot, though14:17
ahasenackwe all seem so concerned with deployments14:17
marcoceppig0d_51gm4: you can do a deploy, or allocate the node with `juju add-machine`14:18
ahasenackmarcoceppi: we are fixing it in our charm, sure. But heads up, a reboot can ruin your day14:18
marcoceppiahasenack: good question, not sure, I'll make sure we add it to our testing infrastructure14:18
g0d_51gm4ok14:18
marcoceppitvansteenburgh: ^^14:18
g0d_51gm4thanks marcoceppi14:18
ahasenackmarcoceppi: we probably hit this because we start several services, like 8 or more14:18
marcoceppitvansteenburgh: tl;dr during testing, when we stand up a deployment, we should stop/start the agents on all the machines and see how the charm reacts14:19
marcoceppiahasenack: it's a good point to test for, this wasn't always the behaviour in juju14:19
ahasenackmarcoceppi: still, I would question this decision, to have config-changed run at agent start14:20
marcoceppiahasenack: if the hooks is coded with the notion that it's called at anytime, and the right idempotency guards are in place, it /shouldn't/ be a problem14:20
g0d_51gm4any suggest to resolve the problem after the reboot of the host machine?14:20
ahasenackmarcoceppi: I'm not convinced14:21
ahasenackmarcoceppi: the hook can be called as many times as you want14:21
ahasenackmarcoceppi: but sure, an admin could be calling "service foo restart" at the same time config-changed is being run by some other reason14:21
marcoceppig0d_51gm4: I've not experienced that issue before, sorry14:22
g0d_51gm4I've recreated a new virtual environment with MaaS and Juju, I've made the bootstrap of the environment, deployed the juju-gui and until here everything works. I've reboot the host machine re-run all vMaaS environment and used check the juju's status and I've the same problem with juju " ERROR Unable to connect to environment "maas".Please check your credentials or use 'juju bootstrap' to create a new environment".  to resolve that I'14:28
g0d_51gm4ve always to remove the directories .juju/enviroments and .juju/ssh and re-sync  juju and make the bootstrap again"14:28
lazyPowerg0d_51gm4: do you have your machines configured to only boot over pxe?14:28
lazyPoweryou may want to add hdd booting as well to your boot options, so it doesn't re-provision the machine on boot if its assigned. it *shouldnt* be doing that anyway - but its worth investigating.14:29
g0d_51gm4I've also made that.14:30
g0d_51gm4I've boot the node with its HD via MaaS, the node status is allocated, ubuntu prompt works:  but if run that command the error is present!!!14:33
lazyPowercan you juju ssh 0?14:33
lazyPoweror ssh into the node and valdiate that the juju processes are running?14:34
lazyPowershow me the output of -  initctl list | grep juju  on your bootstrap node14:34
g0d_51gm4the ssh connection using its hostname works14:34
g0d_51gm4the output is "jujud-unit-juju-gui-0 start/running, process 376014:39
g0d_51gm4juju-db start/running, process 366714:39
g0d_51gm4jujud-machine-0 start/running, process 3645"14:39
g0d_51gm4I've just stop the node via MaaS and re-start it14:41
lazyPowerif you stopt he node via maas, its going to do a fresh cloud boot14:41
lazyPowermeaning full pxe install, no juju environment will be left on the virtual machine. its pristine, just like you chose to spin up a new VM on a public cloud.14:42
=== vladk is now known as vladk|offline
g0d_51gm4just a second in the same time i've added also the second node and used the command marcocepppi suggested me before15:03
g0d_51gm4and the ubuntu's installer is started15:03
g0d_51gm4in case i've 2 juju environment (maas0 and maas1) to add the new node to maas2 int the command juju add-machine I've to specify some other parameter?15:05
schegidoes anyone know how to force juju to use a certain network interface? i got a setup with 3 different networks 2 Bonds over 2 1GBit networks and 2 10GBit networks. I like juju to use one of the 1 Gig bonds but it always uses the 10GBit interfaces, when using e.g. juju ssh X. This also leads to charms identifying themselves with this particular interface.15:26
rbasaksinzui: around? On SRU review, arges found 1) a binary in the upstream tarball for 1.18.4, and 2) that it changed from 1.18.1.15:26
g0d_51gm4lazyPower: i'm rebooting the host machine see y after few seconds15:26
rbasaksinzui: pkg/linux_amd64/github.com/errgo/errgo.a15:26
sinzuirbasak, The cause is fixed, but was not fixed until a few weeks. The devs or golang changed something to get that crack.15:29
sinzuirbasak, The fix was to rm pkg/* when the tarball is assembled. It is safe to do so15:29
sinzuirbasak, I also think it is safe to stab the person golang for doing that non-sense15:30
rbasaksinzui: thanks. Coordinated in #ubuntu-release, the conclusion is that I'll repack the tarball with the file missing for the Trusty SRU, as a one-off.15:36
sinzuirbasak, thank you +115:37
rbasaksinzui: I can delete the pkg/ directory itself too, I take it15:43
rbasak?15:43
g0d_51gm4lazyPower: the same error http://paste.ubuntu.com/7799040/15:50
lazyPowerg0d_51gm4: i'm not sure what to recommend at this point. I would reach out via the juju mailing list and see if another member has run into this scenario before.15:51
g0d_51gm4if i remove the directories ./juju/environments, .juju/ssh and run the commands "juju sync-tools -e maas" and "juju bootstrap -e maas --debug" it juju bootstrajuju bootstrap -e maas --debug it restart the node and install ubuntu15:54
g0d_51gm4lazypower: it's incredible but also for  the third time i've received the same error!!!i don't know where is the problem with that!!!16:31
lazyPowerg0d_51gm4: it really sounds like something is going on with your vm's thats wiping out the juju env, or replacing the ssh key16:32
lazyPowerthats the only thing i can think of, but i dont know what it would be16:32
=== sputnik1_ is now known as sputnik13net
rharperis there any control over when juju bridges eth0 for containers ?  like a value in environments.yaml ?16:56
marcoceppirharper: I believe so, but I think it's undcoumented, let met take a look at the source code17:02
rharpermarcoceppi: do you know it wouldn't by default?  I've got an openstack environment I'm deploying to; and it's not bridging eth0 by default, so containers come up on lxcbr0 (10.0.3.x) -- but I really want it to bridge eth0 so the public ip comes from the same network as the host17:04
rharperwhen I use a maas provider, it does this "automatically"17:05
=== roadmr is now known as roadmr_afk
=== CyberJacob is now known as CyberJacob|Away
alexisbrharper, I know they are not online right now but that is a good question for dimiter and jam18:03
alexisbfwereade, may be around and could potentially have a quick answer for you18:04
rharperalexisb: cool, thanks.18:04
alexisbrharper, feel free to send dimiter mail18:05
rharperok18:05
=== alexisb is now known as alexisb_lunch
datahey, I have googled high and low, but is it possible to do mixed deployments in juju? Because I have so far set up a dozen services "locally" in VMs (maas provisioning), but would like to add other, preexisting servers to it (manual provisioning).18:38
=== roadmr_afk is now known as roadmr
sebas5384juju-local can be installed into a debian machine?18:54
sebas5384its being quite around here lately hehe18:58
sebas5384jcastro: ping19:10
jcastrosebas5384, hi!19:11
sebas5384hey jcastro o/19:11
lazyPowerdata: manual provider will give you that level of mixed deployments you're looking for19:11
sebas5384today we are going to install juju-local in more than 10 pcs19:12
sebas5384:D19:12
sebas5384but!! there are some with debian19:12
sebas5384some tip about that?19:12
sebas5384jcastro: :)19:12
sebas5384hey lazyPower o/19:12
schegijamespage?19:12
lazyPowerhey sebas538419:13
schegijamespage, will redeploy ceph this evening, have bzr updated your ceph/ceph-osd network-split, but nothing new. can you commit pls19:14
datalazyPower: So if I add that environment, will the two be shared?19:16
lazyPowerright, in the manual provider tehre are no real limitations. You can have machines in different datacenters entirely19:16
lazyPowerlag will be a factor19:16
lazyPowerbut its perfectly reasonable to deploy into say, digital ocean and aws and your in-house maas cluster (assuming it hs the proepr networking to reach all these instances)19:17
datak. It's more about ease of deployment for now. It's just for development19:17
lazyPowerbe careful about adding existing nodes that are dirty to juju though19:17
dataWhat do you mean by dirty?19:17
lazyPowercharms always assume a clean cloud image, so if you go adding your corporate ERP server to juju, and deploy something on it, it may do something unintended19:17
jcastrosebas5384, I don't think anyone's tried it before19:17
lazyPowerjcastro: back in 2012 there were some articles on it, iw ent looking19:18
dataNone of the servers are production servers. Not exactly virgin some of them, but not too bad19:18
lazyPoweri didn't find anything recent post teh go-port on getting juju running.19:18
lazyPower(on debian)19:18
jcastrolazyPower, was it me posting on the debian-cloud list asking for someone to help on it? :)19:18
lazyPoweruhm, nope, it was a couple blog posts, some comments on MS's blog, and debian bugs against a package that no longer exists19:19
sebas5384shouldn't be like adding some repositories and that kind of stuff?19:19
jcastrooh, that was the pyju client in debian19:19
jcastronot supporting debian as a deployable OS, which is what he wants19:19
sebas5384jcastro: by deployable OS you are saying like, installing juju-local and running charms into lxc containers, right?19:20
jcastroright19:20
sebas5384jcastro: ahh ok :)19:20
sebas5384then its exactly what i want19:21
sebas5384htht19:21
sebas5384hehe19:21
lazyPoweri think the components are there, but its largely untested.19:21
lazyPoweri would give it a go in a manual provider environment19:21
sebas5384yeah thats going to be a problem19:21
sebas5384troubleshooting is going to by a pain in the a**19:22
datawhile I am here: I had this problem yesterday that juju didn't continue with anything because it was waiting for a server to finish dieing. problem was that the server didn't exist anymore19:23
lazyPowerdid you destroy the machine with a --force19:24
lazyPowerand then destroy the service data?19:24
lazyPoweroften times, i find that hooks get trapped in a failed relationship cycle19:24
lazyPowerand resolving the relationship bits, after having destroyed the machine with extreme predjudice, works pretty well19:24
datait was something like that, I believe. Are you talking about some kind of "service data" or was it another implication of my unfortunate nick :)19:25
dataI could not figure it out and completely destroyed the environment19:25
lazyPowerunfortunate implication of the nickname :)19:26
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
jrwrenwhat is a good way to test a relation-broken hook?20:14
=== scuttlemonkey is now known as scuttle|afk
josejrwren: I'd say deploying, relating and destroying the relation?20:23
jrwrenthat does a that does a relation-departed, different from broken, AFAIK20:24
josejrwren: I think it's just an alias, though I'm not entirely sure20:25
=== alexisb_lunch is now known as alexisb
ahasenackhi, which package has this command:20:40
ahasenackandreas@nsn7:~/charms/trusty/ntp$ make sync20:40
ahasenackmake: charm-helper-sync: Command not found20:40
=== CyberJacob|Away is now known as CyberJacob
schegi__hey if i bootstrap a maas environemt and later deploy a service in an lxc container and like the container to use a predefined bridge (br0) on the server. how to define the bridge device21:45
dergrunepunktHi, using maas I run "juju bootstrap" and when de node boots starts the ubuntu installation21:52
dergrunepunktideas?21:52
thumperdergrunepunkt: that is what maas does22:02
dergrunepunktI know22:03
thumperI'm not sure what you are asking22:03
dergrunepunktbut it souldnt do it over and over and over again22:03
thumperyeah, that sounds wrong :)22:03
dergrunepunktmaas shoud do it once22:03
dergrunepunktonce the node it's installed it shouldn't install the operating system again22:04
dergrunepunktthumper: I have 3 nodes in the "Ready" state, and when run "juju bootstrap" bloody maas wants to install the operating system again22:05
* thumper doesn't know much about maas22:06
=== CyberJacob is now known as CyberJacob|Away
schegi__dergruenepunkt, before bootstrapping no system is installed, it justs boots to a pxe image and during commisioning only information about the server is collected and impi user is created.23:09
schegi__ready state only means that the node is ready for deployment, if you mean ready in maas.23:09
=== kc is now known as Guest45427

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