On upgrade to ocata ncc fails to register its placement api

Bug #1715505 reported by David Ames
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Cloud Controller Charm
Fix Released
Critical
David Ames

Bug Description

On upgrade from Newton to Ocata the nova-cloud-controller charm fails to register its placement API

A subsequent config-changed hook run fixes the issue.

Revision history for this message
David Ames (thedac) wrote :

I suspect this is the fix. Testing now.

diff --git a/hooks/nova_cc_utils.py b/hooks/nova_cc_utils.py
index 3f09fe6..494771c 100644
--- a/hooks/nova_cc_utils.py
+++ b/hooks/nova_cc_utils.py
@@ -1023,7 +1023,7 @@ def determine_endpoints(public_url, internal_url, admin_url):
     '''Generates a dictionary containing all relevant endpoints to be
     passed to keystone as relation settings.'''
     region = config('region')
- os_rel = os_release('nova-common')
+ os_rel = os_release('nova-common', reset_cache=True)
     cmp_os_rel = CompareOpenStackReleases(os_rel)

     nova_public_url = ('%s:%s/v2/$(tenant_id)s' %

Changed in charm-nova-cloud-controller:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → David Ames (thedac)
milestone: none → 17.08
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-cloud-controller (master)

Fix proposed to branch: master
Review: https://review.openstack.org/501489

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-cloud-controller (master)

Reviewed: https://review.openstack.org/501489
Committed: https://git.openstack.org/cgit/openstack/charm-nova-cloud-controller/commit/?id=0681179aa30ce3b94c1cfe72e92474830642ce15
Submitter: Jenkins
Branch: master

commit 0681179aa30ce3b94c1cfe72e92474830642ce15
Author: David Ames <email address hidden>
Date: Wed Sep 6 15:56:27 2017 -0700

    Reset os_release after an upgrade

    determine_endpoints was failing to recognize the new OS release after an
    upgrade. Specifically newton --> ocata failed to register the
    placement api.

    Reset os_release after an upgrade.

    Change-Id: I04ae30aea435c8c39f58d1a814d070a057bb5ce0
    Closes-Bug: #1715505

Changed in charm-nova-cloud-controller:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-nova-cloud-controller:
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.