yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #31557
[Bug 1442501] [NEW] Fail to boot VM from image with one ephemeral disk
Public bug reported:
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()
** Affects: nova
Importance: Undecided
Status: New
--
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 OpenStack Compute (Nova):
New
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/nova/+bug/1442501/+subscriptions
Follow ups
References