ec2 provider issue with name resolution on multi_host mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Triaged
|
Low
|
Unassigned |
Bug Description
When using multi_host mode on a openstack deployement, each node running nova-network run a an instance of dnsmasq to give ip address and name resolution to vm running on this host.
The several dnsmasq process do not share the information they have about the running vm. As a result, a virtual machine will only be able to resolve name of other vm running on the same compute node it s currently hosted on.
This is causing some problems when deploying charms with the ec2 provider.
The most common problem i hit is when attempting to add a relation between some charm and a mysql charm.
There also seems to be possible reference to the zookeeper node hostname (instead of its ip) wich would result in the same problem.
By example:
juju bootstrap
juju deploy mysql
juju deploy wordpress
juju add-relation wordpress mysql
juju expose wordpress
after installation, there are several references to host names instead of host ips:
1) In /etc/init/
env JUJU_ZOOKEEPER=
2) In /var/www/
define('DB_HOST', 'server-
Here, the charm having a relation with the mysql charm is given the mysql host name in the relation-get , instead of its ip.
Changed in juju: | |
importance: | Undecided → Low |
status: | New → Triaged |
highly recommended to use the 'openstack' provider against openstack
environments.
On Tue, Jan 22, 2013 at 9:36 AM, Pierre Amadio
<email address hidden>wrote:
> Public bug reported: juju-wordpress- 0.conf "server- 8f4f305f- 0214-4bbf- 8846-57925ca2c5 6f:2181" wp-info. php: 8eebd3d8- 1de7-4984- 889e- canonistack' ); /bugs.launchpad .net/bugs/ 1103036 /bugs.launchpad .net/juju/ +bug/1103036/ +subscriptions
>
> When using multi_host mode on a openstack deployement, each node running
> nova-network run a an instance of dnsmasq to give ip address and name
> resolution to vm running on this host.
>
> The several dnsmasq process do not share the information they have about
> the running vm. As a result, a virtual machine will only be able to
> resolve name of other vm running on the same compute node it s currently
> hosted on.
>
> This is causing some problems when deploying charms with the ec2
> provider.
>
> The most common problem i hit is when attempting to add a relation
> between some charm and a mysql charm.
>
> There also seems to be possible reference to the zookeeper node
> hostname (instead of its ip) wich would result in the same problem.
>
> By example:
>
> juju bootstrap
> juju deploy mysql
> juju deploy wordpress
> juju add-relation wordpress mysql
> juju expose wordpress
>
> after installation, there are several references to host names instead
> of host ips:
>
> 1) In /etc/init/
>
> env JUJU_ZOOKEEPER=
>
> 2) In /var/www/
>
> define('DB_HOST', 'server-
> 8a6f4ea48fc8.
>
> Here, the charm having a relation with the mysql charm is given the
> mysql host name in the relation-get , instead of its ip.
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> https:/
>
> Title:
> ec2 provider issue with name resolution on multi_host mode
>
> To manage notifications about this bug go to:
> https:/
>