Tempest test test_delete_namespace fails

Bug #1983394 reported by Konstantinos Kaskavelis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Glance Charm
New
Undecided
Unassigned

Bug Description

Tempest test glance_tempest_plugin.tests.rbac.v2.metadefs.test_namespaces.ProjectReaderTests.test_delete_namespace
fails w/ error:

Traceback (most recent call last):
  File "/snap/fcbtest/34/lib/python3.10/site-packages/glance_tempest_plugin/tests/rbac/v2/metadefs/test_namespaces.py", line 245, in test_delete_namespace
    assertDeleteNamespace(actual_ns, self.project_id,
  File "/snap/fcbtest/34/lib/python3.10/site-packages/glance_tempest_plugin/tests/rbac/v2/metadefs/test_namespaces.py", line 238, in assertDeleteNamespace
    self.do_request('delete_namespace',
  File "/snap/fcbtest/34/lib/python3.10/site-packages/glance_tempest_plugin/tests/rbac/v2/base.py", line 39, in do_request
    self.assertRaises(expected_status,
  File "/snap/fcbtest/34/lib/python3.10/site-packages/testtools/testcase.py", line 467, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/snap/fcbtest/34/lib/python3.10/site-packages/testtools/testcase.py", line 480, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: <bound method NamespacesClient.delete_namespace of <tempest.lib.services.image.v2.namespaces_client.NamespacesClient object at 0x7fa7b99df6d0>> returned {}

Test run:

https://solutions.qa.canonical.com/testruns/testRun/bd8a0d9b-cbf4-4645-9825-080cd3889d96

Logs:

https://oil-jenkins.canonical.com/artifacts/bd8a0d9b-cbf4-4645-9825-080cd3889d96/index.html

Tags: cdo-tempest
Revision history for this message
Bas de Bruijne (basdbruijne) wrote :

Looking at the test code [0], it looks like glance throws a different error than what the test expects as reason for not to be able to delete the namespace. I think this may also be a case of incorrect keystone policy.

[0] https://github.com/openstack/glance-tempest-plugin/blob/0.4.0/glance_tempest_plugin/tests/rbac/v2/metadefs/test_namespaces.py#L229

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

It looks like the test runner might be on jammy; try it on focal, as upstream haven't transited to jammy yet (but they are starting to test tempest on it)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.