Comment 6 for bug 1651064

Revision history for this message
Rikimaru Honjo (honjo-rikimaru-c6) wrote :

@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}}