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

Feature csi 5536 add fence implementation #679

Open
wants to merge 9 commits into
base: task/CSI-5277_add_unittests_to_identity_servicer
Choose a base branch
from

Conversation

ArbelNathan
Copy link
Contributor

No description provided.

ArbelNathan and others added 8 commits May 15, 2023 17:09
…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]>
…dentity_servicer' into feature/CSI-5536_fence_design_tests

# Conflicts:
#	controllers/array_action/array_mediator_svc.py
Signed-off-by: arbenathan <[email protected]>
@ArbelNathan ArbelNathan requested review from leonid-s-usov, matancarmeli7 and a team June 21, 2023 15:14
Copy link

@leonid-s-usov leonid-s-usov left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@matancarmeli7 matancarmeli7 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +2093 to +2105
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)
Copy link
Contributor

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

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