From 0bdd24518e95279b77514a1e16443f9941a8bb38 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Thu, 8 Dec 2016 19:44:01 +0200 Subject: [PATCH] Deprecate volume_service_name argument We forgot about it while removing all methods related to Volume API. Change-Id: I465b91a17e2633ae876c0011bc8af6ec475c8d48 --- novaclient/client.py | 2 +- novaclient/shell.py | 5 ----- novaclient/v2/client.py | 3 --- ...deprecate-volume-service-name-arg-4c65e8866f9624dd.yaml | 7 +++++++ 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 releasenotes/notes/deprecate-volume-service-name-arg-4c65e8866f9624dd.yaml diff --git a/novaclient/client.py b/novaclient/client.py index ec07c38f5..282054f70 100644 --- a/novaclient/client.py +++ b/novaclient/client.py @@ -138,7 +138,6 @@ def _construct_http_client(api_version=None, user_domain_name=None, user_id=None, username=None, - volume_service_name=None, **kwargs): if not session: if not auth and auth_token: @@ -331,6 +330,7 @@ def Client(version, username=None, password=None, project_id=None, _check_arguments(kwargs, "Ocata", "proxy_tenant_id") _check_arguments(kwargs, "Ocata", "proxy_token") _check_arguments(kwargs, "Ocata", "connection_pool") + _check_arguments(kwargs, "Ocata", "volume_service_name") api_version, client_class = _get_client_class_and_version(version) kwargs.pop("direct_use", None) diff --git a/novaclient/shell.py b/novaclient/shell.py index e6c6bcc01..43953f960 100644 --- a/novaclient/shell.py +++ b/novaclient/shell.py @@ -231,7 +231,6 @@ class SecretsHelper(object): self.client.endpoint_type, self.client.service_type, self.client.service_name, - self.client.volume_service_name, ] for (index, key) in enumerate(keys): if key is None: @@ -671,10 +670,8 @@ class OpenStackComputeShell(object): insecure = args.insecure service_type = args.service_type service_name = args.service_name - volume_service_name = args.volume_service_name endpoint_override = args.endpoint_override os_cache = args.os_cache - cert = args.os_cert cacert = args.os_cacert cert = args.os_cert timeout = args.timeout @@ -762,7 +759,6 @@ class OpenStackComputeShell(object): region_name=os_region_name, endpoint_type=endpoint_type, extensions=self.extensions, service_type=service_type, service_name=service_name, auth_token=auth_token, - volume_service_name=volume_service_name, timings=args.timings, endpoint_override=endpoint_override, os_cache=os_cache, http_log_debug=args.debug, cacert=cacert, cert=cert, timeout=timeout, @@ -830,7 +826,6 @@ class OpenStackComputeShell(object): region_name=os_region_name, endpoint_type=endpoint_type, extensions=self.extensions, service_type=service_type, service_name=service_name, auth_token=auth_token, - volume_service_name=volume_service_name, timings=args.timings, endpoint_override=endpoint_override, os_cache=os_cache, http_log_debug=args.debug, cacert=cacert, cert=cert, timeout=timeout, diff --git a/novaclient/v2/client.py b/novaclient/v2/client.py index 35158fc9a..514fb5e4a 100644 --- a/novaclient/v2/client.py +++ b/novaclient/v2/client.py @@ -98,7 +98,6 @@ class Client(object): user_domain_name=None, user_id=None, username=None, - volume_service_name=None, **kwargs): """Initialization of Client object. @@ -134,7 +133,6 @@ class Client(object): :param str user_domain_name: Name of user domain :param str user_id: User ID :param str username: Username - :param str volume_service_name: Volume Service Name """ if direct_use: raise exceptions.Forbidden( @@ -256,7 +254,6 @@ class Client(object): user_domain_name=user_domain_name, user_id=user_id, username=username, - volume_service_name=volume_service_name, **kwargs) @property diff --git a/releasenotes/notes/deprecate-volume-service-name-arg-4c65e8866f9624dd.yaml b/releasenotes/notes/deprecate-volume-service-name-arg-4c65e8866f9624dd.yaml new file mode 100644 index 000000000..26de99b53 --- /dev/null +++ b/releasenotes/notes/deprecate-volume-service-name-arg-4c65e8866f9624dd.yaml @@ -0,0 +1,7 @@ +--- +deprecations: + - CLI argument for volume_service_name was deprecated long time ago. All + novaclient's methods for communication with Volume API were deprecated and + removed. There is no need to leave **volume_service_name** argument of + novaclient.client.Client entry-point since it is not used anywhere, + so it is removed now.