Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1185370
Summary: | hardcoded loglevel DEBUG | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ondřej Pták <optak> | ||||||
Component: | python-urllib2_kerberos | Assignee: | Tomas Dabašinskas <tdabasin> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 21 | CC: | mcepl, mcepl, optak, tdabasin | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | python-urllib2_kerberos-0.1.6-16.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-02-04 08:02:01 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Created attachment 983388 [details]
reproducer (with changed url - not working)
corretting reproducer
python-urllib2_kerberos-0.1.6-16.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-urllib2_kerberos-0.1.6-16.el6 python-urllib2_kerberos-0.1.6-16.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/python-urllib2_kerberos-0.1.6-16.el7 python-urllib2_kerberos-0.1.6-16.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-urllib2_kerberos-0.1.6-16.fc20 python-urllib2_kerberos-0.1.6-16.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/python-urllib2_kerberos-0.1.6-16.fc21 Package python-urllib2_kerberos-0.1.6-16.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing python-urllib2_kerberos-0.1.6-16.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-0440/python-urllib2_kerberos-0.1.6-16.el6 then log in and leave karma (feedback). python-urllib2_kerberos-0.1.6-16.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. python-urllib2_kerberos-0.1.6-16.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. python-urllib2_kerberos-0.1.6-16.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. python-urllib2_kerberos-0.1.6-16.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 983387 [details] reproducer (with changed url - not working) Description of problem: When using urllib2_kerberos.py in script, I see in stdout debug information like this: 2015-01-23 11:13:12,860 DEBUG inside http_error_401 2015-01-23 11:13:12,860 DEBUG authreqs = ['Negotiate'] File /usr/lib/python2.7/site-packages/urllib2_kerberos.py from package python-urllib2_kerberos-0.1.6-13.fc21 contains: "log.setLevel(logging.DEBUG)". I think that there should be other value, such as "logging.WARNING". Debug information appeared in Version-Release number of selected component (if applicable): python-urllib2_kerberos-0.1.6-13.fc21 How reproducible: always Steps to Reproduce: Run attached reproducer. Actual results: 2015-01-23 12:48:24,663 DEBUG inside http_error_401 2015-01-23 12:48:24,664 DEBUG authreqs = ['Negotiate'] 2015-01-23 12:48:24,664 DEBUG retry count: 1 2015-01-23 12:48:24,665 DEBUG req.get_host() returned some.server.com 2015-01-23 12:48:24,665 DEBUG authGSSClientInit() succeeded 2015-01-23 12:48:24,968 DEBUG authGSSClientStep() succeeded 2015-01-23 12:48:24,969 DEBUG authGSSClientResponse() succeeded 2015-01-23 12:48:25,749 DEBUG resp = <addinfourl at 140317978867760 whose fp = <socket._fileobject object at 0x7f9e53b6ccd0>> 2015-01-23 12:48:25,749 DEBUG resp = type <type 'instance'> 2015-01-23 12:48:25,749 DEBUG cleaning context Expected results: <empty output> Additional info: * URL was changed, probably there has to be some kerberos server . * I can confirm fix or help with debugging. * This works for me as fix, though I'm not sure this is the right approach: sudo sed -i "s/setLevel(logging.DEBUG)/setLevel(logging.WARNING)/" /usr/lib/python2.7/site-packages/urllib2_kerberos.py