$ cinder --os-volume-api-version 3.0 help upload-to-image
usage: cinder upload-to-image [--force [<True|False>]]
[--container-format <container-format>]
[--disk-format <disk-format>]
[--visibility <public|private>]
[--protected <True|False>]
<volume> <image-name>
Uploads volume to Image Service as an image.
Positional arguments:
<volume> Name or ID of volume to snapshot.
<image-name> The new image name.
Optional arguments:
--force [<True|False>]
Enables or disables upload of a volume that is
attached to an instance. Default=False.
--container-format <container-format>
Container format type. Default is bare.
--disk-format <disk-format>
Disk format type. Default is raw.
--visibility <public|private>
Makes image publicly accessible. Default=private.
--protected <True|False>
Prevents image from being deleted. Default=False.
This is the output of "cinder --os-volume-api-version 3.0 help upload-to-image"
But "--visibility" and "--protected" is not supported in 3.0 version. The should not show up in this help message.
Fix proposed to branch: master /review. openstack. org/340129
Review: https:/