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

[GH-241] Unity: adds lun migration support #243

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

yong-huang
Copy link
Contributor

Use move session to implement lun migration.

@retryz.retry(timeout=timeout, wait=interval, on_return=False)
def _do_check_move_session(move_session_id):
move_session = clz.get(self._cli, _id=move_session_id)
if move_session.state == enums.MoveSessionStateEnum.COMPLETED:
Copy link
Contributor

Choose a reason for hiding this comment

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

If it is with FAILED, CANCELLED or COMPLETED, it is completed too. We could return quickly here, or we need to wait until timeout.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, will check FAILED and CANCELLED states.

@Murray-LIANG
Copy link
Contributor

Could you fix the pep8 failure in another PR?

@Murray-LIANG
Copy link
Contributor

Update the README.rst about the Unity migration.

is_compressed = self.is_data_reduction_enabled

try:
move_session = clz.create(self._cli, self, dest,
Copy link
Contributor

Choose a reason for hiding this comment

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

What if the lun is in cg?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If lun in cg, REST will return 409 source or dest does not exist error, storops will raise UnityMigrationSourceDestNotExistsError exception.

@yong-huang
Copy link
Contributor Author

Could you fix the pep8 failure in another PR?

#245 is opened to fix pep8 issues.

@yong-huang
Copy link
Contributor Author

Update the README.rst about the Unity migration.

Done.

Use move session to implement lun migration.
@yong-huang yong-huang merged commit 93bdf33 into develop Dec 6, 2018
@yong-huang yong-huang deleted the unity_lun_migration branch December 6, 2018 05:47
Murray-LIANG added a commit that referenced this pull request Feb 11, 2019
Features:
- Unity: Adds lun migration support (#241) (#243)
- Unity: Support share shrink in Storops (#255)
- Unity: Add exceptions for input shrink share size (#258)
- Unity: Add replication support (#256)

Fixed bugs:
- Update pytest version which is required 3.6.0
- Fix appveyor failure on pip 19.0.0/1 (#257)
Murray-LIANG added a commit that referenced this pull request Feb 11, 2019
Features:
- Unity: Adds lun migration support (#241) (#243)
- Unity: Support share shrink in Storops (#255)
- Unity: Add exceptions for input shrink share size (#258)
- Unity: Add replication support (#256)

Fixed bugs:
- Update pytest version which is required 3.6.0
- Fix appveyor failure on pip 19.0.0/1 (#257)
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.

2 participants