Skip to content

Commit 0dfb099

Browse files
committed
Docs: update mayastor upgrade docs
Signed-off-by: krishnaGajabi <gajbikrishna23@gmail.com>
1 parent fe3c4b9 commit 0dfb099

File tree

5 files changed

+170
-109
lines changed
  • docs
    • main/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information
    • versioned_docs
      • version-4.0.x/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information
      • version-4.1.x/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information
      • version-4.2.x/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information
      • version-4.3.x/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information

5 files changed

+170
-109
lines changed

docs/main/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information/upgrade-re.md

Lines changed: 52 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,76 +10,91 @@ description: Upgrade to the latest OpenEBS 2.6.0 version is supported only from
1010

1111
## Upgrading Replicated PV Mayastor
1212

13-
Replicated PV Mayastor supports seamless upgrades starting with target version 2.1.0 and later, and source versions 2.0.0 and later. To upgrade from a previous version (1.0.5 or prior) to 2.1.0 or later, visit [Legacy Upgrade Support](legacy-upgrade.md).
13+
Replicated PV Mayastor supports seamless upgrades starting with target version 2.1.0 and later, and source versions 2.0.0 and later. To upgrade from a previous version (1.0.5 or prior) to 2.1.0 or later, visit [Legacy Upgrade Support](legacy-upgrade.md).
1414

1515
### Supported Upgrade Paths
1616

17-
- From 2.0.x to 2.6.1
17+
- From 2.0.x and later within the 2.x series (2.0.x, 2.1.x, 2.2.x, etc.)
18+
- To 2.1.0 and later within the 2.x series (2.1.x, 2.2.x, 2.3.x, etc.)
1819

1920
:::info
20-
- The upgrade operation utilises the [Kubectl Plugin](../advanced-operations/kubectl-plugin.md).
21-
- The upgrade process is generally non-disruptive for volumes with a replication factor greater than one and all replicas being healthy, prior to starting the upgrade.
21+
22+
- Only upgrades are supported - downgrades are not possible.
23+
- The upgrade operation utilises the [Kubectl mayastor Plugin](../advanced-operations/kubectl-plugin.md). Ensure you have the appropriate Kubectl Plugin installed, Use the kubectl plugin version that matches your target Mayastor version.
24+
- If Mayastor was installed using the `mayastor/mayastor` Helm chart, use the `kubectl mayastor` plugin for upgrades.
25+
- If Mayastor was installed using the `openebs/openebs` Helm chart, refer to the [OpenEBS upgrade documentation](https://openebs.io/docs/user-guides/upgrade).
26+
- Volumes with single replica will be unavailable temporarily during upgrade.
27+
- The upgrade process is generally non-disruptive for volumes with a replication factor greater than one however verify that all replicas are healthy prior to upgrade
28+
2229
:::
2330

2431
To upgrade Replicated PV Mayastor deployment on the Kubernetes cluster, execute:
2532

2633
**Command**
2734

28-
```
29-
kubectl mayastor upgrade
35+
```bash
36+
kubectl mayastor upgrade -n <mayastor-namespace>
3037
```
3138

3239
To view all the available options and sub-commands that can be used with the upgrade command, execute:
3340

3441
**Command**
3542

36-
```
43+
```bash
3744
kubectl mayastor upgrade -h
3845
```
3946

4047
**Expected Output**
4148

42-
```
49+
```text
4350
`Upgrade` the deployment
4451
4552
Usage: kubectl-mayastor upgrade [OPTIONS]
4653
4754
Options:
48-
  -d, --dry-run
49-
          Display all the validations output but will not execute upgrade
50-
  -r, --rest <REST>
51-
          The rest endpoint to connect to
52-
  -D, --skip-data-plane-restart
53-
          If set then upgrade will skip the io-engine pods restart
54-
  -k, --kube-config-path <KUBE_CONFIG_PATH>
55-
          Path to kubeconfig file
56-
  -S, --skip-single-replica-volume-validation
57-
          If set then it will continue with upgrade without validating singla replica volume
58-
  -R, --skip-replica-rebuild
59-
          If set then upgrade will skip the repilca rebuild in progress validation
60-
  -C, --skip-cordoned-node-validation
61-
          If set then upgrade will skip the cordoned node validation
62-
  -o, --output <OUTPUT>
63-
          The Output, viz yaml, json [default: none]
64-
  -j, --jaeger <JAEGER>
65-
          Trace rest requests to the Jaeger endpoint agent
66-
  -n, --namespace <NAMESPACE>
67-
          Kubernetes namespace of mayastor service, defaults to mayastor [default: mayastor]
68-
  -h, --help
69-
          Print help
55+
--registry <REGISTRY>
56+
Specify the container registry for the upgrade-job image
57+
-d, --dry-run
58+
Display all the validations output but will not execute upgrade
59+
--skip-data-plane-restart
60+
If set then upgrade will skip the io-engine pods restart
61+
--skip-single-replica-volume-validation
62+
If set then it will continue with upgrade without validating singla replica volume
63+
--skip-replica-rebuild
64+
If set then upgrade will skip the replica rebuild in progress validation
65+
--skip-cordoned-node-validation
66+
If set then upgrade will skip the cordoned node validation
67+
--set <SET>
68+
The set values on the command line. (can specify multiple or separate values with commas: key1=val1,key2=val2)
69+
--set-file <SET_FILE>
70+
The set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2)
71+
-n, --namespace <NAMESPACE>
72+
Kubernetes namespace of mayastor service [default: mayastor]
73+
--reset-then-reuse-values
74+
Use helm's --reset-then-reuse-values option
75+
-r, --rest <REST>
76+
The rest endpoint to connect to
77+
-o, --output <OUTPUT>
78+
The Output, viz yaml, json [default: none]
79+
-j, --jaeger <JAEGER>
80+
Trace rest requests to the Jaeger endpoint agent
81+
-k, --kube-config-path <KUBE_CONFIG_PATH>
82+
Path to kubeconfig file
83+
-h, --help
84+
Print help
7085
```
7186

7287
To view the status of upgrade, execute:
7388

7489
**Command**
7590

76-
```
77-
kubectl mayastor get upgrade-status
91+
```bash
92+
kubectl mayastor get upgrade-status -n <mayastor-namespace>
7893
```
7994

8095
**Expected Output**
8196

82-
```
97+
```text
8398
Upgrade From: 2.0.0
8499
Upgrade To: 2.6.1
85100
Upgrade Status: Successfully upgraded Mayastor
@@ -89,12 +104,14 @@ To view the logs of upgrade job, execute:
89104

90105
**Command**
91106

92-
```
107+
```bash
93108
kubectl logs <upgrade-job-pod-name> -n <mayastor-namespace>
94109
```
95110

96111
:::info
112+
97113
1. The time taken to upgrade is directly proportional to the number of IO engine nodes and storage volumes.
98114
2. To upgrade to a particular Replicated PV Mayastor version, ensure you are using the same version of kubectl plugin.
99115
3. The above process of upgrade creates one Job in the namespace where Replicated PV Mayastor is installed, one ClusterRole, one ClusterRoleBinding and one ServiceAccount.
100-
:::
116+
117+
:::

docs/versioned_docs/version-4.0.x/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information/upgrade-re.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,43 @@ description: Upgrade to the latest OpenEBS 2.6.0 version is supported only from
1010

1111
## Upgrading Replicated PV Mayastor
1212

13-
Replicated PV Mayastor supports seamless upgrades starting with target version 2.1.0 and later, and source versions 2.0.0 and later. To upgrade from a previous version (1.0.5 or prior) to 2.1.0 or later, visit [Legacy Upgrade Support](legacy-upgrade.md).
13+
Replicated PV Mayastor supports seamless upgrades starting with target version 2.1.0 and later, and source versions 2.0.0 and later. To upgrade from a previous version (1.0.5 or prior) to 2.1.0 or later, visit [Legacy Upgrade Support](legacy-upgrade.md).
1414

1515
### Supported Upgrade Paths
1616

17-
- From 2.0.x to 2.6.1
17+
- From 2.0.x and later within the 2.x series (2.0.x, 2.1.x, 2.2.x, etc.)
18+
- To 2.1.0 and later within the 2.x series (2.1.x, 2.2.x, 2.3.x, etc.)
1819

1920
:::info
20-
- The upgrade operation utilises the [Kubectl Plugin](../advanced-operations/kubectl-plugin.md).
21-
- The upgrade process is generally non-disruptive for volumes with a replication factor greater than one and all replicas being healthy, prior to starting the upgrade.
21+
22+
- Only upgrades are supported - downgrades are not possible.
23+
- The upgrade operation utilises the [Kubectl mayastor Plugin](../advanced-operations/kubectl-plugin.md). Ensure you have the appropriate Kubectl Plugin installed, Use the kubectl plugin version that matches your target Mayastor version.
24+
- If Mayastor was installed using the `mayastor/mayastor` Helm chart, use the `kubectl mayastor` plugin for upgrades.
25+
- If Mayastor was installed using the `openebs/openebs` Helm chart, refer to the [OpenEBS upgrade documentation](https://openebs.io/docs/4.0.x/user-guides/upgrade).
26+
- Volumes with single replica will be unavailable temporarily during upgrade.
27+
- The upgrade process is generally non-disruptive for volumes with a replication factor greater than one however verify that all replicas are healthy prior to upgrade
28+
2229
:::
2330

2431
To upgrade Replicated PV Mayastor deployment on the Kubernetes cluster, execute:
2532

2633
**Command**
2734

28-
```
29-
kubectl mayastor upgrade
35+
```bash
36+
kubectl mayastor upgrade -n <mayastor-namespace>
3037
```
3138

3239
To view all the available options and sub-commands that can be used with the upgrade command, execute:
3340

3441
**Command**
3542

36-
```
43+
```bash
3744
kubectl mayastor upgrade -h
3845
```
3946

4047
**Expected Output**
4148

42-
```
49+
```text
4350
`Upgrade` the deployment
4451
4552
Usage: kubectl-mayastor upgrade [OPTIONS]
@@ -73,13 +80,13 @@ To view the status of upgrade, execute:
7380

7481
**Command**
7582

76-
```
77-
kubectl mayastor get upgrade-status
83+
```bash
84+
kubectl mayastor get upgrade-status -n <mayastor-namespace>
7885
```
7986

8087
**Expected Output**
8188

82-
```
89+
```text
8390
Upgrade From: 2.0.0
8491
Upgrade To: 2.6.1
8592
Upgrade Status: Successfully upgraded Mayastor
@@ -89,12 +96,14 @@ To view the logs of upgrade job, execute:
8996

9097
**Command**
9198

92-
```
99+
```bash
93100
kubectl logs <upgrade-job-pod-name> -n <mayastor-namespace>
94101
```
95102

96103
:::info
104+
97105
1. The time taken to upgrade is directly proportional to the number of IO engine nodes and storage volumes.
98106
2. To upgrade to a particular Replicated PV Mayastor version, ensure you are using the same version of kubectl plugin.
99107
3. The above process of upgrade creates one Job in the namespace where Replicated PV Mayastor is installed, one ClusterRole, one ClusterRoleBinding and one ServiceAccount.
100-
:::
108+
109+
:::

docs/versioned_docs/version-4.1.x/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/additional-information/upgrade-re.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,43 @@ description: Upgrade to the latest OpenEBS 2.6.0 version is supported only from
1010

1111
## Upgrading Replicated PV Mayastor
1212

13-
Replicated PV Mayastor supports seamless upgrades starting with target version 2.1.0 and later, and source versions 2.0.0 and later. To upgrade from a previous version (1.0.5 or prior) to 2.1.0 or later, visit [Legacy Upgrade Support](legacy-upgrade.md).
13+
Replicated PV Mayastor supports seamless upgrades starting with target version 2.1.0 and later, and source versions 2.0.0 and later. To upgrade from a previous version (1.0.5 or prior) to 2.1.0 or later, visit [Legacy Upgrade Support](legacy-upgrade.md).
1414

1515
### Supported Upgrade Paths
1616

17-
- From 2.0.x to 2.6.1
17+
- From 2.0.x and later within the 2.x series (2.0.x, 2.1.x, 2.3.x, etc.)
18+
- To 2.1.0 and later within the 2.x series (2.1.x, 2.2.x, 2.3.x, etc.)
1819

1920
:::info
20-
- The upgrade operation utilises the [Kubectl Plugin](../advanced-operations/kubectl-plugin.md).
21-
- The upgrade process is generally non-disruptive for volumes with a replication factor greater than one and all replicas being healthy, prior to starting the upgrade.
21+
22+
- Only upgrades are supported - downgrades are not possible.
23+
- The upgrade operation utilises the [Kubectl mayastor Plugin](../advanced-operations/kubectl-plugin.md). Ensure you have the appropriate Kubectl Plugin installed, Use the kubectl plugin version that matches your target Mayastor version.
24+
- If Mayastor was installed using the `mayastor/mayastor` Helm chart, use the `kubectl mayastor` plugin for upgrades.
25+
- If Mayastor was installed using the `openebs/openebs` Helm chart, refer to the [OpenEBS upgrade documentation](https://openebs.io/docs/4.1.x/user-guides/upgrade).
26+
- Volumes with single replica will be unavailable temporarily during upgrade.
27+
- The upgrade process is generally non-disruptive for volumes with a replication factor greater than one however verify that all replicas are healthy prior to upgrade
28+
2229
:::
2330

2431
To upgrade Replicated PV Mayastor deployment on the Kubernetes cluster, execute:
2532

2633
**Command**
2734

28-
```
29-
kubectl mayastor upgrade
35+
```bash
36+
kubectl mayastor upgrade -n <mayastor-namespace>
3037
```
3138

3239
To view all the available options and sub-commands that can be used with the upgrade command, execute:
3340

3441
**Command**
3542

36-
```
43+
```bash
3744
kubectl mayastor upgrade -h
3845
```
3946

4047
**Expected Output**
4148

42-
```
49+
```text
4350
`Upgrade` the deployment
4451
4552
Usage: kubectl-mayastor upgrade [OPTIONS]
@@ -73,13 +80,13 @@ To view the status of upgrade, execute:
7380

7481
**Command**
7582

76-
```
77-
kubectl mayastor get upgrade-status
83+
```bash
84+
kubectl mayastor get upgrade-status -n <mayastor-namespace>
7885
```
7986

8087
**Expected Output**
8188

82-
```
89+
```bash
8390
Upgrade From: 2.0.0
8491
Upgrade To: 2.6.1
8592
Upgrade Status: Successfully upgraded Mayastor
@@ -89,12 +96,14 @@ To view the logs of upgrade job, execute:
8996

9097
**Command**
9198

92-
```
99+
```bash
93100
kubectl logs <upgrade-job-pod-name> -n <mayastor-namespace>
94101
```
95102

96103
:::info
104+
97105
1. The time taken to upgrade is directly proportional to the number of IO engine nodes and storage volumes.
98106
2. To upgrade to a particular Replicated PV Mayastor version, ensure you are using the same version of kubectl plugin.
99107
3. The above process of upgrade creates one Job in the namespace where Replicated PV Mayastor is installed, one ClusterRole, one ClusterRoleBinding and one ServiceAccount.
100-
:::
108+
109+
:::

0 commit comments

Comments
 (0)