EMC VMAX - Change naming convention for MV and SG for FAST

Up until now we assumed a one to one relationship between FAST policy
and Pool. This does not have to be the case. A FAST policy can span
multiple pools. To ensure uniqueness we will change the SG nand MV
name to contain the FAST policy and not the pool name.

Change-Id: I4d7cc4f8922d08b886b8eb3eb9b1a2b3f4340cc1
Closes-Bug: #1515181
This commit is contained in:
Helen Walsh
2015-11-18 16:11:30 +00:00
parent 6f6b0221bd
commit 751281a4eb
5 changed files with 81 additions and 3 deletions

View File

@@ -2377,6 +2377,20 @@ class EMCVMAXUtils(object):
else:
return poolName
def generate_unique_trunc_fastpolicy(self, fastPolicyName):
"""Create a unique fast policy name under 14 chars
:param fastPolicyName: long fast policy name
:returns: truncated fast policy name
"""
if fastPolicyName and len(fastPolicyName) > 14:
return (
("%(first)s_%(last)s"
% {'first': fastPolicyName[:7],
'last': fastPolicyName[-6:]}))
else:
return fastPolicyName
def get_iscsi_protocol_endpoints(self, conn, portgroupinstancename):
"""Get the iscsi protocol endpoints of a port group.