Bug 805763 - Misleading error message when cached admin cert has expired
Summary: Misleading error message when cached admin cert has expired
Keywords:
Status: CLOSED EOL
Alias: None
Product: PulpDist
Classification: Community
Component: Management CLI
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 0.2.0
Assignee: Nick Coghlan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 03:38 UTC by Nick Coghlan
Modified: 2016-09-29 03:04 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-29 03:04:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Nick Coghlan 2012-03-22 03:38:15 UTC
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-29 03:04:29 UTC
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.