]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix 3PAR host persona mapping to match WSAPI
authorKurt Martin <kurt.f.martin@hp.com>
Thu, 18 Dec 2014 19:50:52 +0000 (11:50 -0800)
committerKurt Martin <kurt.f.martin@hp.com>
Thu, 18 Dec 2014 19:50:52 +0000 (11:50 -0800)
The HP 3PAR drivers had mapped it's extra specs host personas to match
the 3PAR CLI/IMC, the WSAPI server has a different mapping for the
same personas. This patch corrects the mapping.

The Configuration Reference Guide will need to be updated to document
the correct mappings to match the code.
Closes-Bug: 1403997
DocImpact

Change-Id: I59272b4eb39392deb309771b10ebfecd0cf09454

cinder/volume/drivers/san/hp/hp_3par_common.py

index 845d064719f4fc0f37b7ab3d0eac7ca1c70242b1..5f845d0e7c1150da5cd0a99c879ab8cab9fb8db2 100644 (file)
@@ -161,10 +161,11 @@ class HP3PARCommon(object):
         2.0.30 - Update the minimum hp3parclient version bug #1402115
         2.0.31 - Removed usage of host name cache #1398914
         2.0.32 - Update LOG usage to fix translations.  bug #1384312
+        2.0.33 - Fix host persona to match WSAPI mapping bug #1403997
 
     """
 
-    VERSION = "2.0.32"
+    VERSION = "2.0.33"
 
     stats = {}
 
@@ -184,15 +185,15 @@ class HP3PARCommon(object):
     valid_prov_values = ['thin', 'full']
     valid_persona_values = ['2 - Generic-ALUA',
                             '1 - Generic',
-                            '6 - Generic-legacy',
-                            '7 - HPUX-legacy',
-                            '8 - AIX-legacy',
-                            '9 - EGENERA',
-                            '10 - ONTAP-legacy',
-                            '11 - VMware',
-                            '12 - OpenVMS',
-                            '13 - HPUX',
-                            '15 - WindowsServer']
+                            '3 - Generic-legacy',
+                            '4 - HPUX-legacy',
+                            '5 - AIX-legacy',
+                            '6 - EGENERA',
+                            '7 - ONTAP-legacy',
+                            '8 - VMware',
+                            '9 - OpenVMS',
+                            '10 - HPUX',
+                            '11 - WindowsServer']
     hp_qos_keys = ['minIOPS', 'maxIOPS', 'minBWS', 'maxBWS', 'latency',
                    'priority']
     qos_priority_level = {'low': 1, 'normal': 2, 'high': 3}