| Summary: | Misleading error message when cached admin cert has expired | ||
|---|---|---|---|
| Product: | [Community] PulpDist | Reporter: | Nick Coghlan <ncoghlan> |
| Component: | Management CLI | Assignee: | Nick Coghlan <ncoghlan> |
| Status: | CLOSED EOL | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | ||
| Target Milestone: | 0.2.0 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-29 03:04:29 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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. |
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.