/srv/irclogs.ubuntu.com/2018/03/15/#juju.txt

=== chrisp_ is now known as chrisp262
=== rick_h_ is now known as rick_h
=== idobos_ is now known as idobos
=== diddledan_ is now known as diddledan
=== CyberJacob_ is now known as CyberJacob
mortyany way to deploy browbeat with juju?14:32
rick_hmorty: hmm, I don't see any charm for that. Might be worth an email to the juju list and see if anyone's working on one that they've not made public yet.14:52
mortyalright, thanks rick_h :)14:55
=== wpk_ is now known as wpk
TheAbsentOneWhat is actually the best way to create a file with the reactive framework? Is there an example somewhere that shows what the cleanist approach is?15:25
stokachuTheAbsentOne, like a charm that uses reactive?15:34
TheAbsentOnestokachu: yes! I want to create (what should be) a very simple charm. Let's say it runs apache or nginx, installs php and I want to create a phpfile with only phpinfo() function. What would be the best approach inside the python charm code?15:37
TheAbsentOneAnd the same for copying pre-existing files (no templates, just files ready to be copied)15:39
stokachuTheAbsentOne, i think resources is what you want for the files to be copied17:41
stokachuTheAbsentOne, https://github.com/battlemidget/juju-charm-ghost thats my example one17:55
stokachuuses resources and reactive17:55
TheAbsentOneaha nice thanks for the help stokachu18:22
fallenourhey everyone. Im having issues with my browser consoles loading in openstack. I looked into: juju config openstack-dashboard, but I dont see a setting for SPICE. I think I need to change a setting in there from AUTO to SPICE in order to fix the problem as per this: https://ask.openstack.org/en/question/26123/horizon-sends-wrong-rest-request-when-spice-is-enabled/ but im not sure. I think the issue may be my console is trying to load 18:28
fallenourinstead of the DNS name as well. I did notice that the browser keeps trying to load a 10.X address instead of the DNS name. Your thoughts?18:28
fallenouraddress bar: 10.0.0.16:6082/spice_auto.html?token=d5ff7eaa-d411-4595-b315-e8eba399fdf6&title=test2(73f3e8f3-b5f6-4f8c-93ac-9bc78bfa35a8)18:29
fallenourOk so I think I have a better handle on the question, my problem is the direct opposite of this: https://ask.openstack.org/en/question/58938/dashboard-problem-with-url-of-vnc-console/ My client is Spice18:37
kwmonroeadmcleod_ or beisner, got any suggestions for fallenour ^^  i dunno what config the openstack dashboard supports19:14
fallenourkwmonroe: from what I can tell, based on juju config openstack-dashboard, quite a lot. Do you think it might be easier to convert everything to a DNS based process isntead of an IP based one. Even if I did, would it stop the placement of IP addresses for the console URL?19:16
beisnerhi fallenour kwmonroe - the vnc/spice console settings are a nova config, set on the nova-cloud-controller charm.  ref: https://github.com/openstack/charm-nova-cloud-controller/blob/master/config.yaml19:17
fallenourbeisner: So i checked at console access protocol, and it shows spice, so spice is configured correctly in that regard, what would make it change from a DNS name to an internal IP address? and how would I change that?19:28
fallenouralso, for reference: juju config nova-cloud-controller console-access-protocol is the command, with the respective setting for those who dont know19:29
beisnerfallenour: are you able to access the ip address from your local machine?  mine generally gives an ip address in the url.19:32
beisnerit is the unit ip address of nova-cloud-controller that terminates the console addresses19:32
fallenourbeisner: No, the initial address is a wan routable DNS address. It then converts from a DNS address to the IP internal, which screws the pooch. Anythoughts?19:36
beisnerfallenour: what ip does the initial dns address resolve to?  i think the assumption for console access is that you can also reach the nova-cloud-controller address.19:38
beisner(when using the default console proxy == local)19:39
fallenourhorizon.eduarmor.com/horizon -> http://horizon.eduarmor.com/horizon/project/instances/73f3e8f3-b5f6-4f8c-93ac-9bc78bfa35a8/ -> http://10.0.0.16:6082/spice_auto.html?token=578c2277-0899-46a6-b077-eab257d39bee&title=test2(73f3e8f3-b5f6-4f8c-93ac-9bc78bfa35a8)19:40
fallenourThe nova cloud controller IP is: 10.0.0.1619:40
fallenourso its using the nova-cloud-controller to connect to the session.19:40
fallenouroops. beisner sorry*19:46
fallenourbeisner: meant to @ you earlier with the previous. So yea, what are your thoughts? Do I need to change here? Im not sure exactly how to fix this issue whiel also keepign access wan routable19:47
beisnerfallenour: Yes, exactly.  You have to be able to reach that address, whether resolved via DNS, or directly called by IP, when using 'local' for the console proxy.19:47
fallenourbeisner: what is the easiest way to eliminate this issue? Without making major changes more sepcifically/hopefully?19:48
beisnerfallenour: I take it that address isn't accessible/routable from the machine you're trying to use for a console client?19:48
fallenourbeisner: I can make it WAN accessible via a loadbalancer if necessary. I guess my question with that is what setting(s) would I need to change to implement that?19:49
fallenourI take it I would need to: HAproxy -> Nova-Cloud-Controller19:49
fallenourId need to set a route any rule for HAproxy because I dont knwo what port itll send to, and id need to give the nova-cloud-controller a DNS name19:50
fallenourbeisner: that should get the traffic into the network, but my question is, what, if anything, will that break on openstack? Also, just because I pass the traffic, does that stop it from trying to route to the IP via console? how do I fix that issue?19:51
fallenourbeisner: how do I make it go from 10.0.0.16:xxxx to novacloudcontroller001:xxxx via juju config nova-cloud-controller / juju config openstack-dashboard ?19:52
beisneri'm not aware of a config to achieve that, fallenour19:52
fallenourbeisner: so theres no way to have it try to terminate at the novacloud controller via its dns name instead of its IP address?19:53
beisnerfallenour: all of the use cases i've been in, and all of the docs for vanilla openstack upstream reference nova_ip:port as the method of reference.19:54
fallenourbeisner: I did find this: https://ask.openstack.org/en/question/58938/dashboard-problem-with-url-of-vnc-console/ which is the complete opposite of what we are trying to do19:54
fallenourbeisner: so then how do people normally access the consoles?19:55
fallenourbeisner: sorry, via WAN. Becuase unless you were on the network, it wouldnt be possible to route to an internal addresss. If nothing else, you dhave to give a nova-cloud-controller a wan ip address to make it work?19:56
beisnerhttps://docs.openstack.org/nova/latest/admin/remote-console-access.html#spice-console19:56
beisnerspecifically: "Replace IP_ADDRESS with the management interface IP address of the controller or the VIP."  translate:  the ip address of the nova-cloud-controller unit.19:57
beisner(or if HA, the VIP of nova-cloud-controller)19:57
fallenourbeisner: yea, I saw that. Hmm...do you think if we just "put" a dns name there, that itd work?19:58
beisnerfallenour: if you want to access this from the outside of the next hop on your network, that would likely be configuration of routers outside openstack.  ie. port forwarding, nat mapping, etc., on whatever is separating the networks.19:58
fallenourbeisner: I mean, I knwo the documents SAY it requires an IP, but has anyone actually tried via a DNS name?19:58
beisnerno, i think if you can't get to the IP address directly from the client machine right now, no DNS tricks on the planet will solve that.19:58
beisnerie. if the L3 address is not routable, it's not routable, and you'd have to address that.19:59
fallenourbeisner: what about the second idea? make it WAN routable19:59
beisneri doubt you want your nova-cloud-controller ip address on a wan19:59
fallenourbeisner: yea that was my thought to. i see that ending...badly20:00
beisnerhaha right!?20:00
fallenourbeisner: it was make one hell of a news story though XD20:00
beisnerapologies, have to step away for an appt20:00
fallenourbeisner: its alright. Ill see if I can figure out a way to make an internal IP internally routable without know what port itll be on20:00
beisnerno pressure ;-)20:00
=== agprado is now known as agprado|afk
=== agprado|afk is now known as agprado
=== blahdeblah_ is now known as blahdeblah

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