← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1766306] Re: api-ref: block_device_mapping_v2.boot_index is required until queens

 

Reviewed:  https://review.openstack.org/563728
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=048fa2310014e6282e183da0abee87c73b6d71b9
Submitter: Zuul
Branch:    master

commit 048fa2310014e6282e183da0abee87c73b6d71b9
Author: Matt Riedemann <mriedem.os@xxxxxxxxx>
Date:   Mon Apr 23 14:01:36 2018 -0400

    api-ref: mark block_device_mapping_v2.boot_index as required
    
    This was marked optional in change If57aa3e37 but it has
    only been optional since Queens due to change I8a3e7e6c4,
    before that you will get a 400 error if you do not provide
    boot_index in the BDMs, e.g.:
    
    2018-04-23 12:34:13,308 INFO [nova.api.openstack.wsgi] \
       HTTP exception thrown: Block Device Mapping is Invalid: \
       Boot sequence for the instance and image/block device \
       mapping combination is not valid.
    2018-04-23 12:34:13,310 INFO [nova.api.openstack.requestlog] \
       127.0.0.1 "POST /v2.1/6f70656e737461636b20342065766572/servers"
       status: 400 len: 164 microversion: 2.1 time: 0.129485
    
    One could argue that I8a3e7e6c4b72eb1c3707d54049d18dc29f606fe5
    is a behavior change that should have gone with a microversion,
    which if people agree with that, could be reverted separately.
    
    Change-Id: I14d44dbc0b6a8fb25932c333e695cad9edaefbed
    Closes-Bug: #1766306


** Changed in: nova
       Status: In Progress => 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/1766306

Title:
  api-ref: block_device_mapping_v2.boot_index is required until queens

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) queens series:
  Confirmed

Bug description:
  Change https://review.openstack.org/#/c/550648/ marked the
  block_device_mapping_v2.boot_index parameter for POST /servers as
  optional, but it's only optional since this change in Queens:

  https://review.openstack.org/#/c/524208/

  Before that, you'll get an error like this if you boot from volume but
  don't specify a boot_index for each BDM in the list:

  2018-04-23 12:34:13,308 INFO [nova.api.openstack.wsgi] HTTP exception thrown: Block Device Mapping is Invalid: Boot sequence for the instance and image/block device mapping combination is not valid.
      2018-04-23 12:34:13,310 INFO [nova.api.openstack.requestlog] 127.0.0.1 "POST /v2.1/6f70656e737461636b20342065766572/servers" status: 400 len: 164 microversion: 2.1 time: 0.129485

  Therefore we should probably mark the parameter as required since the
  API reference applies to older versions/releases of the API too.

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


References