Bug 1415758
Summary: | KeyError: u'volumes' | ||
---|---|---|---|
Product: | Red Hat Certification Program | Reporter: | Gonéri Le Bouder <goneri> |
Component: | redhat-certification-openstack | Assignee: | Anshul Behl <abehl> |
Status: | CLOSED NOTABUG | QA Contact: | Anshul Behl <abehl> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.0 | CC: | gnichols, goneri, hrivero, mbracho, yguenane |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-04 13:15:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gonéri Le Bouder
2017-01-23 16:21:06 UTC
Hi Goneri, I think you would probably want to use something like, $rhcert-ci run --test cinder --key-file /home/stack/key.file --debug high with the test_config.json mentioned above, that should work fine. Error is happening because you are basically running every test which includes neutron cert and volumes api doesn't exist there. I thought it was the purpose of the plugin_type key. I still believe this is a bug because the content of the supported_apis_and_extensions section will never match what all the tests can run and the user will always get these KeyError messages. --test should be a mandatory parameter. Could we have a configuration key to pass the name of the test to run? The --test parameter is not enough to avoid all the errors: [stack@director ~]$ sudo rhcert-ci run --test cinder --key-file /home/stack/key.file --debug high --mode auto (...) setting testserver to IP 127.0.0.1 Test Parameters: outputfile=/var/log/rhcert/runs/1/openstack/cinder/output.log testserver=127.0.0.1 Checking installed rpms: openstack-tempest-13.0.0-9.bafe630git.el7ost.noarch sos-3.3-5.el7_3.noarch python-neutron-tests-9.1.1-2.el7ost.noarch python-neutron-lbaas-tests-9.1.0-2.el7ost.noarch python-sahara-tests-5.0.0-4.el7ost.noarch python-tempest-lib-1.0.0-1.el7ost.noarch All required packages installed Subtest: Configuration - Check tempest configuration Configuring tempest Error: Exception raised in test openstack/cinder: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/rhcert/client/harness.py", line 1055, in runTest rv = test.run() File "/usr/lib/python2.7/site-packages/rhcert/suites/openstack_cert/common.py", line 473, in run description="Check tempest configuration")) File "/usr/lib/python2.7/site-packages/rhcert/test.py", line 363, in runSubTest result = subtestFunction() File "/usr/lib/python2.7/site-packages/rhcert/suites/openstack_cert/common.py", line 306, in pre_run self.map_apis_to_tests() File "/usr/lib/python2.7/site-packages/rhcert/suites/openstack_cert/common.py", line 316, in map_apis_to_tests self.tempest_test_list = tempest_test.get_tempest_mapped_tests() File "/usr/lib/python2.7/site-packages/rhcert/suites/openstack_cert/tempest_tests.py", line 42, in get_tempest_mapped_tests self.policy_test_list = self.get_policy_test_list() File "/usr/lib/python2.7/site-packages/rhcert/suites/openstack_cert/tempest_tests.py", line 37, in get_policy_test_list self.policy_test_regex.append(self.cert_type[api]) KeyError: u'vpnaas' copying attachments... checking directory /var/log/rhcert/runs/1/openstack/cinder Skipping output.log Warning: Unicode decode error in /var/log/messages 'ascii' codec can't decode byte 0xe2 in position 128: ordinal not in range(128) Warning: Unicode decode error in /var/log/messages 'ascii' codec can't decode byte 0xe2 in position 128: ordinal not in range(128) Warning: Unicode decode error in /var/log/messages 'ascii' codec can't decode byte 0xe2 in position 128: ordinal not in range(128) Warning: Unicode decode error in /var/log/messages 'ascii' codec can't decode byte 0xe2 in position 128: ordinal not in range(128) Warning: Unicode decode error in /var/log/messages 'ascii' codec can't decode byte 0xe2 in position 130: ordinal not in range(128) Warning: Unicode decode error in /var/log/messages 'ascii' codec can't decode byte 0xe2 in position 130: ordinal not in range(128) Error: Could not find log messages in /var/log/messages! saveOutput: /var/log/rhcert/runs/1/openstack/cinder/output.log Warning: could not merge output XML, reading as text file. no element found: line 33, column 0 Return value was False saved to /var/rhcert/results.xml My bad, the supported_apis_and_extensions was not correct. |