openstack-python-openstackc.../openstackclient
Matt Riedemann 6a199bd141 Support type=image with --block-device-mapping option
The --block-device-mapping option on the server create
command currently only supports booting from volume and
volume snapshot. A common boot-from-volume scenario is
providing an image and letting nova orchestrate the
creation of the image-backed volume and attaching it to
the server.

This adds support for type=image in the --block-device-mapping
option. The volume size is required in this case. Note that
the CLI currently says if type=snapshot that size is also required
but that's technically not true. When booting from a volume
snapshot, the compute API will use the size of the volume snapshot
to create the volume if an explicit size is not provided. For the
purposes of this patch, we need the size anyway for the image
being the block device mapping source type.

Change-Id: I57b3c261d8309f7b9f62a3e91612bce592a887a3
Story: 2006302
Task: 36016
2019-08-09 16:36:17 +00:00
..
api Update api-ref location 2019-07-22 20:55:43 +02:00
common Remove code migrated to osc-lib long ago 2019-05-16 19:19:58 -05:00
compute Support type=image with --block-device-mapping option 2019-08-09 16:36:17 +00:00
identity Merge "Use cliff formattable columns in identity commands" 2019-06-23 04:49:33 +00:00
image Use cliff formattable columns in image commands 2019-06-22 13:36:46 -05:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "Change default security group protocol to 'any'" 2019-06-22 21:39:31 +00:00
object Use cliff formattable columns in object storage commands 2019-06-22 18:44:27 +00:00
tests Support type=image with --block-device-mapping option 2019-08-09 16:36:17 +00:00
volume Merge "Use cliff formattable columns in volume v2 commands" 2019-06-23 00:45:37 +00:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Remove code migrated to osc-lib long ago 2019-05-16 19:19:58 -05:00