Bug 1934652 - Improve the sb-db and nb-db readiness check to ensure it fails when cluster is not stable.
Summary: Improve the sb-db and nb-db readiness check to ensure it fails when cluster i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.6
Hardware: All
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.z
Assignee: Alexander Constantinescu
QA Contact: Dan Brahaney
URL:
Whiteboard:
Depends On: 1838343
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-03 15:58 UTC by Alexander Constantinescu
Modified: 2021-04-20 19:27 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1838343
Environment:
Last Closed: 2021-04-20 19:27:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-network-operator pull 998 0 None open Bug 1934652: [release-4.6] - Improve the sb-db and nb-db readiness check to ensure it fails when cluster is not stable 2021-03-03 16:06:09 UTC
Red Hat Product Errata RHBA-2021:1153 0 None None None 2021-04-20 19:27:38 UTC

Comment 4 zhaozhanqi 2021-04-07 09:08:18 UTC
Verified this bug on 4.6.0-0.nightly-2021-04-05-163403 

          protocol: TCP
        readinessProbe:
          exec:
            command:
            - /bin/bash
            - -c
            - |
              set -xeo pipefail
              leader_status=$(/usr/bin/ovn-appctl -t /var/run/ovn/ovnnb_db.ctl --timeout=3 cluster/status OVN_Northbound  2>/dev/null | { grep "Leader: unknown" || true; })
              if [[ ! -z "${leader_status}" ]]; then
                echo "NB DB Raft leader is unknown to the cluster node."
                exit 1
              fi
          failureThreshold: 3
          initialDelaySeconds: 90

Comment 9 errata-xmlrpc 2021-04-20 19:27:19 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 (OpenShift Container Platform 4.6.25 bug fix 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/RHBA-2021:1153


Note You need to log in before you can comment on or make changes to this bug.