-
Task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
Failure:
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/var/lib/tempest/external-plugins/.venv/lib64/python3.9/site-packages/nfv_tempest_plugin/tests/scenario/test_igmp_snooping_usecases.py", line 173, in test_igmp_restart_ovs self.test_igmp_snooping_deployment() File "/var/lib/tempest/external-plugins/.venv/lib64/python3.9/site-packages/nfv_tempest_plugin/tests/scenario/test_igmp_snooping_usecases.py", line 58, in test_igmp_snooping_deployment neutron_ctlplane_config = self.k8s_client.read_secret_data('neutron-config', 'openstack') File "/var/lib/tempest/external-plugins/.venv/lib64/python3.9/site-packages/nfv_tempest_plugin/tests/common/k8s.py", line 18, in read_secret_data return v1_secret.get(namespace=namespace, name=secret_name).data File "/var/lib/tempest/external-plugins/.venv/lib64/python3.9/site-packages/kubernetes/dynamic/client.py", line 112, in get return self.request('get', path, **kwargs) File "/var/lib/tempest/external-plugins/.venv/lib64/python3.9/site-packages/kubernetes/dynamic/client.py", line 57, in inner raise api_exception(e) kubernetes.dynamic.exceptions.ForbiddenError: 403 Reason: Forbidden HTTP response headers: HTTPHeaderDict({'Audit-Id': 'cea3d3e6-3b1a-4584-87e5-a5b9c067ac87', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '3facf271-4b59-43d5-8af4-1ed1b9d823c4', 'X-Kubernetes-Pf-Prioritylevel-Uid': '4425dd51-aa8d-4b89-80f6-d6ec55ef1538', 'Date': 'Fri, 15 Nov 2024 16:47:50 GMT', 'Content-Length': '343'}) HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"secrets \\"neutron-config\\" is forbidden: User \\"system:serviceaccount:openstack:tempest-tests\\" cannot get resource \\"secrets\\" in API group \\"\\" in the namespace \\"openstack\\"","reason":"Forbidden","details":{"name":"neutron-config","kind":"secrets"},"code":403}\n'
Cause:
The test doesn't seem to be authorized to retrieve OCP resources info. Replacing the neutron_ctlplane_config and ovn_logical_switches_output with the actual vales (from CLI) makes the test pass