)]}'
{"tools/fixes/force_delete_statefulset.sh":[{"author":{"_account_id":8749,"name":"Evgeniy L","email":"eli@mirantis.com","username":"evgeniyl"},"change_message_id":"a097e30a3e877b5967078770d815aeb6d6da1fe2","unresolved":false,"context_lines":[{"line_number":53,"context_line":"  echo \"Trying attempt $attempt\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."}],"source_content_type":"text/x-sh","patch_set":1,"id":"7faddb67_ff127157","line":56,"range":{"start_line":56,"start_character":7,"end_line":56,"end_character":9},"updated":"2019-08-21 20:15:34.000000000","message":"treasuremap manifests","commit_id":"77935ed8419545e5de29de56c9a7c0076407c6a8"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"7676a3e537cdd33e6421bb3a33dd6efcc057283a","unresolved":false,"context_lines":[{"line_number":53,"context_line":"  echo \"Trying attempt $attempt\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."}],"source_content_type":"text/x-sh","patch_set":1,"id":"7faddb67_1f68ad1e","line":56,"range":{"start_line":56,"start_character":7,"end_line":56,"end_character":9},"in_reply_to":"7faddb67_ff127157","updated":"2019-08-21 20:21:36.000000000","message":"Done","commit_id":"77935ed8419545e5de29de56c9a7c0076407c6a8"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":20,"context_line":"node_present\u003d$(kubectl get nodes -l control-plane\u003denabled | grep \"${failed_cp_node}\" || true)"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"if [[ -z \"${node_present}\" ]]; then"},{"line_number":23,"context_line":"    echo \"The node name provided is either incorrect, not a control plane node or not a part of the cluster.\""},{"line_number":24,"context_line":"    echo \"Please provide the name of failed control plane node.\""},{"line_number":25,"context_line":"    exit 1"},{"line_number":26,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_fb46e250","line":23,"updated":"2019-08-23 08:32:48.000000000","message":"Line length should be wrapped.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":20,"context_line":"node_present\u003d$(kubectl get nodes -l control-plane\u003denabled | grep \"${failed_cp_node}\" || true)"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"if [[ -z \"${node_present}\" ]]; then"},{"line_number":23,"context_line":"    echo \"The node name provided is either incorrect, not a control plane node or not a part of the cluster.\""},{"line_number":24,"context_line":"    echo \"Please provide the name of failed control plane node.\""},{"line_number":25,"context_line":"    exit 1"},{"line_number":26,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_702bb081","line":23,"in_reply_to":"7faddb67_fb46e250","updated":"2019-09-10 20:01:38.000000000","message":"Done","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":29,"context_line":"# failed control plane node and invoke a force delete action."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"for ns in $(kubectl get ns | awk \u0027{print $1}\u0027);do"},{"line_number":32,"context_line":"    for ss in $(kubectl get statefulset -n \"${ns}\" --ignore-not-found --no-headers | awk \u0027{print $1}\u0027);do"},{"line_number":33,"context_line":"        label\u003d$(kubectl -n \"${ns}\" get statefulset \"${ss}\" --show-labels --no-headers | awk \u0027{print $5}\u0027)"},{"line_number":34,"context_line":"        pod_name\u003d$(kubectl -n \"${ns}\" get pod -l \"${label}\" -o wide --no-headers | grep \"${failed_cp_node}\" | awk \u0027{print $1}\u0027)"},{"line_number":35,"context_line":"        if [[ -z \"${pod_name}\" ]]; then"}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_1b441e47","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":1},"updated":"2019-08-23 08:32:48.000000000","message":"Line length should be wrapped, and next 2 lines.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":29,"context_line":"# failed control plane node and invoke a force delete action."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"for ns in $(kubectl get ns | awk \u0027{print $1}\u0027);do"},{"line_number":32,"context_line":"    for ss in $(kubectl get statefulset -n \"${ns}\" --ignore-not-found --no-headers | awk \u0027{print $1}\u0027);do"},{"line_number":33,"context_line":"        label\u003d$(kubectl -n \"${ns}\" get statefulset \"${ss}\" --show-labels --no-headers | awk \u0027{print $5}\u0027)"},{"line_number":34,"context_line":"        pod_name\u003d$(kubectl -n \"${ns}\" get pod -l \"${label}\" -o wide --no-headers | grep \"${failed_cp_node}\" | awk \u0027{print $1}\u0027)"},{"line_number":35,"context_line":"        if [[ -z \"${pod_name}\" ]]; then"}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_d03b84ce","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":1},"in_reply_to":"7faddb67_1b441e47","updated":"2019-09-10 20:01:38.000000000","message":"Done","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":45,"context_line":"# statefulset pods to be ready. This time could be either less or"},{"line_number":46,"context_line":"# more. We will wait for 5 mins before we start checking on"},{"line_number":47,"context_line":"# pods to be ready."},{"line_number":48,"context_line":"echo \"waiting for ${INITIAL_WAIT} seconds before starting to check on pod readiness. This is the initial wait time.\""},{"line_number":49,"context_line":"sleep ${INITIAL_WAIT}"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"for attempt in {1..180};do"}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_bb494a67","line":48,"updated":"2019-08-23 08:32:48.000000000","message":"Line length should be wrapped.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":45,"context_line":"# statefulset pods to be ready. This time could be either less or"},{"line_number":46,"context_line":"# more. We will wait for 5 mins before we start checking on"},{"line_number":47,"context_line":"# pods to be ready."},{"line_number":48,"context_line":"echo \"waiting for ${INITIAL_WAIT} seconds before starting to check on pod readiness. This is the initial wait time.\""},{"line_number":49,"context_line":"sleep ${INITIAL_WAIT}"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"for attempt in {1..180};do"}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_f036c0e7","line":48,"in_reply_to":"7faddb67_bb494a67","updated":"2019-09-10 20:01:38.000000000","message":"Done","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":46,"context_line":"# more. We will wait for 5 mins before we start checking on"},{"line_number":47,"context_line":"# pods to be ready."},{"line_number":48,"context_line":"echo \"waiting for ${INITIAL_WAIT} seconds before starting to check on pod readiness. This is the initial wait time.\""},{"line_number":49,"context_line":"sleep ${INITIAL_WAIT}"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"for attempt in {1..180};do"},{"line_number":52,"context_line":"  echo \"waiting for pods to be Ready\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_9b0a4e1e","line":49,"range":{"start_line":49,"start_character":6,"end_line":49,"end_character":21},"updated":"2019-08-23 08:32:48.000000000","message":"\"\" missing, but ok.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":46,"context_line":"# more. We will wait for 5 mins before we start checking on"},{"line_number":47,"context_line":"# pods to be ready."},{"line_number":48,"context_line":"echo \"waiting for ${INITIAL_WAIT} seconds before starting to check on pod readiness. This is the initial wait time.\""},{"line_number":49,"context_line":"sleep ${INITIAL_WAIT}"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"for attempt in {1..180};do"},{"line_number":52,"context_line":"  echo \"waiting for pods to be Ready\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_90350cdd","line":49,"range":{"start_line":49,"start_character":6,"end_line":49,"end_character":21},"in_reply_to":"7faddb67_9b0a4e1e","updated":"2019-09-10 20:01:38.000000000","message":"Done","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":52,"context_line":"  echo \"waiting for pods to be Ready\""},{"line_number":53,"context_line":"  echo \"Trying attempt $attempt\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_3b3d5abc","line":55,"updated":"2019-08-23 08:32:48.000000000","message":"Line length should be wrapped.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":52,"context_line":"  echo \"waiting for pods to be Ready\""},{"line_number":53,"context_line":"  echo \"Trying attempt $attempt\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_b03048ea","line":55,"in_reply_to":"7faddb67_3b3d5abc","updated":"2019-09-10 20:01:38.000000000","message":"Done","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."},{"line_number":60,"context_line":"  if [ \"$ss_not_ready_count\" \u003d\u003d 0 ]; then"}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_3b38fad2","line":57,"range":{"start_line":57,"start_character":0,"end_line":57,"end_character":2},"updated":"2019-08-23 08:32:48.000000000","message":"Overall this line looks like a dirty hack. Can\u0027t we do calculations on number of healthy pods vs. number of non-healthy pods? Can\u0027t we get info on members of stateful set by looking to deployment/replica?\nAlso line length should be wrapped.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."},{"line_number":60,"context_line":"  if [ \"$ss_not_ready_count\" \u003d\u003d 0 ]; then"}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_69154b49","line":57,"range":{"start_line":57,"start_character":106,"end_line":57,"end_character":111},"updated":"2019-08-23 08:32:48.000000000","message":"grep -E, because egrep is a wrapper and is being deprecated (see man grep). To my surprise as well.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22477,"name":"Matt McEuen","email":"matt.mceuen@att.com","username":"mattmceuen"},"change_message_id":"1446a040f804b6a398f57a3ceb5422df027c271c","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."},{"line_number":60,"context_line":"  if [ \"$ss_not_ready_count\" \u003d\u003d 0 ]; then"}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_90f0accb","line":57,"range":{"start_line":57,"start_character":106,"end_line":57,"end_character":111},"in_reply_to":"5faad753_305a182a","updated":"2019-09-10 20:24:41.000000000","message":"What about something like\n\nkubectl get statefulset --all-namespaces --no-headers | awk \u0027{print $3}\u0027 | grep ^0$ | wc -l\n\n?","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"9f5241ad16600a484cb6ce659afc031518b2db84","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."},{"line_number":60,"context_line":"  if [ \"$ss_not_ready_count\" \u003d\u003d 0 ]; then"}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_b08da8d4","line":57,"range":{"start_line":57,"start_character":106,"end_line":57,"end_character":111},"in_reply_to":"5faad753_90f0accb","updated":"2019-09-10 20:45:38.000000000","message":"This doesn\u0027t take into account the containers within the pod, for eg- airflow has 3 containers and we would want all of them to be running.\n\nThis command would return true even if the pod is in initializing state as it just checks the number of pods that have been spawned by kubernetes but doesn\u0027t check their status.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"  # Statefulset pods are sequentially numbered. For example: \u0027mariadb-server-0\u0027, \u0027mariadb-server-1\u0027 etc."},{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."},{"line_number":60,"context_line":"  if [ \"$ss_not_ready_count\" \u003d\u003d 0 ]; then"}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_305a182a","line":57,"range":{"start_line":57,"start_character":106,"end_line":57,"end_character":111},"in_reply_to":"7faddb67_69154b49","updated":"2019-09-10 20:01:38.000000000","message":"I have tried using various ways to get the healthy number of pods and containers within those pods but could not come up with better solution.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."},{"line_number":60,"context_line":"  if [ \"$ss_not_ready_count\" \u003d\u003d 0 ]; then"},{"line_number":61,"context_line":"      echo \"All the statefulset are now ready\""},{"line_number":62,"context_line":"      exit 0"}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_bb72aaaf","line":59,"updated":"2019-08-23 08:32:48.000000000","message":"Line length should be wrapped.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":56,"context_line":"  # In NC we do not have more than 3 replicas for a statefulset pod."},{"line_number":57,"context_line":"  ss_not_ready_count\u003d$(kubectl get --all-namespaces pods -o wide --no-headers | grep \u0027\\-0 \\|\\-1 \\|\\-2 \u0027 | egrep \"0/1|0/2|0/3|1/2|1/3|2/3\" | wc -l)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"  # We would want the count of this variable to be \u00270\u0027 to determine that all the statefulset pods are ready."},{"line_number":60,"context_line":"  if [ \"$ss_not_ready_count\" \u003d\u003d 0 ]; then"},{"line_number":61,"context_line":"      echo \"All the statefulset are now ready\""},{"line_number":62,"context_line":"      exit 0"}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_d0406438","line":59,"in_reply_to":"7faddb67_bb72aaaf","updated":"2019-09-10 20:01:38.000000000","message":"Done","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":28208,"name":"Roman Gorshunov","email":"roman.gorshunov@att.com","username":"gorshunovr"},"change_message_id":"bcc05396579a310e88e0932a91ef3daa6bf3cede","unresolved":false,"context_lines":[{"line_number":61,"context_line":"      echo \"All the statefulset are now ready\""},{"line_number":62,"context_line":"      exit 0"},{"line_number":63,"context_line":"  else"},{"line_number":64,"context_line":"      sleep ${LOOP_WAIT}"},{"line_number":65,"context_line":"  fi"},{"line_number":66,"context_line":"done"},{"line_number":67,"context_line":"echo \"Statefulset pods are not ready in the specified time limit\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"7faddb67_3b0f9a30","line":64,"range":{"start_line":64,"start_character":12,"end_line":64,"end_character":24},"updated":"2019-08-23 08:32:48.000000000","message":"\"\" missing, but ok.","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"b38b808fe4fde54a222cc35375766cb850887192","unresolved":false,"context_lines":[{"line_number":61,"context_line":"      echo \"All the statefulset are now ready\""},{"line_number":62,"context_line":"      exit 0"},{"line_number":63,"context_line":"  else"},{"line_number":64,"context_line":"      sleep ${LOOP_WAIT}"},{"line_number":65,"context_line":"  fi"},{"line_number":66,"context_line":"done"},{"line_number":67,"context_line":"echo \"Statefulset pods are not ready in the specified time limit\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"5faad753_f03b20c5","line":64,"range":{"start_line":64,"start_character":12,"end_line":64,"end_character":24},"in_reply_to":"7faddb67_3b0f9a30","updated":"2019-09-10 20:01:38.000000000","message":"Done","commit_id":"11a222dcade1740c5cd07e86e897e272379d58b3"},{"author":{"_account_id":24580,"name":"James Gu","email":"james.gu@microsoft.com","username":"jamesgu"},"change_message_id":"6605981ff04614cd53c7fc8f7afff52de9d31f47","unresolved":false,"context_lines":[{"line_number":28,"context_line":"# The idea here is to find out the names of the statefulset pod that is running on the provided"},{"line_number":29,"context_line":"# failed control plane node and invoke a force delete action."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"for ns in $(kubectl get ns | awk \u0027{print $1}\u0027);do"},{"line_number":32,"context_line":"  for ss in $(kubectl get statefulset -n \"${ns}\" --ignore-not-found --no-headers | \\"},{"line_number":33,"context_line":"    awk \u0027{print $1}\u0027);do"},{"line_number":34,"context_line":"      label\u003d$(kubectl -n \"${ns}\" get statefulset \"${ss}\" --show-labels --no-headers | \\"}],"source_content_type":"text/x-sh","patch_set":8,"id":"5faad753_7098901a","line":31,"updated":"2019-09-10 20:46:40.000000000","message":"Do we only care pods in the airship\u0027s name spaces in the use case of bring your own k8s?","commit_id":"b925fd4d24667536ad36212daeb2762ed1562357"},{"author":{"_account_id":22259,"name":"Nishant Kumar","email":"nishant.e.kumar@att.com","username":"nishant.e.kumar"},"change_message_id":"761657dcc40a0b9a873f170d26a07d121961df8a","unresolved":false,"context_lines":[{"line_number":28,"context_line":"# The idea here is to find out the names of the statefulset pod that is running on the provided"},{"line_number":29,"context_line":"# failed control plane node and invoke a force delete action."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"for ns in $(kubectl get ns | awk \u0027{print $1}\u0027);do"},{"line_number":32,"context_line":"  for ss in $(kubectl get statefulset -n \"${ns}\" --ignore-not-found --no-headers | \\"},{"line_number":33,"context_line":"    awk \u0027{print $1}\u0027);do"},{"line_number":34,"context_line":"      label\u003d$(kubectl -n \"${ns}\" get statefulset \"${ss}\" --show-labels --no-headers | \\"}],"source_content_type":"text/x-sh","patch_set":8,"id":"5faad753_106d9c03","line":31,"in_reply_to":"5faad753_7098901a","updated":"2019-09-10 20:49:01.000000000","message":"This should hold good for any statefulset running within kubernetes.","commit_id":"b925fd4d24667536ad36212daeb2762ed1562357"}]}
