API v1.1 Update server returns "204 No Content"

asked 2011-08-11 01:24:21 -0500

dou2 gravatar image

Using version 1.1 of the compute API

I have an active server with id of: 3 When updating the name of a Server using a PUT request (/v1.1/servers/3) the server name gets updated just fine, but the response is a "204 No Content"

The OpenStack Compute Dev Guide V1.1 (4.1.4. Update Server) lists the following response codes:

Normal Response Code(s): 200 Error Response Code(s): computeFault (400, 500, …), serviceUnavailable (503), unauthorized (401), forbidden (403), badRequest (400), badMethod (405), overLimit (413), itemNotFound (404), badMediaType (415), buildInProgress (409)

Is this a bug or just out-of-date documentation?

edit retag flag offensive close merge delete

5 answers

Sort by » oldest newest most voted
0

answered 2011-08-11 03:15:49 -0500

The documentation is wrong here. A PUT operation should not respond with a 200, but instead a 202 or a 204. In this case, the 204 behavior is correct and the documentation should be changed to reflect that.

edit flag offensive delete link more
0

answered 2011-08-11 04:12:25 -0500

The documentation is correct. The spec defines the the response as having content, therefore a 204 (no content) is not acceptable. A 202 implies an asynchronous operation, which is not the case here. The spec is correct as defining a 200, Nova is just not implementing it correctly. Please file a bug for this.

edit flag offensive delete link more
0

answered 2011-08-11 16:19:57 -0500

dou2 gravatar image

Thanks George.

edit flag offensive delete link more
0

answered 2011-08-11 16:24:53 -0500

dou2 gravatar image

Okay Brian I'll file a bug report. Thanks

edit flag offensive delete link more
0

answered 2011-08-11 16:49:12 -0500

Already beat you to it, Doug: https://bugs.launchpad.net/nova/+bug/824601 (https://bugs.launchpad.net/nova/+bug/...)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-11 01:24:21 -0500

Seen: 66 times

Last updated: Aug 11 '11