Comment 3 for bug 1418484

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

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