-
Notifications
You must be signed in to change notification settings - Fork 4
Lvol migration #828
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
base: main
Are you sure you want to change the base?
Lvol migration #828
Conversation
| elif self.m.status==MigrationState.TARGET_LVOL_CREATED: | ||
| self.connect_hublvol() | ||
| elif self.m.status==MigrationState.HUBLVOL_CONNECTED: | ||
| self.transfer_data_final() | ||
| elif self.m.status==MigrationState.TRANSFERRED_TO_TARGET: | ||
| self.reconnect_subsystems() | ||
| elif self.m.status == MigrationState.RECONNECT_DONE: | ||
| self.cleanup_migration(True) |
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.
@schmidt-scaled should these be changed to if's?
| elif s.status in ObjectMigrationState.LVOL_CREATED: | ||
| self.set_mig_status(self.m.target_node_pri,s) | ||
| elif s.status in ObjectMigrationState.MIG_FLAG_SET: | ||
| self.export_lvol(s) | ||
| elif s.status in ObjectMigrationState.LVOL_EXPORTED: | ||
| self.connect_lvol(s) | ||
| elif s.status in ObjectMigrationState.LVOL_CONNECTED: | ||
| self.transfer_data(s, 0) | ||
| elif s.status==ObjectMigrationState.TRANSFERRED: | ||
| self.convert_lvol(s,p) | ||
| elif s.status == ObjectMigrationState.CONVERTED: | ||
| self.delete_subsystem(self.m.target_node_pri,s.snap.uuid) | ||
| elif s.status == ObjectMigrationState.CLEANING: | ||
| self.delete_lvol_from_node(self.m.target_node_sec, s.snap.uuid) |
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.
@schmidt-scaled should these be changed to if's?
| elif s.status == ObjectMigrationState.CLEANING: | ||
| self.delete_lvol_from_node(self.m.target_node_sec, s.snap.uuid) | ||
| p=s | ||
| if self.m.rerun < 3 or self.time_difference()>5: |
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.
@schmidt-scaled it is not clear where should the counter be incremented (to avoid infinite recursion)
No description provided.