-
Notifications
You must be signed in to change notification settings - Fork 72
SDK changes - Phase1 #108
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
base: master
Are you sure you want to change the base?
SDK changes - Phase1 #108
Conversation
hpe3parclient/client.py
Outdated
return host, hostname | ||
|
||
|
||
def queryHostReturnHostname(self, iscsi_iqn=None, wwns=None): |
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 use iscsi_iqns. because iqn can be one or more
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.
@traghavendra - 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.
Please check comments
hpe3parclient/client.py
Outdated
return None | ||
|
||
|
||
def _get_key_value(self, hpe3par_keys, key, default=None): |
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.
The variable "hpe3par_keys" is used by cinder. So this function should be part of common.py
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.
@traghavendra - done
hpe3parclient/client.py
Outdated
rcg_name = vol_details.get('rcopyGroup') | ||
return rcg_name | ||
|
||
def getStorageSystemIdName(self): |
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.
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).
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.
@traghavendra - done
hpe3parclient/client.py
Outdated
return info['id'], info['name'] | ||
|
||
|
||
def getWsApiVersionBuild(self): |
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.
same comment as for previous function getStorageSystemIdName().
this function can be removed & getWsApiVersion() can be used (like in original cinder code).
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.
@traghavendra - 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.
Identified few functions that can be kept in cinder code (like original code)
Flows - initialize_connection, create_volume, delete_volume, create_snapshot, delete_snapshot, extend_volume (increase size of vol), create_volume_from_snapshot, create_cloned_volume.