Skip to content

The test is failing because the credentials in accounts.yaml don't have the required "member" role #51

@abhibongale

Description

@abhibongale
 sb test --regex test_baremetal_server_ops_wholedisk
/home/abongale/.local/lib/python3.14/site-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (6.0.0.post1)/charset_normalizer (3.4.4) doesn't match a supported version!
  warnings.warn(
🧪 Running Tempest tests...

Test filter: test_baremetal_server_ops_wholedisk

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
{1} setUpClass (ironic_tempest_plugin.tests.scenario.test_baremetal_basic_ops.BaremetalBasicOpsAndRescue) ... SKIPPED: Node rescue interface is not enabled.
{0} setUpClass (ironic_tempest_plugin.tests.scenario.test_baremetal_basic_ops.BaremetalBasicOps) [0.000000s] ... FAILED

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 185, in setUpClass
    raise value.with_traceback(trace)

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 170, in setUpClass
    cls.setup_credentials()

      File "/usr/local/lib/python3.10/dist-packages/tempest/scenario/manager.py", line 104, in setup_credentials
    super(ScenarioTest, cls).setup_credentials()

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 398, in setup_credentials
    manager = cls.get_client_manager(

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 743, in get_client_manager
    creds = getattr(cred_provider, credentials_method)()

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 370, in get_primary_creds
    return self.get_project_member_creds()

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 455, in get_project_member_creds
    project_member = self._get_creds(['member'], scope='project')

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 325, in _get_creds
    useable_hashes = self._get_match_hash_list(roles, scope, project_name)

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 240, in _get_match_hash_list
    raise lib_exc.InvalidCredentials(

    tempest.lib.exceptions.InvalidCredentials: Invalid Credentials
Details: No credentials matching role: member, scope: project specified in the accounts file


==============================
Failed 1 tests - output below:
==============================

setUpClass (ironic_tempest_plugin.tests.scenario.test_baremetal_basic_ops.BaremetalBasicOps)
--------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 185, in setUpClass
    raise value.with_traceback(trace)

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 170, in setUpClass
    cls.setup_credentials()

      File "/usr/local/lib/python3.10/dist-packages/tempest/scenario/manager.py", line 104, in setup_credentials
    super(ScenarioTest, cls).setup_credentials()

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 398, in setup_credentials
    manager = cls.get_client_manager(

      File "/usr/local/lib/python3.10/dist-packages/tempest/test.py", line 743, in get_client_manager
    creds = getattr(cred_provider, credentials_method)()

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 370, in get_primary_creds
    return self.get_project_member_creds()

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 455, in get_project_member_creds
    project_member = self._get_creds(['member'], scope='project')

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 325, in _get_creds
    useable_hashes = self._get_match_hash_list(roles, scope, project_name)

      File "/usr/local/lib/python3.10/dist-packages/tempest/lib/common/preprov_creds.py", line 240, in _get_match_hash_list
    raise lib_exc.InvalidCredentials(

    tempest.lib.exceptions.InvalidCredentials: Invalid Credentials
Details: No credentials matching role: member, scope: project specified in the accounts file



======
Totals
======
Ran: 2 tests in 0.0111 sec.
 - Passed: 0
 - Skipped: 1
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 1
Sum of execute time for each test: 0.0000 sec.

==============
Worker Balance
==============
 - Worker 0 (1 tests) => 0:00:00
 - Worker 1 (1 tests) => 0:00:00

No tests were successful during the run

❌ Some tests failed

📊 Test Results:
  error: No test results found
```

2. ironic-tempest-plugin has a hardcoded whitelist of drivers it considers "supported for testing", and redfish isn't included by default (but fake-hardware is)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions