Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redfish-Service-Conformance-Check throws an assertion: TypeError: argument of type 'NoneType' is not iterable #163

Closed
maximyep opened this issue Mar 1, 2019 · 7 comments

Comments

@maximyep
Copy link

maximyep commented Mar 1, 2019

Notes:

Currently, I've observed another problem. Please take look:

Steps to reproduce:

  1. Install (if not installed)
    python3 -m pip install openpyxl
    python3 -m pip install requests
    python3 -m pip install beautifulsoup4

  2. Download DMTF-Simulator from git@github.com:DMTF/Redfish-Service-Conformance-Check.git and start
    chmod +x start.sh
    ./start.sh
    redfishProfileSimulator Version: 0.9.6
    Starting redfishProfileSimulator at: hostIP=127.0.0.1, port=5000

  3. Configure properties file with:
    cat properties.json
    ...
    "Password": "password123456",
    "LoginName": "root",
    "DnsName": "127.0.0.1:5000",

  4. Start test with:
    python3 sample_run.py

Test fails with:

Traceback (most recent call last):
File "sample_run.py", line 43, in
rfs_test.run(sut)
File "/home/max/redfish/Redfish-Service-Conformance-Check/rfs_test/init.py", line 48, in run
TEST_protocol_details.run(sut, log)
File "/home/max/redfish/Redfish-Service-Conformance-Check/rfs_test/TEST_protocol_details.py", line 5144, in run
assertion_status = Assertion_6_1_8_3(self, log)
File "/home/max/redfish/Redfish-Service-Conformance-Check/rfs_test/TEST_protocol_details.py", line 352, in Assertion_6_1_8_3
if root_link_key in self.sut_toplevel_uris and self.sut_toplevel_uris[root_link_key]['url']:
TypeError: argument of type 'NoneType' is not iterable

Full logs:
DMTF-Redfish-Service-Conformance-Check-logs-with-fixed-issue-161.txt

@billdodd
Copy link
Contributor

billdodd commented Mar 1, 2019

From the very beginning of your logs:

Setting up Redfish Service Check Tool Revision: 01.05.17 : OpenBmc:127.0.0.1:5000
OPERATIONAL ERROR: GET Request for /redfish FAILED with exeption: <class 'ssl.SSLError'>

The default scheme for the conformance check tool is HTTPS, but the profile simulator only supports HTTP.

To configure the conformance check tool to use HTTP, add "UseHttp": "yes" to your SUTs section in properties.json:

...
    "Password": "password123456",
    "LoginName": "root",
    "DnsName": "127.0.0.1:5000",
    "UseHttp": "yes",
...

@maximyep
Copy link
Author

maximyep commented Mar 4, 2019

It is strange, but the execution fails with: (HTTP status 401)
tried with

  • root/password123456
  • catfish/hunter

seems error somewhere inside emulator.
2019-03-04 12_49_39-myepanes-bmc running - oracle vm virtualbox

@maximyep
Copy link
Author

maximyep commented Mar 4, 2019

I'm not sure for 100% but if following is done:

max@myepanes-bmc:~/redfish/Redfish-Service-Conformance-Check$ git diff rf_sut.py
2019-03-04 14_27_40-myepanes-bmc running - oracle vm virtualbox

test started to work

@billdodd
Copy link
Contributor

billdodd commented Mar 4, 2019

That looks like a bug in the Redfish-Profile-Simulator. Per the Redfish spec, the "/redfish/v1/odata" resource shall not require authentication. It appears the Profile-Simulator is requiring authn for that resource.

@maximyep
Copy link
Author

maximyep commented Mar 4, 2019

Shell a I raise a bug into Profile-Simulator?

@billdodd
Copy link
Contributor

billdodd commented Mar 4, 2019

@maximyep - Yes, please, that would be great.

@mraineri
Copy link
Contributor

Closing; this issue has been open a while and should be addressed with a fix in the Redfish Profile Simulator. Please reopen if the issue still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants