apiVersion: v1 data: status_check.sh: | #!/bin/bash # Script returns: # 0 - if both NB and SB connections are OK # 1 - if there is no NB connection # 2 - if there is no SB connection # 3 - if there are no NB and SB connection NORTHD_PID=$(/usr/bin/pidof ovn-northd) UNIXCTL_SOCKET="${OVN_RUNDIR}/ovn-northd.${NORTHD_PID}.ctl" NB_CONNECTION_STATUS_OK=0 NB_CONNECTION_STATUS_FAILED=1 SB_CONNECTION_STATUS_OK=0 SB_CONNECTION_STATUS_FAILED=2 FINAL_STATUS=0 nb_connection_status=$(/usr/bin/ovn-appctl -t $UNIXCTL_SOCKET nb-connection-status) if [[ $nb_connection_status != *"connected"* ]]; then FINAL_STATUS=$(( $FINAL_STATUS + $NB_CONNECTION_STATUS_FAILED )) fi sb_connection_status=$(/usr/bin/ovn-appctl -t $UNIXCTL_SOCKET sb-connection-status) if [[ $sb_connection_status != *"connected"* ]]; then FINAL_STATUS=$(( $FINAL_STATUS + $SB_CONNECTION_STATUS_FAILED )) fi exit $FINAL_STATUS kind: ConfigMap metadata: creationTimestamp: '2026-03-13T11:12:17Z' labels: ovn-northd.openstack.org/name: ovnnorthd ovn-northd.openstack.org/namespace: openstack ovn-northd.openstack.org/uid: 8ea1c088-09e8-4e9d-98d7-b3bcccfbf15a managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:data: .: {} f:status_check.sh: {} f:metadata: f:labels: .: {} f:ovn-northd.openstack.org/name: {} f:ovn-northd.openstack.org/namespace: {} f:ovn-northd.openstack.org/uid: {} f:ownerReferences: .: {} k:{"uid":"8ea1c088-09e8-4e9d-98d7-b3bcccfbf15a"}: {} manager: manager operation: Update time: '2026-03-13T11:12:17Z' name: ovnnorthd-scripts namespace: openstack ownerReferences: - apiVersion: ovn.openstack.org/v1beta1 blockOwnerDeletion: true controller: true kind: OVNNorthd name: ovnnorthd uid: 8ea1c088-09e8-4e9d-98d7-b3bcccfbf15a resourceVersion: '30046' uid: a0c4dbb3-ad73-42c6-b77d-0ccd017da237