Skip to content

Conversation

@alexander-sheredin
Copy link
Contributor

No description provided.

Comment on lines +460 to +467
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)
Copy link
Contributor Author

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?

Comment on lines +482 to +495
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)
Copy link
Contributor Author

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:
Copy link
Contributor Author

@alexander-sheredin alexander-sheredin Dec 25, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants