Skip to content

Feature csi 5536 add fence implementation #679

Open
ArbelNathan wants to merge 9 commits intotask/CSI-5277_add_unittests_to_identity_servicerfrom
feature/CSI-5536_fence_design_tests
Open

Feature csi 5536 add fence implementation #679
ArbelNathan wants to merge 9 commits intotask/CSI-5277_add_unittests_to_identity_servicerfrom
feature/CSI-5536_fence_design_tests

Conversation

@ArbelNathan
Copy link
Contributor

No description provided.

ArbelNathan and others added 8 commits May 15, 2023 17:09
Signed-off-by: ArbelNathan <arbel.nathan@ibm.com>
…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 <arbel.nathan@ibm.com>
Signed-off-by: ArbelNathan <arbel.nathan@ibm.com>
Signed-off-by: ArbelNathan <arbel.nathan@ibm.com>
Signed-off-by: ArbelNathan <arbel.nathan@ibm.com>
…dentity_servicer' into feature/CSI-5536_fence_design_tests

# Conflicts:
#	controllers/array_action/array_mediator_svc.py
Signed-off-by: arbenathan <arbel.nathan0@gmail.com>
@ArbelNathan ArbelNathan requested review from a team, leonid-s-usov and matancarmeli7 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!

Signed-off-by: arbenathan <arbel.nathan0@gmail.com>
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