Skip to content

Commit

Permalink
Modify prompt to ncn-m001#
Browse files Browse the repository at this point in the history
  • Loading branch information
studenym-hpe committed Jan 6, 2025
1 parent 024ccfd commit 85d25cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions troubleshooting/error_rolling_back_service_chart_with_etcd.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ REVISION UPDATED STATUS CHART APP

If `helm.sh/chart` is `etcd-9.x.x` or greater and the StatefulSet and Pods have the `app.kubernetes.io/component=etcd` label, you can get past the error by removing the offending label from the etcd cluster Pods and StatefulSet.

1. (`ncn-m001`) Check which etcd helm chart version is currently running using `kubectl describe pod`.
1. (`ncn-m001#`) Check which etcd helm chart version is currently running using `kubectl describe pod`.

```bash
kubectl describe pod -n services cray-hmnfd-bitnami-etcd-0 | grep "helm.sh/chart"
Expand All @@ -40,7 +40,7 @@ If `helm.sh/chart` is `etcd-9.x.x` or greater and the StatefulSet and Pods have
ncn-m001:~ #
```

1. (`ncn-m001`) Check that the StatefulSet and the pods have the `app.kubernetes.io/component` label.
1. (`ncn-m001#`) Check that the StatefulSet and the pods have the `app.kubernetes.io/component` label.

1. Check if the StatefulSet has the label.

Expand Down Expand Up @@ -78,7 +78,7 @@ If a manual backup of the etcd cluster was not done prior to running `helm rollb

## Run Script to Remove Label

(`ncn-m001`) Run the script `remove_label_from_etcd_cluster.sh` in `/usr/share/doc/csm/troubleshooting/scripts/` to remove the `app.kubernetes.io/component=etcd` label from the StatefulSet and Pods in the etcd cluster.
Run the script `remove_label_from_etcd_cluster.sh` in `/usr/share/doc/csm/troubleshooting/scripts/` to remove the `app.kubernetes.io/component=etcd` label from the StatefulSet and Pods in the etcd cluster.

`remove_label_from_etcd_cluster.sh` usage:

Expand All @@ -92,7 +92,7 @@ Usage:
<etcd-cluster> - The base name of the etcd cluster pods. Example, 'cray-hmnfd'.
```

(`ncn-m001`) Run `remove_label_from_etcd_cluster.sh`.
(`ncn-m001#`) Run `remove_label_from_etcd_cluster.sh`.

```bash
/usr/share/doc/csm/troubleshooting/scripts/remove_label_from_etcd_cluster.sh services cray-hmnfd
Expand All @@ -119,7 +119,7 @@ The label `app.kubernetes.io/component=etcd` that was causing the StatefulSet er

## Re-run `helm rollback`

(`ncn-m001`) With the label `app.kubernetes.io/component=etcd` removed from the etcd cluster Pods and the StatefulSet, re-run `helm rollback`. The rollback should succeed and the expected revision should be running.
(`ncn-m001#`) With the label `app.kubernetes.io/component=etcd` removed from the etcd cluster Pods and the StatefulSet, re-run `helm rollback`. The rollback should succeed and the expected revision should be running.

```bash
helm rollback -n services cray-hms-hmnfd 1
Expand Down

0 comments on commit 85d25cb

Please sign in to comment.