[ceph-mon-check] fix the command to connect correct ceph cluster

This is to fix the command to connect to the cluster name instead of
namesapce.

Change-Id: I8b8f7c10d7667245a8f6cb02fb5b69dd122099e5
This commit is contained in:
Chinasubbareddy Mallavarapu 2020-04-21 11:47:35 -05:00 committed by Dmitrii Kabanov
parent 9057c770a6
commit 8d9b7fdd2b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if int(os.getenv('K8S_HOST_NETWORK', 0)) > 0:
else:
kubectl_command = 'kubectl get pods --namespace=${NAMESPACE} -l component=mon,application=ceph -o template --template="{ {{"{{"}}range \$i, \$v := .items{{"}}"}} {{"{{"}} if \$i{{"}}"}} , {{"{{"}} end {{"}}"}} \\"{{"{{"}}\$v.metadata.name{{"}}"}}\\": \\"{{"{{"}}\$v.status.podIP{{"}}"}}\\" {{"{{"}}end{{"}}"}} }"'
monmap_command = "ceph --cluster=${NAMESPACE} mon getmap > /tmp/monmap && monmaptool -f /tmp/monmap --print"
monmap_command = "ceph --cluster=${CLUSTER} mon getmap > /tmp/monmap && monmaptool -f /tmp/monmap --print"
def extract_mons_from_monmap():