From cccc937554e59e36d916d211875de8fd7a9337d7 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 23 Sep 2015 17:44:14 +0200 Subject: [PATCH] Disable the in tree EC2 API by default As of Kilo the in tree EC2 API is marked as deprecated and should not be enabled by default. This will solve the following issue when working with the default values. ---snip--- Deprecated: The in tree EC2 API is deprecated as of Kilo release and may be removed in a future release. The stackforge ec2-api project http://git.openstack.org/cgit/stackforge/ec2-api/ is the target replacement for this functionality. ---snap--- Change-Id: Ia6f1d8f9c7d700498b6441a6ba37fa25b2611ef8 --- nova/service.py | 2 +- .../notes/disable_ec2_api_by_default-0ec0946433fc7119.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/disable_ec2_api_by_default-0ec0946433fc7119.yaml diff --git a/nova/service.py b/nova/service.py index e5137abf0afe..ee79735bf008 100644 --- a/nova/service.py +++ b/nova/service.py @@ -58,7 +58,7 @@ service_opts = [ ' periodic task scheduler to reduce stampeding.' ' (Disable by setting to 0)'), cfg.ListOpt('enabled_apis', - default=['ec2', 'osapi_compute', 'metadata'], + default=['osapi_compute', 'metadata'], help='A list of APIs to enable by default'), cfg.ListOpt('enabled_ssl_apis', default=[], diff --git a/releasenotes/notes/disable_ec2_api_by_default-0ec0946433fc7119.yaml b/releasenotes/notes/disable_ec2_api_by_default-0ec0946433fc7119.yaml new file mode 100644 index 000000000000..cc67cd318c9d --- /dev/null +++ b/releasenotes/notes/disable_ec2_api_by_default-0ec0946433fc7119.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - As of Kilo the in tree EC2 API is marked as deprecated. + The in tree EC2 API is now disabled by default. You have + to add ``ec2`` to the ``enabled_apis`` configuration parameter + if you stil want to use it.