Actions
Issue #961
closedpulp-admin should print SSL errors without requiring -v
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
Right now, if you have a certificate mismatch, you will see this:
$ pulp-admin rpm repo create --repo-id test
An error occurred attempting to contact the server. More information may be
found using the -v flag.
With -v, we can see that the error is that my client cert wasn't signed by the correct CA:
$ pulp-admin -v rpm repo create --repo-id test
2015-05-07 20:14:45,758 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/home/vagrant/devel/pulp/client_lib/pulp/client/extensions/core.py", line 474, in run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/home/vagrant/devel/pulp/client_lib/pulp/client/extensions/extensions.py", line 210, in execute
return self.method(*arg_list, **clean_kwargs)
File "/home/vagrant/devel/pulp_rpm/extensions_admin/pulp_rpm/extensions/admin/repo_create_update.py", line 123, in run
ids.TYPE_ID_IMPORTER_YUM, importer_config, distributors
File "/home/vagrant/devel/pulp/bindings/pulp/bindings/repository.py", line 81, in create_and_configure
return self.server.POST(path, repo_data)
File "/home/vagrant/devel/pulp/bindings/pulp/bindings/server.py", line 97, in POST
return self._request('POST', path, body=body, ensure_encoding=ensure_encoding)
File "/home/vagrant/devel/pulp/bindings/pulp/bindings/server.py", line 141, in _request
response_code, response_body = self.server_wrapper.request(method, url, body)
File "/home/vagrant/devel/pulp/bindings/pulp/bindings/server.py", line 332, in request
raise exceptions.ConnectionException(None, str(err), None)
ConnectionException: (None, 'tlsv1 alert decrypt error', None)
An error occurred attempting to contact the server. More information may be
found using the -v flag.
It would have been more helpful if the 'tlsv1 alert decrypt error' message had been printed without -v instead of such a generic message.
Actions