[Bug 1376927] Re: [SRU] Configurable block device mapping timeout in compute

Launchpad Bug Tracker 1376927 at bugs.launchpad.net
Sun Nov 9 06:02:15 UTC 2014


** Branch linked: lp:~corey.bryant/nova/2014.1.3-0ubuntu2

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1376927

Title:
  [SRU] Configurable block device mapping timeout in compute

Status in “nova” package in Ubuntu:
  Confirmed
Status in “nova” source package in Trusty:
  Confirmed
Status in “nova” source package in Utopic:
  Fix Released

Bug description:
  [Impact]

  User tried a  ceph storage node intentionally degraded, as a failure test case, on all the cases we hit
  the following exception,

  2014-07-07 04:07:01.121 1573 TRACE nova.compute.manager [instance:
  63386638-58ac-4a2d-ae3a-20ecc137c5ad] VolumeNotCreated: Volume
  4b6611e2-0e6b-44ec-8066-f8ac164d6a9c did not finish being created even
  after we waited 197 seconds or 180 attempts.

  2014-07-07 04:07:01.121 1573 TRACE nova.compute.manager [instance: 63386638-58ac-4a2d-ae3a-20ecc137c5ad]
  2014-07-07 04:07:01.750 1573 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: Block Device Mapping is Invalid.

  This change adds two configuration options:

     a) `block_device_allocate_retries` which can be set in nova.conf
      by the user to configure the number of block device mapping retries.
      It defaults to 60 and replaces the max_tries argument in the above method.

      b) `block_device_allocate_retries_interval` which allows the user
      to specify the time interval between consecutive retries. It defaults to 3
      and replaces wait_between argument in the above method.

  [Regression Potential]

   *  This change introduces two new nova.conf directives, both with
  default values that shouldn't broken previous deployments.

  [Test Case]

  - Run sysbench on the ceph node

  sysbench --test=fileio --file-total-size=150G --file-test-mode=rndrw -
  init-rng=on --max-time=300 --max-requests=0 run

  - In parallel try to create a new instance with a ceph backed volume.

  - Without this patch the error "did not finish being created even
  after we waited 197 seconds or 180 attempts." is raised.

  - With this patch and the option block_device_allocate_retries set to
  a higher value, the exception is not raised.

  
  [Other Info]

  Please refer upstream commit:
  https://git.openstack.org/cgit/openstack/nova/commit/?id=66721eb2c0f53fc4260b2f0aa9a3811da0f7ddbd

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



More information about the Ubuntu-sponsors mailing list