/srv/irclogs.ubuntu.com/2015/06/24/#juju.txt

=== kadams54 is now known as kadams54-away
=== brandon is now known as Guest50566
=== Guest50566 is now known as web
=== lukasa is now known as lukasa_away
=== lukasa_away is now known as lukasa
=== blr_ is now known as blr
=== lukasa is now known as lukasa_away
=== lukasa_away is now known as lukasa
=== lukasa is now known as lukasa_away
=== lukasa_away is now known as lukasa
=== Guest71470 is now known as schiatto
=== lukasa is now known as lukasa_away
=== lukasa_away is now known as lukasa
bleepbloopAny reason a charm would show an error in juju-gui but not on the command line? I reboot the juju gui machine and it goes away for a while and then comes back13:36
rick_h_bleepbloop: what error?13:39
bleepblooprick_h_: 1 hook failed: "shared-db-relation-changed" for the mysql/0 charm, however saying juju resolved --retry mysql/013:41
bleepbloopgives back ERROR unit "mysql/0" is not in an error state13:41
rick_h_bleepbloop: hmm, no. The GUI gets error statuses by asking juju about things. If you reload the juju-gui (just reload the browser window) it'll reask juju.13:42
rick_h_bleepbloop: if it keeps coming back then it would seem Juju is telling one thing to the GUI and another at the CLI.13:43
bleepblooprick_h_: I I just completely closed the tab and reopened it in my browser and tried incognito mode and both still report the same error in the gui though so it seems to be reporting two different things, is there a way to debug and see what is being reported to the gui?13:45
rick_h_bleepbloop: what browser are you using?13:46
bleepblooprick_h_: chrome, tried safari but the page wouldn't load13:46
rick_h_bleepbloop: so in chrome, if you open the developer tools (ctrl-shift-j in ubuntu)13:46
rick_h_bleepbloop: and go to the network tab there's a filter icon that allows you to filter all traffic by a type. You're looking for "WebSockets"13:47
rick_h_bleepbloop: once you have that selected, reload the page with ctrl-r and you should see a single item there. That lets you investigate the data juju is sending the GUI13:47
bleepblooprick_h_: okay I see where its sending "Data":{"hook":"shared-db-relation-changed","relation-id":54,"remote-unit":"nova-compute-lxc/1"}},"AgentStatus":{"Err":null,"Current":"idle","Message":"","Since":"2015-06-24T13:06:53Z","Version":"","Data":{}}}]13:53
rick_h_bleepbloop: ok, so that looks like no error there13:53
rick_h_bleepbloop: so the thing is that if it comes up ok, to watch that because it's a continious live updating channel from juju to the GUI13:54
rick_h_bleepbloop: and see if/when something comes in from Juju that makes the GUI think an error is there13:54
bleepblooprick_h_: Sorry that was the data on the data element on "WorkloadStatus":{"Err":null,"Current":"error","Message":"hook failed: \"shared-db-relation-changed\""13:54
rick_h_bleepbloop: ah yea, so there Juju is telling the GUI that the hook failed13:54
bleepblooprick_h_: might removing the relation that is giving the error and re-adding it help?13:57
rick_h_bleepbloop: possibly13:58
bleepblooprick_h_: okay a couple points of interest in the mysql charm log, "juju-log shared-db:66: This charm doesn't know how to handle 'shared-db-relation-joined'.", and ""Access denied for user 'root'@'localhost' (using password: YES)")"14:01
rick_h_bleepbloop: hmm, yea not sure on the mysql charm. I've not used it myself.14:02
bleepblooprick_h_: no problem, thanks for your help anyway, it seems that the mysql gem has managed to lose its password, the password in the mysql.passwd file doesn't work14:05
rick_h_bleepbloop: :(14:07
bleepblooprick_h_: Thanks anyway for helping, seems to be a bug with juju honestly, just not sure whats causing it and probably couldn't provide enough details to be useful on this one14:40
dweaverI'm having a problem with upgrade from 1.23.3 to 1.24.0 - I triggered the upgrade and now the jujud process stops listening on port 17070 and a message in the log says  "fatal "api": must restart: an agent upgrade is available".  Any ideas how I can recover from this?14:43
dweaverI can get it to listen for a very short time by restarting the service, but it fails after a few seconds or so with the same message each time.14:44
mwak_o/14:54
bleepbloopWhen using high availability is the vip just a random IP on your network or is there a specific thing it should be set to?14:55
bleepbloopspecifically with the hacluster gem14:55
bleepbloopcharm*14:55
lazyPowerbleepbloop: as i understand it, the VIP interface should be set to your management interface16:17
bleepblooplazyPower: so an IP on the management interface of my choosing?16:19
lazyPowerI do believe so16:19
lazyPowerI'm 60% sure thats correct16:19
lazyPowerif that helps :)16:19
bleepblooplazyPower: lol I'll give it a go since its more than I know about it16:20
BialogsIs there any way to have two juju environments on one host16:33
marcoceppiBialogs: very soonish16:39
=== lukasa is now known as lukasa_away
lazyPowerBialogs: Multi Environment state server is coming soon, there's been some buzz about that in our recent office hours16:44
lazyPowermarcoceppi: was that last weeks we touched on it briefly while thumper was there?16:44
marcoceppilazyPower: yes16:45
Bialogsmarcoceppi: lazyPower: thanks for the info16:55
=== lukasa_away is now known as lukasa
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
aisraelOdd_Bloke: ping17:59
Odd_Blokeaisrael: Pong.18:03
aisraelOdd_Bloke: the three ubuntu-repository-charm mps you have -- should they be squashed and tested together?18:05
=== kadams54 is now known as kadams54-away
Odd_Blokeaisrael: The plan was to land the charm helper update first, then the other branches; but we want them all in so I think you can test them all together.18:12
=== natefinch is now known as natefinch-afk
aisraelOdd_Bloke: ok, thanks. Did you see rcj's comment on the charm-helper update? Any thoughts about that?18:23
Odd_Blokeaisrael: It's fixed by the handle_mounted_ephemeral_disk branch.18:27
aisraelOdd_Bloke: ok, cool. I hoped that was the case. Thanks!18:27
Odd_Bloke:)18:29
BialogsIs there any way to specify machines in a bundle? Like using something like to: 5 in the bundles.yaml?18:33
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== lukasa is now known as lukasa_away
=== lukasa_away is now known as lukasa
marcoceppiBialogs: there is, let me find the docs19:55
jackweirdyHey, I'm sat looking at my openstack web interface trying to configure my environments.yaml for juju. I keep getting weird error messages which have no suggestions on what to do. currently staring at19:55
jackweirdyERROR failed to bootstrap environment: index file has no data for cloud {RegionOne http://192.168.5.92:5000/v2.0/} not found19:55
jackweirdyBesides it not making grammatical sense I don't know what/where the index file is and how I can put "data for cloud" in there19:56
jackweirdyAnd weirdly I get 2 different errors if I try to use keypair auth vs userpass auth20:03
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== natefinch-afk is now known as natefinch
marcoceppijackweirdy: you'll need to follow this guide20:21
marcoceppijackweirdy: https://jujucharms.com/docs/stable/howto-privatecloud20:21
jackweirdyThanks marcoceppi :)20:22
jackweirdyThe tools mirror seems to be dead :/ https://streams.canonical.com/tools20:22
jackweirdy(or the docs outdated)20:22
marcoceppijackweirdy: the first half of that doc is a lot of pre knowledge, skip down towards the bottom20:23
marcoceppialso, https://streams.canonical.com/juju/tools/20:23
jackweirdyAh, seems to be /juju/tools20:23
jackweirdythanks. Is there a way I can file a PR against the docs?20:23
marcoceppijackweirdy: https://github.com/juju/docs20:23
jackweirdyAwesome, thanks :)20:23
marcoceppijackweirdy: https://streams.canonical.com/juju/tools/releases/ that's the directory you probably want, it took me far too long to find so I figured I would help spare the pain20:24
jackweirdyThanks :)20:24
marcoceppijackweirdy: someone from our docs team will review your merge soon, thanks for the fix!20:38
jackweirdyNo worries :)20:38
=== kadams54 is now known as kadams54-away
Bialogsmarcoceppi: ping21:07
marcoceppiBialogs: pong21:10
Bialogsmarcoceppi: Did you get around to finding those docs?21:10
marcoceppiBialogs: you'll have to refresh my memory on which docs21:12
aisraelHaving a brainfart when it comes to amulet. Where does juju_agent.py live and what's responsible for putting it there?21:13
Bialogsmarcoceppi: Specifying the machines that juju deploys to in a bundle21:14
marcoceppiaisrael: I think it gets dumped in /tmp, and .setup() does it iirc21:14
marcoceppiBialogs: ah, one moment21:14
aisraelmarcoceppi: marcoceppi ta, thx21:15
=== natefinch is now known as natefinch-afk
marcoceppiBialogs: https://jujucharms.com/docs/1.18/charms-bundles#bundle-placement-directives21:15
aisraelmarcoceppi: any idea why a setup() would timeout when the deployment stands up?21:19
marcoceppiaisrael: deployer freaking? hooks not ready21:19
marcoceppiwhich reminds me, we should update amulet to use extended status for 1.24 and greater21:19
aisraelmarcoceppi: I'm kind of wondering if I'm hitting a bug due to 1.24 and extended status21:20
marcoceppiaisrael: you shouldn't21:20
marcoceppiextended status is 1.24 compat21:20
marcoceppiextended status is backwards compat21:20
aisraelhttp://pastebin.ubuntu.com/11770001/21:20
marcoceppiagent-state still remains in juju status output21:20
marcoceppiwhat's amulet doing?21:21
aisraelamulet just hangs on d.sentry.wait()21:21
marcoceppiinteresting21:22
aisraelI suspect it's something this test or the charm is doing, which may be causing amulet some trouble.21:22
Bialogsmarcoceppi: Thanks, that clarifies a lot but I still don't see one type of example...how to specify multiple machines when deploying two services. Would the syntax look like "to: 1 <return> to: 2"?21:29
marcoceppiBialogs: two services, or two units?21:40
marcoceppialso, why force which unit one goes to if it's just two services?21:40
marcoceppijuju will just create two machines for those services if they each only have one unit21:41
Bialogsmarcoceppi: Lets say I'm deploying mysql with the bundle and I need two units of mysql. One unit on machine 1, the other on machine 222:03
Bialogsmarcoceppi: All of my machines are not the same and sometimes Juju selects incorrectly from what I need22:04
marcoceppiBialogs: could you expand more on your setup?22:05
Bialogsmarcoceppi: sure... I'm trying to deploy the kubernetes bundle and the documentation says to deploy to machines, I have specific machines I do not want docker running on because they are running openstack services22:09
marcoceppiBialogs: are you using maas?22:10
Bialogsmarcoceppi: yes22:10
marcoceppiBialogs: what you'll want to do is tag the machines in mass that you want for each service22:10
marcoceppithen you can use constraints instead of explicit placement22:10
Bialogsmarcoceppi: would you mind explaining?22:11
marcoceppiby doing `constraints: [tags=tag-in-maas]`22:11
marcoceppiyou want to set a constraint on the service, and placement won't do that for you since the machiens maas gives juju are arbitrary22:11
marcoceppiyou want to make sure services always either end up in the same pool of machines, or the same exact machine22:12
marcoceppiyou can tag these machines in juju22:12
marcoceppierr22:12
marcoceppiin maas22:12
marcoceppieither add one tag to all machines you want juju to use for kubernetes22:12
marcoceppiie, set a kubes tag on them, or tag each service individually "use this machine for docker, this for etcd, etc"22:12
marcoceppithen you can set the bundle to use those constraints for the services and MAAS will only give machines that match that constraint22:13
BialogsAmazing! Thank you so much for this information22:13
marcoceppi`juju help constraints` on the command line for more infromation, and here is constraints in bundles: https://jujucharms.com/docs/1.18/charms-bundles#service-constraints-in-a-bundle22:14
marcoceppiBialogs: no worries! Hopefully this will help streamline what you're trying to do22:14
BialogsI wish I knew what I was trying to do ;)22:19
lazyPowerBialogs: hey there22:55
lazyPowerBialogs: i'm one of the Kubernetes charm developers o/22:55
BialogslazyPower: Oh hey! - Saw some strange issue earlier today where Pod object wasn't defined but we have been having all sorts of issues today and I'm writing that off as a fluke. Hope you won't mind if I ping you if I run into anything more...23:01
lazyPowerBialogs: certainly. Can I also make a recommendation?23:01
BialogsYeah go ahead23:01
lazyPowerwe haven't backported an update to the charms/bundle in a bit, we've got a lot of active work tracking kubes - and our charms were accepted to the kubernetes repository (i have an outstanding todo to update the store copy of the charms)23:01
lazyPowerif you clone this repository: https://github.com/GoogleCloudPlatform/kubernetes23:02
lazyPowerand follow the docs here: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/juju.md#launch-kubernetes-cluster23:03
lazyPoweryou'll be running our current reference implementation of k8s23:03
BialogsI stumbled across this documentation earlier today and that probably explains why I got my earlier issue as I had deployed the implementation in the charm store23:05
lazyPowerBialogs: If you have any issues with any of it feel free to ping me and let me know :) I'll be in and out over the next couple days due to Conference + travel23:14

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