New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[py3] ipactl restart: log httplib failues as debug #429
Conversation
ipapython/dogtag.py
Outdated
| @@ -209,7 +210,8 @@ def _httplib_request( | |||
| http_body = res.read() | |||
| conn.close() | |||
| except Exception as e: | |||
| root_logger.exception("httplib request failed:") | |||
| root_logger.debug("httplib request failed") | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of traceback.format.exc(), use root_logger.debug("httplib request failed", exc_info=True) to log message with traceback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
This happens with python2.7 too, I reproduced it today |
|
Yeah, I reported the issue as https://fedorahosted.org/freeipa/ticket/6674 . Feel free to close it as duplicate. |
|
I don't see what this has to do with Py3. The issue is the same on Py2. Swap the ticket for the one of @tiran and I'll ack this. If this gets triaged for 4.4 as well we can backport it later. |
There are several excerptions ConnectionRefusedError raised before ipactl is able to connect to dogtag after restart. These exception should be logged on debug level until timeout is reached. https://fedorahosted.org/freeipa/ticket/6674
|
Ticket corrected, commit msg ammended |
|
Thanks, ACK. |
|
Fixed upstream |
With python3 there are several excerptions ConnectionRefusedError raised
before ipactl is able to connect to dogtag after restart. These
exception should be logged on debug level until timeout is reached.
https://fedorahosted.org/freeipa/ticket/4985