/srv/irclogs.ubuntu.com/2014/06/05/#juju.txt

sebas5384lazyPower: ping?00:20
=== jose 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: bcsaller || News and stuff: http://reddit.com/r/juju || VOTE FOR JUJU! http://goo.gl/60eBX2
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== plars is now known as plars-away
=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
leotrhi! we are going to buy one server (64 gb ram, dual processor) for virtualization purposes. Can juju be useful for us?07:29
=== vladk is now known as vladk|offline
=== _mup__ is now known as _mup_
=== urulama is now known as uru-food
=== vladk|offline is now known as vladk
Bidulehi08:45
Biduleamazing project !08:45
Bidulereally thanks for that08:45
=== uru-food is now known as uruborkborkbork
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
rbasakjamespage: I think the juju-core (in Utopic) dep8 tests are fetching tools from streams.canonical.com even though they're using the local provider. I wonder: if we want the archive to be as self-sufficient as possible, then can we eliminate that?10:30
rbasakIs that what juju bootstrap --upload-tools does, and if so, do you think I should use that in the tests?10:30
rbasakThe way I see it, juju need not have any external dependencies in the local discover/test/development case.10:31
rbasak(if that's achievable)10:31
jamespagerbasak, --upload-tools is good I think10:31
=== 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
mivtachyahuhi all, when I spin up Ubuntu 12.04 machines for Azure in juju, all the host names (/etc/hostname etc.) are set to "default". What is the best way to automatically set that to be the public-address / dns-address?13:51
niedbalski__hey bcsaller , please review https://code.launchpad.net/~niedbalski/charms/precise/rabbitmq-server/trunk/+merge/21990913:54
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== CyberJacob is now known as CyberJacob|Away
l1lnew mysql charm seems broke, its creating empty databases with no tables15:13
avoinel1l: your application should creates table I think15:24
Egoistcould someone tell me how relation-list command work in juju?15:33
arosalesmarcoceppi: Is there documentation somewhere for relation-ids and relation-list?15:48
* arosales also browsing https://github.com/juju/juju/tree/master/doc15:50
arosalescory_fu ^15:50
arosalesI don't think we cover that in juju.ubuntu.com/docs . .  .15:50
arosalescory_fu: mention here https://github.com/juju/juju/blob/master/doc/charms-in-action.txt which we also should have in our docs.15:52
marcoceppiarosales: we do15:52
marcoceppiwe cover it in the docs15:52
marcoceppiarosales: Egoist https://juju.ubuntu.com/docs/authors-hook-environment.html#relation-list15:52
arosalesmarcoceppi: ah even better15:53
arosalesmarcoceppi: we desparately need better searching in the docs :-(15:53
arosalescory_fu ^15:53
marcoceppiarosales: we need actual searching, we don't have that yet15:53
arosalesgood point, we should just do SCE for our sub pages15:53
* marcoceppi could implement pretty quickly15:54
Egoistmarcoceppi: why relation-list sometimes don't return all remote unit in current relation?15:54
marcoceppiEgoist: because that remote unit isn't available at the time the hook started15:54
Egoistmarcoceppi: how to check that remote unit is available? Ping it, or something?15:55
marcoceppirelation-list15:55
marcoceppiif you have it listed in relation-list, then it's available15:56
Egoistmarcoceppi: but how charm will know how many units should be listed?15:58
marcoceppiEgoist: it doesn't know how many should, it knows which ones currently are15:58
=== vladk is now known as vladk|offline
mbruzekCan someone tell me what the command `relation-ids` does and what it is good for?  https://juju.ubuntu.com/docs/authors-hook-environment.html#relation-ids16:16
lazyPowersebas5384: Hey!16:37
sebas5384lazyPower: hey!16:38
lazyPowersebas5384: really sorry about missing you lastnight. I forgot to put it on my calendar and totally spaced it off :(16:38
lazyPoweri'm a terrible person16:38
sebas5384hehe thats ok, it happens :)16:38
sebas5384next time we put in the agenda hehe16:38
lazyPoweragreed16:38
lazyPoweri felt pretty bad when i woke up this morning and went through my irc backlog to see you hanging out with no lazy in sight.16:39
lazyPoweroops16:39
lazyPowerhopefully you didnt cancel any plans to attend.16:39
sebas5384no worries, if you can we can do it today16:40
sebas5384i will be working on vagrant juju things with another colleague here at Taller, so we are going to make a brainstorm about the that16:42
lazyPowerSure16:43
lazyPowerI'll be around today until late prepping for another proejct going live tomorrow.16:43
sebas5384i'll ping you, and if you can, more than welcome to join us16:43
lazyPowerso I can host a hangout and order a pizza16:43
sebas5384ooh nice!16:43
sebas5384great!!16:43
cjohnstoncan anyone help me investigate bug #1319947 please17:03
_mup_Bug #1319947: LXC local provider fails to provision precise instances from a trusty host - take 2 <juju-core:Confirmed> <https://launchpad.net/bugs/1319947>17:03
=== isviridov is now known as isviridov|away
=== vladk|offline is now known as vladk
jcastrohttp://summit.ubuntu.com/uos-1406/track/devops/17:08
jcastroplease submit your sessions!17:08
avoinenoodles775: do you think that would be a good occasion to talk about juju+ansible roles? ^17:17
noodles775avoine: yep, I've got a meeting proposed, which seems to be approved... just not in the schedule yet: http://summit.ubuntu.com/uos-1406/michael.nelson/meetings17:18
avoinenoodles775: ok , great!17:18
avoinenoodles775: btw I'll will have something to show soon do you want me to do a pull request or should I put it else where?17:20
noodles775avoine: A pull request would be great, if it's a shared role (or fixes/additions to the shared roles). Otherwise just pointing me at your repo/branch is fine too :)17:22
* noodles775 goes to put kids to bed.17:22
avoinenoodles775: ok, perfect17:22
cjohnstonjcastro: are you still unable to use juju local on trusty?17:54
jcastroyeah my stuff is stuck on pending17:55
l1lare constraints supposed to work when add-machine kvm/0 is used?18:06
l1lI can't get a kvm to launch without the default settings (1core, 512meg, 8gb)18:06
dpb1What is the right way to refresh lxc templates on juju local provider?  lxc-destroy --name <template> and just let juju refresh it?   Specifically the apt package cache gets out of date18:27
sebas5384jcastro: remember we talk about having more than one juju local?18:30
sebas5384jcastro: i did a poc to test that, https://github.com/sebas5384/ansible-juju-local18:31
sebas5384and now i use that for my vagrant workflow18:31
jcastrosebas5384, that looks awesome, sec, on the phone!18:45
sebas5384jcastro: :)18:46
=== roadmr is now known as roadmr_afk
=== CyberJacob|Away is now known as CyberJacob
cjohnstontvansteenburgh, marcoceppi, is there a way with amulet to load multiple deployer files?19:14
marcoceppicjohnston: no, not at the moment, what's the use case?19:14
cjohnstonmarcoceppi: a true integration test...19:15
cjohnstonwe have ~a dozen deployer files...19:15
marcoceppiso you want to deploy all of those at once?19:15
hazmatmarcoceppi, what if the deployer files load other ones.. ie are you parsing it are passing through?19:15
cjohnstonall or subsets19:15
tvansteenburghiirc amulet just takes the first target from the deployer file19:19
marcoceppihazmat: if you load multiple deployments, I'm not sure exactly what happens, I think it just resets the deployment, tvansteenburgh do you know?19:23
* marcoceppi is reminded about doing a non-amulet test, will have that for hazmat's modest proposal next week19:24
tgzHi all. Just starting my investigation into juju. I am wondering what happens if a node launched with juju goes down. Does juju monitor and relaunch a node?19:27
marcoceppitgz: so, it used to but we found that sometimes there's network latency in a cloud environment, and a node would appear offline but it wasn't, so it'd launch a duplicate and now you've got two nodes registered as the same19:29
marcoceppitgz: so, juju status will show agent-state as down (unavailable) and you can juju add-unit to add another unit of that service group19:30
marcoceppitgz: juju also is fully driven by a websocket API, so you could write tools that monitor the status and does this. You could also extend that same pattern to implement autoscaling etc19:30
tgzOK. Thanks for the reply. Does the agent-state have the same false positives issue?19:32
marcoceppitgz: it's susceptible to timeouts,I hhink the timeout is set to 2m19:40
tgzSounds good. Thank you very much. I appreciate your time.19:43
=== roadmr_afk is now known as roadmr
cory_fuHow much of an issue is interface name collision between charms?  That is, if two completely unrelated charms both use the same interface name but are never likely to be related, does the conflict matter?20:38
marcoceppippetraki: hey, remember your relation-get out of band issue?20:48
marcoceppicory_fu: you should never have an interface that doesn't connect with it's counterpart20:48
ppetrakimarcoceppi, yeah20:49
marcoceppicory_fu: if you have an interface, then it should connect20:49
marcoceppiif it doesn't then one charm is using the wrong interface name20:49
marcoceppippetraki: `relation-get -r engine:0 - nginx/0`20:49
marcoceppithe - will get you all output20:49
ppetrakimarcoceppi, oh come on...20:49
* ppetraki adds to quirks list20:50
ppetrakimarcoceppi, thanks20:50
marcoceppinp, I'll make a note to document it in the docs20:50
lazyPowerhey marcoceppi, i'm probably the last to know but did you know about this? http://paste.ubuntu.com/7597307/20:51
lazyPowerit even puts you in teh failed hook context20:51
marcoceppilazyPower: dude, I wrote that plugin20:51
lazyPoweroh20:51
* lazyPower is the last to know then20:52
marcoceppihttps://github.com/juju/plugins/blob/master/juju-debug20:52
l1lare constraints supposed to work when add-machine kvm:0 is used? I can't get a kvm to launch without the default settings (1core, 512meg, 8gb)20:52
thumperl1l: yes20:53
l1lhmm, must be broke then.. i've tried deploying with more CPU's and more ram, and it still used the default20:54
cory_fumarcoceppi: I'm asking about the case when there's a conflict.  That is, two charms use the same interface name for different protocols.  Have we had to deal with resolving such a case before?21:18
marcoceppino, we haven't21:18
marcoceppicharms when they go through review are generally checked to make sure there are no collisions21:18
cory_fuThat's going to get exponentially harder as time goes on21:19
cory_fuBut obviously we should look for interface names that may be too generic when reviewing21:19
marcoceppicory_fu: well, an interface registry/testing framework will make lite of that work21:19
marcoceppicory_fu: well, we have a few generic interfaces already, and they're great! For example, monitors and local-monitors21:20
marcoceppisuper generic, but super flexible21:20
cory_fuI'm coming at it from the case of having a set of charms that are likely to only ever talk to each other, and wondering how much I should worry about potential conflicts ahead of time21:21
designatedwhat about being able to specify the network interface used when deploying charms?  as an example, I would like to use two bonded 10Gbe interfaces as bond0 instead of the 1Gbe NICs in the servers.  Is there a way to do this?21:21
designatedor is there logic to use the network interface with the most available bandwidth?21:22
designatedmarcoceppi, can you answer my question?21:33
marcoceppidesignated: juju is adding network topology to it's constraints, but it's not available at the moment21:34
designatedmarcoceppi, so there is currently no way to specify the use of one network interface over another when building relationships?21:34
marcoceppidesignated: not in the interface, but you could add it to your charm's configuration21:35
=== vladk is now known as vladk|offline
marcoceppidesignated: openstack does this, it allows you to specify the nic you want to configure your service to talk on21:35
designatedI'm deploying openstack on maas and I just want to tell the charms to use bond0 instead of the single 1Gbe interfaces.21:36
designatedis that fiarly easy?21:36
marcoceppidesignated: most openstack charms have that option, let me see if I can find it21:36
marcoceppimaybe not, I'm not well versed in the openstack charms21:37
marcoceppior, maybe it's part of neutron21:37
designatedi see where you can set things like HA interface or vip interface21:37
marcoceppiright21:38
designatedbut ceph for example has nothing about specifying an interface.  how will other openstack services talk to ceph nodes on my 10Gbe interfaces instead of the 1Gbe interfaces?21:38
marcoceppidesignated: well, I assume the 10Gbe are on a different network?21:38
designatedmarcoceppi, yes they are21:39
marcoceppiso if all of openstack has been configured for that network they should reach other on those interfaces21:39
designatedbut each node also has a single 1Gbe NIC on the same network used for maas21:39
designatedwhat's the stop them from building a relationship on the 1Gbe NICs?21:39
marcoceppiI can see the issue, so it's advertising itself as on the MAAS network IP range21:40
marcoceppiand not the bonded networking21:40
designatedright21:40
marcoceppiThis is where juju knowing the network topology will come in handy, I think setting the VIP on ceph, MySQL, etc will make it so the charm advertises itself on that range rather thanthe 1Gbe nics21:40
designatedi found this: https://lists.ubuntu.com/archives/juju/2014-January/003392.html which provides a workaround when deploying on openstack but doesn't mention deploying on maas21:40
marcoceppiI believe that's how we overcame it in customer deployments21:40
b0c1hi21:41
marcoceppidesignated: again, not as well versed in the openstack charms21:41
b0c1I try to use juju in vagrant... but I have a little problem21:41
marcoceppijamespage and the ~openstack-charmers would be much more adept at answering, but most of them are European timezone21:41
b0c1after the first start everything works, but if I restart the vagrant machine the internal routing (juju gui iptables command) not run21:41
marcoceppidesignated: https://launchpad.net/~openstack-charmers/+members21:42
marcoceppidesignated: you could also mail the juju mailing list about it, so those in other timezones with more knowledge can reply21:42
b0c1so juju-gui accessible only inside the vagrant machine21:42
marcoceppijuju@lists.ubuntu.com21:42
=== marcoceppi 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: bcsaller || News and stuff: http://reddit.com/r/juju
designatedmarcoceppi, thank you21:43
marcoceppidesignated: np, sorry I couldn't be of more assistance21:43
lazyPowerb0c1: you'll want to suspend the virtual image instead of halting it.21:47
lazyPowers/image/machine/21:47
lazyPowerwhen you halt it and fire it back up, the cloud-init routine to setup that host bridging doesn't get executed.21:48
b0c1hmmm21:48
b0c1lazyPower: thnx...21:49
b0c1good to know...21:49
marcoceppilazyPower: is there anyway to trap the vagrant halt command and warn the user before proceeding21:50
lazyPowermarcoceppi: not that I'm aware of21:50
lazyPowerwe could monkeypatch vagrant, but thats not a great idea. its subject to breakage and odd behavior down the road as vagrant updates.21:50
b0c1lazyPower: only the routing not work after vagrant halt?21:54
lazyPowerb0c1: thats about it. Everything else is a single time setup.21:54
b0c1why not write the cloud init script the routing into the rc.local ?21:55
b0c1fast and simple way...21:55
marcoceppino, no monkeypatching21:55
lazyPowermarcoceppi: i didnt' say it was a great idea, but you asked if there was any way.... thats all i've got :(21:55
marcoceppihttp://i.imgur.com/tnk4BBl.gif21:56
lazyPowerReally, we should probably add the port mapping to the Vagrantfile21:56
lazyPowerthat way it will persist through a halt21:56
b0c1ummm... the internal cloud init script will write the external vagrant file?21:57
b0c1I think rc.local is much cleaner...21:57
lazyPowerb0c1: no, the port juju gui deploys to doesn't change. So adding it to the vagrantfile is the safe-bet.21:57
lazyPowerthe cloud-init script is calling the vagrant api to set that host-guest mapping.21:58
b0c1yeah but the juju-gui deployed into internal vagrant with different ip (maybe it´s random?)21:58
b0c1ohh it can?21:58
lazyPowerb0c1: actually it may even be the shell provisioner thats setting it up, i haven't looked at it in a couple of weeks.21:59
lazyPowerif you look in the box directory, you can see all of the provisioner statements.21:59
lazyPowerwhich should be something like $HOME/.vagrant/boxes21:59
b0c1lazyPower: maybe I not understand the problem... but the juju gui run in a separated vagrant machine inside the vagrant machine...22:05
lazyPowerb0c1: there's a juju-gui redirector service that gets deployed on first run.22:06
lazyPowerwhen you watch teh scrolling output of a first run, it implicilty calls out its setup declaration "deploying the juju gui redirector"22:07
lazyPowerand that's always bound to 6080 on the VM machine.22:07
b0c1lazyPower: in this case I can access the internal vagrant juju-gui as localhost in the main vagrant machine22:07
lazyPoweri don't know if its in the upstart scripts to restart after a shutdown. I haven't gotten that far into it.22:07
lazyPowerbut really, aside from not being able to access it via a port redirect - you can also use sshuttle to route to the gui as a work around. Just hit the IP of teh juju-gui instance and you should be right back where you left off.22:08
b0c1but after restart I can´t access, I can only access when I direct connect the internal vagrant ip22:08
b0c1hmmm.... I never used sshuttle...22:09
lazyPowersebas5384: still kicking around/22:10
=== CyberJacob is now known as CyberJacob|Away
sebas538_lazyPower: yeah! but i'm planning to leave early today :(22:23
sebas538_here is +1h hehe22:23
=== sebas538_ is now known as sebas5384
lazyPowersebas5384: all good my friend. Just poking you since we were talking about linking up today22:24
sebas5384lazyPower: what about monday?22:24
lazyPowerI tell ya what sebas5384, with tomorrow being friday and nobody works late on friday - lets shoot for next week22:24
lazyPoweryeah22:24
lazyPowerLets try for monday to sync on a vagrant plugin and cook up some awesome sauce22:25
sebas5384lazyPower: that looks awesome for me!22:25
sebas5384same bat time?22:25
sebas53847pm EDT22:25
sebas5384?22:26
thumperlazyPower: so about this pending python-django charm22:26
thumperlazyPower: what's happening with that?22:26
* thumper wants to deploy django22:26
lazyPowerthumper: have a MP for me to look at and speak to?22:39
=== sebas538_ is now known as sebas5384_
Egoistwhy unit do not appear in relation-list even if relation-set was executed?22:56
Egoistbecause machine is busy handling some kind of hook?22:56
marcoceppiEgoist: the unit on the other end has to have successfully called relation-joined for that relation before the hook which you're calling relation-list in is executed23:01
marcoceppiQuestion about subordinates. If I add two subordinates to a service, and one calls open-port 80 and the other does a close-port 80 what happens?23:02
marcoceppiassuming open was called first and closed called next23:03
marcoceppiDoes juju know not to close the port since it was opened by another charm?23:03
marcoceppibtw, ppetraki that relation-set thing was in the docs this whole time23:07
marcoceppiI went to update it and found it in there23:07
marcoceppihttps://juju.ubuntu.com/docs/authors-hook-environment.html#relation-get23:07
marcoceppiwhat is the app app-servers category entail?23:15
josehttp://www.reddit.com/r/Ubuntu/comments/27cfhw/ibm_app_throwdown_canonicals_juju_selected_as_top/chzmn1y23:21
josehappy people is what Juju gets23:21
Egoistmarcoceppi: Sorry but i don't get it23:25
lazyPowerwooo!23:25
lazyPowermarcoceppi: depending on which subordinate executes last, the yielding result will happen.23:26
lazyPoweri dont think there's any kind of notion in juju of the open/close ports from one service locking it out to another.23:26
marcoceppilame23:26

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