mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-13 13:17:54 +03:00
removed again local SRs because its possible to mark a local storage as "shared" on non cluster xen
This commit is contained in:
parent
e93f2951be
commit
7ea139163d
@ -260,7 +260,9 @@ class XenServer: # pylint: disable=too-many-public-methods
|
||||
continue
|
||||
|
||||
if not self.SR.get_shared(srId):
|
||||
name_label += ' (local)'
|
||||
# name_label += ' (local)'
|
||||
continue
|
||||
|
||||
valid = True
|
||||
allowed_ops = self.SR.get_allowed_operations(srId)
|
||||
for v in ['vdi_create', 'vdi_clone', 'vdi_snapshot', 'vdi_destroy']:
|
||||
@ -398,11 +400,11 @@ class XenServer: # pylint: disable=too-many-public-methods
|
||||
try:
|
||||
if targetSR:
|
||||
if 'copy' not in operations:
|
||||
raise XenException('Copy is not supported for this machine')
|
||||
raise XenException('Copy is not supported for this machine (maybe it\'s powered on?)')
|
||||
task = self.Async.VM.copy(vmId, targetName, targetSR)
|
||||
else:
|
||||
if 'clone' not in operations:
|
||||
raise XenException('Clone is not supported for this machine')
|
||||
raise XenException('Clone is not supported for this machine (maybe it\'s powered on?)')
|
||||
task = self.Async.VM.clone(vmId, targetName)
|
||||
return task
|
||||
except XenAPI.Failure as e:
|
||||
|
Loading…
Reference in New Issue
Block a user