summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorwhoami-rajat <rajatdhasmana@gmail.com>2022-06-01 14:51:29 +0530
committerStephen Finucane <sfinucan@redhat.com>2022-06-30 11:15:33 +0100
commit9eea28ba59e44526b9d6f1ad9f80c3553d5853e2 (patch)
tree442d426e11535103109959ed876b8f7434a7c68d /releasenotes
parent20e7b01af8f0fb4cf0f4af253270ad470926ba4e (diff)
downloadpython-openstackclient-9eea28ba59e44526b9d6f1ad9f80c3553d5853e2.tar.gz
Fix: create image from volume command
Currently the command ``openstack image create --volume`` calls cinderclient to upload the volume to image service (glance) but OSC passes ``visibility`` and ``protected`` fields which are only available in microversion 3.1 or greater. This generates an error if the user is using volume microversion < 3.1 and wants to create an image from volume. This patch fixes that by only passing ``visibility`` and ``protected`` fields when the volume microversion is 3.1 or greater and fail otherwise i.e. the following 3 cases: 1) visibility/protected argument + mv >= 3.1 = pass 2) visibility/protected argument + mv < 3.1 = fail 3) not visibility/protected argument + any mv = pass Story: 2010060 Task: 45511 Change-Id: I568a0ea0af8f7f82b16d49a6a1bb0391b99c50dc
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/fix-image-create-from-volume-c573e553161605c4.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/fix-image-create-from-volume-c573e553161605c4.yaml b/releasenotes/notes/fix-image-create-from-volume-c573e553161605c4.yaml
new file mode 100644
index 00000000..92fc7419
--- /dev/null
+++ b/releasenotes/notes/fix-image-create-from-volume-c573e553161605c4.yaml
@@ -0,0 +1,7 @@
+---
+fixes:
+ - |
+ Fixed create image from volume command. If user wants to
+ pass ``visibility`` and ``protected`` fields, they need to
+ specify volume microversion 3.1 or greater by passing
+ ``os-volume-api-version 3.1`` with the command.