Merge "NetApp: move split job to end"

This commit is contained in:
Zuul 2023-02-27 19:35:49 +00:00 committed by Gerrit Code Review
commit 29db644db5
1 changed files with 4 additions and 2 deletions

View File

@ -1547,8 +1547,6 @@ class NetAppCmodeFileStorageLibrary(object):
share, vserver, vserver_client=vserver_client)
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'])
vserver_client.create_volume_clone(
@ -1571,6 +1569,10 @@ class NetAppCmodeFileStorageLibrary(object):
self._create_fpolicy_for_share(share, vserver, vserver_client,
**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
def _share_exists(self, share_name, vserver_client):
return vserver_client.volume_exists(share_name)