How to update a volume

asked 2014-11-10 08:41:50 -0600

schad gravatar image

I am trying to update a volume of an existing server using the command:

nova volume-update <server> <volume> <volume>

This fails due to an error in the nova CLI. But I can see the REST API requests that are being sent. Those requests are successful but do not change the volume attachment. Here is an example:

 curl -i '' -X PUT -H "X-Auth-Project-Id: Demo" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: xxx" -d '{"volumeAttachment": {"volumeId": "401c6474-5d41-4bb7-a461-b20f64014003"}}'
HTTP/1.1 202 Accepted
Content-Type: text/html; charset=UTF-8
Content-Length: 0

Detaching the volume first does not help as this is the root volume.

Is there a way to change the volume used by a server without loosing its other properties?

edit retag flag offensive close merge delete