Activity log for bug #1239952

Date Who What changed Old value New value Message
2013-10-15 06:50:45 haruka tanizawa bug added bug
2013-10-15 07:07:34 yasunori jitsukawa bug added subscriber yasunori jitsukawa
2013-11-06 07:27:36 haruka tanizawa bug added subscriber Takahiro Shida
2013-11-06 07:28:22 haruka tanizawa bug added subscriber Takashi NATSUME
2013-11-07 03:19:25 melanie witt tags api
2013-11-27 00:51:58 Christopher Yeoh nova: status New Confirmed
2013-11-27 00:53:04 Christopher Yeoh nova: importance Undecided Low
2013-12-09 07:29:12 jichenjc nova: assignee jichencom (jichenjc)
2013-12-09 08:34:21 jichenjc nova: assignee jichencom (jichenjc)
2013-12-09 08:48:56 haruka tanizawa nova: assignee haruka tanizawa (h-tanizawa)
2014-01-06 08:36:37 OpenStack Infra nova: status Confirmed In Progress
2014-02-18 11:30:40 haruka tanizawa summary boot_from_volume with death of cinder-api return 400 badRequest boot_from_volume with down of cinder-api return 400 badRequest
2014-03-03 02:04:49 haruka tanizawa description [Nova]2b17aa7f5af2adb418592b7169b50b231989bf37 Now, when I boot VM from volume with down of cinder-api, openstack returns 400. It seems incompatibility in this case. When HTTPClient exception ocuured, it should return 500Internal server error. In fact, Nova turned into normal responses from HTTPClient exception. $cinder list --all-tenants +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | 2facb85a-5ea1-4a9c-b615-e1dc75f30bb1 | available | None | 1 | None | false | | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ 1. die cinder-api service 2. boot_from_volume $curl -v -H "X-Auth-Token: $TOKEN" -H "Content-type: application/json" -X POST http://192.168.122.180:8774/v2/7020c32ea9384e0291f64f4c1288b397/os-volumes_boot -d '{ "server": { "block_device_mapping": [ { "delete_on_termination": 0, "device_name": "vda", "volume_id": "2facb85a-5ea1-4a9c-b615-e1dc75f30bb1", "volume_size": 1 } ], "flavorRef": "1", "imageRef": "ce5505ca-4d22-4a57-bc63-261a1d6dd664", "name": "test-vm", "networks": [ { "port": "cb10dd1d-87e5-421c-9382-32fe933317ea" } ] } }' * About to connect() to 192.168.122.180 port 8774 (#0) * Trying 192.168.122.180... connected > POST /v2/7020c32ea9384e0291f64f4c1288b397/os-volumes_boot HTTP/1.1 > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 > Host: 192.168.122.180:8774 > Accept: */* > X-Auth-Token: --skip-- > Content-type: application/json > Content-Length: 314 > * upload completely sent off: 314out of 314 bytes < HTTP/1.1 400 Bad Request < Content-Length: 135 < Content-Type: application/json; charset=UTF-8 < X-Compute-Request-Id: req-0a8323af-bd7c-4701-ad5a-afa0774fb213 < Date: Tue, 15 Oct 2013 06:32:31 GMT < * Connection #0 to host 192.168.122.180 left intact * Closing connection #0 { "badRequest": { "code": 400, "message": "Block Device Mapping is Invalid: failed to get volume 2facb85a-5ea1-4a9c-b615-e1dc75f30bb1." } } (For reference, this report is same as openstack-dev mail post. == [openstack-dev] behaviour about boot-from-volume (possible bug)) [Nova]2b17aa7f5af2adb418592b7169b50b231989bf37 Now, when I boot VM from volume with down of cinder-api, openstack returns 400. It seems incompatibility in this case. When HTTPClient exception ocuured, it should return 500Internal server error. In fact, Nova turned into normal responses from HTTPClient exception. $cinder list --all-tenants +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ | 2facb85a-5ea1-4a9c-b615-e1dc75f30bb1 | available | None | 1 | None | false | | +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ 1. die cinder-api service 2. boot_from_volume $curl -v -H "X-Auth-Token: $TOKEN" -H "Content-type: application/json" -X POST http://192.168.122.180:8774/v2/7020c32ea9384e0291f64f4c1288b397/os-volumes_boot -d '{     "server": {         "block_device_mapping": [             {                 "delete_on_termination": 0,                 "device_name": "vda",                 "volume_id": "2facb85a-5ea1-4a9c-b615-e1dc75f30bb1",                 "volume_size": 1             }         ],         "flavorRef": "1",         "imageRef": "ce5505ca-4d22-4a57-bc63-261a1d6dd664",         "name": "test-vm",         "networks": [             {                 "port": "cb10dd1d-87e5-421c-9382-32fe933317ea"             }         ]     } }' * About to connect() to 192.168.122.180 port 8774 (#0) * Trying 192.168.122.180... connected > POST /v2/7020c32ea9384e0291f64f4c1288b397/os-volumes_boot HTTP/1.1 > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 > Host: 192.168.122.180:8774 > Accept: */* > X-Auth-Token: --skip-- > Content-type: application/json > Content-Length: 314 > * upload completely sent off: 314out of 314 bytes < HTTP/1.1 400 Bad Request < Content-Length: 135 < Content-Type: application/json; charset=UTF-8 < X-Compute-Request-Id: req-0a8323af-bd7c-4701-ad5a-afa0774fb213 < Date: Tue, 15 Oct 2013 06:32:31 GMT < * Connection #0 to host 192.168.122.180 left intact * Closing connection #0 {     "badRequest": {         "code": 400,         "message": "Block Device Mapping is Invalid: failed to get volume 2facb85a-5ea1-4a9c-b615-e1dc75f30bb1."     } } (For reference, this report is same as openstack-dev mail post. == [openstack-dev] behaviour about boot-from-volume (possible bug))
2014-05-27 05:03:38 OpenStack Infra nova: status In Progress Fix Committed
2014-05-27 08:16:39 Tomoko Inoue bug added subscriber Tomoko Inoue
2014-06-11 13:52:04 Thierry Carrez nova: status Fix Committed Fix Released
2014-06-11 13:52:04 Thierry Carrez nova: milestone juno-1
2014-10-16 08:32:55 Thierry Carrez nova: milestone juno-1 2014.2