Replace glance V1 API calls to use V2 API

With the Queens release of Openstack, the community removed the
support for v1 glance API. Thus, we need to fix the corresponding
implementation in the PowerVC Driver using glance v1 calls to v2 calls.
As part of these changes, we've removed all the v1 glance client calls
to v2, and also observed that the response format has changed as well
and these changes should address all of that.

Change-Id: Ic76bad59ba3da7178acaeeb093113358e50c6169
Closes-Bug: #1783096
This commit is contained in:
Punith Kenchappa 2018-07-24 16:47:05 +05:30
parent 9a6a26a644
commit 9980f8ee64
2 changed files with 416 additions and 168 deletions

View File

@ -1,4 +1,4 @@
# Copyright 2013 IBM Corp.
# Copyright 2013, 2018 IBM Corp.
"""
All PowerVC Driver ImageManager Constants
@ -97,3 +97,6 @@ IMAGE_SYNC_CHECK_INTERVAL_TIME_IN_SECONDS = 1
# Block Device Mapping Key in image properties
BDM_KEY = 'block_device_mapping'
V1_PROPERTIES = ['os_distro', 'block_device_mapping', 'hypervisor_type',
'bdm_v2', 'architecture', 'endianness', 'root_device_name']

File diff suppressed because it is too large Load Diff