Thanks jichenjc, This bug is because of python-novaclient version difference
as you said we need to backport https://review.openstack.org/#/c/165932/ to stable/kilo to resolve this bug. ** Project changed: nova => python-novaclient ** Changed in: python-novaclient Assignee: Noel Nelson Dsouza (noelnelson) => BalaGopalaKrishna (bala-9) -- 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/1442501 Title: Fail to boot VM from image with one ephemeral disk Status in python-novaclient: Confirmed Bug description: Kilo latest code I attempt to boot a VM from qcow2 image, and also create one ephemeral disk, but my request is refused by nova-api. [root@icm ~]# nova boot --flavor 1 --image cirros --ephemeral size=2 zhaoqin ERROR (BadRequest): Block Device Mapping is Invalid: Boot sequence for the instance and image/block device mapping combination is not valid. (HTTP 400) (Request-ID: req-6e272b55-a20e-4e1c-9b76-c1fb9d232fa6) The error is raised from _validate_bdm() in nova/compute/api.py. Since there is only one ephemeral disk in block_device_mapping_v2 list and its boot_index is -1, boot_indexes becomes an empty list. And the error is raised, because 0 is not in boot_indexes list: if 0 not in boot_indexes or not _subsequent_list(boot_indexes): raise exception.InvalidBDMBootSequence() To manage notifications about this bug go to: https://bugs.launchpad.net/python-novaclient/+bug/1442501/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

