-
Notifications
You must be signed in to change notification settings - Fork 76
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
Migrate #1239
Migrate #1239
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1239 +/- ##
=======================================
Coverage 35.77% 35.77%
=======================================
Files 28 28
Lines 2180 2180
=======================================
Hits 780 780
Misses 1297 1297
Partials 103 103 ☔ View full report in Codecov by Sentry. |
VolumeMigrateCompletedAnnoKey = "hwameistor.io/volume-migrate-completed" | ||
MigrateRunning = "migrateRunning" | ||
MigrateFinish = "migrateFinish" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest values: started
, completed
////Determine if there is a migration operation | ||
//if replica.Status.State != apisv1alpha1.VolumeReplicaStateReady { | ||
// ctx := context.TODO() | ||
// volName := replica.Spec.VolumeName | ||
// lvmName := fmt.Sprintf("evictor-%s", volName) | ||
// lvMigrate := &apisv1alpha1.LocalVolumeMigrate{} | ||
// if err = m.apiClient.Get(ctx, types.NamespacedName{Namespace: m.namespace, Name: lvmName}, lvMigrate); err != nil { | ||
// if !errors.IsNotFound(err) { | ||
// return err | ||
// } | ||
// } else { | ||
// testReplica.Status.State = apisv1alpha1.VolumeReplicaStateNotReady | ||
// } | ||
//} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to clean
pkg/local-storage/member/controller/volume_migrate_task_worker.go
Outdated
Show resolved
Hide resolved
Signed-off-by: peng9808 <peng.lai@daocloud.io>
What this PR does / why we need it:
#1228
#1213
Special notes for your reviewer:
Logical judgment of lvr state change with migration
Does this PR introduce a user-facing change?
NONE