← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1337769] Re: Failure when creating a volume from an existing image and using it to boot an instance.

 

It seems to me this problem is solved with the new (as of Juno) config
parameters "block_device_allocate_retries" and
"block_device_allocate_retries_interval". See
http://docs.openstack.org/juno/config-reference/content/nova-conf-
changes-juno.html.

The code in nova/compute/manager.py (_await_block_device_mape_created())
still contains a small mistake - it outputs a warning about
"block_device_retries"  instead of "block_device_allocate_retries".

---------------

If anybody still wants to reproduce the situation, use a large image in an http store: "glance image-create --location <somewhere on the internet> ....". This ensures a long load time.
You should then find a message like this in the nova compute log:
"VolumeNotCreated: Volume 1cf1c991-6f61-4072-9e80-0161d6ee0574 did not finish being created even after we waited 193 seconds or 61 attempts. And its status is downloading."

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

-- 
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/1337769

Title:
  Failure when creating a volume from an existing image and using it to
  boot an instance.

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Running CLI as below to create a volume from an existing image and
  using it to boot an instance.

  nova --debug boot --flavor m1.medium --block-device
  source=image,id=8c7ae799-a61c-4015-86af-
  ca8544691399,dest=volume,size=40,shutdown=remove,bootindex=0 --nic
  net-id=861b4e6b-126d-4302-a2b2-58fd0bb72f03 my-testvm

  This will fail now and then depends on the images size.

  
  API trace from operation:

  REQ: curl -i http://cic-pub-
  api:38774/v2/ae132c7a5c0f49efa126c133039b28ab/os-volumes_boot -X POST
  -H "X-Auth-Project-Id: ericsson" -H "User-Agent: python-novaclient" -H
  "Content-Type: application/json" -H "Accept: application/json" -H "X
  -Auth-Token: bcce2c7f828743859d9cf1134085a422" -d '{"server": {"name":
  "for-anton", "imageRef": "", "block_device_mapping_v2":
  [{"boot_index": "0", "uuid": "8c7ae799-a61c-4015-86af-ca8544691399",
  "volume_size": "40", "source_type": "image", "destination_type":
  "volume", "delete_on_termination": true}], "flavorRef": "3",
  "max_count": 1, "min_count": 1, "networks": [{"uuid": "861b4e6b-
  126d-4302-a2b2-58fd0bb72f03"}]}}'

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


References