Bug 1975824

Summary: Alert InstallPlanStepAppliedWithWarnings does not resolve
Product: OpenShift Container Platform Reporter: Ben Luddy <bluddy>
Component: OLMAssignee: Kevin Rizza <krizza>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: bluddy, jiazha, krizza
Version: 4.8Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1975432 Environment:
Last Closed: 2021-10-18 17:36:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1975432    

Comment 2 Jian Zhang 2021-06-28 04:00:08 UTC
[cloud-user@preserve-olm-env jian]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-06-27-223612   True        False         59m     Cluster version is 4.9.0-0.nightly-2021-06-27-223612

1, Install the community etcd-operator which is using the v1beta1.
[cloud-user@preserve-olm-env jian]$ oc get sub -n default
NAME   PACKAGE   SOURCE                CHANNEL
etcd   etcd      community-operators   singlenamespace-alpha
[cloud-user@preserve-olm-env jian]$ oc get csv -n default
NAME                  DISPLAY   VERSION   REPLACES              PHASE
etcdoperator.v0.9.4   etcd      0.9.4     etcdoperator.v0.9.2   Succeeded
[cloud-user@preserve-olm-env jian]$ oc get pods -n default
NAME                            READY   STATUS    RESTARTS   AGE
etcd-operator-7ff66d9d5-httkg   3/3     Running   0          43s

2, Check the Prometheus Warnings: "InstallPlanStepAppliedWithWarnings"

[cloud-user@preserve-olm-env jian]$ oc get route -n openshift-monitoring 
NAME                HOST/PORT                                                                                           PATH   SERVICES            PORT    TERMINATION          WILDCARD
alertmanager-main   alertmanager-main-openshift-monitoring.apps.ci-ln-kim5iw2-d5d6b.origin-ci-int-aws.dev.rhcloud.com          alertmanager-main   web     reencrypt/Redirect   None
grafana             grafana-openshift-monitoring.apps.ci-ln-kim5iw2-d5d6b.origin-ci-int-aws.dev.rhcloud.com                    grafana             https   reencrypt/Redirect   None
prometheus-k8s      prometheus-k8s-openshift-monitoring.apps.ci-ln-kim5iw2-d5d6b.origin-ci-int-aws.dev.rhcloud.com             prometheus-k8s      web     reencrypt/Redirect   None
thanos-querier      thanos-querier-openshift-monitoring.apps.ci-ln-kim5iw2-d5d6b.origin-ci-int-aws.dev.rhcloud.com             thanos-querier      web     reencrypt/Redirect   None



[cloud-user@preserve-olm-env jian]$ curl -k -H "Authorization: Bearer $(oc -n openshift-monitoring sa get-token prometheus-k8s)" https://alertmanager-main-openshift-monitoring.apps.ci-ln-kim5iw2-d5d6b.origin-ci-int-aws.dev.rhcloud.com/api/v1/alerts| jq |grep -i "InstallPlanStepApplied" -A20
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2577    0  2577    0     0  33907      0 --:--:-- --:--:-- --:--:-- 33907
        "alertname": "InstallPlanStepAppliedWithWarnings",
        "prometheus": "openshift-monitoring/k8s",
        "severity": "warning"
      },
      "annotations": {
        "message": "The API server returned a warning during installation or upgrade of an operator. An Event with reason \"AppliedWithWarnings\" has been created with complete details, including a reference to the InstallPlan step that generated the warning."
      },
      "startsAt": "2021-06-28T03:11:04.233Z",
      "endsAt": "2021-06-28T03:16:34.233Z",
      "generatorURL": "https://prometheus-k8s-openshift-monitoring.apps.ci-ln-kim5iw2-d5d6b.origin-ci-int-aws.dev.rhcloud.com/graph?g0.expr=sum%28increase%28installplan_warnings_total%5B5m%5D%29%29+%3E+0&g0.tab=1",
      "status": {
        "state": "active",
        "silencedBy": [],
        "inhibitedBy": []
      },
      "receivers": [
        "Default"
      ],
      "fingerprint": "fe12e9a2d3e5ccd7"
    }
  ]

3, waiting for 10 mins.

4, Check it again,
[cloud-user@preserve-olm-env jian]$ curl -k -H "Authorization: Bearer $(oc -n openshift-monitoring sa get-token prometheus-k8s)" https://alertmanager-main-openshift-monitoring.apps.ci-ln-kim5iw2-d5d6b.origin-ci-int-aws.dev.rhcloud.com/api/v1/alerts| jq |grep -i "InstallPlanStepApplied" -A20
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1782  100  1782    0     0  20022      0 --:--:-- --:--:-- --:--:-- 20022


No "InstallPlanStepAppliedWithWarnings" found, verify it.

Comment 5 errata-xmlrpc 2021-10-18 17:36:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759