Failed to create vm with --image and --block-device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
High
|
zhangjialong |
Bug Description
Failed to create vm with --image and --block
when using --image and --block-device to create vm,
it failed with the follow logs:
DEBUG (shell:803) Block Device Mapping is Invalid: Mapping image to local is not supported. (HTTP 400) (Request-ID: req-951fbde1-
Traceback (most recent call last):
File "/usr/local/
OpenStackCo
File "/usr/local/
args.
File "/usr/local/
server = cs.servers.
File "/usr/local/
**boot_kwargs)
File "/usr/local/
return_
File "/usr/local/
_resp, body = self.api.
File "/usr/local/
return self._cs_
File "/usr/local/
resp, body = self._time_
File "/usr/local/
resp, body = self.request(url, method, **kwargs)
File "/usr/local/
raise exceptions.
BadRequest: Block Device Mapping is Invalid: Mapping image to local is not supported. (HTTP 400) (Request-ID: req-951fbde1-
ERROR (BadRequest): Block Device Mapping is Invalid: Mapping image to local is not supported. (HTTP 400) (Request-ID: req-951fbde1-
The follows are my commands:
nova boot cirros --flavor m1.tiny \
--image fc2c4d25-
--nic net-id=
--block-device id=fc2c4d25-
And my openstack version is master
In the method named from_api in nova/block_
if source_type == 'image' and destination_type == 'local':
In the method named _boot in novaclient/
if image:
Novaclient request nova service with error params, then the error occured
tags: | added: block-device image python-novaclient |
summary: |
- Failed to create vm with --image and --block + Failed to create vm with --image and --block-device |
Changed in python-novaclient: | |
assignee: | nobody → zhangjialong (zhangjl) |
Changed in python-novaclient: | |
importance: | Undecided → High |
Changed in python-novaclient: | |
milestone: | none → 2.21.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/153203
Review: https:/