Nova compute charm is not network space aware

Bug #1670866 reported by David Ames
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Fix Released
High
David Ames

Bug Description

When nova compute is deployed with multiple network interfaces
configured the charm may select the wrong interface for various relationships including cloud-compute.

It should not use unit_get('private-address') which gives unpredictable
results. Instead, it should leverage network-get for network spaces aware address
selection.

David Ames (thedac)
Changed in charm-nova-compute:
status: New → In Progress
importance: Undecided → High
assignee: nobody → David Ames (thedac)
milestone: none → 17.05
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (master)

Reviewed: https://review.openstack.org/442643
Committed: https://git.openstack.org/cgit/openstack/charm-nova-compute/commit/?id=3f3a159704e5a6ad7ce12d153b11e85c030d2751
Submitter: Jenkins
Branch: master

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.

    nova-compute:
      bindings:
        cloud-compute: internal-space

    Closes-bug: #1670866

    Change-Id: Ib43a7a52acf5a07b68dea808082da0ba6eb237c1

Changed in charm-nova-compute:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-nova-compute:
milestone: 17.05 → 17.08
James Page (james-page)
Changed in charm-nova-compute:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.