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

Migrate #1239

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Migrate #1239

merged 1 commit into from
Nov 15, 2023

Conversation

peng9808
Copy link
Collaborator

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


@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c0e1d64) 35.77% compared to head (f829373) 35.77%.
Report is 2 commits behind head on main.

❗ 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.
📢 Have feedback on the report? Share it here.

VolumeMigrateCompletedAnnoKey = "hwameistor.io/volume-migrate-completed"
MigrateRunning = "migrateRunning"
MigrateFinish = "migrateFinish"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest values: started, completed

Comment on lines 151 to 165
////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
// }
//}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to clean

@SSmallMonster SSmallMonster added the kind/bug Categorizes issue or PR as related to a bug. label Nov 14, 2023
Signed-off-by: peng9808 <peng.lai@daocloud.io>
@SSmallMonster SSmallMonster merged commit b87638c into hwameistor:main Nov 15, 2023
3 checks passed
@peng9808 peng9808 deleted the migrate branch November 23, 2023 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants