Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-2314

Seeing use of deprecated autoscaling/v2beta1 HorizontalPodAutoscaler in audit logs of a4.11 cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • None
    • False

      11:26:53  tests.deprecated_api.test_deprecation_audit_logs.DeprecatedAPIError: Component: istio-operator/v0.0.0 (linux/amd64) kubernetes/$Format
      11:26:53  
      11:26:53  Calls:
      11:26:53  	{'kind': 'Event', 'apiVersion': 'audit.k8s.io/v1', 'level': 'Metadata', 'auditID': '2b95f5bb-559f-41da-bbd4-cae427a0cf92', 'stage': 'ResponseComplete', 'requestURI': '/apis/autoscaling/v2beta1/horizontalpodautoscalers?labelSelector=app.kubernetes.io%2Fmanaged-by%3Dmaistra-istio-operator%2Capp.kubernetes.io%2Fversion%21%3D2.3.0-1-1%2Cmaistra.io%2Fowner%3Distio-system', 'verb': 'list', 'user': {'username': 'system:serviceaccount:openshift-operators:istio-operator', 'uid': '9a80c529-d16d-4a37-afbf-8e1f067d919b', 'groups': ['system:serviceaccounts', 'system:serviceaccounts:openshift-operators', 'system:authenticated'], 'extra': {'authentication.kubernetes.io/pod-name': ['istio-operator-67db4bddbb-bv6vl'], 'authentication.kubernetes.io/pod-uid': ['45f3eecd-fd3c-4e30-9e50-42e4477aa158']}}, 'sourceIPs': ['10.1.156.41'], 'userAgent': 'istio-operator/v0.0.0 (linux/amd64) kubernetes/$Format', 'objectRef': {'resource': 'horizontalpodautoscalers', 'apiGroup': 'autoscaling', 'apiVersion': 'v2beta1'}, 'responseStatus': {'metadata': {}, 'code': 200}, 'requestReceivedTimestamp': '2022-11-29T16:17:20.929608Z', 'stageTimestamp': '2022-11-29T16:17:20.950402Z', 'annotations': {'authorization.k8s.io/decision': 'allow', 'authorization.k8s.io/reason': 'RBAC: allowed by ClusterRoleBinding "servicemeshoperator.v2.3.0-56bd9688d6" of ClusterRole "servicemeshoperator.v2.3.0-56bd9688d6" to ServiceAccount "istio-operator/openshift-operators"', 'k8s.io/deprecated': 'true', 'k8s.io/removed-release': '1.25'}}
      

      Clusterversion:

      $ kubectl get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.11.16   True        False         6h42m   Cluster version is 4.11.16
      cnv-qe-jenkins@cnv-qe-infra-01:~$ 
      

      I see servicemesh 2.3.0 installed on the cluster:

      cnv-qe-jenkins@cnv-qe-infra-01:~$ kubectl get csv -A | grep service
      default                                            servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      istio-system                                       servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      kube-node-lease                                    servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      kube-public                                        servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      kube-system                                        servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-apiserver-operator                       servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-apiserver                                servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-authentication-operator                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-authentication                           servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cloud-controller-manager-operator        servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cloud-controller-manager                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cloud-credential-operator                servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cloud-network-config-controller          servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cluster-csi-drivers                      servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cluster-machine-approver                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cluster-node-tuning-operator             servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cluster-samples-operator                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cluster-storage-operator                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cluster-version                          servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-cnv                                      servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-config-managed                           servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-config-operator                          servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-config                                   servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-console-operator                         servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-console-user-settings                    servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-console                                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-controller-manager-operator              servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-controller-manager                       servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-dns-operator                             servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-dns                                      servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-etcd-operator                            servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-etcd                                     servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-host-network                             servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-image-registry                           servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-infra                                    servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-ingress-canary                           servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-ingress-operator                         servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-ingress                                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-insights                                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kni-infra                                servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-apiserver-operator                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-apiserver                           servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-controller-manager-operator         servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-controller-manager                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-scheduler-operator                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-scheduler                           servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-storage-version-migrator-operator   servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-kube-storage-version-migrator            servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-local-storage                            servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-machine-api                              servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-machine-config-operator                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-marketplace                              servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-monitoring                               servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-multus                                   servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-network-diagnostics                      servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-network-operator                         servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-nfd                                      servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-nmstate                                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-node                                     servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-nutanix-infra                            servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-oauth-apiserver                          servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-openstack-infra                          servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-operator-lifecycle-manager               servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-operators                                servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-ovirt-infra                              servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-route-controller-manager                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-sdn                                      servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-service-ca-operator                      jaeger-operator.v1.38.0-2                         Red Hat OpenShift distributed tracing platform   1.38.0-2              jaeger-operator.v1.36.0-2                  Succeeded
      openshift-service-ca-operator                      kiali-operator.v1.57.3                            Kiali Operator                                   1.57.3                kiali-operator.v1.48.3                     Succeeded
      openshift-service-ca-operator                      servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-service-ca                               jaeger-operator.v1.38.0-2                         Red Hat OpenShift distributed tracing platform   1.38.0-2              jaeger-operator.v1.36.0-2                  Succeeded
      openshift-service-ca                               kiali-operator.v1.57.3                            Kiali Operator                                   1.57.3                kiali-operator.v1.48.3                     Succeeded
      openshift-service-ca                               servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-sriov-network-operator                   servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-storage                                  servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-user-workload-monitoring                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-virtualization-os-images                 servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift-vsphere-infra                            servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      openshift                                          servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      recycle-pvs                                        servicemeshoperator.v2.3.0                        Red Hat OpenShift Service Mesh                   2.3.0-0               servicemeshoperator.v2.2.3                 Succeeded
      cnv-qe-jenkins@cnv-qe-infra-01:~$ 
      

      Logging a new bug, since I see OSSM-1658 is closed.

              Unassigned Unassigned
              rhn-support-dbasunag Debarati Basu-Nag
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: