/srv/irclogs.ubuntu.com/2013/07/18/#juju.txt

=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== thomi is now known as thomi|lunch
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== thomi|lunch is now known as thomi
=== defunctzombie_zz is now known as defunctzombie
=== thumper is now known as thumper-afk
=== defunctzombie is now known as defunctzombie_zz
=== CyberJacob|Away is now known as CyberJacob
=== thumper-afk is now known as thumper
=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
AskUbuntuhow to deploy charm to a machine which is already installed with some other charm? | http://askubuntu.com/q/32147911:44
=== CyberJacob is now known as CyberJacob|Away
jcastromarcoceppi: can you link me to that pad with the build instructions again?13:55
jcastrolast time I promise13:55
melmothjcastro not sure this is what you are looking for http://pad.ubuntu.com/rzudQRvsmw13:56
melmothbut it  s in my client historry :)13:56
marcoceppihttp://pad.ubuntu.com/rzudQRvsmw ^ that's it13:58
marcoceppijust added update-alternatives instructions too13:58
jcastromelmoth: yep, thanks13:58
jcastromarcoceppi: so like these instructions remind me13:59
jcastrothat we should have dailies13:59
* jcastro knows what to ask mramm for next13:59
=== TheRealMue is now known as TheMue
kirklandmarcoceppi: jcastro: Okay, I got my charm deploying successfully last night, now I'm just trying to get it scaling properly14:02
kirklandmarcoceppi: jcastro: how can I tell, inside of a unit, how many total similar units are in the cluster?14:02
kirklandmarcoceppi: jcastro: I need to update a configuration file, with the total number of units, and which number unit each of them are14:02
jcastrofrom inside an existing unity?14:02
kirklandjcastro: :-)  "unity"14:03
marcoceppikirkland: You'll want a peer relations14:03
jcastroyeah sorry14:03
kirklandmarcoceppi: oh, interesting14:03
* marcoceppi digs up docs14:03
kirklandjuju just became a swingers party14:03
jcastromarcoceppi: I need mongodb for local to work right?14:04
jcastrois it "mongodb" or "mongo-server"?14:04
marcoceppijcastro: yeah, install mongodb then run sudo service stop mongodb14:04
marcoceppijcastro: err, mongo-server14:05
marcoceppiI must have already had that installed14:06
melmothkirkland line 60 http://bazaar.launchpad.net/~pierre-amadio/charms/precise/ntpmaster/trunk/view/head:/hooks/ntpmaster_hooks.py14:06
melmoththats how i list peer in relation14:07
melmothmay be there s a better way14:07
marcoceppiSo, we're missing that in the docs evilnickveitch we don't mention peer relations at all. You still working on charm-author doc?14:08
jcastromarcoceppi: and mongo needs to be stopped?14:08
jcastroI am getting14:08
jcastrojuju open.go:89 state: connection failed, will retry: dial tcp 127.0.0.1:37017: connection refused14:08
marcoceppijcastro: do you have the latest juju-core?14:09
jcastroover an over on bootstrap14:09
jcastroyeah I did the update and it fetched stuff14:09
marcoceppijcastro: oh, it hasn't failed yet?14:09
marcoceppiwait for it to fail or succeed14:09
jcastrooh ok14:09
marcoceppijuju bootstrap -v is crazy verbose14:09
jcastroI probably cancelled too early14:09
marcoceppiit's running juju-*-local upstart which starts a mongodb instance14:09
jcastroerror: no reachable servers14:10
marcoceppijcastro: yeah...14:10
marcoceppiI thought you had an ssd?14:10
jcastroI do14:10
marcoceppidestroy environment then try again14:11
marcoceppikirkland: the peer relation is defined like provides and requires, but it's defined as peer and all units automatically get the relation14:11
marcoceppiSo if you just need to get a list of all the peers you can run get a list of the units with `relation-list` which will print each of the units in a service deployment14:12
marcoceppiit's strucutre is just like any other relation, so if you needed to get the address of each unit in the peer relation you could write a relation-joined hook that looked like this14:13
marcoceppihttp://paste.ubuntu.com/5887679/14:14
marcoceppibut with actually syntatically correct bash: http://paste.ubuntu.com/5887680/14:15
jcastrowhat version do you have of goju checked out?14:15
jcastro1.11.3-saucy-amd6414:15
marcoceppithat's the version I have compiled, what does bzr revno $GOPATH/src/launchpad.net/juju-core/14:16
jcastro148114:18
=== balloons_ is now known as balloons
marcoceppijcastro: what does the line `timeout :=` in $GOPATH/src/launchpad.net/juju-core/environs/local/environ.go (~L539) say?14:21
jcastromarcoceppi: 1014:22
jcastromaybe I should blow it away and reDL14:22
jcastroyou changed that to 60 no?14:22
marcoceppijcastro: I'm looking at the rev history14:22
marcoceppiI don't think my timeout fix landed14:22
marcoceppieven though it says it was merged14:23
marcoceppijcastro: blow away and try again just to make sure14:23
kirklandmarcoceppi: hmm, okay;  is there an example metadata.yaml?14:28
kirklandmarcoceppi: so that I get the syntax right?14:28
marcoceppikirkland: https://bazaar.launchpad.net/~charmers/charms/precise/wordpress/trunk/view/head:/metadata.yaml14:28
jcastromarcoceppi: yeah that did it14:30
marcoceppijcastro: cool, I can't even get it to compile anymore :(14:30
kirklandmarcoceppi: okay, thanks;  I guess I just want the interface to be ssh14:31
marcoceppikirkland: well, the interface can be anything you want14:32
kirklandmarcoceppi: http://paste.ubuntu.com/5887726/14:32
kirklandmarcoceppi: does that look right?14:32
marcoceppikirkland: that looks right to me, I'd be weary of interface naming, it doesn't exactly matter, per se, with peer, but each interface is like an agreement for what data will be sent recv14:34
marcoceppiSo I typically look to see if an interface has been created already (there is an SSH interface) and see what the charms expect.14:34
kirklandmarcoceppi: can you suggest something better?14:34
marcoceppiSince any charm matching that ssh interface can *technically* be connected to each other14:35
marcoceppikirkland: I really can't, I'm not up to snuff with john the ripper, it looks like it's correct. I was more just saying "so you know"14:36
marcoceppifinally, all relations are optional, so explicitly stating that does nothing14:36
kirklandmarcoceppi: I need all units to be able to ssh to one another14:37
marcoceppiand setting optional to false, probably does nothing14:37
kirklandmarcoceppi: would "john-ssh" be better?14:37
kirklandthanks14:37
marcoceppikirkland: So you're probably going to be sending host, port, and a shared private key between units14:37
marcoceppiinterface name for peer really doesn't matter, was my point, you can name it whatever you want because no other units except for those inside of the service, can connect14:38
kirklandmarcoceppi: does this make more sense?  http://paste.ubuntu.com/5887750/14:40
marcoceppikirkland: yeah14:41
kirklandmarcoceppi: okay, now, back to my original question...   how does a unit count how many peers he has?14:43
marcoceppikirkland: relation-list will list all units attached to that unit in that relation14:43
marcoceppikirkland: http://paste.ubuntu.com/5887680/14:43
kirklandmarcoceppi: okay, and does *every* unit get triggered each time a unit (relation) is added?14:44
marcoceppiJust needs to be run within one of the relation-* hooks, can't just be run arbitrarily14:44
marcoceppikirkland: everytime a peer is brought up, it will fire a john-relation-joined on every john unit deployed14:44
kirklandmarcoceppi: okay, cool, let me hack on this a bit then14:45
jamespagewedgwood, adam_g: apologies for my completely fudged landing of roaksoax change for one of the openstack contrib helpers earlier today14:46
evilnickveitchmarcoceppi, yes, there is a lot to rewrite. if someone wants to make some notes on peer relations, be my guest14:52
marcoceppijcastro: having weird build errors over here, blew away my copy of 1.11.3.1 too soon14:56
jcastromarcoceppi: how long was local on "Pending" for you?15:05
marcoceppijcastro: do a ps and look for wget15:05
jcastrohmm nope, must be something else15:06
jcastroI'm going to do some juju website mainteance, will get back to this shortly.15:06
marcoceppilikewise15:09
kirklandmarcoceppi: okay, next question...  I have juju-ssh'd to a unit, and I want to run relation-list on a command line, so that I can debug the output15:25
kirklandmarcoceppi: I suspect I need to source some environment or something?15:25
marcoceppikirkland: you kind of can't15:25
kirklandmarcoceppi: ?  that seems unkind15:25
marcoceppiwell, you can, but it's going to require quite a few things. You're better off putting juju-log `relation-list` in to your hook so you can just tail the log instead15:26
marcoceppikirkland: there used to be a pyjuju command juju debug-hooks that would allow you to, but that's not been ported to juju-core yet15:26
kirklandmarcoceppi: does that mean re-deploying?15:26
kirklandmarcoceppi: or can I manually hack it into /var/lib/juju/somewhere15:26
kirklandmarcoceppi: yeah, I've used juju debug-hooks before15:26
marcoceppikirkland: well, you could edit the charm live and then add a unit and watch the output (what I sometimes do during development)15:27
marcoceppione sec15:27
marcoceppi/var/lib/juju/agents/unit-*/charm15:27
marcoceppijcastro: http://imgur.com/a/L6QJk15:52
ahasenackcharmers! :)16:59
ahasenackhi, can someone review https://code.launchpad.net/~stub/charms/precise/postgresql/bug-1187508-allowed-hosts/+merge/174771 please?16:59
ahasenack52 lines of diff16:59
ahasenackjust 13 new lines17:00
=== CyberJacob|Away is now known as CyberJacob
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
hazmatjcastro, re pending local, about 3-5m on ssd and fios19:22
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
thumpermarcoceppi, jcastro: how is your local provider playing going?21:24
marcoceppithumper: got juju-gui running on it, have a bug to report if I can reproduce it though (destroy-environment does weird things now)21:25
thumperweird things in what way?21:25
marcoceppithumper: it complains that it can't delete the /var/lxc/auto files21:26
marcoceppibecause it seems to delete it before it checks for it21:26
marcoceppiI had to touch them all before it let me actually destroy environment21:26
* marcoceppi bootstraps again to verify it wasn't a one time thing21:26
thumpermarcoceppi: let me try here...21:26
* thumper twiddles thumbs waiting for things to spin up21:29
thumpermarcoceppi: I'm wondering if you have a larger test deployment that I could try21:30
thumperwondering how much stress it can handle21:30
marcoceppithumper: I had 6 machines running earlier without much issue21:31
marcoceppibut it's an i7 and 32G of ram21:31
thumperdestroy machine seemed to work without issue21:31
* thumper waits for the wordpress agent to start21:32
thumperbefore killing it21:32
marcoceppithumper: here we go21:33
marcoceppihttp://paste.ubuntu.com/5888895/21:33
thumperyep I get an error too21:33
thumperI wonder...21:34
marcoceppithumper: http://paste.ubuntu.com/5888896/21:34
marcoceppiIt's like it deletes it, then checks if it exists21:34
marcoceppipretty minor, keep running destroy-environment and it clears out eventually21:34
thumperdude, that isn't minor21:34
thumperthat is freaking annoying21:35
thumperI'll fix-it right now21:35
marcoceppiwell, relatively speaking21:35
thumperI think it was an assumption on my part21:35
thumperit appears that lxc-destroy removes the auto restart symlink for us21:35
thumperand we are trying to remove it too21:35
marcoceppiI haven't tested reboot survive-ability21:35
marcoceppibut I'll probably give that ago later tonight21:35
* thumper tests manually21:36
marcoceppiOtherwise I haven't found anything else with local provider just yet21:36
marcoceppioutside what we talked about last night21:36
* thumper nods21:37
thumperthat is it21:37
thumperlxc-destroy removes the link21:37
* thumper submits fix21:37
* marcoceppi trembels at the thought of having to recompile gojuju21:38
thumpermarcoceppi: what is wrong with "go install ./..."21:38
thumper?21:38
marcoceppithumper: I've just not had a lot of luck with it since I started using it yesterday21:38
thumpermarcoceppi: now to get someone to review it...21:46
marcoceppithumper: So I've been using `go get -v launchpad.net/juju-core/..." should I be doing something different?21:48
thumpermarcoceppi: hmm...21:48
thumperthat works the first time21:48
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== CyberJacob is now known as CyberJacob|Away
=== _thumper_ is now known as thumper

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