/srv/irclogs.ubuntu.com/2016/10/27/#juju.txt

vmorrisis there something in particular that i need to do to pass http proxy settings into LXD containers?01:34
junaidalihey guys, can a peer relation only share private-address?07:31
junaidaliI'm trying to share some data across peers, but the relation data that i get is always the private address07:32
kjackalGood morning Juju world!07:33
kjackaljunaidali: yes peer relations are just like the rest of the relations, you can share any kind of data07:34
kjackaljunaidali: You need to create an interface for that, let me find an example07:34
kjackaljunaidali: https://github.com/juju-solutions/interface-spark-quorum07:35
junaidaliGood morning kjackal, thanks.07:35
=== frankban|afk is now known as frankban
vibolHello09:17
vibolwhen we run juju enable-ha --n 3 we will be avaible to run juju command on the second and third node like the first controller ?09:19
viboli mean we will be able to run juju status on the 3 state server in ha mode ?09:19
SimonKLBhow do you run the same charm with different configurations since units have the same?10:48
SimonKLBfor example two mysql databases with different ports?10:49
mgzyou name the services/applications differently10:53
mgz`juju deploy cs:mysql dba && juju deploy cs:mysql dbb`10:54
SimonKLBmgz: thanks10:55
SimonKLBmgz: can you get some kind of unique id from an application?10:56
mgzthe service name is unique10:57
SimonKLBmgz: not if you remove it and then start a new one with the same name right?10:57
mgzwell, how is that distunguishable from a newly deployed service? config isn't kept if you destroy a service10:59
SimonKLBmgz: right, ill create the id myself, probably best not to rely on something the user can specify if you want to ensure uniqueness anyway :)11:00
vibolin juju 2.0 do we need to bootstrap at lease 3 machine to enable ha with juju enable-ha -n 3 ?11:01
mgzyou don't bootstrap three times. juju will take three machines if you want ha though.11:02
viboli'm in manual environment did the ha work in manual environment ?11:04
mgzyes. you'll need to add-machine enough suitable things before calling enable-ha11:05
viboli add 2 machine with juju add-machine ... and than juju enable-ha -n 3 --to 0,1 and i got machine 3 already a controller11:05
viboli run juju status i see my new machine is add 0, 111:05
viboland 0, 1 is a new added machine11:05
mgzdid you add-machine in the right model?11:05
vibolmachine 0 already controller sory11:05
vibolwhy guidline from doc in manual provisioning juju add-machine ssh:xx.xx and machine showing correctly in juju status11:06
viboli follow the doc in 2.0 version11:06
mgzand also, it's 'ensure-availability' in 2.0 so I hope that's the command you're using11:07
vibolthis command is in 1.25 ? because in 2.0 i don't see this command instead of enable-ha11:08
mgzmy bad, I got it backwards11:08
vibolin 2.0 it has a seperate between agent list controller list right ?11:09
mgzyeah, there are two models by default11:09
mgzone for the controllers, and one empty and ready to use for workloads11:10
mgzanyway, feel free to file a bug with your steps and what error message you get11:10
viboli'm not good at a bug report.. but will try11:11
SimonKLBmgz: is it possible to have some kind of global configuration for every application deployment of a charm in the same config.yaml and then the specific options under the service namespace?11:18
mgzSimonKLB: I am somewhat confused about what you're trying to accomplish11:19
SimonKLBsomething like11:19
SimonKLBssl-enabled: True11:19
SimonKLBservice_1:11:19
SimonKLB  port: 808011:19
SimonKLBservice_2:11:19
SimonKLB  port: 909011:19
mgzsure, but you split that11:19
mgzthe config that generally applies goes in the charm11:19
mgzand the fact there is a port config option11:20
mgzthe ports for specific services goes in the bundle11:20
SimonKLBhmm, this is two services of the same charm11:20
mgzsure11:20
SimonKLBim not using a bundle right now11:20
mgzyou have a bundle that specifies all your services, and can include specific config for them11:21
SimonKLBso it's not possible to have global configurations without a bundle ?11:21
mgzyou can do everything via command line as well11:22
mgzso, write a script that says deploy this service, set this config, and so on11:22
mgzskin the cat however you want11:22
SimonKLByea thats what im looking to do right now, so in this example i deploy two services of the same charm, but i was thinking if it was possible to keep everything in the same config.yaml still11:23
SimonKLBbut to not having to repeat stuff in the config.yaml file i was wondering if you could keep the general config options at the top?11:23
vibolwhen enable ha other machine is down and sad lost connection11:31
vibolbut running juju ssh still working find11:32
vibolfine11:32
mgzvibol: down means the agent isn't talk back, so check /var/log/juju and such11:32
viboljuju mongo connection fail @@11:34
vibolit a strange problem11:34
vibollet see...11:34
vibolthere 2 nic currently availble first primary one is private and has the static ip.. but why juju mongo try to connect the second nic instead because i set this nic to dhcp and get internet from my rounter11:35
viboljuju mongo shoud connect through the primary nic... but not sure11:36
=== Guest21645 is now known as ahasenack
=== ahasenack is now known as Guest91977
vibolit seem like a bug ... because i can reproduce this problem anytime12:23
mgzvibol: please file one, I'm not sure how multiple nics and the manual provider are meant to play together12:25
vibolthank you.. i'm sorry to making u confuse12:25
mgzbut there may be additional prerequisites on network setup before you can add-machine12:25
viboljuju seem to work not very well on manual provider12:25
viboli can deploy a service as normal on my network setup for juju12:26
vibolthe only problem os deploying ha only12:26
mgzyeah, it's likely that the state server requirements are stricter than for a normal service12:27
mgzas they need to do much more12:27
viboli'm sorry before i file a bug12:27
mgzfor instance, need to be on all networks that any other machine is on, and from your experience sounds like the local network setup also matters12:27
viboli want to deploy all maas juju both in ha12:28
viboland i want to deploy juju and deploy maas using juju12:28
vibolbecause the doc say it is possible to deploy maas using juju12:29
mgzer... you probably don't want to try that12:29
vibol-_- it really make me confusing12:29
vibolbut why ? any problem ?12:29
mgzI'm aware of some very experimental maas charms12:29
vibolohh12:30
mgzbut the normal way is you just deploy maas, then can use juju for workloads on top12:30
vibolgood12:30
vibol...12:30
mgzjuju drives maas quite happily12:30
viboli though deploy maas in ha by hand is very hardwork12:30
vibolbut it the same on juju with manual provisioning -_-12:30
mgzyeah, that is also true12:31
mgzwell, it's easy with homogenous envs12:31
viboli guess i should start maas in deploy juju on top of maas and see how it work first12:31
viboland also can we install landscape with ha without using juju @mgz12:33
mgzvibol: I believe so, but you'll need poke landscape for that12:39
=== frankban is now known as frankban|afk
=== petevg_afk is now known as petevg
=== frankban|afk is now known as frankban
=== frankban is now known as frankban|afk
=== zz_CyberJacob is now known as CyberJacob
=== CyberJacob is now known as Guest22220
vmorrisi have a question about charms running in a private maas deployment. i have configured http proxy in the model at bootstrap and things tend to come up fine so long as they are running inside lxd containers; however, whenever I try to deploy something directly to a maas machine, it tries to talk to the api server over ipv6. this normally woudn't be a problem but the requests are hitting my proxy server and are being rejected19:42
vmorristrying to formulate a question.. lol. How about: is there a way to force the charm deployment to only communicate over ipv4?19:43
rick_h_vmorris: juju allows using a contraint for deployment that might help there. You'd have to setup different spaces in maas for ipv4/6 subnets perhaps? and then get juju bootstrapped onto the ipv4 space and I would hope we'd use that to communicate vs the v619:47
rick_h_vmorris: if that doesn't work I'd suggest mailing the list and I'll get some of our networking folks to formulate a more intelligent response vs a guess19:47
lazyPowerrick_h_ - we used to have a prefer_ipv4  thing in the 1.24 era19:48
rick_h_lazyPower: right, that went away19:48
lazyPowerrick_h_ - do you konw if that got scrubbed? i'm not finding it in teh docs anymore19:48
lazyPowerok, thats what i suspected.19:49
lazyPowerthanks for confirming19:49
rick_h_lazyPower: yea, caused some issues as much as it solved and we need a better way to do that right19:49
* lazyPower nods19:49
vmorrisrick_h_: hmm, okay. i've been able to keep ipv6 subnets from showing up in MAAS by disabling the v6 stack on the maas controller19:49
vmorrisbut I keep ending up with messages like this in the juju debug log: ERROR juju.worker.dependency "uniter" manifold worker returned unexpected error: preparing operation "install cs:neutron-gateway-232": failed to download charm "cs:neutron-gateway-232" from API server: GET https://[fd55:faaf:e1ab:a4f:5054:ff:fea9:25aa]:17070/model/3a3a6a0e-e580-437c-8b25-211b188de393/charms?file=%2A&url=cs%3Aneutron-gateway-232: Get https://[fd55:faaf:e1ab:a4f:5054:ff:fea9:19:49
vmorris25aa]:17070/model/3a3a6a0e-e580-437c-8b25-211b188de393/charms?file=%2A&url=cs%3Aneutron-gateway-232: Forbidden19:49
vmorrisew sorry19:49
vmorristhese requests are hitting my http proxy server and are getting denied there19:50
rick_h_vmorris: hmm, but is something in the proxy path getting routed via ipv6? I mean if the ipv6 stack isn't on in maas not sure how juju would be initiating ipv6 traffic19:50
vmorrisrick_h_: that's another thing i don't understand, this is the sort of message I see in the squid access log:19:52
vmorris10.20.95.61 TCP_DENIED/403 3936 CONNECT [fd55:faaf:e1ab:a23:5054:ff:fe14:7dc2]:17070 - HIER_NONE/- text/htm19:52
vmorriswouldn't thins indicate that the request is coming in on ipv4?19:52
rick_h_vmorris: hmm, 17070 is the controller port. I'm not sure on the ipv4 part. Would have to try to match those ip addresses with your infrastructure and see what machines are doing what there19:53
vmorrisrick_h_: these are all maas machines and lxd containers that came up as a result of a juju deploy19:54
rick_h_vmorris: right, but you're saying that the nodes don't have ipv6 enabled19:55
rick_h_vmorris: and so the ipv6 addresses must be coming from some dhcp/etc on the network?19:55
vmorrisah no.. the maas controller doesn't have ipv6 enabled19:55
vmorrisi don't know if i can control ipv6 on the nodes19:55
rick_h_vmorris: so I'm curious how the deployed nodes/containers have ipv6 addresses19:56
vmorrisrick_h_: ooh i see what you're saying19:58
rick_h_vmorris: right, the nodes and containers get their addresses either as hard coded or via the dhcp server maas runs.19:58
rick_h_vmorris: either way, the data comes from maas unless there's another thing in the mix there19:59
vmorrisrich_h_: there's definitely not another dhcp server.. and i only enabled dhcp on the 10.20.95.0/24 subnet.. yes where are they getting these addresses?19:59
vmorrishere i'll get on the juju controller node and dump out some information20:00
vmorrisrick_h_: https://paste.ubuntu.com/23389877/20:01
vmorrisrick_h_: v6 addressing looks like it's coming in through MAAS metadata, looking for confirmation20:05
vmorrisrick_h_: lazyPower: perhaps i should've been more clear.. i've disabled ipv6 on the maas-controller itself, but there is a way to disable it in the region/rack settings as well?20:11
=== matthelmke_ is now known as matthelmke
vmorrisrick_h_: let me back up and ask a more pointed question.. if i have 3 interfaces on a maas machine, but only want to use 2 of them in my juju deployments, i can do this with spaces?20:44
vmorrisor, even more to the point - if i have internet connectivity out of one interface, but want to run my juju applications on another, how is this configured?20:45
vmorrisalso, according to the docs, spaces are only supported on EC220:48
vmorrisquestion: when running juju deploy with --debug, i'm seeing some messages from httpbakery client.go GET to api.jujucharms.com -- are these requests coming from the juju controller machine?21:46
=== Guest22220 is now known as CyberJacob
=== CyberJacob is now known as zz_CyberJacob

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