| Summary: | RPC: 401 Authorization Required after 1000sec on Fedora | ||
|---|---|---|---|
| Product: | [Other] TCMS | Reporter: | Petr Sklenar <psklenar> |
| Component: | Usability | Assignee: | June Zhang <junzhang> |
| Status: | VERIFIED --- | QA Contact: | Nobody <nobody> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.0 | CC: | azelinka, cqi, jcai, junzhang, jzhao, ohudlick, ryang, xkuang, yuwang |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 3.6.3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Hi Petr Sklenar Could you help to try again on TCMS 3.6 now and confirm whether can reproduce this issue on TCMS 3.6? Thanks it was not fixed: Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ Total requests handled: 100 Traceback (most recent call last): File "/tmp/test.py", line 9, in <module> print TestPlan(289) File "/usr/share/qa-tools/Nitrate.py", line 1844, in __str__ return "{0} - {1}".format(self.identifier, self.name) File "/usr/share/qa-tools/Nitrate.py", line 233, in getter self._get() File "/usr/share/qa-tools/Nitrate.py", line 1922, in _get testplanhash = self._server.TestPlan.get(self.id) File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.7/xmlrpclib.py", line 1570, in __request verbose=self.__verbose File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/usr/share/qa-tools/nitrate.py", line 174, in single_request_with_cookies response.msg, xmlrpclib.ProtocolError: <ProtocolError for tcms.engineering.redhat.com/xmlrpc/: 401 Authorization Required> -- 1, test script needs package qa-tools, wget -O /etc/yum.repos.d/qa-tools.repo http://liver.englab.brq.redhat.com/repo/qa-tools.repo yum -y install -y qa-tools 2, cat /tmp/test.py #!/usr/bin/python -i # readline & tab completion support import sys, rlcompleter, readline sys.path.append("/usr/share/qa-tools") from Nitrate import * import time for i in range(10000): print TestPlan(289) time.sleep(10) print Nitrate() 3, python /tmp/test.py causes the issue Make sure your Kerberos ticket does not expire while the code is running. (In reply to comment #2) > it was not fixed: > Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ > Total requests handled: 100 > Traceback (most recent call last): > File "/tmp/test.py", line 9, in <module> > print TestPlan(289) > File "/usr/share/qa-tools/Nitrate.py", line 1844, in __str__ > return "{0} - {1}".format(self.identifier, self.name) > File "/usr/share/qa-tools/Nitrate.py", line 233, in getter > self._get() > File "/usr/share/qa-tools/Nitrate.py", line 1922, in _get > testplanhash = self._server.TestPlan.get(self.id) > File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__ > return self.__send(self.__name, args) > File "/usr/lib64/python2.7/xmlrpclib.py", line 1570, in __request > verbose=self.__verbose > File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request > return self.single_request(host, handler, request_body, verbose) > File "/usr/share/qa-tools/nitrate.py", line 174, in > single_request_with_cookies > response.msg, > xmlrpclib.ProtocolError: <ProtocolError for > tcms.engineering.redhat.com/xmlrpc/: 401 Authorization Required> > -- > 1, test script needs package qa-tools, > > wget -O /etc/yum.repos.d/qa-tools.repo > http://liver.englab.brq.redhat.com/repo/qa-tools.repo > yum -y install -y qa-tools > > 2, cat /tmp/test.py > #!/usr/bin/python -i > > # readline & tab completion support > import sys, rlcompleter, readline > sys.path.append("/usr/share/qa-tools") > from Nitrate import * > import time > for i in range(10000): > print TestPlan(289) > time.sleep(10) > print Nitrate() > > 3, python /tmp/test.py > causes the issue (In reply to comment #2) > it was not fixed: > Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ > Total requests handled: 100 > Traceback (most recent call last): > File "/tmp/test.py", line 9, in <module> > print TestPlan(289) > File "/usr/share/qa-tools/Nitrate.py", line 1844, in __str__ > return "{0} - {1}".format(self.identifier, self.name) > File "/usr/share/qa-tools/Nitrate.py", line 233, in getter > self._get() > File "/usr/share/qa-tools/Nitrate.py", line 1922, in _get > testplanhash = self._server.TestPlan.get(self.id) > File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__ > return self.__send(self.__name, args) > File "/usr/lib64/python2.7/xmlrpclib.py", line 1570, in __request > verbose=self.__verbose > File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request > return self.single_request(host, handler, request_body, verbose) > File "/usr/share/qa-tools/nitrate.py", line 174, in > single_request_with_cookies > response.msg, > xmlrpclib.ProtocolError: <ProtocolError for > tcms.engineering.redhat.com/xmlrpc/: 401 Authorization Required> > -- > 1, test script needs package qa-tools, > > wget -O /etc/yum.repos.d/qa-tools.repo > http://liver.englab.brq.redhat.com/repo/qa-tools.repo > yum -y install -y qa-tools > > 2, cat /tmp/test.py > #!/usr/bin/python -i > > # readline & tab completion support > import sys, rlcompleter, readline > sys.path.append("/usr/share/qa-tools") > from Nitrate import * > import time > for i in range(10000): > print TestPlan(289) > time.sleep(10) > print Nitrate() > > 3, python /tmp/test.py > causes the issue Code has been changed in nitrate.py. You may use new nitrate.py instead of the old one after the release of TCMS 3.6.3. |
Description of problem: there is error '401 Authorization Required' on fedora Rhel6 is OK Version-Release number of selected component (if applicable): Nitrate 3.5.0 © 2011 Red Hat, Inc. All rights reserved. python-2.7-8.fc14.1.x86_64 How reproducible: deterministic Steps to Reproduce: 1. have a simple script which uses kerberos authentication, for ex: from Nitrate import * import time for i in range(10000): print TestPlan(289) time.sleep(10) print Nitrate() Nitrate.py: http://git.engineering.redhat.com/?p=users/psplicha/tcms;a=tree 2, start script and wait 1000s Actual results: Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ Total requests handled: 96 TP#289 - Tessst plan Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ Total requests handled: 97 TP#289 - Tessst plan Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ Total requests handled: 98 TP#289 - Tessst plan Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ Total requests handled: 99 TP#289 - Tessst plan Nitrate server: https://tcms.engineering.redhat.com/xmlrpc/ Total requests handled: 100 Traceback (most recent call last): File "./createplanbytag.py", line 186, in <module> print TestPlan(289) File "/usr/share/qa-tools/Nitrate.py", line 1705, in __str__ return "{0} - {1}".format(self.identifier, self.name) File "/usr/share/qa-tools/Nitrate.py", line 193, in getter self._get() File "/usr/share/qa-tools/Nitrate.py", line 1783, in _get testplanhash = self._server.TestPlan.get(self.id) File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.7/xmlrpclib.py", line 1570, in __request verbose=self.__verbose File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/usr/share/qa-tools/nitrate.py", line 174, in single_request_with_cookies response.msg, xmlrpclib.ProtocolError: <ProtocolError for tcms.engineering.redhat.com/xmlrpc/: 401 Authorization Required> Expected results: Additional info: Important thing to add !!!! it works on RHEL6, it looks like it communicates with kerberos server during each request thats why it work and its slower.