Skip to content

Commit

Permalink
refact(migrate): improve logs and docs about multiple cstorvolume apis (
Browse files Browse the repository at this point in the history
#96)

Signed-off-by: shubham <[email protected]>
  • Loading branch information
shubham14bajpai authored Mar 3, 2021
1 parent f4de139 commit bd5b0e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/96-shubham14bajpai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refact(migrate): improve logs and docs about multiple cstorvolume apis
4 changes: 4 additions & 0 deletions cmd/migrate/executor/cstor_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,9 @@ func (m *MigrateOptions) RunCStorSPCMigrate() error {
}
klog.Infof("Successfully migrated spc %s to cspc", m.spcName)

klog.Infof("Make sure to migrate the associated PVs, "+
"to list CStorVolumes for the PVs which are pending migration use `kubectl get cstorvolume.openebs.io -n %s -l openebs.io/storage-pool-claim=%s`, "+
"and to list CStorVolumes for the migrated/CSI PVs use `kubectl get cstorvolume.cstor.openebs.io -n %s`",
m.openebsNamespace, m.spcName, m.openebsNamespace)
return nil
}
1 change: 1 addition & 0 deletions docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ I0520 10:01:25.798889 1 pool.go:80] Successfully migrated spc sparse-claim

**<span style="color: red;">Note: In case the job fails for any reason please do not scale up the old CSP deployments. It can lead to data corruption.</span>**

Make sure to migrate the associated PVs, to list CStorVolumes for the PVs which are pending for migration use `kubectl get cstorvolume.openebs.io -n <openebs-namespace> -l openebs.io/storage-pool-claim=<spc-name>` and to list CStorVolumes for the migrated/CSI PVs use `kubectl get cstorvolume.cstor.openebs.io -n <openebs-namespace>`

## cStor External Provisioned volumes to cStor CSI volumes

Expand Down
1 change: 1 addition & 0 deletions pkg/version/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var (
"1.10.0": true, "1.11.0": true, "1.12.0": true,
"2.0.0": true, "2.1.0": true, "2.2.0": true, "2.3.0": true,
"2.4.0": true, "2.4.1": true, "2.5.0": true, "2.6.0": true,
"2.7.0": true,
}
validDesiredVersion = strings.Split(GetVersion(), "-")[0]
)
Expand Down

0 comments on commit bd5b0e0

Please sign in to comment.