diff --git a/nova/conf/glance.py b/nova/conf/glance.py index fb0e7d97ebf5..388dea5296fd 100644 --- a/nova/conf/glance.py +++ b/nova/conf/glance.py @@ -42,14 +42,11 @@ should be fully qualified urls of the form 'via the direct_url. Currently supported schemes: ' '[file].'), cfg.BoolOpt('use_glance_v1', - default=True, + default=False, help=""" -This flag is a temporary conf value to segregate paths between glance v1 -and glance v2 API usage inside the nova image proxy. This is set to True -by default to use Glance V1 APIs as default. However, it would be flipped -to False, once the nova image proxy is ready to adopt V2 APIs. Eventually -this flag would be deprecated once the proxy gets rid of all the glance -V1 API code. +This flag allows reverting to glance v1 if for some reason glance v2 doesn't +work in your environment. This will only exist in Newton, and a fully working +Glance v2 will be a hard requirement in Ocata. * Possible values: @@ -66,8 +63,8 @@ V1 API code. None """, deprecated_for_removal=True, - deprecated_reason='This is a temporary flag to be removed ' - 'as soon as the V2 path works'), + deprecated_reason='Glance v1 support will be removed in ' + 'Ocata'), cfg.BoolOpt('verify_glance_signatures', default=False, help='Require Nova to perform signature verification on ' diff --git a/releasenotes/notes/glance_v2-15b080e361804976.yaml b/releasenotes/notes/glance_v2-15b080e361804976.yaml new file mode 100644 index 000000000000..570399a19a26 --- /dev/null +++ b/releasenotes/notes/glance_v2-15b080e361804976.yaml @@ -0,0 +1,14 @@ +--- +features: + + - Nova now defaults to using the glance version 2 protocol for all + backend operations for all virt drivers. A ``use_glance_v1`` + config option exists to revert to glance version 1 protocol if + issues are seen, however that will be removed early in Ocata, and + only glance version 2 protocol will be used going forward. + +upgrade: + + - It is now required that the glance environment used by Nova + exposes the version 2 REST API. This API has been available for + many years, but previously Nova only used the version 1 API.