)]}'
{"ceph-rgw/templates/bin/tests/_run-ceph-rgw-validation.sh.tpl":[{"author":{"_account_id":23928,"name":"Pete Birley","email":"petebirley@gmail.com","username":"portdirect"},"change_message_id":"5161a342839af0bf6f2d64bf3ab7b580a7c4a2e4","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"monPod\u003d$(kubectl get pods --namespace\u003d${CEPH_DEPLOYMENT_NAMESPACE} --selector\u003dapplication\u003dceph --selector\u003dcomponent\u003dmon --field-selector\u003dstatus.phase\u003dRunning --output\u003djsonpath\u003d{.items[0].metadata.name})"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"function rgw_replicas_validation()"},{"line_number":27,"context_line":"{"},{"line_number":28,"context_line":"  available_rgw_count\u003d$(kubectl exec --namespace\u003d${CEPH_DEPLOYMENT_NAMESPACE} $monPod -- ceph -s -f json-pretty | jq \u0027.servicemap.services.rgw.daemons | del(.[\"summary\"]) | length\u0027)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"  if [ \"x${available_rgw_count}\" \u003d\u003d \"x${CEPH_RGW_REPLICAS}\" ]; then"},{"line_number":31,"context_line":"    echo \"Correct number of RGWs available: ${available_rgw_count}\""},{"line_number":32,"context_line":"  else"},{"line_number":33,"context_line":"    echo \"Incorrect number of RGWs. Expected count: ${CEPH_RGW_REPLICAS}, Available count: ${available_rgw_count}\""},{"line_number":34,"context_line":"    exit 1"},{"line_number":35,"context_line":"  fi"},{"line_number":36,"context_line":"}"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"function rgw_service_status()"},{"line_number":39,"context_line":"{"}],"source_content_type":"text/x-smarty","patch_set":3,"id":"ffb9cba7_a7edb226","line":36,"range":{"start_line":26,"start_character":0,"end_line":36,"end_character":1},"updated":"2019-04-22 14:07:06.000000000","message":"what is this trying to test? k8s?","commit_id":"ecff155af47727609828c29c11fcf5dc62a7f1f7"},{"author":{"_account_id":23928,"name":"Pete Birley","email":"petebirley@gmail.com","username":"portdirect"},"change_message_id":"5161a342839af0bf6f2d64bf3ab7b580a7c4a2e4","unresolved":false,"context_lines":[{"line_number":35,"context_line":"  fi"},{"line_number":36,"context_line":"}"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"function rgw_service_status()"},{"line_number":39,"context_line":"{"},{"line_number":40,"context_line":"  export podIP\u003d$(kubectl get pods --namespace\u003d${RGW_DEPLOYMENT_NAMESPACE} -l component\u003drgw -o jsonpath\u003d{.items[0].status.podIP})"},{"line_number":41,"context_line":"  export podPort\u003d$(kubectl get pods --namespace\u003d${RGW_DEPLOYMENT_NAMESPACE} -l component\u003drgw -o jsonpath\u003d{.items[0].spec.containers[0].env[1].value})"},{"line_number":42,"context_line":"  export podCode\u003d$(curl -s -I -o /dev/null -w \"%{http_code}\" http://${podIP}:${podPort})"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  if [ \"x${podCode}\" \u003d\u003d \"x200\" ]; then"},{"line_number":45,"context_line":"    exit 0"},{"line_number":46,"context_line":"  else"},{"line_number":47,"context_line":"    exit 1"},{"line_number":48,"context_line":"  fi"},{"line_number":49,"context_line":"}"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"rgw_replicas_validation"},{"line_number":52,"context_line":"rgw_service_status"}],"source_content_type":"text/x-smarty","patch_set":3,"id":"ffb9cba7_c790e698","line":49,"range":{"start_line":38,"start_character":0,"end_line":49,"end_character":1},"updated":"2019-04-22 14:07:06.000000000","message":"what does this achieve that could not be done as a readiness test on the pod itself?","commit_id":"ecff155af47727609828c29c11fcf5dc62a7f1f7"}]}
