@Zhenyu,
Sorry, I succeeded in reproducing.
$ curl -g -i -X POST http://127.0.0.1:8774/v2.1/os-volumes_boot -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.37" -H "X-OpenStack-Nova-API-Version: 2.37" \ > -H "X-Auth-Token: gAAAAABYWiW9XJMCFRjQntKQKpiXY3l2TIdZn_5rB3eE4jxEYndVZZNT5hP3AzvKdft3cX3XUvF3TluDMK9BvDDL27V5NFzpIRMFdkO2NzZ3G2ghE3KhegQ9EFiH7SYaAlgE7GxcvG05bVwEJ2CmcvwLcaXZx3pWhX1YWfZ31YsCA4Nioxbbm1I" \ > -H "Content-Type: application/json" \ > -d '{"server": {"name": "test3", "imageRef": "5ccdf68c-03f6-4dc5-a936-96903a12ed6e", "block_device_mapping_v2": [{"source_type": "image", "delete_on_termination": true, "boot_index": 0, "uuid": "5ccdf68c-03f6-4dc5-a936-96903a12ed6e", "destination_type": "local"}, {"source_type": "volume", "uuid": "cfff5649-d9c8-4b16-9cef-788eb080ccc5", "destination_type": "volume1"}], "flavorRef": "2", "max_count": 1, "min_count": 1, "networks": [{"uuid": "a9a98594-c2b9-4523-825c-873a3182272e"}]}}' HTTP/1.1 500 Internal Server Error Openstack-Api-Version: compute 2.37 X-Openstack-Nova-Api-Version: 2.37 Vary: OpenStack-API-Version Vary: X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 194 X-Compute-Request-Id: req-5c0ae033-9da6-4a31-921e-745c85312f6a Date: Wed, 21 Dec 2016 06:51:54 GMT
{"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<type 'exceptions.ValueError'>", "code": 500}}
@Zhenyu,
Sorry, I succeeded in reproducing.
$ curl -g -i -X POST http:// 127.0.0. 1:8774/ v2.1/os- volumes_ boot -H "Accept: application/json" -H "OpenStack- API-Version: compute 2.37" -H "X-OpenStack- Nova-API- Version: 2.37" \ CFRjQntKQKpiXY3 l2TIdZn_ 5rB3eE4jxEYndVZ ZNT5hP3AzvKdft3 cX3XUvF3TluDMK9 BvDDL27V5NFzpIR MFdkO2NzZ3G2ghE 3KhegQ9EFiH7SYa AlgE7GxcvG05bVw EJ2CmcvwLcaXZx3 pWhX1YWfZ31YsCA 4Nioxbbm1I" \ 03f6-4dc5- a936-96903a12ed 6e", "block_ device_ mapping_ v2": [{"source_type": "image", "delete_ on_termination" : true, "boot_index": 0, "uuid": "5ccdf68c- 03f6-4dc5- a936-96903a12ed 6e", "destination_type": "local"}, {"source_type": "volume", "uuid": "cfff5649- d9c8-4b16- 9cef-788eb080cc c5", "destination_type": "volume1"}], "flavorRef": "2", "max_count": 1, "min_count": 1, "networks": [{"uuid": "a9a98594- c2b9-4523- 825c-873a318227 2e"}]}} ' Api-Version: compute 2.37 Nova-Api- Version: 2.37 API-Version Nova-API- Version Request- Id: req-5c0ae033- 9da6-4a31- 921e-745c85312f 6a
> -H "X-Auth-Token: gAAAAABYWiW9XJM
> -H "Content-Type: application/json" \
> -d '{"server": {"name": "test3", "imageRef": "5ccdf68c-
HTTP/1.1 500 Internal Server Error
Openstack-
X-Openstack-
Vary: OpenStack-
Vary: X-OpenStack-
Content-Type: application/json; charset=UTF-8
Content-Length: 194
X-Compute-
Date: Wed, 21 Dec 2016 06:51:54 GMT
{"computeFault": {"message": "Unexpected API Error. Please report this at http:// bugs.launchpad. net/nova/ and attach the Nova API log if possible.\n<type 'exceptions. ValueError' >", "code": 500}}