Skip to content

Commit 57a3999

Browse files
authored
Merge pull request #570 from shannonmitchell/JIRA/REO-REO-343
Fixes Glance & Cinder API Version Check Issue
2 parents 26971fa + bfd07d7 commit 57a3999

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

playbooks/files/rax-maas/plugins/maas_common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
'OS_ENDPOINT_TYPE': 'PublicURL',
3939
'OS_IDENTITY_API_VERSION': None,
4040
'OS_API_INSECURE': False,
41-
'OS_VOLUME_API_VERSION': None,
42-
'OS_IMAGE_API_VERSION': None, }
41+
'OS_VOLUME_API_VERSION': 1,
42+
'OS_IMAGE_API_VERSION': 1}
4343

4444
if 'Ubuntu' in platform.linux_distribution()[0]:
4545
AUTH_DETAILS.update({
@@ -668,7 +668,7 @@ def get_auth_details(openrc_file=OPENRC, maasrc_file=MAASRC):
668668
continue
669669
k = match.group('key')
670670
v = match.group('value').strip('"').strip("'")
671-
if k in auth_details and auth_details[k] is None:
671+
if k in auth_details:
672672
auth_details[k] = v
673673
except IOError as e:
674674
if e.errno != errno.ENOENT:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- The maas_common.py is setting OS_VOLUME_API_VERSION and
4+
OS_IMAGE_API_VERSION with a default of None. This caused
5+
calls to get_auth_details to fail a key check for 'None'
6+
causing nova and neutron checks to fail of those variables
7+
are not being set in the environment anywhere.

0 commit comments

Comments
 (0)