class HP3PARCommon(object):
+ """Class that contains common code for the 3PAR drivers.
+
+ Version history:
+ 1.2.0 - Updated hp3parclient API use to 2.0.x
+
+ """
+
+ VERSION = "1.2.0"
stats = {}
"is no longer used. The domain is automatically "
"looked up based on the CPG."))
+ def get_version(self):
+ return self.VERSION
+
def check_flags(self, options, required_flags):
for flag in required_flags:
if not getattr(options, flag, None):
ex_msg = (_('Invalid hp3parclient version. Version %s or greater '
'required.') % MIN_CLIENT_VERSION)
raise hpexceptions.UnsupportedVersion(ex_msg)
- else:
- LOG.debug(('Using hp3parclient %s.') % client_version)
return cl
def do_setup(self, context):
self.client = self._create_client()
+ LOG.info(_("HP3PARCommon %(common_ver)s, hp3parclient %(rest_ver)s")
+ % {"common_ver": self.VERSION,
+ "rest_ver": hp3parclient.get_version_string()})
if self.config.hp3par_debug:
self.client.debug_rest(True)
#
"""
Volume driver for HP 3PAR Storage array.
-This driver requires 3.1.2 MU2 firmware on the 3PAR array.
+This driver requires 3.1.2 MU2 firmware on the 3PAR array, using
+the 2.x version of the hp3parclient.
You will need to install the python hp3parclient.
-sudo pip install hp3parclient
+sudo pip install --upgrade "hp3parclient>=2.0"
Set the following in the cinder.conf file to enable the
3PAR Fibre Channel Driver along with the required flags:
"""OpenStack Fibre Channel driver to enable 3PAR storage array.
Version history:
- 1.0 - Initial driver
- 1.1 - QoS, extend volume, multiple iscsi ports, remove domain,
- session changes, faster clone, requires 3.1.2 MU2 firmware,
- copy volume <--> Image.
+ 1.0 - Initial driver
+ 1.1 - QoS, extend volume, multiple iscsi ports, remove domain,
+ session changes, faster clone, requires 3.1.2 MU2 firmware,
+ copy volume <--> Image.
+ 1.2.0 - Updated the use of the hp3parclient to 2.0.0 and refactored
+ the drivers to use the new APIs.
"""
- VERSION = "1.1.0"
+ VERSION = "1.2.0"
def __init__(self, *args, **kwargs):
super(HP3PARFCDriver, self).__init__(*args, **kwargs)
#
"""
Volume driver for HP 3PAR Storage array.
-This driver requires 3.1.2 MU2 firmware on the 3PAR array.
+This driver requires 3.1.2 MU2 firmware on the 3PAR array, using
+the 2.x version of the hp3parclient.
You will need to install the python hp3parclient.
-sudo pip install hp3parclient
+sudo pip install --upgrade "hp3parclient>=2.0"
Set the following in the cinder.conf file to enable the
3PAR iSCSI Driver along with the required flags:
"""OpenStack iSCSI driver to enable 3PAR storage array.
Version history:
- 1.0 - Initial driver
- 1.1 - QoS, extend volume, multiple iscsi ports, remove domain,
- session changes, faster clone, requires 3.1.2 MU2 firmware.
+ 1.0 - Initial driver
+ 1.1 - QoS, extend volume, multiple iscsi ports, remove domain,
+ session changes, faster clone, requires 3.1.2 MU2 firmware.
+ 1.2.0 - Updated the use of the hp3parclient to 2.0.0 and refactored
+ the drivers to use the new APIs.
"""
- VERSION = "1.1.0"
+ VERSION = "1.2.0"
def __init__(self, *args, **kwargs):
super(HP3PARISCSIDriver, self).__init__(*args, **kwargs)