python-openstackclient/openstackclient/compute/v2
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
..
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
agent.py translate all command help strings 2016-11-17 02:33:42 +00:00
aggregate.py Serialize more aggregate functional tests 2019-05-17 19:15:28 -05:00
console.py Fix crashing "console log show" 2018-03-16 11:30:51 -05:00
flavor.py Rename review.openstack.org to review.opendev.org 2019-05-12 04:41:27 +08:00
host.py compute: host: expand kwargs in host_set() call 2018-07-20 10:37:34 +02:00
hypervisor_stats.py translate all command help strings 2016-11-17 02:33:42 +00:00
hypervisor.py translate all command help strings 2016-11-17 02:33:42 +00:00
keypair.py Add "--private-key" option for "keypair create" 2017-03-06 08:34:28 +00:00
server_backup.py Fix additional output encoding issues 2018-03-20 15:40:23 -05:00
server_event.py Add server event command documentation for compute API 2.21 2019-06-12 11:23:06 -04:00
server_group.py Remove hard-coded policy choices for creating a server group 2017-11-19 18:45:28 -05:00
server_image.py Fix additional output encoding issues 2018-03-20 15:40:23 -05:00
server.py Support type=image with --block-device-mapping option 2019-08-09 16:36:17 +00:00
service.py docs: clarify compute service --service option 2019-07-01 15:06:56 -04:00
usage.py Paginate over usage list to return all usages 2019-02-28 20:27:04 +02:00