diff --git a/README.rst b/README.rst index ac616d705..63d67c7eb 100644 --- a/README.rst +++ b/README.rst @@ -90,7 +90,7 @@ You'll find complete documentation on the shell by running [--os-endpoint-type ] [--endpoint-type ] [--os-volume-api-version ] - [--bypass-url ] [--retries ] + [--retries ] [--profile HMAC_KEY] [--os-auth-strategy ] [--os-username ] [--os-password ] [--os-tenant-name ] @@ -254,6 +254,9 @@ You'll find complete documentation on the shell by running --volume-service-name Volume service name. Default=env[CINDER_VOLUME_SERVICE_NAME]. + --os-endpoint + Use this API endpoint instead of the Service Catalog. + Default=env[CINDER_ENDPOINT] --os-endpoint-type Endpoint type, which is publicURL or internalURL. Default=env[OS_ENDPOINT_TYPE] or nova @@ -264,9 +267,6 @@ You'll find complete documentation on the shell by running Block Storage API version. Accepts X, X.Y (where X is major and Y is minor part).Default=env[OS_VOLUME_API_VERSION]. - --bypass-url - Use this API endpoint instead of the Service Catalog. - Defaults to env[CINDERCLIENT_BYPASS_URL]. --retries Number of retries. --profile HMAC_KEY HMAC key to use for encrypting context data for performance profiling of operation. This key needs to diff --git a/cinderclient/client.py b/cinderclient/client.py index 068d05952..6783dc8c6 100644 --- a/cinderclient/client.py +++ b/cinderclient/client.py @@ -485,9 +485,8 @@ class HTTPClient(object): version = get_volume_api_from_url(self.management_url) except exceptions.UnsupportedVersion as e: if self.management_url == self.bypass_url: - msg = (_("Invalid url was specified in --os-endpoint or " - "environment variable CINDERCLIENT_BYPASS_URL.\n" - "%s") % six.text_type(e)) + msg = (_("Invalid url was specified in --os-endpoint %s") + % six.text_type(e)) else: msg = (_("Service catalog returned invalid url.\n" "%s") % six.text_type(e)) diff --git a/doc/source/cli/details.rst b/doc/source/cli/details.rst index 9ced4c66d..e182fa5b6 100644 --- a/doc/source/cli/details.rst +++ b/doc/source/cli/details.rst @@ -43,7 +43,7 @@ cinder usage [--os-endpoint-type ] [--endpoint-type ] [--os-volume-api-version ] - [--bypass-url ] [--os-endpoint ] + [--os-endpoint ] [--retries ] [--profile HMAC_KEY] [--os-auth-strategy ] [--os-username ] [--os-password ] @@ -877,14 +877,9 @@ cinder optional arguments major and Y is minor part).Default= ``env[OS_VOLUME_API_VERSION]``. -``--bypass-url `` - **DEPRECATED!** Use os_endpoint. Use this API endpoint - instead of the Service Catalog. Defaults to - ``env[CINDERCLIENT_BYPASS_URL]``. - ``--os-endpoint `` Use this API endpoint instead of the Service Catalog. - Defaults to ``env[CINDER_ENDPOINT]``. + Default=``env[CINDER_ENDPOINT]`` ``--retries `` Number of retries. diff --git a/doc/source/user/no_auth.rst b/doc/source/user/no_auth.rst index 71a65e9e9..597b69abc 100644 --- a/doc/source/user/no_auth.rst +++ b/doc/source/user/no_auth.rst @@ -16,7 +16,7 @@ Using cinderclient To use the cinderclient you'll need to set the following env variables:: OS_AUTH_TYPE=noauth - CINDERCLIENT_BYPASS_URL=http://:8776/v3 + CINDER_ENDPOINT=http://:8776/v3 OS_PROJECT_ID=foo OS_VOLUME_API_VERSION=3.10 @@ -27,6 +27,6 @@ point, it's noauth. Each of these options can also be specified on the cmd line:: cinder --os-auth-type=noauth \ - --bypass-url=http://:8776/v3 \ + --os-endpoint=http://:8776/v3 \ --os-project-id=admin \ --os-volume-api-version=3.10 list