diff --git a/nova/volume/cinder.py b/nova/volume/cinder.py index 98794058b295..0ebb56939bbb 100644 --- a/nova/volume/cinder.py +++ b/nova/volume/cinder.py @@ -88,6 +88,10 @@ def cinderclient(context): if version == '1': raise exception.UnsupportedCinderAPIVersion(version=version) + if version == '2': + LOG.warning("The support for the Cinder API v2 is deprecated, please " + "upgrade to Cinder API v3.") + if version == '3': # TODO(ildikov): Add microversion support for picking up the new # attach/detach API that was added in 3.27. diff --git a/releasenotes/notes/deprecate-the-cinder-v2-support-0cebc90580a3e80f.yaml b/releasenotes/notes/deprecate-the-cinder-v2-support-0cebc90580a3e80f.yaml new file mode 100644 index 000000000000..d22a8d3cc642 --- /dev/null +++ b/releasenotes/notes/deprecate-the-cinder-v2-support-0cebc90580a3e80f.yaml @@ -0,0 +1,5 @@ +deprecations: +- | + Nova support for using the Block Storage (Cinder) v2 API is now deprecated + and will be removed in the 17.0.0 Queens release. The v3 API is now the + default and is backward compatible with the v2 API. \ No newline at end of file