-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature csi 5536 add fence implementation #679
base: task/CSI-5277_add_unittests_to_identity_servicer
Are you sure you want to change the base?
Feature csi 5536 add fence implementation #679
Conversation
Signed-off-by: ArbelNathan <[email protected]>
…feature/CSI-5536_fence_design_tests # Conflicts: # controllers/scripts/csi_general/csi_pb2.sh # controllers/servers/csi/controller_server_manager.py
Signed-off-by: ArbelNathan <[email protected]>
Signed-off-by: ArbelNathan <[email protected]>
Signed-off-by: ArbelNathan <[email protected]>
Signed-off-by: ArbelNathan <[email protected]>
…dentity_servicer' into feature/CSI-5536_fence_design_tests # Conflicts: # controllers/array_action/array_mediator_svc.py
Signed-off-by: arbenathan <[email protected]>
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!
Signed-off-by: arbenathan <[email protected]>
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
hosts = self.client.svcinfo.lshost(filtervalue=filter_value).as_list | ||
host_names = [host.name for host in hosts] | ||
|
||
volumes = self._lsvdisk_list(filtervalue=filter_value) | ||
volume_names = [volume.name for volume in volumes] | ||
|
||
mappings = self.client.svcinfo.lshostvdiskmap().as_list | ||
|
||
relevant_mappings = [mapping for mapping in mappings if | ||
mapping.name in host_names and mapping.vdisk_name in volume_names] | ||
logger.info(svc_messages.REMOVING_MAPPINGS.format(relevant_mappings)) | ||
for mapping in relevant_mappings: | ||
self.client.svctask.rmvdiskhostmap(vdisk_name=mapping.vdisk_name, host=mapping.name) |
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.
you can export this code into some functions, it can make it more cleaner IMO, but it's not important, it's not a blocker for the PR
No description provided.