Normal response codes of "Create port" should be 201
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Medium
|
Yushiro FURUKAWA |
Bug Description
In "Ports binding extended attributes (ports)" section, Normal response codes of "Create port" is 200 now, but it actually should be 201.
http://
[Representation]
$ source devstack/openrc admin admin
$ export TOKEN=`keystone token-get | grep ' id ' | get_field 2`
$ neutron net-list -c id -c name
+------
| id | name |
+------
| 318d00a7-
| 963436f4-
| a8ab5c69-
+------
$ curl -i -X POST -H "x-auth-
HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
Content-Length: 620
X-Openstack-
Date: Wed, 08 Jul 2015 03:35:04 GMT
{"port": {"status": "DOWN", "binding:host_id": "", "allowed_
Changed in openstack-api-site: | |
assignee: | nobody → Yushiro FURUKAWA (y-furukawa-2) |
Changed in openstack-api-site: | |
status: | New → In Progress |
description: | updated |
Changed in openstack-api-site: | |
milestone: | none → liberty |
importance: | Undecided → Medium |
Is this a synchronous resource creation and does it follow these guidelines? http:// specs.openstack .org/openstack/ api-wg/ guidelines/ http.html# xx-success- codes
If so, I can mark this bug Confirmed.