Skip to content

Commit

Permalink
Merge pull request #12 from dell/V1.9.0_release
Browse files Browse the repository at this point in the history
Release 1.9.0 for PyPowerStore Python Library
  • Loading branch information
Jennifer-John committed Dec 14, 2022
2 parents cb47432 + bdc6295 commit 10df2a5
Show file tree
Hide file tree
Showing 39 changed files with 3,404 additions and 2,866 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# PyPowerStore Change Log

## Version 1.9.0 - released on 20/12/22
- Added support for clone, restore, and refresh a volume.
- Added support for metro sync to volume, host, host group and replication session.

## Version 1.8.0 - released on 27/09/22
- Added configuration operations include validate create cluster attributes and create cluster.
- Added support for clone, restore, and refresh a volume group.
Expand Down
9 changes: 4 additions & 5 deletions ProgrammersGuideExamples/host_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@
print(HOST_DETAILS)

# Modify the Host
HOST_MODIFIED = CONN.provisioning.modify_host(host_id=RESP['id'],
name="powerstore_renamed",
description="This is a new "
"description "
)
HOST_MODIFIED = CONN.provisioning.modify_host(
host_id=RESP['id'], name="powerstore_renamed",
description="This is a new description ",
host_connectivity="Metro_Optimize_Both")
print(HOST_MODIFIED)

# Remove Initiators from Host
Expand Down
3 changes: 2 additions & 1 deletion ProgrammersGuideExamples/host_group_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
host_group_id=RESP["id"],
name="modified-pr-hg-name-x1",
remove_host_ids=[HOST['id']],
description="Modified desc from sdk")
description="Modified desc from sdk",
host_connectivity="Metro_Optimize_Local")
print(HG_MODIFIED)

# Add Hosts to Host Group
Expand Down
5 changes: 5 additions & 0 deletions ProgrammersGuideExamples/replication_session_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@
RESP = CONN.protection.sync_replication_session(
session_id="24f4236f-f7b6-4ae1-8130-8463b256fae6")
print(RESP)

# Modify the role of the replication session
RESP = CONN.protection.modify_replication_session(
session_id="24f4236f-f7b6-4ae1-8130-8463b256fae6", role="Metro_Preferred")
print(RESP)
26 changes: 26 additions & 0 deletions ProgrammersGuideExamples/volume_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,29 @@
# Delete a Host Group
HG_DELETE = CONN.provisioning.delete_host_group(host_group_id=HG['id'])
print(HG_DELETE)

# Clone Volume
CLONE_VOLUME = CONN.provisioning.clone_volume(volume_id=VOL[0]['id'],
name='test_clone_volume',
description='Testing',
host_group_id=HG['id'])
print(CLONE_VOLUME)

# Refresh Volume
REFRESH_VOLUME_SNAPSHOT = CONN.provisioning.refresh_volume(volume_id=VOL[0]['id'],
volume_id_to_refresh_from=CLONE_VOLUME['id'])
print(REFRESH_VOLUME_SNAPSHOT)

# Restore Volume
RESTORE_VOLUME_SNAPSHOT = CONN.provisioning.restore_volume(volume_id=VOL[0]['id'],
snap_id_to_restore_from=REFRESH_VOLUME_SNAPSHOT['id'])
print(RESTORE_VOLUME_SNAPSHOT)

# Configure a metro volume
CONN.provisioning.configure_metro_volume(
volume_id=VOL[0]['id'],
remote_system_id='434f534e-7009-4e60-8e1e-5cf721ae40df')

# End a volume metro session
CONN.provisioning.end_volume_metro_config(volume_id=VOL[0]['id'],
delete_remote_volume=True)
2 changes: 1 addition & 1 deletion PyPowerStore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"""__init__.py."""

__title__ = 'PyPowerStore'
__version__ = '1.8.0.0'
__version__ = '1.9.0.0'
__author__ = 'Dell Technologies or its subsidiaries'
__copyright__ = 'Copyright 2019 Dell Technologies'
Loading

0 comments on commit 10df2a5

Please sign in to comment.