/srv/irclogs.ubuntu.com/2014/08/01/#juju.txt

=== Beret- is now known as Beret
=== ming is now known as Guest12249
=== menn0-afk is now known as menn0
=== jcw4 is now known as jcw4_zzz
AskUbuntujuju server relation hook files are not running? | http://askubuntu.com/q/50531006:01
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
AskUbuntujuju charm relation-joined hook not working? | http://askubuntu.com/q/50534208:27
=== CyberJacob|Away is now known as CyberJacob
jamespagemarcoceppi, hey - do you think it would be possible to have an openstack-charmers review queue like we have a charmers on on jujucharms.com?09:09
jamespagemarcoceppi, I'm struggling with visibility of proposed changes right now and a central report would be useful for everyone09:10
jamespagegnuoy, ^^09:10
=== CyberJacob is now known as CyberJacob|Away
=== vila is now known as vila-lunch
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
marcoceppijamespage: yes, I'm in the process of re-doing the review queue to be way more robust. In doing so it'll be a stand alone application that anyone can run and configure to track changes for whatever user/group/project11:24
marcoceppias such, we could spin up an instance on canonistack to track openstack-charmers stuff11:24
=== vila-lunch is now known as vila
jamespagemarcoceppi, sounds good11:57
marcoceppijamespage: it's a little lower priority than everything else, but it's on my personal "I really care about this and want it done" list11:58
jamespagemarcoceppi, if you have something in flight maybe post a branch? I'm happy to hack on this as well11:58
marcoceppijamespage: I have early musing of some pyramid stuff, nothing connected to lp or gh yet11:59
marcoceppijust a databases schema11:59
marcoceppijamespage: https://github.com/marcoceppi/review-queue11:59
marcoceppiI hope to get more time on it this weekend, get celery and lp hooked up for initial imports12:00
mfa298I've got a Juju instance bootstrapped within Openstack using trusty. Is it possibly to use that to deploy a charm that uses precise or is that not supported (I've got the precise image in glance but can't see a way to tell Juju where to find that image).12:48
marcoceppimfa298: you'll need to upload a custom image-metadata file to juju12:51
marcoceppiso it'll know where the precise images are12:51
mfa298that's presumably created with juju metadata generate-image, how do I then upload it ?12:52
marcoceppimfa298: great question, I forget how, but I believe it's done at bootstrap time12:52
* marcoceppi checks12:52
mfa298so it may not be possible to upload after bootstrap12:53
marcoceppimfa298: does not appear, but again I'm not 100% certain, it's something that's defined in the environments.yaml https://juju.ubuntu.com/docs/config-openstack.html12:54
marcoceppiHowever, let me check set-environment12:54
marcoceppimfa298: you can update this after bootstrap12:55
marcoceppiwith `juju set-environment image-metadata-url="url-to-generated-metadata"`12:55
mfa298hmmm, looking at the metadata that generate-metadata created for the precise image it seems to reference 14.04 rather than 12.0413:00
marcoceppimfa298: you should be able, as a command line option, provide a series flag13:02
marcoceppimfa298: with the -s flag13:02
mfa298I'd just spotted that13:02
mfa298looks like juju still can't find the image13:08
marcoceppimfa298: what do the logs look like when trying to deploy a precise charm?13:09
mfa298debug-log shows machine-0: 2014-08-01 13:07:20 WARNING juju.worker.instanceupdater updater.go:231 cannot get instance info for instance "": no instances found13:10
mfa298and the machine state in juju status shows: agent-state-info: '(error: index file has no data for cloud {RegionOne http://192.168.17.17:5000/v2.0}13:10
marcoceppimgz_: who should I bug about juju deploying to openstack?13:11
mfa298trying juju metadata  validate-images seems to suggest it's using cloud-images.ubuntu.com rather than the local images, although that could be me missing something13:12
mgz_marcoceppi: that'd pretty generic13:12
mgz_what more specifically?13:12
mgz_I'm a pretty good atrting point13:13
marcoceppimgz_: mfa298 is trying to upload image-metadata post bootstrap, not sure the process as I've never tried13:13
mgz_I see, reading log13:13
mgz_setting up image-metadata is something you do prior to bootstrap13:18
mfa298so having bootsrapped juju with it only knowing about trusty there's not a way to add in precise other than destroying the environment and bootstrapping again ?13:19
mgz_yup13:19
mfa298or is this going down the wrong route for what I was hoping to acheive.13:20
mgz_if you're setting this up yourself, you should instead make your keystone advertise the simplestreams13:20
mgz_rather than have juju supply it at run time13:20
mfa298quickly googled and that looks like it might be what I want. Is there a decent guide somewhere for setting that up ?13:23
mgz_mfa298: https://juju.ubuntu.com/docs/howto-privatecloud.html13:26
marcoceppimgz_: whoa, where has this link been all my life13:27
marcoceppialso, wow tha page is rendered wrong13:28
* marcoceppi goes to patch13:28
mfa298mgz_: I've done the juju metadata generate-image commands and have the metadata files which contain both the precise and trusty files.13:35
mfa298the issue seems to be getting that into juju13:35
mfa298I can run juju set-environment image-metadata-url=file://home/ubuntu but I still don't seem to be able to deploy a charm using precise13:36
mfa298or is the answer here that I need to have a web server to provide those files rather than file://13:37
mgz_no, that doesn't help13:37
mgz_you set those values in your environments.yaml at the start, and they need to be accessible from the cloud you've deployed, eg in swift13:38
mgz_file:// is no good13:38
mfa298so installing a webserver would be enough or do I also need to destroy the environment and bootstrap again with the url configured as well13:39
mfa298looks like a http server is enough. That seems to be working13:49
mfa298thanks13:49
mfa298now to work out the sets of commands that were actually needed so I can write the local documentation13:52
jcastrosebas5384, arosales: hi13:56
sebas5384hey jcastro!13:57
arosalessounds like jose has us set up13:57
jcastrooh cool13:57
jcastrolink?13:57
arosalesjust in case I am going to joing the old hangout in case any folks join there13:57
joseohai13:57
josejcastro: sec13:57
sebas5384link?14:00
sebas5384:P14:00
arosalesJust a quick reminder to folks that we will be hosting on ubuntuonair.com not via the google hangout event.14:01
* marcoceppi tunes in14:03
arosalesI confirmed no folks are in the Google Event hangout, which is good14:03
jcastrosebas5384, https://plus.google.com/hangouts/_/ytl/vjVQa1PpcFNNnOvmc6cVeIQVTxHO4-o-wB5b0uus7JY14:05
arosalesalso we'll be using the following document to capture input14:06
arosaleshttps://docs.google.com/a/canonical.com/document/d/1t_55N1il3XoL8z-jfa1CBoSxzOQjC90cgSpCqx5wkH0/edit14:06
arosaleswe'll be starting in a couple of minutes.14:06
lazyPowerah ok we haven't started yet. I was following along on Ubuntu on Air and its still broadcasting please stand by.14:06
arosaleslazyPower: correct haven't staretd yet.14:07
jose:P14:07
sebas5384i'm there!14:08
josewe should have a slide saying 'Hey! We're late, but don't go!'14:08
arosalesjose: looks like we are running into a perms issue14:10
arosalesjose: are you in the hangout?14:11
josearosales: I am14:11
arosalesjose: jorge and I are in the hangout but don't see you.14:11
jcastrojose, can you paste the link in here?14:11
jcastrothe one you PMed me isn't the one you are in apparently14:11
cory_fuRegarding the first point, I think what we really need is an extension to `juju resolved --retry` that essentially does a forced upgrade-charm before retrying the failed (or maybe even last successful) hook.  `juju resolved --upgrade-and-retry`14:11
sebas5384i'm already there, but i cant hear jose14:11
josehttps://plus.google.com/hangouts/_/ytl/vjVQa1PpcFNNnOvmc6cVeIQVTxHO4-o-wB5b0uus7JY14:11
zirpui thought the hangout wasn't being used today.14:12
joseI could go ahead and create another event14:12
josearosales, jcastro: want me to create another event?14:13
jcastroWhy don't we all just join the same hangout?14:13
jcastroI am confused why there are two?14:13
sebas5384jose: can you hear me?14:13
josesebas5384: not at all14:13
sebas5384damn it14:14
sebas5384hangout is trolling us14:14
joseblame Google14:14
joseaaaalways happens14:14
jcastrowhat hangout are you in? can you paste in the URL?14:14
josejcastro: https://plus.google.com/hangouts/_/ytl/vjVQa1PpcFNNnOvmc6cVeIQVTxHO4-o-wB5b0uus7JY14:14
sebas5384https://plus.google.com/hangouts/_/g6mlkq4hfo6jvgjqmvksxo3inia?authuser=1&hl=pt-BR14:14
josewait... that's another hangout link14:14
joseurgh14:14
jcastro...14:14
joseI believe Google is playing with us14:14
jcastrook which hangout link are we going to?14:15
josewe have different links14:15
jcastropick one14:15
josehttps://plus.google.com/hangouts/_/ytl/vjVQa1PpcFNNnOvmc6cVeIQVTxHO4-o-wB5b0uus7JY is the one I'm in14:15
sebas5384permissions problems14:15
joselet me just quickly create another event. Google is a mess atm14:16
jcastrodo you have them set to private or something?14:16
josenot at all14:16
jcastrohmmm14:17
jcastrook fire up a new one I guess14:17
josehttps://plus.google.com/hangouts/_/ytl/vjVQa1PpcFO4tsipIQdBcOcv_43jywHwKQvrzxaa9XA=14:17
zirputhe ubuntu-on-air one was supposed to replace the hangout.14:17
josejcastro, arosales, sebas5384: ^14:17
sebas5384now i'm in the last link you passed jose14:18
arosalesthis one is looking better14:18
josezirpu: ubuntuonair uses hangouts :)14:18
arosalesjcastro: I am in14:18
joserefresh ubuntuonair if you were in before14:19
arosaleswe got it started14:20
arosalesThanks for the patience.14:20
arosaleslive on ubuntuonair.com or join the hangout @ https://plus.google.com/hangouts/_/ytl/vjVQa1PpcFO4tsipIQdBcOcv_43jywHwKQvrzxaa9XA=14:21
zirpui switched to the ubuntuonair version. i'm just listening.14:22
cory_fuYou can give debug-hooks a hook name to only have it trigger on the one hook you're interested in fixing.14:35
cory_fuI just learned this the other day.  Very helpful14:35
cory_fujcastro: If local-mapped-to-remote charm source is not an option, my preferred alternative would be `juju resolved --update-and-retry`14:37
lazyPowerthats good to know cory_fu. We should make that more pronounced in the docs, which might help alleviate some of that frustration.14:38
lazyPowernoodles775: you've done roles with ansible scripts in charms correct?14:46
lazyPoweri'm fairly sure its still very experimental at present right? we haven't ironed out how it shoud look14:47
lazyPowerjcastro: we dont have --force on service.14:47
jcastroack14:48
arosaleslazyPower: thanks.14:48
cory_fuIf you --force destroy the machine out from under the service, you can then remove the service14:48
zirpui think the ansible buffering is a function of the parallelism code. so make ansible serial and lower the polling from the default 15 seconds.14:48
lazyPowercory_fu: i think the idea is more that they want to force destroy the service, and leave the machine, so they aren't waiting for a machine spin up14:49
lazyPowerjcastro: you're left with a service definition, with no units.14:49
cory_fulazyPower: If you redeploy after removing a service, it creates a new machine.  If you use --to to put it on the same machine, that's not much different than upgrade-charm.  But I guess it would force it to re-run all of the hooks, at least.14:50
lazyPowerwell, the scary part about what's being asked is deploying to a tainted machine may yield really crazy results14:51
lazyPowerbut i get what you're saying cory_fu14:51
* cory_fu isn't arguing against adding --force to destroy-service, though.14:51
cory_fuI've tried to do that many times, even after realizing it doesn't work.14:51
lazyPowerhaha14:51
lazyPowerit gets me too14:51
lazyPowermore often than i care to admit... and i know it doesn't exist.14:51
lazyPowermuscle memory i suppose14:51
cory_fu:)14:52
arosaleslazyPower: is this: http://manage.jujucharms.com/~lazypower/precise/dns your latest DNS charm?15:13
sebas5384arosales: Handrus and Renato where here too :)15:13
arosalesah thanks Handrus and Renato!15:14
arosalessebas5384: take a lookt at http://manage.jujucharms.com/~lazypower/precise/dns just need to confirm this is the last rev from lazyPower (re DNS)15:15
lazyPowerarosales: it is. i sync'd it a few weeks ago witht he latest work.15:15
arosaleslazyPower: thanks for confirming.15:16
josehey guys! question around here. I'm working on a chamilo-memcached relation, and it would allow multiple servers. when I do 'relation-get host', will it tell me just one IP address, or multiple IP addresses?15:21
jose(in the event I have multiple memcached instances)15:22
benjinow15:23
benjiwrong window :)15:23
marcoceppijose: you can infer all the hosts at once if you wanted to15:25
marcoceppijose: using relation-list15:25
marcoceppijose: then just loop through the list15:25
josehmm, I'm gonna check how that may work for me in a debug-hooks session15:26
marcoceppimemcached_hosts=`relation_list`; for m  in "$memcached_hosts"; do relation-get host $m >> /file/to/track/hosts; done15:26
marcoceppias an example15:26
josecool15:26
marcoceppithe relation-get is from memory15:26
marcoceppibut there's a way to specify which unit you wish to query in a relation context15:27
=== jcw4_zzz is now known as jcw4
jcastrolazyPower, https://github.com/juju/docs/pull/13515:45
sebas5384lazyPower: thanks!!! could you show us how to use it? http://manage.jujucharms.com/~lazypower/precise/dns17:33
=== roadmr is now known as roadmr_afk
=== StoneTable is now known as aisrael
lazyPowersebas5384: its not production ready yet. There's no HA support as of yet.19:23
lazyPowerif you use that, and your DNS charm server tanks, you've lost DNS19:23
lazyPowersebas5384: but i'm more than happy to talk you through the implementation details, and how its structured / how to implement hooks.19:23
lazyPowersebas5384: take a look at https://github.com/chuckbutler/DNS-Charm - and scroll down to CHARM Integration, it talks about a programmable and programmable-multiple relationship hook. You set the proper variables, and it will build the configuration on the fly for you. The DNS charm itself spits out the public-address OTW so you can update /etc/resolve.conf as the primary DNS server, and your domains will then be avialble to each node connected to the dns19:25
lazyPowercharm.19:25
lazyPowersebas5384: there's more implementation logic that needs to happen with regard to updating third party providers, and/or implementing your DNS server in the global DNS tree with your registrar (if you want it to be authoritative)19:25
jcastrolazyPower, hey so btw my last PR didn't touch the precise box URLs19:30
jcastroso you might want to pull those19:30
lazyPowerack was already on it19:30
lazyPowerjcastro: just in master? or do i need to touch another branch?19:31
lazyPowerjcastro: https://github.com/juju/docs/pull/13619:34
=== rektide_ is now known as rektide
jcastrolazyPower, LGTM, merged19:49
jcastrolazyPower, marco told me a while back it's better to just do all the work in personal branches and then submit to master19:50
jcastrorather than under the juju namespace19:50
jcastroI was like, ok, sounds good to me19:50
lazyPowerjcastro: thats what i did19:50
jcastroyeah, I saw19:50
jcastroI was just responding to your irc question19:50
lazyPoweroh you mean the web editor19:50
lazyPowerwell i was curious which branch to target19:50
lazyPowerif i needed to touch the 1.18 docs as well19:50
lazyPowernot that we are still actively pointing anything at them19:50
lazyPoweractually no need to sync, just riddle me this batman20:07
lazyPowerhttps://code.launchpad.net/~asanjar/charms/trusty/hdp-hadoop/trunk <-- hortonworks?20:07
lazyPowerhttps://code.launchpad.net/~asanjar/charms/trusty/hdp-zookeeper/trunk <-- has first traces of hortonworks charm helpers?20:08
asanjarlazyPower: yes, that is hortonworks .. but if you need to investigate  bdutils.py (general big data charm helper) or hdputils.py (hortonworks dirstro specific charm helpers)  look at ~asanjar/charms/trusty/hdp-zookeeper20:13
asanjarlazyPower: as soon as I get a chance, I will update hortonworks hadoop with the latest helper..20:15
lazyPowerok thats all i needed20:16
lazyPowerI'm wrapping up my last fringe issues thsi week with vagrant that jcastro just brought to me20:16
lazyPowerMonday is when i start digging heavy into teh apache hadoop rewrite20:16
=== roadmr_afk is now known as roadmr
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
AskUbuntuSwift Through Horizon | http://askubuntu.com/q/50565023:31

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