← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1239952] Re: boot_from_volume with down of cinder-api return 400 badRequest

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => juno-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1239952

Title:
  boot_from_volume with down of cinder-api return 400 badRequest

Status in OpenStack Compute (Nova):
  Fix Released

Bug 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))

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1239952/+subscriptions