Add info how to avoid issues with token expiration

This commit adds strings that describe how to prevent situations
related to the issues with token expiration during big file upload.

DocImpact

Change-Id: Iddc78a8ce32b78aefe5b702d35b30c13935117bf
Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>
This commit is contained in:
Olena Logvinova 2015-06-05 18:27:36 +03:00 committed by Mike Fedosin
parent b682d5de77
commit ec1b187544
2 changed files with 9 additions and 1 deletions

View File

@ -272,6 +272,9 @@ specified (see below). If admin credentials are specified then they are
used to generate a token; this token rather than the original user's
token is used for requests to the registry.
To prevent failures with token expiration during big files upload,
it is recommended to set this parameter to False.
* ``admin_user=USER``
If 'use_user_token' is not in effect then admin credentials can be
specified. Use this parameter to specify the username.

View File

@ -54,7 +54,12 @@ registry_client_opts = [
registry_client_ctx_opts = [
cfg.BoolOpt('use_user_token', default=True,
help=_('Whether to pass through the user token when '
'making requests to the registry.')),
'making requests to the registry. To prevent '
'failures with token expiration during big '
'files upload, it is recommended to set this '
'parameter to False.'
'If "use_user_token" is not in effect, then '
'admin credentials can be specified.')),
cfg.StrOpt('admin_user', secret=True,
help=_('The administrators user name. '
'If "use_user_token" is not in effect, then '