Comment 8 for bug 1062046

Revision history for this message
Itsuro Oda (oda-g) wrote :

> Sorry. This is my mistake. I will do feedback later.

Here is the update.

[parameter missing]
o subnet create
- "destination" in the "host_routes" [NotFixed] => [Fixed] # sorry. my mistake.

[parameter missing]
o network update
- "network"  [NotFixed]
o subnet update
- "subnet" [NotFixed]
o port update
- "port" [NotFixed]

There is a bug in my test code. But there is another problem.
In my test:
---
$ curl -v -H "X-Auth-Token: 5399f4a8e6d04768894b620edbb07d41" -H "Content-Type: application/json" -X PUT -d '{{"name": "aaa"}}' http://172.17.190.3:9696/v2.0/networks/e763c6ba-6cc9-4bbb-9d2d-f547fe6c4392
...
< HTTP/1.1 500 Internal Server Error
< Content-Type: application/json
< Content-Length: 88
< Date: Wed, 17 Oct 2012 01:42:45 GMT
{"QuantumError": "Request Failed: internal server error while processing your request."}
---

I think the cause of error is '{{"name": "aaa"}}' is not correct json format.

But... It should not be 500 anyway.

The followings are how to reproduce for other cases.

[null specified]
o bulk network create
- "networks": null [NotFixed]
---
curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -H 'Content-Type: application/json' -X POST -d '{"networks": null}' http://172.17.190.3:9696/v2.0/networks
{"QuantumError": "Request Failed: internal server error while processing your request."}
---

o subnet create
- "ip_version": null [NotFixed]
- "dns_nameservers": null [NotFixed]
- "allocation_pools": null [NotFixed]
- "host_routes": null [NotFixed]
---
curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"subnet": {"network_id": "9090a21d-55ce-45a2-a9b4-db811c901a3f", "cidr": "110.0.0.0/24", "ip_version": null }}' http://172.17.190.3:9696/v2.0/subnets
{"QuantumError": "Request Failed: internal server error while processing your request."}

curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"subnet": {"network_id": "9090a21d-55ce-45a2-a9b4-db811c901a3f", "cidr": "110.0.0.0/24", "ip_version": 4 , "dns_nameservers": null}}' http://172.17.190.3:9696/v2.0/subnets
{"QuantumError": "Request Failed: internal server error while processing your request."}

curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"subnet": {"network_id": "9090a21d-55ce-45a2-a9b4-db811c901a3f", "cidr": "110.0.0.0/24", "ip_version": 4 , "allocation_pools": null}}' http://172.17.190.3:9696/v2.0/subnets
{"QuantumError": "Request Failed: internal server error while processing your request."}

curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"subnet": {"network_id": "9090a21d-55ce-45a2-a9b4-db811c901a3f", "cidr": "110.0.0.0/24", "ip_version": 4 , "host_routes": null}}' http://172.17.190.3:9696/v2.0/subnets
{"QuantumError": "Request Failed: internal server error while processing your request."}
---

o bulk subnet create
- "subnets": null [NotFixed]
---
curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"subnets": null}}' http://172.17.190.3:9696/v2.0/subnets
{"QuantumError": "Request Failed: internal server error while processing your request."}
---

o subnet update
- "dns_nameservers": null [NotFixed]
- "host_routes": null [NotFixed]
---
curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X PUT -H 'Content-Type: application/json' -d '{"subnet": {"name":"test", "dns_nameservers": null }}' http://172.17.190.3:9696/v2.0/subnets/9897ea89-af9f-4c69-bb44-1d60d484b092
{"QuantumError": "Request Failed: internal server error while processing your request."}

curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X PUT -H 'Content-Type: application/json' -d '{"subnet": {"name":"test", "host_routes": null }}' http://172.17.190.3:9696/v2.0/subnets/9897ea89-af9f-4c69-bb44-1d60d484b092
{"QuantumError": "Request Failed: internal server error while processing your request."}
---

o port create
- "fixed_ips": null [NotFixed]
- "device_id": null [NotFixed]
- "device_owner": null [NotFixed]
---
curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"port": {"network_id": "9090a21d-55ce-45a2-a9b4-db811c901a3f", "fixed_ips": null}}' http://172.17.190.3:9696/v2.0/ports
{"QuantumError": "Request Failed: internal server error while processing your request."}

curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"port": {"network_id": "9090a21d-55ce-45a2-a9b4-db811c901a3f", "device_id": null}}' http://172.17.190.3:9696/v2.0/ports
{"QuantumError": "Request Failed: internal server error while processing your request."}

curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"port": {"network_id": "9090a21d-55ce-45a2-a9b4-db811c901a3f", "device_owner": null}}' http://172.17.190.3:9696/v2.0/ports
{"QuantumError": "Request Failed: internal server error while processing your request."}
---

o bulk port create
- "ports": null  [NotFixed]
---
curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X POST -H 'Content-Type: application/json' -d '{"ports": null}' http://172.17.190.3:9696/v2.0/ports
{"QuantumError": "Request Failed: internal server error while processing your request."}
---

o port update
- "fixed_ips": null  [NotFixed]
---
curl -H 'X-Auth-Token: e65b12ec013946518b0a993b0d3df2ea' -X PUT -H 'Content-Type: application/json' -d '{"port": {"name":"test", "fixed_ips": null}}' http://172.17.190.3:9696/v2.0/ports/07ab0d74-662c-4792-8bbe-b23e0e40c7b2
{"QuantumError": "Request Failed: internal server error while processing your request."}
---