Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

ibm cloud infrastructure - Unable to order snapshot space

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It would have be great to see your code :S, basically if you already have the snapshot space you need to upgrade it, when you perform the upgrade you need to make sure you are using the proper order container otherwise it will fail.

take a look this example:

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

regards


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...