-
Notifications
You must be signed in to change notification settings - Fork 192
New command for getting duplicate convert status #1655
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
Conversation
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.
Looks good to me, when the API for this is in production, I will merge this in.
Please comment on this pull request when that is officially available.
@@ -577,3 +577,12 @@ def convert_dep_dupe(self, volume_id): | |||
return self.client.call('Network_Storage', | |||
'convertCloneDependentToIndependent', | |||
id=volume_id) | |||
|
|||
def split_percentage(self, volume_id): | |||
"""Get the Clone split/move status completion of a duplicate volume |
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.
please put the link reference
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.
ahh.. which link reference you are asking here @caberos ...jira for API that's consuming this - https://jira.softlayer.local/browse/FBLOCK-4520
@environment.pass_env | ||
def cli(env, volume_id): | ||
"""Get status for split or move completed percentage of a given file duplicate volume.""" | ||
table = formatting.Table(['username', 'active_conversion_start_time', 'completed_percentage']) |
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.
uppercase
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.
Done
@environment.pass_env | ||
def cli(env, volume_id): | ||
"""Get status for split or move completed percentage of a given file duplicate volume.""" | ||
table = formatting.Table(['username', 'active_conversion_start_time', 'completed_percentage']) |
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.
table = formatting.Table(['username', 'active_conversion_start_time', 'completed_percentage']) | |
table = formatting.Table(['Username', 'Active conversion start', 'Completed percentage']) |
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.
Done
|
||
file_manager = SoftLayer.FileStorageManager(env.client) | ||
|
||
value = file_manager.split_percentage( |
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.
value = file_manager.split_percentage( | |
value = file_manager.split_percentage(volume_id) |
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.
Done
|
||
block_manager = SoftLayer.BlockStorageManager(env.client) | ||
|
||
value = block_manager.split_percentage( |
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.
value = block_manager.split_percentage( | |
value = block_manager.split_percentage(volume_id) |
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.
Done
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.
LGTM
Hi @allmightyspiff , the api has released yesterday IST, Requesting you to please merge this PR. |
New feature for getting duplicate split/move completion status .
Command name : duplicate-convert-status