Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

CTS 2.2.0.172 installed and executed, but cts report have error message - exception #63

Open
housemic opened this issue May 30, 2018 · 12 comments

Comments

@housemic
Copy link

Dear Intel,
the issue is related to #62.

my detail logs are in attachment -
2018-05-30-CTS-2-2-Command-and-Report.zip

Question 1 -
CTS 2.2.0.172 installed and list test packages success,
executed test scripts but cts report have error message - exception
when I run the command -
cts execute tests Rack_Scale_2_1_PSME --config_files ./config/psme.ini


Error messages example -

MESSAGE	2018-05-23 16:27:06	-Get https://10.3.0.2/redfish/v1
ERROR	2018-05-23 16:27:06	Unknown exception '<type 'exceptions.TypeError'>:can't pickle instancemethod 
				objects' on Get resource url=https://10.3.0.2/redfish/v1 : ERRORTraceback (most 
				recent call last):
ERROR	2018-05-23 16:27:06	 File "/usr/local/lib/python2.7/dist-packages/cts_core/commons/api_caller.py", 
				line 132, in _perform_call
ERROR	2018-05-23 16:27:06	   self._register_request(http_method, kwargs, response, url)
ERROR	2018-05-23 16:27:06	 File "/usr/local/lib/python2.7/dist-packages/cts_core/commons/api_caller.py", 
				line 194, in _register_request

the results are in attachment - \screenshot\Screenshot-x.png

CTS reports are in attachment - \cts_report\

my installation steps are in attachment - \installation\

cts log in /var/log/cts/ is in attachment - \cts_log\

House

@RobertCMa
Copy link

Hi @housemic ,

While running cts execute, please try adding sudo and let's clarify the access permission.

sudo cts execute tests Rack_Scale_2_1_PSME --config_files ./config/psme.ini

@tmacieje tmacieje added the CTS label Jun 1, 2018
@tmacieje
Copy link
Contributor

tmacieje commented Jun 1, 2018

Hello @housemic

Since CTS v2.2, the tool is distributed with the installer.
INSTALL.sh has the ability to repair some of the incorrect permissions.

You can try to repair permissions with:
[sudo] bash INSTALL.sh --repair

To learn more about the possibilities of the installer, please use:
--help or -i arg for a more interactive mode.

The previous version of CTS (2.1) may cause problems.
You can WIPE ALL old data and install a fresh version with:
[sudo] bash INSTALL.sh --FactoryInstall

If there is a problem with PIP, please run:
[sudo] python -m pip install -U "pip<10"

@housemic
Copy link
Author

housemic commented Jun 4, 2018

Dear RobertCMa,
I use ls -al to check tests scripts that owners are user, and have execution privilege.
and add sudo in command -
sudo cts execute tests Rack_Scale_2_1_POD_Manager --config_files ./config/podm.ini

still have exception error messages that the same as cts log in /var/log/cts/ is in attachment - \cts_log
House

@housemic
Copy link
Author

housemic commented Jun 4, 2018

Dear tmacieje,
the detail results are in attachment -
2018-06-04-comp1-cts-2-2-report.zip

I use these commands -
sudo bash INSTALL.sh --FactoryInstall
sudo bash INSTALL.sh --repair
sudo python -m pip install -U "pip<10"
sudo cts execute tests Rack_Scale_2_1_POD_Manager --config_files ./config/podm.ini

and run CTS again,
CTS reports still have exception error messages -
MESSAGE 2018-06-04 21:06:28 -Get https://10.3.0.1:9443/redfish/v1
ERROR 2018-06-04 21:06:28 Unknown exception '<type 'exceptions.TypeError'>:can't pickle instancemethod
objects' on Get resource url=https://10.3.0.1:9443/redfish/v1 : ERRORTraceback
(most recent call last):
ERROR 2018-06-04 21:06:28 File "/usr/local/lib/python2.7/dist-packages/cts_core/commons/api_caller.py",
line 132, in _perform_call

CTS reports are in attachment - \cts_report-2018-06-04\

House

@RobertCMa
Copy link

Hi @housemic,

From the podm log, the exception failed at the early stage. Besides the parameters are needed to be ready in the configuration file, which can refer to #64, it's suggested to make sure PODM can respond properly with manual operation from the system running cts, such as below:

sudo curl -v -k -u admin:admin -H "Content-Type:application/json" -X GET https://PODM-IP:9443/redfish/v1/ | python -m json.tool

@RobertCMa
Copy link

Hi @housemic,

This issue will be closed due to inactivity. Feel free to open a new one if needed.

@housemic
Copy link
Author

Dear RobertCMa ,
About the PODM test commands (in attachment - 2018-06-04-comp1-cts-2-2-report.zip - cts_report-2018-06-04\cts_report_xx) , I will add hardware check list and re-execute again.
thank you.
House

@housemic
Copy link
Author

Dear RobertCMa ,
new CTS reports are in Attachment -
use CTS 2,2 to run test packages 2.1 -
2018-06-26-comp1-cts-2-2-setup-podm-psme.zip

PODM CTS report is in - attachment - test-report-2
PSME CTS report is in - attachment - test-report-3

still has error message - exception
House

@housemic
Copy link
Author

Dear RobertCMa ,
After I run curl command -
sudo curl -v -k -u admin:admin -H "Content-Type:application/json" -X GET https://PODM-IP:9443/redfish/v1/ | python -m json.tool

PODM can response some information.
Note: Unnecessary use of -X or --request, GET is already inferred.

  • Rebuilt URL to: admin:admin/
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Could not resolve host: admin
  • Closing connection 0
    curl: (6) Could not resolve host: admin
    Note: Unnecessary use of -X or --request, GET is already inferred.
  • Trying 10.3.0.1...
  • Connected to 10.3.0.1 (10.3.0.1) port 9443 (README.md file update #1)
  • found 148 certificates in /etc/ssl/certs/ca-certificates.crt
  • found 597 certificates in /etc/ssl/certs
  • ALPN, offering http/1.1
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256

detail is in attachment -
2018-06-26-comp1-curl-GET.zip

@housemic
Copy link
Author

Dear RobertCMa ,
CTS 2.2 still has exception error messages,
and the error is -
can't pickle instancemethod
I find information about the message in google,
it seems python 2.7.3 issue that some web site say,
Could you have some comments to survey the error message ?
thank you
House

@tmacieje
Copy link
Contributor

@housemic, this generic error can't pickle instancemethod should be fixed in next CTS release.

@housemic
Copy link
Author

Dear tmacieje,
thank you.
House

@RobertCMa RobertCMa added the bug label Jun 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants