/srv/irclogs.ubuntu.com/2014/03/22/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
=== Mike is now known as Guest21559
=== cmagina-away is now known as cmagina
=== cmagina is now known as cmagina-away
=== vladk|offline is now known as vladk
josemarcoceppi: hey, just as a heads up, you may want to close this bug when/if the charm is on the store: https://bugs.launchpad.net/charms/+bug/129423206:33
_mup_Bug #1294232: Charm Needed: Magento <Juju Charms Collection:New> <https://launchpad.net/bugs/1294232>06:33
=== vladk is now known as vladk|offline
=== psivaa_ is now known as psivaa-afk
themonkmarcoceppi: hi09:12
themonkif provider charm has only relation joined and requirer charm only relation changed will it be wrong? here provider relation joined sets variable and requirer charm gets those variables09:17
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
Tughi, I tried manual providing yesterday and it was working like a charm11:32
Tugnow if I try to connect to the agent machine agent (just doing juju status in fact)11:33
TugERROR state/api: websocket.Dial wss://my.domain.com:17070/: dial tcp XXX.XXX.XXX.XXX:17070: connection refused11:33
Tugs/manual providing/manual provisioning/11:34
=== CyberJacob is now known as CyberJacob|Away
=== vladk is now known as vladk|offline
marcoceppiTug: you're using 1.16?12:55
Tugnop I switch to devel :s12:55
marcoceppidevel should work with manual provider. what version Ubuntu is the machine?12:56
Tugthe machine with the client or the agent ?12:58
marcoceppiagent12:58
Tugubuntu server 12.0412:58
marcoceppi:/12:58
Tugyeah it was an experiment...12:59
marcoceppissh in to the machine, run sudo initctl list | grep juju12:59
marcoceppiso far you are doing all the right things12:59
TugI have "juju-db stop/waiting" that's no good right ?13:00
marcoceppiyou should have two juju jobs13:00
marcoceppiso the provisioning seems incomplete13:00
Tugjujud-unit-redis-master-0 start/running, process 1000413:01
Tugjujud-unit-nirror-front-0 start/running, process 1000613:01
Tugjujud-unit-nirror-proxy-0 start/running, process 1000513:01
Tugjuju-db stop/waiting13:01
Tugjujud-machine-0 start/running, process 1000313:01
marcoceppibut yes, that should be running13:01
marcoceppioh, start the juju-db job then13:01
TugI may have reconfigured mongodb for my needs13:01
Tugis it using mongodb ?13:01
marcoceppisudo start juju-db13:01
marcoceppiyes13:01
Tug:s13:01
marcoceppijuju-db is mongodb13:01
Tugyeah I wiped out the db to connec to a replicaset13:02
marcoceppiwhich explains why now. if you want to run a charm on node 0 which uses mongodb, try --to lxc:0 instead13:02
Tugok but I would have to start over because the configuration is lost right ?13:03
marcoceppiTug: you might be able to save it but odds are it's best to start over13:05
Tugok, thanks for helping me again marcoceppi :)13:05
marcoceppiTug: np!13:06
Tugnext time I try the real thing in AWS ;)13:07
zchanderping marcoceppi13:23
TugI wonder how I will update my application once deployed though. Is there an API or something to execute commands on all the units of a service ?13:25
TugI like the way deployment is done with capistrano13:25
TugI'm not a fan of polling a deployment repository13:47
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
marcoceppiTug: typically, you can make a version configuration option to decouple charm from application version21:16
marcoceppiTug: some charms even do something like repo, branch where repo can be a git, bzr, or hg repository and branch can be a git tag, git branch, bzr tag, etc21:17
Tugok, but if I change the config option of the service all units are updated ?21:19
Tugwhat if I want to update half of it to keep the system online for instance ?21:19
lazyPowerTug: I may be wrong, but i don't think juju supports that ootb. You woudl want ot deploy 2 clusters of the application, and update them independently behind a load balancer21:59
lazyPowereg: wordpress1, wordpress2, behind haproxy21:59
lazyPowerset wordpress1 to perform the update, haproxy will route to wordpress2 while wordpress1 is "down" for the update.21:59
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
marcoceppiTug: lazyPower is correct. You're managing service groups not units. If you want to matinain diffferent service groups and do cascading upgrades, deploy your service twice with different alias (juju deploy wordpress wp1; as an example)22:48
Tugok makes sens :)22:48
Tug*sense22:48
Tughave to go, thx for tthe tips22:49

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