for d in self.daemons:
random_gateway_host = d.remote
d.remote.sh(d.status_cmd, check_status=False)
- random_gateway_host.run(args=['ceph', 'orch', 'ls', '--refresh'])
- random_gateway_host.run(args=['ceph', 'orch', 'ps', '--daemon-type', 'nvmeof', '--refresh'])
+ random_gateway_host.run(args=['ceph', 'orch', 'ls'])
+ random_gateway_host.run(args=['ceph', 'orch', 'ps', '--daemon-type', 'nvmeof'])
random_gateway_host.run(args=['ceph', 'health', 'detail'])
random_gateway_host.run(args=['ceph', '-s'])
random_gateway_host.run(args=['ceph', 'nvme-gw', 'show', 'mypool', 'mygroup0'])
MAX_RETRIES=30
for ((RETRY_COUNT=1; RETRY_COUNT<=MAX_RETRIES; RETRY_COUNT++)); do
- if ceph orch ls --refresh | grep -q "nvmeof"; then
+ if ceph orch ls | grep -q "nvmeof"; then
echo "Found nvmeof in the output!"
break
fi
sleep 5
done
ceph orch ps
- ceph orch ls --refresh
+ ceph orch ls
}
# deploy mtls
diff=$((num_namespaces - expected_avg_ns))
if [[ $diff -lt -1 || $diff -gt 1 ]]; then
- echo "Gateway $gw_id has num-namespaces ($num_namespaces), expected around $expected_ns. Indicates a problem in ns load-balancing."
+ echo "Gateway $gw_id has num-namespaces ($num_namespaces), expected around $expected_ns_count. Indicates a problem in ns load-balancing."
exit 1
fi
done