summaryrefslogtreecommitdiff
path: root/releasenotes/notes/bug-1995883-force-flag-none-3a7bb87f655bcf42.yaml
diff options
context:
space:
mode:
authorBrian Rosmaita <rosmaita.fossdev@gmail.com>2022-11-08 11:58:38 -0500
committerBrian Rosmaita <rosmaita.fossdev@gmail.com>2022-11-08 18:48:18 -0500
commit9df653571d4da06c25222189be27e87a6da75628 (patch)
tree86a222edebb9fc3a763a7ef1fd71507fef4d1715 /releasenotes/notes/bug-1995883-force-flag-none-3a7bb87f655bcf42.yaml
parent6f67187b8255ae231f82a9deaaf9156c868153a0 (diff)
downloadpython-cinderclient-9df653571d4da06c25222189be27e87a6da75628.tar.gz
Handle downgraded client for snapshot-create9.2.0
When a CLI user specifies --os-volume api-version 3.66, the shell will execute the appropriate shell code, but if the server only supports < 3.66, the client is automatically downgraded and correctly uses the pre-3.66 SnapshotManager.create() method. In that case, the 'force' parameter, which is technically not allowed in mv 3.66 (but which silently accepts a True value for backward compatibility), will have a value of None, which the pre-3.66 code happily passes to cinder as '"force": null' in the request body, and which then fails the Block Storage API request-schema check. Handle this situation by detecting a None 'force' value and setting it to its pre-3.66 default value of False. Change-Id: I3ad8283c2a9aaac58c8d2b50fa7ac86b617e5dd3 Closes-bug: #1995883
Diffstat (limited to 'releasenotes/notes/bug-1995883-force-flag-none-3a7bb87f655bcf42.yaml')
-rw-r--r--releasenotes/notes/bug-1995883-force-flag-none-3a7bb87f655bcf42.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/releasenotes/notes/bug-1995883-force-flag-none-3a7bb87f655bcf42.yaml b/releasenotes/notes/bug-1995883-force-flag-none-3a7bb87f655bcf42.yaml
new file mode 100644
index 0000000..87964d1
--- /dev/null
+++ b/releasenotes/notes/bug-1995883-force-flag-none-3a7bb87f655bcf42.yaml
@@ -0,0 +1,8 @@
+---
+fixes:
+ - |
+ `Bug #1995883
+ <https://bugs.launchpad.net/python-cinderclient/+bug/1995883>`_:
+ Fixed bad format request body generated for the snapshot-create
+ action when the client supports mv 3.66 or greater but the Block
+ Storage API being contacted supports < 3.66.