Skip to content

Conversation

susmita-poddar-hpe
Copy link

@susmita-poddar-hpe susmita-poddar-hpe commented Aug 28, 2025

Flows - initialize_connection, create_volume, delete_volume, create_snapshot, delete_snapshot, extend_volume (increase size of vol), create_volume_from_snapshot, create_cloned_volume.

@susmita-poddar-hpe susmita-poddar-hpe changed the title initialize_connetion, create_volume SDK changes - Phase1 Sep 3, 2025
return host, hostname


def queryHostReturnHostname(self, iscsi_iqn=None, wwns=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use iscsi_iqns. because iqn can be one or more

Copy link
Author

Choose a reason for hiding this comment

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

@traghavendra - done

Copy link
Collaborator

@traghavendra traghavendra left a comment

Choose a reason for hiding this comment

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

Please check comments

return None


def _get_key_value(self, hpe3par_keys, key, default=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

The variable "hpe3par_keys" is used by cinder. So this function should be part of common.py

Copy link
Author

Choose a reason for hiding this comment

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

@traghavendra - done

rcg_name = vol_details.get('rcopyGroup')
return rcg_name

def getStorageSystemIdName(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

The variables 'id' and 'name' are same in all arrays i.e 3par, primera, Alletra 9000 and Alletra MP.
thus, this function can be removed & getStorageSystemInfo() can be used (like in original cinder code).

Copy link
Author

Choose a reason for hiding this comment

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

@traghavendra - done

return info['id'], info['name']


def getWsApiVersionBuild(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

same comment as for previous function getStorageSystemIdName().
this function can be removed & getWsApiVersion() can be used (like in original cinder code).

Copy link
Author

Choose a reason for hiding this comment

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

@traghavendra - done

Copy link
Collaborator

@traghavendra traghavendra left a comment

Choose a reason for hiding this comment

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

Identified few functions that can be kept in cinder code (like original code)

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