Seagate / cortx-k8s

CORTX Kubernetes Orchestration Repository
https://github.com/Seagate/cortx
Apache License 2.0
6 stars 47 forks source link

CORTX-34284: Do not count cortx-consul-client pods in status check #380

Closed walterlopatka closed 1 year ago

walterlopatka commented 1 year ago

Description

status-cortx-cloud.sh was checking the total count of consul pods against the sum of expected server pods (max(3, #worker-nodes)) and expected client pods. However, the expected number is based on the number of worker nodes not tainted w/ NoSchedule. This does not work as expected when a node that is normally a worker node is tainted with NoSchedule.

To fix I have stopped checking for the expected number of cortx-consul-client pods, and only count cortx-consul-server pods. This is not a useful check anyway.

Type of change

Applicable issues

CORTX image version requirements

NA

How was this tested?

Manual test: deploy cluster, taint one node, run status check... confirm that all pass Also test with node not tainted to ensure that normal case passes, too.

Checklist

If this change requires newer CORTX or third party image versions:

If this change addresses a CORTX Jira issue: