Bug 805763 - Misleading error message when cached admin cert has expired
Misleading error message when cached admin cert has expired
Status: CLOSED EOL
Product: PulpDist
Classification: Community
Component: Management CLI (Show other bugs)
unspecified
Unspecified Unspecified
medium Severity medium
: 0.2.0
: ---
Assigned To: Nick Coghlan
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-21 23:38 EDT by Nick Coghlan
Modified: 2016-09-28 23:04 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-09-28 23:04:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nick Coghlan 2012-03-21 23:38:15 EDT
Due to the way the management CLI currently handles authentication (i.e. relying on the cached credentials from running "pulp-admin auth login"), it gives a really misleading error message when those credentials are stale.

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/bne/ncoghlan/pulpdist/src/pulpdist/manage_repos.py", line 18, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/pulpdist/cli/repo_cli.py", line 46, in main
    return args.command_factory(args)()
  File "/usr/lib/python2.7/site-packages/pulpdist/cli/commands.py", line 146, in __call__
    repos = self._get_repos()
  File "/usr/lib/python2.7/site-packages/pulpdist/cli/commands.py", line 131, in _get_repos
    repo_configs = self.site_config.get_repo_configs(
  File "/usr/lib/python2.7/site-packages/pulpdist/cli/commands.py", line 83, in site_config
    self._load_site_config()
  File "/usr/lib/python2.7/site-packages/pulpdist/cli/commands.py", line 103, in _load_site_config
    config_data = server.get_repos()
  File "/usr/lib/python2.7/site-packages/pulpdist/core/pulpapi.py", line 138, in get_repos
    return PulpRepositories(self).get_list()
  File "/usr/lib/python2.7/site-packages/pulpdist/core/pulpapi.py", line 49, in get_list
    return _response_data(self.server.GET(path))
  File "/usr/lib/python2.7/site-packages/pulp/client/api/server.py", line 317, in GET
    return self._request('GET', path, queries)
  File "/usr/lib/python2.7/site-packages/pulp/client/api/server.py", line 268, in _request
    raise ServerRequestError(None, str(err), None)
pulp.client.api.server.ServerRequestError: (None, 'sslv3 alert certificate expired', None)

This makes it look as if the SSL cert on the server has expired, when it is in fact a problem with a stale cert in the local cache.
Comment 1 Nick Coghlan 2016-09-28 23:04:29 EDT
Marking all remaining PulpDist issues as CLOSED-EOL

It doesn't make sense to leave these issues open, as PulpDist hasn't been in active development for quite some time, and restarting development would involve a significant modernisation effort that would likely render many of these requests irrelevant.

Note You need to log in before you can comment on or make changes to this bug.