Nova cannot find cinder v3 endpoint

Bug #1657496 reported by Scott DAngelo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Scott DAngelo

Bug Description

We are unable to use cinder v3 endpoint.
To Reproduce put the following in nova.conf:
 [cinder]
  catalog_info = volumev3:cinderv3:publicURL

When nova first uses the cinderclient for a volume-attach, an exception will be thrown:
2017-01-05 19:30:30.353 7049 ERROR nova.compute.manager [instance: cf1ec253-8a03-4080-a7dd-768090c86c5e] raise exceptions.EndpointNotFound(msg)
2017-01-05 19:30:30.353 7049 ERROR nova.compute.manager [instance: cf1ec253-8a03-4080-a7dd-768090c86c5e] EndpointNotFound: publicURL endpoint for volumev3 service named cinderv3 in RegionOne region not found

See: http://logs.openstack.org/82/385682/3/check/gate-tempest-dsvm-neutron-full-ubuntu-xenial/0a4185b/logs/screen-n-cpu.txt.gz?level=TRACE#_2017-01-05_19_30_30_353

This fix is required:

diff --git a/nova/context.py b/nova/context.py
index 68dcdad..02549f3 100644
--- a/nova/context.py
+++ b/nova/context.py
@@ -102,8 +102,8 @@ class RequestContext(context.RequestContext):
         if service_catalog:
             # Only include required parts of service_catalog
             self.service_catalog = [s for s in service_catalog
- if s.get('type') in ('volume', 'volumev2', 'key-manager',
- 'placement')]
+ if s.get('type') in ('volume', 'volumev2', 'volumev3',
+ 'key-manager', 'placement')]
         else:
             # if list is empty or none
             self.service_catalog = []

Changed in nova:
assignee: nobody → Scott DAngelo (scott-dangelo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/422078
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=377f4004970e6f5b26a146b24bb108e04fe5c0ae
Submitter: Jenkins
Branch: master

commit 377f4004970e6f5b26a146b24bb108e04fe5c0ae
Author: scottda <email address hidden>
Date: Wed Jan 18 09:10:21 2017 -0700

    Fix Nova to allow using cinder v3 endpoint

    Nova creates a limited service catalog using just the endpoints
    required for Nova. This needs to include the new Cinder v3.

    Change-Id: I06f9f2885bb1748897332cb15d4aafe4a99aa9dc
    Closes-Bug: #1657496

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 15.0.0.0b3

This issue was fixed in the openstack/nova 15.0.0.0b3 development milestone.

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.