I see that my volume does not have space. Both, the SL portal and SL API confirm that there is no snapshot space.
The volume object in question has these details (There is no 'snapshotCapacityGb')-
{'username': 'XXX', 'capacityGb': 100, 'hostId': '', 'serviceProviderId': 1, 'nasType': 'NAS', 'upgradableFlag': True, 'storageTypeId': '13', 'createDate': '2016-09-26T18:06:09+05:30', 'serviceResourceName': 'XXX', 'hardwareId': '', 'serviceResourceBackendIpAddress': 'XXX.service.softlayer.com', 'notes': '', 'guestId': '', 'id': XXX, 'accountId': XXX}
Yet, while trying to order snapshot space via SL API, I get an error that the volume already has snapshot space.
What could be the reason for such error?
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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…