summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-09-10 21:23:52 +0000
committerGerrit Code Review <review@openstack.org>2019-09-10 21:23:52 +0000
commit71d805008b36d33730ec75353f4781b0f3dc7eb0 (patch)
tree400cface8e3e0e1c1e2938d55037131f2c9e0ac9
parente8a335b233a1973f7b3d049fa41d06b673c0b402 (diff)
parenta96089ff6d54237a9e058dc1c7e6fc7e25695ecb (diff)
downloadpython-openstackclient-71d805008b36d33730ec75353f4781b0f3dc7eb0.tar.gz
Merge "Default to Cinder v3 API"
-rw-r--r--openstackclient/volume/client.py2
-rw-r--r--releasenotes/notes/volume-v3-default-0ffa9bebb43b5057.yaml7
2 files changed, 8 insertions, 1 deletions
diff --git a/openstackclient/volume/client.py b/openstackclient/volume/client.py
index e0e670a9..fdd1794b 100644
--- a/openstackclient/volume/client.py
+++ b/openstackclient/volume/client.py
@@ -22,7 +22,7 @@ from openstackclient.i18n import _
LOG = logging.getLogger(__name__)
-DEFAULT_API_VERSION = '2'
+DEFAULT_API_VERSION = '3'
API_VERSION_OPTION = 'os_volume_api_version'
API_NAME = "volume"
API_VERSIONS = {
diff --git a/releasenotes/notes/volume-v3-default-0ffa9bebb43b5057.yaml b/releasenotes/notes/volume-v3-default-0ffa9bebb43b5057.yaml
new file mode 100644
index 00000000..a38a5434
--- /dev/null
+++ b/releasenotes/notes/volume-v3-default-0ffa9bebb43b5057.yaml
@@ -0,0 +1,7 @@
+---
+upgrade:
+ - |
+ Volume commands now default to Volume API 3. On older clouds
+ that do not support Volume 3.x ``--os-volume-api-version 2``
+ of the adition of ``volume_api_version: '2' in ``clouds.yaml``
+ will be required.