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

=== scuttle|afk is now known as scuttlemonkey
=== vladk|offline is now known as vladk
stubTribaal: Could be. I'm noticing that bootstrap now seems a lot slower, with a CPU core nearly pegged and 60% iowait for over half a minute.06:10
=== urulama_ is now known as urulama
=== CyberJacob|Away is now known as CyberJacob
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== rogpeppe1 is now known as rogpeppe
=== rogpeppe1 is now known as rogpeppe
=== CyberJacob is now known as CyberJacob|Away
d4rkn3thello everyone, I've a question for you about JUJU environments and the deploy of services. I'v e created on a virtual environment with 3 VM (1 Region and 2 Cluster), added 1 node to RC and installed JUJU on RC, made the bootstrap of node the ubuntu's installer starts and install the OS. Now I'd like to deploy the services seeing the guides on web I saw that for each charms installed it creates a machine...my question is these machines09:32
d4rkn3tare a clone of the node or it's a name to identify just the charm installed on the node?09:32
d4rkn3tanyone can answer me?please09:58
noodles775d4rkn3t: I think that the name you are referring to is the "service name" (which defaults to the charm name if you don't provide one - see `juju help deploy`).10:32
noodles775hazmat, lazyPower: updates to the elasticsearch README if you've time: https://code.launchpad.net/~michael.nelson/charms/trusty/elasticsearch/update-readme/+merge/22580210:33
noodles775lazyPower: So I don't ping you in the future, what's the process to get updates to charms in the review queue - do I need to create a bug for each?10:34
lazyPowernoodles775: yeah, if you've got a MP, make sure charmers is the reviewer10:34
lazyPowersorry just now waking up10:34
lazyPowerits still pretty early here - give me a few to get moving and i'll take a look10:34
noodles775lazyPower: hah, sorry? You just replied within the minute! No rush, enjoy your breakfast!10:35
lazyPower:)10:35
d4rkn3tnoodles775: thanks for your support it's a bit clear but I don't understand ia think f I've 4 nodes installed on MaaS and  I try to deploy a service, for example wordpress, this one will be installed on machine 0 by default?10:38
noodles775d4rkn3t: Ah - I'm not sure - I've not used MaaS. gmb or allenap might be able to answer your original question then? ^^10:40
d4rkn3tnoodles775: and in case we want to add another node to MaaS , I've to run again the Juju bootstrap to allow to Juju to know there is a new node?10:41
d4rkn3tnoodles775: thanks again for your first answer..10:42
noodles775No, you only need to bootstrap the juju environment once, but I'll defer to someone with experience with MaaS for the rest of your question :)10:42
noodles775no problem.10:43
allenapd4rkn3t: Juju asks MAAS for a machine, and MAAS chooses one in no special order (that satisfies any criteria that Juju has specified), so your first service deployment won’t always go to your first machine.10:43
d4rkn3tok, I'll contact gmb or allenap10:43
d4rkn3tfor the rest10:43
allenapd4rkn3t: When you add a machine to MAAS Juju can immediately make use of it, because Juju just asks MAAS for machines as it needs them.10:44
d4rkn3tso, one service one node????10:44
d4rkn3teach service will be installed on a node?10:46
allenapd4rkn3t: Yes, by default, but Juju can put multiple services onto a single machine if you ask it.10:46
d4rkn3tok10:46
d4rkn3tnow it's more clear!!!10:46
d4rkn3tand if I'd want to specify more environments  for example maas1, maas2.... how do juju assign the node to environment? it's the last q. I make :-))10:48
lazyPowerd4rkn3t: each environment is its own isolated configuration, and your driving workstation will have that configuration10:51
lazyPoweryou can use the same maas cluster for different environments, and you would switch between them as 'juju switch maas1' - they keep the machines allocated isolated to that environment10:52
lazyPoweri'd caution you against using the same user/apikey though, and isntead make a different user per environment so its apparent in teh maas GUI which machines are allocated to which environment10:52
d4rkn3tlazyPower: let's me know....at the begin i've an environment (maas1), i make the bootstrap juju see the node created on MaaS and deploy the service on that nodes. Then i decide to create new environment (maas2) with new nodes,  how can I assign the new nodes to the second environment?10:59
lazyPowerd4rkn3t: you need to create the maas2 environment in $HOME/.juju/environments.yaml - and follow the same process as you would with mass1 but in the context of maas2 by issuing 'juju switch maas2'11:00
d4rkn3tok11:00
d4rkn3tand the new context i can decide which node to use for that environment11:01
lazyPowerjust like maas1 - juju is only asking maas for a node11:02
lazyPowermaas will randomly return a node for juju to use.11:02
d4rkn3tops ....in the new context...11:02
d4rkn3tand using juju-gui, can i see these different environment and the node used for that one?11:03
lazyPowerYou'll need to deploy a second instance of the juju-gui11:21
lazyPowerat the moment you cant manage multiple environments with a single juju-gui - rick_h__ may have more information on the subject as he's the GUI project guru.11:22
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
d4rkn3tlazyPower: thanks a lot for your support I'll try to make that on my infrastructure12:31
lazyPowerNo Problem d4rkn3t12:31
=== nottrobin_ is now known as nottrobin
=== ming is now known as Guest65048
d4rkn3tlazyPower: I've tried to add 1 more node on MaaS but Juju don't see that when I run juju status13:02
d4rkn3twhy?13:03
lazyPowerd4rkn3t: which environment are you in? still in maas1?13:03
d4rkn3tthe default, maas13:03
lazyPowerand how are you trying to add a machine?13:04
adeuringd4rkn3t: Juju knows only about machines that are already deployed. By adding a machine to Maas you just make the number of machines offered by Maas larger13:04
lazyPower(relative) morning adeuring13:04
d4rkn3thow can i make that?13:04
adeuringmorning lazyPower13:04
d4rkn3tthe node is in ready status13:05
adeuringd4rkn3t: just run "juju deploy some-new-service" of "juju add-unit"13:05
d4rkn3tit should see the new node added on MaaS?13:07
adeuringyes13:07
d4rkn3tI don't see it13:07
d4rkn3tif i run juju status I see just "0" machines ( the first node I added before)13:08
adeuringd4rkn3t: whoich commands did you try?13:08
lazyPoweri think its prudent to start a few steps back. How many machines do you have allocated in your MAAS pool d4rkn3t?13:08
d4rkn3tlazyPower:  at moment I've 2 node13:10
lazyPowerd4rkn3t: ok, so when you view your MAAS gui, you have the region-controller and the cluster controller on teh same machine, with 2 additional nodes enlisted in maas?13:10
d4rkn3tone node has been bootstrapped with juju13:10
d4rkn3tnow I've added another node to MaaS,13:11
lazyPowerhttp://i.imgur.com/k0jvVIT.png13:11
lazyPowersimilar to the following, but showing 2 nodes, correct?13:11
d4rkn3tIve RC + 2 CC ( offer DHCP service) with 2 node13:11
lazyPowerwhen you issue juju deploy 'myservice' - its going to take a moment to go through the fastpath installer (assuming thats how you have your nodes setup) before it'll show as enlisted in juju13:12
lazyPowerthis can take up to 5 minutes depending on network speed, machine specs, etc.13:12
lazyPowerhowever, in juju you should see it as pending13:12
d4rkn3tok13:12
d4rkn3tuntil here everything are ok!13:13
lazyPowerI'm bootstrapping my maas cluster atm so i can pull example output for you13:13
d4rkn3tlazyPower: thanks13:14
lazyPowerd4rkn3t: http://paste.ubuntu.com/7760128/13:19
lazyPowerthats directly after running juju quickstart, and juju deploy ubuntu13:19
d4rkn3tyou're using 2 node, isn't it?13:20
d4rkn3t"0" and "1"13:21
d4rkn3tand on "1" you've deployed juju-gui!13:21
lazyPoweryep, there's 3 total here, the bootstrap teh gui and a pending ubuntu node13:27
d4rkn3tlazyPower: sorry why 3 machines?13:29
lazyPowerd4rkn3t: boostrap is machine 1 - i didn't co-locate juju gui, so thats machine 2 - the ubuntu service is node 3. by default juju assumes 1 service per node13:29
d4rkn3tI've just deployed juju-gui and make the status http://paste.ubuntu.com/7760176/, now i see also the second node13:34
d4rkn3tnow also the second node is in allocated13:35
lazyPowersounds like things are progressing as they should13:36
lazyPoweryou can save yourself a node by deploying the juju-gui with '--to 0' to make it deploy on the bootstrap node13:36
lazyPoweri just accepted teh juju quickstart defaults for simplicity sake13:36
d4rkn3tI've loose something why before the deploy I saw only 1 machines and after the deploy i see also the second one????13:37
lazyPowernoodles775: Merged, thanks for the Readme update13:38
d4rkn3ti've tried to run the command juju deploy juju-gui --to 0 but receive this error "ERROR cannot add service "juju-gui": service already exists"13:39
lazyPowerd4rkn3t: because juju is completely unaware of the maas pool, it just sends messages to maas requesting a machine.13:39
d4rkn3tlazyPower: ok, it's clear13:39
lazyPowerd4rkn3t: you will have to juju destroy-service juju-gui, or deploy it with a different name (if you want 2 juju-gui's) deployed.13:39
noodles775lazyPower: great, txs.13:40
d4rkn3ti've destroyed it and the status now is  http://paste.ubuntu.com/7760210/""13:41
lazyPowernoodles775: suggestion for the next update: use juju-run instead of juju ssh13:41
lazyPowerjuju-run is brilliantly handy13:42
lazyPowerd4rkn3t: looks like agent 1 hasn't finished setting up. are you using the fastpath installer in maas?13:43
d4rkn3tyes13:43
d4rkn3tI'm seeing just now13:43
d4rkn3tops!!!!13:43
d4rkn3tI've to wait13:43
lazyPoweryou can't be impatient :) We're orchestrating several layers of complexity here.13:44
d4rkn3tyou right!!!!!13:44
noodles775lazyPower: I do use juju run for other things, not sure why I used ssh here. I'll switch it in the branch I'm working on :)13:44
lazyPowernoodles775: its not a big thing, i just like promoting juju-run13:44
lazyPowernoodles775: your juju-ssh line works ootb, and is just as brilliant. However i'm pushing the -run agenda here :P13:45
=== lazyPower changed the topic of #juju to: Welcome to Juju! || Docs: http://juju.ubuntu.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://goo.gl/9yBZuv || Unanswered Questions: http://goo.gl/dNj8CP || Weekly Reviewers: cbutler & jcastro || News and stuff: http://reddit.com/r/juju
noodles775lazyPower: Yeah, we're using it to implement generic "actions" (like actions/reindex) so we can do `juju run --unit foo/0 actions/reindex` (until there's proper support for actions, I haven't checked recently).13:46
=== lazyPower changed the topic of #juju to: Welcome to Juju! || Docs: http://juju.ubuntu.com/docs || FAQ: http://goo.gl/MsNu4I || Review Queue: http://goo.gl/9yBZuv || Unanswered Questions: http://goo.gl/dNj8CP || Weekly Reviewers: lazypower & [jcastro|jose] || News and stuff: http://reddit.com/r/juju
lazyPowernoodles775: its coming but isn't here yet. we're taking similar actions against a few charms. cory_fu has done similar in the apache allura charm13:47
noodles775Cool, I'll try to check it out to compare and learn.13:48
Caguaxjuju switch maas13:48
CaguaxERROR couldn't read the environment13:48
CaguaxJust install juju 1.20.0 and ran 'juju generate-config'. Edit the corresponding areas for maas but get the following after running 'juju switch maas' ;13:48
Caguaxjuju switch maas13:48
CaguaxERROR couldn't read the environment13:48
lazyPowerCaguax: you have an error in your YAML13:48
lazyPowertypically this is because you used a tab character instead of 4 spaces, but could be a number of things.13:49
CaguaxlazyPower: hmm any log that help pih-point them ?13:49
lazyPowersuggest to run it through a YAML linter13:49
lazyPowerhttp://stackoverflow.com/questions/287346/yaml-validation  Caguax13:50
CaguaxlazyPower: thanks...let me check that out13:50
lazyPoweri would caution against using online yAML validators as you dont know what they are doing with the data. there's a few ruby/node.js listed linters in there13:50
d4rkn3tlazyPower: is there a way for juju to see the nodes added in the second time and start it in allocated status?13:54
lazyPowerd4rkn3t: sounds to me like you want to allocate machiens to juju before you deploy. That emulates the manual behavior of juju - and will become cumbersome once you scale to gt 10 nodes.13:55
lazyPoweri would advise against that13:55
lazyPowerbuti f you really want to go that route, by running juju add-machine, it will alloate the machine in juju13:56
d4rkn3tlazyPower: yes I'd like to make that, before to make the deploy of service13:56
lazyPowerthen you *have* to use juju deploy --to nodenumber   in order to deploy services, otherwise it will request another machine from MAAS13:56
d4rkn3tI've to use juju add-machine to inform juju I've added 1 more node to MaaS?13:57
lazyPowerjuju has no concept of maas other than it sends messages requesting a machine13:57
lazyPowerjuju add-machine will request the machine from maas, install the agent and leave it in an idle state, waiting for a service to be deployed to it.13:58
d4rkn3tperfect, but if I run the juju status I'd see the nodes available in my infrastructure!!!!!14:00
lazyPowerd4rkn3t: there's maas-cli for that https://maas.ubuntu.com/docs/maascli.html14:00
lazyPowerand the maas gui14:00
lazyPowerbut if thats what you want - i'm happy to say you've achieved that14:00
lazyPower:)14:00
CaguaxlazyPower: Thanks...it was some space/tab thingie14:01
lazyPowerCaguax: no problem - it gets me too.14:01
lazyPowerCaguax: i find that when i edit in vim, if i show hidden characters while editing yaml, i'm about 90% more effective at not placing tabs vs spaces.14:01
CaguaxlazyPower: Cool, will try that. thnks14:02
d4rkn3tlazyPower: I'd like to avoid to use always MaaS to see how many nodes I've available if I'm working with juju....14:17
lazyPowersinzui: grats on landing 1.20.0!14:21
adeuringd4rkn3t: the problem is that juju works also on public clouds (amazon/hp,azure/joyent etc). And these companies don't always want to say "we have a present 5000 machine idling and waiting for customers"14:22
sinzuithank you lazyPower14:23
d4rkn3tit's also true that!!!14:24
d4rkn3tbut this is aspect that who works with juju should know, it's just my opinion!!!!! :-)14:27
d4rkn3tops "but this is an aspect ..."14:27
d4rkn3tthere should be  a way to see the available nodes presented on MaaS before to make the deploy of a service.....14:30
d4rkn3tlazyPower: thanks a lot for your technical support!!!14:50
lazyPowerNo problem d4rkn3t14:51
d4rkn3tallenap & noodles 755: thanks to you!! see y next time14:53
d4rkn3thello again guys!but during the juju status I've seen this "agent-state-info: 'hook failed: "install"'" you can see all of that here "http://paste.ubuntu.com/7760515/" what does it mean?15:01
lazyPowerd4rkn3t: something happened during the install hook that caused teh charm to fail. its now in a state that you need to resolve manually before it can proceed15:04
lazyPoweryou can either juju debug-hooks service/unit-number or you can juju resolved --retry service/unit-number to attempt retrying the hook to see if its temporary.15:04
lazyPowerd4rkn3t: https://juju.ubuntu.com/docs/authors-hook-debug.html - see that for using debug-hooks15:05
d4rkn3ti've run "juju resolved --retry juju-gui/0" but i've receive any answer"""15:06
lazyPowerd4rkn3t: you're either going to have to look through juju debug-log to see why it failed, or enter debug-hooks, run the install hook manually and find out why its failing15:10
lazyPowerin either case, its going to require manual intervention if its not resolving itself when being retried15:10
d4rkn3twhile the command "juju debug-hooks juju-gui/0" it' opened the terminal node! seeing in the machine-0.log there is this "ERROR juju runner.go:220 worker: exited "api": websocket.Dial wss://localhost:17070/: dial tcp 127.0.0.1:17070: connection refused"15:12
d4rkn3tafter that now it's in started (http://paste.ubuntu.com/7760573/)15:16
d4rkn3t?????15:16
lazyPowerd4rkn3t: not sure why you got the API connection refused - but if its in started, you should be able to visit the GUI now.15:19
lazyPowercan you try it and see if its pulling up for you or if it resolved without fixing the error?15:19
d4rkn3tthe url to use it "MaaSCCSvr1Node1.maas"15:19
d4rkn3tthe answer is "The page you are looking for is temporarily unavailable.15:21
d4rkn3tPlease try again later." and the url is changed in "http://cdn.spotflux.com/50x.html"15:21
lazyPowerok, not sure whats going on. I would recommend to destroy the service and machine, and start over on the GUI deployment - so we can troubleshoot from step 115:22
lazyPowerif it fails install a second time, instead of trying resolved -r, issue a juju debug-hooks and re-run the install hook15:22
d4rkn3tok15:23
CaguaxI this a timeout issue ?15:38
CaguaxERROR juju.cmd supercommand.go:323 cannot initiate replica set: Closed explicitly15:38
Caguaxhttps://gist.github.com/luflores/11fa3c6b4af78b6bd50315:39
d4rkn3tlazyPower: I've destroyed the service, I'm trying to destroy also the environment to re-start from the begin but I can't make this step. juju gives me this error "ERROR failed to destroy environment "maas"15:49
d4rkn3t        15:49
d4rkn3tIf the environment is unusable, then you may run15:49
d4rkn3t    juju destroy-environment --force"15:49
d4rkn3ti made also the --force but nothing15:50
=== urulama is now known as uru-afk
lazyPowerif juju destroy-environment maas --force isn't working for you then there are larger problems manifesting here that are outside my realm of knowledge15:56
lazyPowerthat should forcibly destroy your juju environment with a large hammer with great predjudice.15:56
DelairI deployed neutron-gateway in kvm and and rest of the services including nova-compute on another server just for testing. Everything is deployed but i cant see the neutron service running when i login to openstack dashboard15:59
Delairdo i need a relation from neutron-gateway to keystone15:59
adeuringutlemming: Today's Juju/Vagrant images don't work after a reboot: ISTM that the call of /root/redirect.py is missing again, so that port 8001 of the virtualbox is not forwared to 80 of the LXC instance of the GUI16:22
utlemmingaduering: do you have a paste of the Juju output?16:23
utlemmingadeuring: er, I mean the console of "vagrant up"?16:23
adeuringutlemming: http://paste.ubuntu.com/7760876/16:24
utlemmingadeuring: looking...slow download today16:28
jrwrenanyone else getting much rsyslog messages to /var/log/syslog on machines?  http://paste.ubuntu.com/7760981/16:50
=== vladk is now known as vladk|offline
=== wwitzel3_ is now known as wwitzel3
=== CyberJacob|Away is now known as CyberJacob
sebas5384hey lazyPower! o/17:43
CaguaxI am trying to run 'juju quickstart' to test my installation but it is failing with a 'DEBUG juju.mongo open.go:87 connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused' Anyone have seeing this ?17:55
=== alexisb is now known as alexisb_lunch
lazyPowero/ hey sebas538418:01
sebas5384lazyPower: when you can, please take a look at this drupal charm? https://github.com/sebas5384/charm-drupal18:03
sebas5384:)18:03
sebas5384I release a 0.5 version, and now I'm going to do some other relations, like varnish, etc...18:06
CaguaxI most be doing some obvious thing wrong but juju quickstart does not work on 1.2018:07
lazyPowersebas5384: I don't see it in the review queue. https://juju.ubuntu.com/docs/authors-charm-store.html18:11
sebas5384lazyPower: yeah, for that i have to use bzr ?18:13
sebas5384launchpad18:13
lazyPowerThats the officially supported method.18:13
sebas5384hmmm18:15
sebas5384lazyPower: ok then ¬¬18:16
lazyPowerSorry sebas5384. Everybody else does it - its easy to lose track of things if it's not in the queue.18:16
lazyPowerin the future github will be a supported source and ease the process.18:16
sebas5384yeah I can imagine that! ;)18:17
hasuesDoes anyone have a working juju after deploying from github?  I can't seem to execute generate-config or anything else without errors?18:24
lazyPowerhasues: if you're working on -HEAD of juju-core, you want want to ask in juju-dev18:45
hasueslazyPower: Well, I merely used "go get -d -v github.com/juju/juju/...", does that pull -HEAD?18:49
lazyPowerhasues: i would think so, but i dont know.18:52
=== vladk|offline is now known as vladk
sebas5384ok now, that was easy https://code.launchpad.net/~sebas5384/charms/precise/drupal/trunk19:18
sebas5384:)19:18
=== alexisb_lunch is now known as alexisb
jrwrenjuju-charm getall  # might not have been a good idea for me19:57
lazyPowerjrwren: mirroring the charm store, one charm at a time :)19:58
jrwrenGrabbing 164 charms from Charm Store19:59
rick_h__jrwren: how goes?20:00
jrwrenrick_h__: I'm squashing bugs.20:00
jrwrenrick_h__: I'm enjoying it :)20:00
jrwrenrick_h__: learning a lot too. e.g. first time with debug-hooks20:01
jrwrenrick_h__: welcome back :)20:01
rick_h__jrwren: heh, just got in the door in time for a meeting20:01
rick_h__jrwren: cool on bug squashing20:01
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
michelpsebas5384, cool!  ansible integration :)20:20
sebas5384thanks michelp !!20:20
sebas5384:)20:20
sebas5384ansible rocks! \o/20:20
=== vladk is now known as vladk|offline
=== mwhudson_ is now known as mwhudson
jrwreni read https://juju.ubuntu.com/docs/authors-relations-in-depth.html and https://juju.ubuntu.com/docs/authors-charm-interfaces.html and I'm left with the question about optional or default value interface fields. Is that a comming thing?20:42
jrwrencommon thing?20:51
jrwrenbecause: https://bugs.launchpad.net/charms/+source/mysql/+bug/96509421:23
_mup_Bug #965094: Provide config option to specify database encoding <mysql (Juju Charms Collection):Confirmed> <https://launchpad.net/bugs/965094>21:23
sebas5384[!] question: the charm icon only appears if the charm is recommended?21:25
lazyPowersebas5384: correct21:26
sebas5384damn it ¬¬21:26
sebas5384hehe21:26
josecory_fu: ping21:31
=== scuttlemonkey is now known as scuttle|afk
=== CyberJacob is now known as CyberJacob|Away
cory_fujose: Hey, what's up?21:58
josecory_fu: hey, I got to reproduce the error with allura, if you want I can give you ssh access to the machiens21:58
=== vladk|offline is now known as vladk
cory_fujose: My public ssh key is up on Launchpad21:59
joseawesome! give me just a minute21:59
=== vladk is now known as vladk|offline
cory_fujose: Thanks again for helping me figure out the issue with the Allura charm.  You're the man.  :)22:52
josenot a prob :) glad I could give a hand!22:52
=== Ursinha is now known as Ursinha-afk

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