-
Bug
-
Resolution: Done-Errata
-
Major
-
None
-
Quality / Stability / Reliability
-
False
-
-
False
-
CLOSED
-
-
-
Important
-
No
Description of problem:
Deprecated gpu-operator API call
Version-Release number of selected component (if applicable):
CNV 4.11.1-92
Steps to Reproduce:
1. Run cnv-test's test_deprecated_apis_in_audit_logs
Actual results:
tests.deprecated_api.test_deprecation_audit_logs.DeprecatedAPIError: Component: gpu-operator/v0.0.0 (linux/amd64) kubernetes/$Format
Calls:
{'kind': 'Event', 'apiVersion': 'audit.k8s.io/v1', 'level': 'Metadata', 'auditID': '580fb685-ea0c-4ea1-b62f-ddea1cd208ca', 'stage': 'ResponseComplete', 'requestURI': '/apis/policy/v1beta1/podsecuritypolicies/gpu-operator-privileged', 'verb': 'delete', 'user': {'username': 'system:serviceaccount:nvidia-gpu-operator:gpu-operator', 'uid': '6a3bd614-77d3-4110-b843-f44d4b0d2fe3', 'groups': ['system:serviceaccounts', 'system:serviceaccounts:nvidia-gpu-operator', 'system:authenticated'], 'extra': {'authentication.kubernetes.io/pod-name': ['gpu-operator-7d46cdf9d7-27zmt'], 'authentication.kubernetes.io/pod-uid': ['96991cb8-450d-42e4-be68-3ab057d2c471']}}, 'sourceIPs': ['10.9.96.81'], 'userAgent': 'gpu-operator/v0.0.0 (linux/amd64) kubernetes/$Format', 'objectRef':
, 'responseStatus': {'metadata': {}, 'status': 'Failure', 'message': 'podsecuritypolicies.policy "gpu-operator-privileged" not found', 'reason': 'NotFound', 'details':
{'name': 'gpu-operator-privileged', 'group': 'policy', 'kind': 'podsecuritypolicies'}, 'code': 404}, 'requestReceivedTimestamp': '2022-11-29T15:42:57.570973Z', 'stageTimestamp': '2022-11-29T15:42:57.572602Z', 'annotations':
{'authorization.k8s.io/decision': 'allow', 'authorization.k8s.io/reason': 'RBAC: allowed by ClusterRoleBinding "gpu-operator-certified.v22.9.0-776d5fcf49" of ClusterRole "gpu-operator-certified.v22.9.0-776d5fcf49" to ServiceAccount "gpu-operator/nvidia-gpu-operator"', 'k8s.io/deprecated': 'true', 'k8s.io/removed-release': '1.25'}}