Reviewed: https://review.openstack.org/153203 Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=5b598ab4e1f5779b9e632854b3cf4918f452b547 Submitter: Jenkins Branch: master
commit 5b598ab4e1f5779b9e632854b3cf4918f452b547 Author: zhangjl <email address hidden> Date: Thu Feb 5 19:56:13 2015 +0800
Remove image to local block device mapping
In the method named from_api in nova/block_device.py,
if source_type == 'image' and destination_type == 'local': raise exception.InvalidBDMFormat( details=_("Mapping image to local is not supported."))
While, in the method named _boot in novaclient/v2/servers.py
if image: bdm_dict = {'uuid': image.id, 'source_type': 'image', 'destination_type': 'local', 'boot_index': 0, 'delete_on_termination': True} block_device_mapping_v2.insert(0, bdm_dict)
Because of the above, if using --image and --block-device params at the same time to create vm, nova would raise InvalidBDMFormat exception
To resolve this problem, remove the codes in novaclient which conflict with nova
Change-Id: I488322ba0160100a6d641fde68fa824d0581956a Closes-Bug:#1418484
Reviewed: https:/ /review. openstack. org/153203 /git.openstack. org/cgit/ openstack/ python- novaclient/ commit/ ?id=5b598ab4e1f 5779b9e632854b3 cf4918f452b547
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5b598ab4e1f5779 b9e632854b3cf49 18f452b547
Author: zhangjl <email address hidden>
Date: Thu Feb 5 19:56:13 2015 +0800
Remove image to local block device mapping
In the method named from_api in nova/block_ device. py,
if source_type == 'image' and destination_type == 'local': InvalidBDMForma t(
details= _("Mapping image to local is not supported."))
raise exception.
While, in the method named _boot in novaclient/ v2/servers. py
if image:
bdm_ dict = {'uuid': image.id, 'source_type': 'image',
'destination _type': 'local', 'boot_index': 0,
'delete_ on_termination' : True}
block_ device_ mapping_ v2.insert( 0, bdm_dict)
Because of the above, if using --image and --block-device
params at the same time to create vm, nova would
raise InvalidBDMFormat exception
To resolve this problem, remove the codes in novaclient which
conflict with nova
Change-Id: I488322ba016010 0a6d641fde68fa8 24d0581956a Bug:#1418484
Closes-