无法订购快照空间

时间:2016-10-03 11:50:34

标签: ibm-cloud-infrastructure

我看到我的音量没有空间。 SL门户和SL API都确认没有快照空间。 有问题的卷对象具有这些细节(没有'snapshotCapacityGb') -

{'username':'XXX','capacityGb':100,'hostId':'','serviceProviderId':1,'nasType':'NAS','upgradedableFlag':是的,'storageTypeId':' 13','createDate':'2016-09-26T18:06:09 + 05:30','serviceResourceName':'XXX','hardwareId':'','serviceResourceBackendIpAddress':'XXX.service.softlayer.com ','notes':'','guestId':'','id':XXX,'accountId':XXX}

然而,在尝试通过SL API订购快照空间时,我收到卷已有快照空间的错误。

出现这种错误的原因是什么?

check_order = SL.instance(sl_config).storage_order.verifyOrder(order)
File "/usr/lib64/python2.7/site-packages/SoftLayer/API.py", line 385, in call_handler
  return self(name, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/SoftLayer/API.py", line 353, in call
  return self.client.call(self.name, name, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/SoftLayer/API.py", line 256, in call
  return self.transport(request)
File "/usr/lib64/python2.7/site-packages/SoftLayer/transports.py", line 187, in __call__
  raise _ex(ex.faultCode, ex.faultString)
SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Public): The storage volume with id XXXX already has snapshot space

1 个答案:

答案 0 :(得分:0)

看到你的代码会很棒:S,基本上如果你已经拥有升级它所需的快照空间,当你执行升级时,你需要确保使用正确的订单容器,否则它将会失败

看看这个例子:

How do you upgrade a Snapshot space on Endurance storage using SoftLayer API?

问候