commit 3f3a159704e5a6ad7ce12d153b11e85c030d2751
Author: David Ames <email address hidden>
Date: Tue Mar 7 08:33:13 2017 -0800
Make the cloud-compute relation net spaces aware
When nova compute is deployed with multiple network interfaces
configured. It may be necessary to specify which interface to use for
the cloud-compute relation.
Do not use unit_get('private-address') which gives unpredictable
results. Instead, leverage network-get for network spaces aware address
selection.
Charm helpers sync to pull in generalized get_relation_ip() used in
other charms which checks network-get after checking for all of the edge
cases including IPv6 and config overrides. Use get_relation_ip() for
address selection.
This allows for specifying a network space in a bundle when using MAAS
2.x. This guarantees the charm will select the correct interface and IP
for the network space.
Reviewed: https:/ /review. openstack. org/442643 /git.openstack. org/cgit/ openstack/ charm-nova- compute/ commit/ ?id=3f3a159704e 5a6ad7ce12d153b 11e85c030d2751
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3f3a159704e5a6a d7ce12d153b11e8 5c030d2751
Author: David Ames <email address hidden>
Date: Tue Mar 7 08:33:13 2017 -0800
Make the cloud-compute relation net spaces aware
When nova compute is deployed with multiple network interfaces
configured. It may be necessary to specify which interface to use for
the cloud-compute relation.
Do not use unit_get( 'private- address' ) which gives unpredictable
results. Instead, leverage network-get for network spaces aware address
selection.
Charm helpers sync to pull in generalized get_relation_ip() used in
other charms which checks network-get after checking for all of the edge
cases including IPv6 and config overrides. Use get_relation_ip() for
address selection.
This allows for specifying a network space in a bundle when using MAAS
2.x. This guarantees the charm will select the correct interface and IP
for the network space.
nova-compute:
cloud- compute: internal-space
bindings:
Closes-bug: #1670866
Change-Id: Ib43a7a52acf5a0 7b68dea808082da 0ba6eb237c1