python-openstackclient/openstackclient
Nikita Gerasimov 95c8661f86 Switch server create to block_device_mapping_v2
Current compute_client.servers.create() relies on block_device_mapping
arg which is legacy[1]. "block_device_mapping" format require
device_name which is leads to hard-coded hack in --volume key handler
to KVM specific. "block_device_mapping_v2" format is more friendly
to hypervisiors.
Support of block_device_mapping_v2 appear in python-novaclient 2.16.0,
openstackclient require at least 2.29.0

Makes options --volume and --block-device-mapping work simultaneously.
Appends --block-device-mapping data even if --volume used.
After bug 1383338 only --volume was taken when both are used.

[1]http://docs.openstack.org/developer/nova/block_device_mapping.html

NOTE(dtroyer): I moved the new test_boot_from_volume() functional
test to Ie51b1c375c5940856ec76a5770df3c6bd18a3eba to test our
previous behaviour.  The only changes required to support the new
behaviour should be that the empty_volume is now attached in that test.

Change-Id: I7bac3d870dd9ca404093142f8bce22a62e49180d
Closes-Bug: 1647406
Closes-Bug: 1497845
2017-01-26 02:02:30 +00:00
..
api Make 'object save' fast again 2017-01-09 16:19:29 +00:00
common Fix OSC networking commands help errors 2017-01-22 06:30:31 +00:00
compute Switch server create to block_device_mapping_v2 2017-01-26 02:02:30 +00:00
identity Fix 'mapping set' return value 2017-01-25 18:07:17 +01:00
image Update container format choices 2017-01-23 23:04:49 -05:00
locale Imported Translations from Zanata 2016-06-04 06:18:46 +00:00
network Merge "To support '--project' and '--project-domain' options" 2017-01-26 01:51:19 +00:00
object translate all command help strings 2016-11-17 02:33:42 +00:00
tests Switch server create to block_device_mapping_v2 2017-01-26 02:02:30 +00:00
volume Merge "Add --project and --project-domain option to "volume snapshot list"" 2017-01-25 22:27:39 +00:00
__init__.py Change version reporting to use pbr 2013-08-02 12:11:49 -05:00
i18n.py Update translation setup 2016-01-29 08:18:50 +09:00
shell.py Correct reraising of exception 2016-12-02 09:56:27 +08:00