novaClient.servers.create call fails with block_device_mapping_v2 option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Won't Fix
|
Undecided
|
Arvinder Singh |
Bug Description
I was able to create an instance with CLI
$ nova boot --flavor gc1.small --image c85b0898-
However, when I run code via Python API:
net = novaClient.
image = novaClient.
flavor = novaClient.
dev_mapping = [{ 'source_type' : 'image', "image_id" : image.id, 'device_name' : 'vda', "volume_id" : "f7c90ef0-
novaClient.
I got the following error:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/share/
File "/usr/share/
File "/usr/share/
File "/usr/share/
File "/usr/share/
File "/usr/share/
File "/usr/share/
BadRequest: Block Device Mapping is Invalid: Missing device UUID. (HTTP 400) (Request-ID: req-9b4b44fb-
And I noticed the a new item was added to dev_mapping list. I tried with "boot_index":0, it still failed.
I am using python-novaclient (2.35.0) with Python 2.7.9.
Changed in python-novaclient: | |
assignee: | nobody → Arvinder Singh (arvinder-singh) |
Changed in python-novaclient: | |
status: | New → Confirmed |
status: | Confirmed → New |
This bug has been open about two years without any activity.
It is not clear whether this bug can be reproduced in master, latest version (11.0.0), stable/rocky, stable/queens, stable/pike, stable/ocata or not.
This bug can be reopened (set back to "New") if it can be reproduced in master, latest version (11.0.0), stable/rocky, stable/queens, stable/pike or stable/ocata.