Changes to correct name of missing NetApp license.

Change to have the NetApp ZAPI error of "SIS clone not licensed"
refer to the correct NetApp license of "FlexClone not licensed".
This code path is encountered when the NetApp 7mode driver uses
the clone interface for snapshotting or cloning.

Change-Id: I3e4d07d38870928a324ad044e03938826b0d0a98
Closes-Bug: #1295349
This commit is contained in:
Glenn M. Gobeli 2014-03-21 10:05:07 -04:00
parent 1e6560ac69
commit 9920eb9edc
1 changed files with 8 additions and 3 deletions

View File

@ -26,6 +26,8 @@ from cinder.openstack.common import log as logging
LOG = logging.getLogger(__name__)
ESIS_CLONE_NOT_LICENSED = '14956'
class NaServer(object):
"""Encapsulates server connection logic."""
@ -214,9 +216,12 @@ class NaServer(object):
code = result.get_attr('errno')\
or result.get_child_content('errorno')\
or 'ESTATUSFAILED'
msg = result.get_attr('reason')\
or result.get_child_content('reason')\
or 'Execution status is failed due to unknown reason'
if code == ESIS_CLONE_NOT_LICENSED:
msg = 'Clone operation failed: FlexClone not licensed.'
else:
msg = result.get_attr('reason')\
or result.get_child_content('reason')\
or 'Execution status is failed due to unknown reason'
raise NaApiError(code, msg)
def _create_request(self, na_element, enable_tunneling=False):