Skip to content

Commit

Permalink
4 q24 (#54)
Browse files Browse the repository at this point in the history
* 4Q24 Feature changes and fixes

* minor linting fixes

* Minor bug fixes, and playbooks

* Minor linting issues
  • Loading branch information
sumitguptaibm authored Dec 16, 2024
1 parent 4b84e5e commit 3cb671c
Show file tree
Hide file tree
Showing 118 changed files with 7,013 additions and 1,945 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
# around creation of a new stable branch, this might cause a problem
# that two different versions of ansible-test use the same sanity test
# ignore.txt file.
- stable-2.15
- stable-2.16
- stable-2.17
#- devel
- stable-2.18
# - devel
# - milestone
# Ansible-test on various stable branches does not yet work well with cgroups v2.
# Since ubuntu-latest now uses Ubuntu 22.04, we need to fall back to the ubuntu-20.04
Expand All @@ -79,7 +79,7 @@ jobs:
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible }}
#origin-python-version: 3.9
# origin-python-version: 3.10
testing-type: sanity
# OPTIONAL If your sanity tests require code
# from other collections, install them like this
Expand Down Expand Up @@ -114,22 +114,23 @@ jobs:
ansible:
# The commented branches below are EOL,
# do you really need your collection to support them if it still does?
- stable-2.15
- stable-2.16
- stable-2.17
- stable-2.18
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
exclude:
# Python 3.10 is supported in 2.12 or later.
- ansible: stable-2.15
python: '3.12'
# Python 3.10 will not be supported in ansible 2.18 and later. Python 3.13 support started with ansible 2.18.
- ansible: stable-2.16
python: '3.9'
python: '3.13'
- ansible: stable-2.17
python: '3.9'
python: '3.13'
- ansible: stable-2.18
python: '3.10'


steps:
- name: >-
Expand All @@ -148,7 +149,7 @@ jobs:
testing-type: units
# OPTIONAL If your unit tests require code
# from other collections, install them like this
#test-deps: >-
# test-deps: >-
# ansible.netcommon
# ansible.utils
# OPTIONAL If set to true, will test only against changed files,
Expand Down Expand Up @@ -184,25 +185,24 @@ jobs:
ansible:
# The commented branches below are EOL,
# do you really need your collection to support them if it still does?
- stable-2.15
- stable-2.16
- stable-2.17
#- devel
- stable-2.18
# - devel
# - milestone
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
exclude:
# Because ansible-test doesn't support Python 3.9 for Ansible 2.9
# and Python 3.10 is supported in 2.12 or later.
- ansible: stable-2.15
python: '3.12'
# Python 3.10 will not be supported in ansible 2.18 and later. Python 3.13 support started with ansible 2.18.
- ansible: stable-2.16
python: '3.9'
python: '3.13'
- ansible: stable-2.17
python: '3.9'
python: '3.13'
- ansible: stable-2.18
python: '3.10'

steps:
- name: >-
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ Alternatively, you can add a full namepsace and collection name in the `collecti
```yaml
---
- name: Using the IBM Storage Virtualize collection
collections:
- ibm.storage_virtualize
gather_facts: no
connection: local
hosts: localhost
tasks:
- name: Gather info from storage
ibm_svc_info:
ibm.storage_virtualize.ibm_svc_info:
clustername: x.x.x.x
domain:
username: username
Expand Down Expand Up @@ -151,7 +149,6 @@ The modules in the IBM Storage Virtualize Ansible collection leverage REST APIs
4. At time of release of the SV Ansible v1.8.0 collection, no module is available for non LMC systems to automate license agreements acceptance, including EULA.
User will be presented with a GUI setup wizard upon user-interface login, whether the Ansible modules have been used for initial configuration or not.


## Releasing, Versioning, and Deprecation

1. IBM Storage Virtualize Ansible Collection releases follow a quarterly release cycle.
Expand Down
44 changes: 32 additions & 12 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ releases:
- ibm_svc_info - Added support to display current security settings.
- ibm_svc_manage_volumgroup - Added support to associate/deassociate volume group with a storage partition.
- ibm_sv_manage_replication_policy - Added support to configure a 2-site-ha policy.
bugfixes:
bugfixes: []
release_summary: Introduced two new modules. Added support for syslog server management and storage partition.
modules:
- description: Manages security settings on Storage Virtualize system related to SSH protocol and password-related
configuration
name: ibm_sv_manage_security
namespace: ''
- description: Manages storage partition on Storage Virtualize system used for policy based High Availability
name: ibm_sv_manage_storage_partition
namespace: ''
- description: Manages syslog server configuration on Storage Virtualize system
name: ibm_sv_manage_syslog_server
namespace: ''
- description: Manages security settings on Storage Virtualize system related to SSH protocol and password-related configuration
name: ibm_sv_manage_security
namespace: ''
- description: Manages storage partition on Storage Virtualize system used for policy based High Availability
name: ibm_sv_manage_storage_partition
namespace: ''
- description: Manages syslog server configuration on Storage Virtualize system
name: ibm_sv_manage_syslog_server
namespace: ''
2.2.0:
release_date: '2023-12-29'
changes:
Expand All @@ -38,7 +37,7 @@ releases:
- ibm_svc_manage_volumgroup - Added support to delete volumegroups keeping volumes via 'evictvolumes'.
- ibm_sv_manage_snapshot - Added support to restore entire volumegroup from a snapshot of that volumegroup.
- ibm_sv_manage_replication_policy - Added support to configure a 2-site-ha policy.
bugfixes:
bugfixes: []
release_summary: Added support for restoring volumegroups from snapshot, creating NVMeTCP host, features
(evictvolumes, retentionminutes, volume and volumegroup information) for thincloned/cloned volume and
volumegroups)
Expand Down Expand Up @@ -100,3 +99,24 @@ releases:
release_summary: Added support for syslog server, high-speed replication portset, NNMeFC host, satask and sainfo
commands, for moving existing objects into Policy-Based High Availability (PBHA), added playbook for setting up
new PBHA environment, and improved policy-based replication playbook.

2.6.0:
release_date: '2024-12-18'
changes:
minor_changes:
- ibm_sv_manage_storage_partition - Added support for partition migration and disaster recovery
- ibm_sv_manage_replication_policy - Added support for disaster recovery
- ibm_svc_manage_volumegroup - Added support for disaster recovery and converting thinclone volumegroup to clone
- ibm_svc_manage_volume - Added support for converting thinclone volume(s) to clone
- ibm_svc_manage_portset - Added support for linking portset of 2 clusters for PBHA
- ibm_svc_initial_setup - Added support for flashcopy default grain size and SI (Storage Insights) to be able
to control partition migration
- ibm_sv_manage_truststore_for_replication - Added support for enabling various options (syslog, RESTAPI,
vasa, ipsec, snmp and email) for existing truststore
bugfixes:
- ibm_svc_manage_flashcopy - Added support for creating flashcopy with existing target volume

release_summary: Added support for partition migration, PBRHA (3-site), portset linking for PBHA, truststore
properties changes, added playbooks for migrating GMCV (Global Mirror with Change Volumes) and GM (Global Mirror)
to PBR (Policy-Based Replication), migrating HyperSwap to PBHA (Policy-Based High Availability) setup, deleting
objects from PBHA partition and for PBRHA (3-site) setup and cleanup.
32 changes: 16 additions & 16 deletions changelogs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ notesdir: fragments
prelude_section_name: release_summary
prelude_section_title: Release Summary
sections:
- - major_changes
- Major Changes
- - minor_changes
- Minor Changes
- - breaking_changes
- Breaking Changes / Porting Guide
- - deprecated_features
- Deprecated Features
- - removed_features
- Removed Features (previously deprecated)
- - security_fixes
- Security Fixes
- - bugfixes
- Bugfixes
- - known_issues
- Known Issues
- - major_changes
- Major Changes
- - minor_changes
- Minor Changes
- - breaking_changes
- Breaking Changes / Porting Guide
- - deprecated_features
- Deprecated Features
- - removed_features
- Removed Features (previously deprecated)
- - security_fixes
- Security Fixes
- - bugfixes
- Bugfixes
- - known_issues
- Known Issues
title: CHANGE THIS IN changelogs/config.yaml!
trivial_section_name: trivial
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGE THIS
fixes:
- "/ansible_collections/NAMESPACE/COLLECTION/::"
- "/ansible_collections/NAMESPACE/COLLECTION/::"
ignore:
- "**/test_*.py"
- "**/playbooks"
- "**/playbooks"
4 changes: 2 additions & 2 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace: ibm
name: storage_virtualize
version: 2.5.0
version: 2.6.0
readme: README.md
authors:
- Sumit Kumar Gupta (github.com/sumitguptaibm)
Expand All @@ -18,7 +18,7 @@ tags:
- flashsystem
- ibmsvc
repository: https://github.com/ansible-collections/ibm.storage_virtualize
#documentation: https://github.com/ansible-collection-migration/community.REPO_NAME/tree/main/docs
# documentation: https://github.com/ansible-collection-migration/community.REPO_NAME/tree/main/docs
homepage: https://github.com/ansible-collections/ibm.storage_virtualize
issues: https://github.com/ansible-collections/ibm.storage_virtualize/issues
build_ignore:
Expand Down
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
requires_ansible: '>=2.15.0'
requires_ansible: '>=2.16.0'
75 changes: 37 additions & 38 deletions playbooks/PBHA/create_mdiskgrp_provisioning_policy.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,56 @@
- name: create mdiskgrp
ibm_svc_mdiskgrp:
clustername: "{{item.cluster_ip}}"
username: "{{item.cluster_username}}"
password: "{{item.cluster_password}}"
- name: Create mdiskgrp
ibm.storage_virtualize.ibm_svc_mdiskgrp:
clustername: '{{ item.cluster_ip }}'
username: '{{ item.cluster_username }}'
password: '{{ item.cluster_password }}'
log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
name: "{{pool_name}}"
name: "{{ pool_name }}"
state: present
datareduction: yes
datareduction: 'yes'
ext: 1024

- name: Get drive info
register: results
ibm_svc_info:
clustername: "{{item.cluster_ip}}"
username: "{{item.cluster_username}}"
password: "{{item.cluster_password}}"
log_path: "{{log_path | default('/tmp/ansiblePB.debug')}}"
ibm.storage_virtualize.ibm_svc_info:
clustername: "{{ item.cluster_ip }}"
username: "{{ item.cluster_username }}"
password: "{{ item.cluster_password }}"
log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
gather_subset: "drive"

- name: Make drive in candidate state
ibm_sv_manage_drive:
clustername: "{{item.cluster_ip}}"
username: "{{item.cluster_username}}"
password: "{{item.cluster_password}}"
log_path: "{{log_path | default('/tmp/ansiblePB.debug')}}"
ibm.storage_virtualize.ibm_sv_manage_drive:
clustername: "{{ item.cluster_ip }}"
username: "{{ item.cluster_username }}"
password: "{{ item.cluster_password }}"
log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
drive_state: candidate
drive_id: "{{ Drive.id }}"
loop: "{{ results.Drive }}"
loop_control:
loop_var: Drive
ignore_errors: true
loop_var: Drive
when: Drive.use != "member"

- name: create distributed array
ibm_svc_mdisk:
clustername: "{{item.cluster_ip}}"
username: "{{item.cluster_username}}"
password: "{{item.cluster_password}}"
log_path: "{{log_path | default('/tmp/ansiblePB.debug')}}"
name: "{{mdisk_name}}"
- name: Create distributed array
ibm.storage_virtualize.ibm_svc_mdisk:
clustername: "{{ item.cluster_ip }}"
username: "{{ item.cluster_username }}"
password: "{{ item.cluster_password }}"
log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
name: "{{ mdisk_name }}"
state: "present"
level: "{{level}}"
drivecount: "{{drivecount}}"
driveclass: 0
encrypt: no
mdiskgrp: "{{pool_name}}"
level: "{{ level }}"
drivecount: "{{ drivecount }}"
driveclass: 0
encrypt: 'no'
mdiskgrp: "{{ pool_name }}"

- name: Create provisioning policy
ibm_sv_manage_provisioning_policy:
clustername: "{{item.cluster_ip}}"
username: "{{item.cluster_username}}"
password: "{{item.cluster_password}}"
log_path: "{{log_path | default('/tmp/ansiblePB.debug')}}"
name: "{{provisioning_policy_name | default('provisioning_policy0')}}"
ibm.storage_virtualize.ibm_sv_manage_provisioning_policy:
clustername: "{{ item.cluster_ip }}"
username: "{{ item.cluster_username }}"
password: "{{ item.cluster_password }}"
log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
name: "{{ provisioning_policy_name | default('provisioning_policy0') }}"
capacitysaving: "drivebased"
state: "present"

4 changes: 1 addition & 3 deletions playbooks/PBHA/inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
- level: <level>
- drivecount: <drivecount>
- ha_policy_name: <ha_policy_name>
- partition_name: <partion_name>
- partition_name: <partition_name>
- volume_size: <volume_size>
- volume_prefix: <volume_prefix>
- volume_group_name: <volume_group_name>
- number_of_volumes: <number_of_volumes>
- log_path: <log_path>


Loading

0 comments on commit 3cb671c

Please sign in to comment.