intel / intelRSD

Intel® Rack Scale Design Reference Software
http://intel.com/IntelRSD
101 stars 55 forks source link

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

Open housemic opened 6 years ago

housemic commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Hi @housemic,

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

housemic commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.

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

housemic commented 6 years ago

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 commented 6 years ago

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

housemic commented 6 years ago

Dear tmacieje, thank you. House