NetApp: move split job to end

Volumes may be busy during split operation, so other actions would fail,
e.g. applying snapdir visibility, setting volume size ..

Closes-Bug: #2007970
Change-Id: I3e36f77f4e46c90af8445601e10eadf9c55ed5f6
This commit is contained in:
Maurice Escher 2023-02-21 12:44:50 +01:00
parent cf86b23896
commit dd13d5ae39
No known key found for this signature in database
GPG Key ID: CC56DEC23EE46750

View File

@ -1564,8 +1564,6 @@ class NetAppCmodeFileStorageLibrary(object):
share, vserver, vserver_client=vserver_client) share, vserver, vserver_client=vserver_client)
hide_snapdir = provisioning_options.pop('hide_snapdir') hide_snapdir = provisioning_options.pop('hide_snapdir')
if split is not None:
provisioning_options['split'] = split
LOG.debug('Creating share from snapshot %s', snapshot['id']) LOG.debug('Creating share from snapshot %s', snapshot['id'])
vserver_client.create_volume_clone( vserver_client.create_volume_clone(
@ -1588,6 +1586,10 @@ class NetAppCmodeFileStorageLibrary(object):
self._create_fpolicy_for_share(share, vserver, vserver_client, self._create_fpolicy_for_share(share, vserver, vserver_client,
**provisioning_options) **provisioning_options)
# split at the end: not be blocked by a busy volume
if split is not None:
vserver_client.split_volume_clone(share_name)
@na_utils.trace @na_utils.trace
def _share_exists(self, share_name, vserver_client): def _share_exists(self, share_name, vserver_client):
return vserver_client.volume_exists(share_name) return vserver_client.volume_exists(share_name)