Skip to content

Commit db65992

Browse files
authored
IBM Spectrum Virtualize v1.7.0 (ansible-collections#48)
* IBM Spectrum Virtualize v1.7.0 1. Updated new module description in README 2. Updated version name in galaxy.yml 3. Updated changelog 4. Added support for managing user, user groups and ownership groups 5. Added support for the configuration of Call Home feature. 6. Added support for remote assistance configuration. 7. Unit tests are added
1 parent 1b739cc commit db65992

35 files changed

+6290
-178
lines changed

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Code of conduct](https://img.shields.io/badge/code%20of%20conduct-Ansible-silver.svg)](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html )
44

5-
This collection provides a series of Ansible modules and plugins for interacting with the IBM Spectrum Virtualize Family storage products. These products include the IBM SAN Volume Controller, IBM FlashSystem Family members built with IBM Spectrum Virtualize (FlashSystem 5000, 5100, 5200, 7200, 9100, 9200, 9200R, and V9000), IBM Storwize Family, and IBM Spectrum Virtualize for Public Cloud. For more information regarding these products, see the [IBM Documentation](https://www.ibm.com/docs/en ).
5+
This collection provides a series of Ansible modules and plugins for interacting with the IBM Spectrum Virtualize family storage products. These products include the IBM SAN Volume Controller, IBM FlashSystem family members built with IBM Spectrum Virtualize (FlashSystem 5xxx, 7200, 9100, 9200, 9200R, and V9000), IBM Storwize family, and IBM Spectrum Virtualize for Public Cloud. For more information regarding these products, see [IBM Documentation](https://www.ibm.com/docs/en ).
66

77
## Requirements
88

@@ -68,27 +68,40 @@ Alternatively, you can add a full namepsace and collection name in the `collecti
6868

6969
### Modules
7070

71-
- ibm_svc_auth - Generates an authentication token for a user on IBM Spectrum Virtualize Family storage system
71+
- ibm_svc_auth - Generates an authentication token for a user on IBM Spectrum Virtualize family storage system
7272
- ibm_svc_host - Manages hosts on IBM Spectrum Virtualize system
7373
- ibm_svc_hostcluster - Manages host cluster on IBM Spectrum Virtualize system
7474
- ibm_svc_info - Collects information on IBM Spectrum Virtualize system
75+
- ibm_svc_initial_setup - Manages initial setup configuration on IBM Spectrum Virtualize system
76+
- ibm_svc_manage_callhome - Manages configuration of Call Home feature on IBM Spectrum Virtualize system
7577
- ibm_svc_manage_consistgrp_flashcopy - Manages FlashCopy consistency groups on IBM Spectrum Virtualize system
7678
- ibm_svc_manage_cv - Manages the change volume in remote copy replication on IBM Spectrum Virtualize system
7779
- ibm_svc_manage_flashcopy - Manages FlashCopy mappings on IBM Spectrum Virtualize system
7880
- ibm_svc_manage_mirrored_volume - Manages mirrored volumes on IBM Spectrum Virtualize system
7981
- ibm_svc_manage_migration - Manages volume migration between clusters on IBM Spectrum Virtualize system
82+
- ibm_svc_manage_ownershipgroup - Manages ownership groups on IBM Spectrum Virtualize system
8083
- ibm_svc_manage_replication - Manages remote copy replication on IBM Spectrum Virtualize system
81-
- ibm_svc_manage_replicationgroup - Manages remote copy consistency group on IBM Spectrum Virtualize system
84+
- ibm_svc_manage_replicationgroup - Manages remote copy consistency groups on IBM Spectrum Virtualize system
85+
- ibm_svc_manage_sra - Manages the remote support assistance configuration on IBM Spectrum Virtualize system
86+
- ibm_svc_manage_user - Manages user on IBM Spectrum Virtualize system
87+
- ibm_svc_manage_usergroup - Manages user groups on IBM Spectrum Virtualize system
8288
- ibm_svc_manage_volume - Manages standard volumes on IBM Spectrum Virtualize system
8389
- ibm_svc_manage_volumegroup - Manages volume groups on IBM Spectrum Virtualize system
8490
- ibm_svc_mdisk - Manages MDisks for IBM Spectrum Virtualize system
8591
- ibm_svc_mdiskgrp - Manages pools for IBM Spectrum Virtualize system
8692
- ibm_svc_start_stop_flashcopy - Starts or stops FlashCopy mapping and consistency groups on IBM Spectrum Virtualize system
87-
- ibm_svc_start_stop_replication - Starts or stops remote copy relationship or group on IBM Spectrum Virtualize system
93+
- ibm_svc_start_stop_replication - Starts or stops remote-copy independent relationships or consistency groups on IBM Spectrum Virtualize system
8894
- ibm_svc_vol_map - Manages volume mapping for IBM Spectrum Virtualize system
8995
- ibm_svcinfo_command - Runs svcinfo CLI command on IBM Spectrum Virtualize system over SSH session
9096
- ibm_svctask_command - Runs svctask CLI command(s) on IBM Spectrum Virtualize system over SSH session
9197

98+
### Other Feature Information
99+
- SV Ansible Collection v1.7.0 provides `Setup and Configuration Automation` through different modules. This feature helps user to automate Day 0 configuration.
100+
This feature includes three modules:
101+
- ibm_svc_initial_seutp
102+
- ibm_svc_manage_callhome
103+
- ibm_svc_manage_sra
104+
- By proceeding and using these modules, the user acknowledges that [IBM Privacy Statement](https://www.ibm.com/privacy) has been read and understood.
92105

93106
### Prerequisite
94107

@@ -100,6 +113,8 @@ The modules in the IBM Spectrum Virtualize Ansible collection leverage REST APIs
100113
1. Using the REST APIs to list more than 2000 objects may create a loss of service from the API side, as it automatically restarts due to memory constraints.
101114
2. It is not possible to access REST APIs using an IPv6 address on a cluster.
102115
3. The Ansible collection can run on all IBM Spectrum Virtualize storage versions above 8.1.3, except versions 8.3.1.3 and 8.3.1.4.
116+
4. At time of release of the SV Ansible v1.7.0 collection, no module is available to automate license agreements acceptance, including EULA.
117+
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.
103118

104119
## Releasing, Versioning and Deprecation
105120

changelogs/changelog.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,27 @@ releases:
2525
- description: Manages volume migration between Spectrum Virtualize storage systems
2626
name: ibm_svc_manage_migration
2727
namespace: ''
28+
1.7.0:
29+
release_date: '2021-12-24'
30+
changes:
31+
release_summary: Added new modules for managing users, user groups and ownership groups. Added modules for configuring
32+
Call Home, remote support assistance and initial setup configurations.
33+
modules:
34+
- description: Manages users on Spectrum Virtualize system
35+
name: ibm_svc_manage_user
36+
namespace: ''
37+
- description: Manages user groups on Spectrum Virtualize system
38+
name: ibm_svc_manage_usergroup
39+
namespace: ''
40+
- description: Manages ownership groups on Spectrum Virtualize storage systems
41+
name: ibm_svc_manage_ownershipgroup
42+
namespace: ''
43+
- description: Manages Call Home configuration on Spectrum Virtualize storage systems
44+
name: ibm_svc_manage_callhome
45+
namespace: ''
46+
- description: Manages remote support assistance on Spectrum Virtualize storage systems
47+
name: ibm_svc_manage_sra
48+
namespace: ''
49+
- description: Allow user to do initial setup configuration on Spectrum Virtualize storage systems
50+
name: ibm_svc_initial_setup
51+
namespace: ''

galaxy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: ibm
99
name: spectrum_virtualize
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: 1.6.0
12+
version: 1.7.0
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: README.md
@@ -21,6 +21,7 @@ authors:
2121
- Shilpi Jain <shilpi.jain1@ibm.com>
2222
- Rohit Kumar <rohit.kumar6@ibm.com>
2323
- Sreshtant Bohidar <sreshtant.bohidar@ibm.com>
24+
- Sanjaikumaar M <sanjaikumaar.m@ibm.com>
2425

2526

2627
### OPTIONAL but strongly recommended

plugins/modules/ibm_svc_auth.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (C) 2020 IBM CORPORATION
4+
# Copyright (C) 2021 IBM CORPORATION
55
# Author(s): Shilpi Jain <shilpi.jain1@ibm.com>
66
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
77

@@ -15,7 +15,7 @@
1515
DOCUMENTATION = '''
1616
---
1717
module: ibm_svc_auth
18-
short_description: This module generates an authentication token for a user on IBM Spectrum Virtualize Family storage system
18+
short_description: This module generates an authentication token for a user on IBM Spectrum Virtualize family storage system
1919
description:
2020
- Ansible interface to generate the authentication token.
2121
The token is used to make REST API calls to the storage system.
@@ -97,7 +97,6 @@
9797
version_added: 1.5.0
9898
'''
9999

100-
from traceback import format_exc
101100
from ansible.module_utils.basic import AnsibleModule
102101
from ansible_collections.ibm.spectrum_virtualize.plugins.module_utils.ibm_svc_utils import IBMSVCRestApi, svc_argument_spec, get_logger
103102
from ansible.module_utils._text import to_native

plugins/modules/ibm_svc_host.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
DOCUMENTATION = '''
2020
---
2121
module: ibm_svc_host
22-
short_description: This module manages hosts on IBM Spectrum Virtualize Family storage systems
22+
short_description: This module manages hosts on IBM Spectrum Virtualize family storage systems
2323
version_added: "1.0.0"
2424
description:
2525
- Ansible interface to manage 'mkhost', 'chhost', and 'rmhost' host commands.
@@ -31,14 +31,13 @@
3131
type: str
3232
state:
3333
description:
34-
- Creates or updates (C(present)), or removes (C(absent)) a host.
34+
- Creates or updates (C(present)) or removes (C(absent)) a host.
3535
choices: [ absent, present ]
3636
required: true
3737
type: str
3838
clustername:
3939
description:
40-
- The hostname or management IP of the
41-
Spectrum Virtualize storage system.
40+
- The hostname or management IP of the Spectrum Virtualize storage system.
4241
required: true
4342
type: str
4443
domain:
@@ -49,17 +48,17 @@
4948
username:
5049
description:
5150
- REST API username for the Spectrum Virtualize storage system.
52-
- The parameters I(username) and I(password) are required if not using 'token' to authenticate a user.
51+
- The parameters I(username) and I(password) are required if not using I(token) to authenticate a user.
5352
type: str
5453
password:
5554
description:
5655
- REST API password for the Spectrum Virtualize storage system.
57-
- The parameters I(username) and I(password) are required if not using 'token' to authenticate a user.
56+
- The parameters I(username) and I(password) are required if not using I(token) to authenticate a user.
5857
type: str
5958
token:
6059
description:
6160
- The authentication token to verify a user on the Spectrum Virtualize storage system.
62-
- To generate a token, use ibm_svc_auth module.
61+
- To generate a token, use the ibm_svc_auth module.
6362
type: str
6463
version_added: '1.5.0'
6564
fcwwpn:
@@ -76,26 +75,24 @@
7675
type: str
7776
iogrp:
7877
description:
79-
- Specifies a set of one or more input/output (I/O)
80-
groups from which the host can access the volumes.
78+
- Specifies a set of one or more input/output (I/O) groups from which the host can access the volumes.
8179
Once specified, this parameter cannot be modified.
8280
- Valid when C(state=present), to create a host.
8381
type: str
8482
protocol:
8583
description:
86-
- Specifies the protocol used by the host to
87-
communicate with the storage system. Only 'scsi' protocol is supported.
84+
- Specifies the protocol used by the host to communicate with the storage system. Only 'scsi' protocol is supported.
8885
- Valid when C(state=present), to create a host.
8986
type: str
9087
type:
9188
description:
9289
- Specifies the type of host.
93-
Valid when C(state=present), to create or modify a host.
90+
- Valid when C(state=present), to create or modify a host.
9491
type: str
9592
site:
9693
description:
9794
- Specifies the site name of the host.
98-
Valid when C(state=present), to create or modify a host.
95+
- Valid when C(state=present), to create or modify a host.
9996
type: str
10097
hostcluster:
10198
description:

plugins/modules/ibm_svc_hostcluster.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
33

4-
# Copyright (C) 2020 IBM CORPORATION
4+
# Copyright (C) 2021 IBM CORPORATION
55
# Author(s): Shilpi Jain <shilpi.jain1@ibm.com>
66
#
77
# GNU General Public License v3.0+
@@ -17,7 +17,7 @@
1717
DOCUMENTATION = '''
1818
---
1919
module: ibm_svc_hostcluster
20-
short_description: This module manages host cluster on IBM Spectrum Virtualize Family storage systems
20+
short_description: This module manages host cluster on IBM Spectrum Virtualize family storage systems
2121
version_added: "1.5.0"
2222
description:
2323
- Ansible interface to manage 'mkhostcluster', 'chhostcluster' and 'rmhostcluster' host commands.
@@ -41,7 +41,7 @@
4141
domain:
4242
description:
4343
- Domain for the Spectrum Virtualize storage system.
44-
Valid when hostname is used for the parameter I(clustername).
44+
- Valid when hostname is used for the parameter I(clustername).
4545
type: str
4646
username:
4747
description:
@@ -56,19 +56,19 @@
5656
token:
5757
description:
5858
- The authentication token to verify a user on the Spectrum Virtualize storage system.
59-
- To generate a token, use ibm_svc_auth module.
59+
- To generate a token, use the ibm_svc_auth module.
6060
type: str
6161
ownershipgroup:
6262
description:
6363
- The name of the ownership group to which the host cluster object is being added.
64-
Parameters I(ownershipgroup) and I(noownershipgroup) are mutually exclusive.
64+
- Parameters I(ownershipgroup) and I(noownershipgroup) are mutually exclusive.
6565
- Applies when C(state=present).
6666
type: str
6767
version_added: '1.6.0'
6868
noownershipgroup:
6969
description:
7070
- If specified True, the host cluster object is removed from the ownership group to which it belongs.
71-
Parameters I(ownershipgroup) and I(noownershipgroup) are mutually exclusive.
71+
- Parameters I(ownershipgroup) and I(noownershipgroup) are mutually exclusive.
7272
- Applies when C(state=present) to modify an existing hostcluster.
7373
type: bool
7474
version_added: '1.6.0'

0 commit comments

Comments
 (0)