Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact(migrate): improve logs and docs about multiple cstorvolume apis #96

Merged
merged 3 commits into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/migrate/executor/cstor_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func (m *MigrateOptions) RunCStorSPCMigrate() error {
return errors.Errorf("Failed to migrate cStor SPC : %s", m.spcName)
}
klog.Infof("Successfully migrated spc %s to cspc", m.spcName)

klog.Infof("Make sure to migrate the associated PVCs, " +
shubham14bajpai marked this conversation as resolved.
Show resolved Hide resolved
"to find the old PVCs use `kubectl get cstorvolume.openebs.io -n <openebs-namespace>`, " +
shubham14bajpai marked this conversation as resolved.
Show resolved Hide resolved
"and to get the migrated PVCs use `kubectl get cstorvolume.cstor.openebs.io -n <openebs-namespace>`")
shubham14bajpai marked this conversation as resolved.
Show resolved Hide resolved
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 PVCs, to find the old PVCs use `kubectl get cstorvolume.openebs.io -n <openebs-namespace>` and to get the migrated PVCs 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