Bug 735937
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, 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: | |
Embargoed: |
Description
Petr Sklenar
2011-09-06 08:13:45 UTC
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. |