Skip to content

Commit afbca9d

Browse files
authored
IBM Spectrum Virtualize Collection v1.11.0 (ansible-collections#77)
* IBM Spectrum Virtualize Collection v1.11.0
1 parent 604d7ec commit afbca9d

17 files changed

+3169
-236
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,16 @@ Alternatively, you can add a full namepsace and collection name in the `collecti
9898
- ibm_svc_vol_map - Manages volume mapping for Spectrum Virtualize storage systems
9999
- ibm_svcinfo_command - Runs svcinfo CLI command on Spectrum Virtualize storage systems over SSH session
100100
- ibm_svctask_command - Runs svctask CLI command(s) on Spectrum Virtualize storage systems over SSH session
101+
- ibm_sv_manage_awss3_cloudaccount - Manages Amazon S3 cloud account configuration on Spectrum Virtualize storage systems
102+
- ibm_sv_manage_cloud_backup - Manages cloud backups on Spectrum Virtualize storage systems
101103
- ibm_sv_manage_ip_partnership - Manages IP partnership configuration on Spectrum Virtualize storage systems
102104
- ibm_sv_manage_provisioning_policy - Manages provisioning policy configuration on Spectrum Virtualize storage systems
103105
- ibm_sv_manage_replication_policy - Manages policy-based replication configuration on Spectrum Virtualize storage systems
104106
- ibm_sv_manage_snapshot - Manages snapshots (mutual consistent images of a volume) on Spectrum Virtualize storage systems
105107
- ibm_sv_manage_snapshotpolicy - Manages snapshot policy configuration on Spectrum Virtualize storage systems
106108
- ibm_sv_manage_ssl_certificate - Exports an existing system certificate on to Spectrum Virtualize storage systems
107109
- ibm_sv_manage_truststore_for_replication - Manages certificate trust stores for replication on Spectrum Virtualize family storage systems
110+
- ibm_sv_restore_cloud_backup - Restores cloud backups on Spectrum Virtualize storage systems
108111
- ibm_sv_switch_replication_direction - Switches the replication direction on Spectrum Virtualize storage systems
109112

110113
### Other Feature Information
@@ -140,6 +143,7 @@ The modules in the IBM Spectrum Virtualize Ansible collection leverage REST APIs
140143

141144
Currently we are not accepting community contributions.
142145
Though, you may periodically review this content to learn when and how contributions can be made in the future.
146+
IBM Spectrum Virtualize Ansible Collection maintainers can follow the [Maintainer guidelines](https://docs.ansible.com/ansible/devel/community/maintainers.html).
143147

144148
## License
145149

changelogs/changelog.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,20 @@ releases:
103103
- description: Manages the certificates trust store on Spectrum Virtualize storage systems
104104
name: ibm_sv_manage_truststore_for_replication
105105
namespace: ''
106+
1.11.0:
107+
release_date: '2022-12-16'
108+
changes:
109+
release_summary: Added new modules for configuring Transparent Cloud Tiering (TCT) through Ansible.
110+
minor_changes:
111+
- ibm_svc_host - Added support for modification of iSCSI host.
112+
- ibm_svc_manage_migraiton - Added support for volume migration across pools.
113+
modules:
114+
- description: Manages AWS cloud account configuration on Spectrum Virtualize systems
115+
name: ibm_sv_manage_awss3_cloudaccount
116+
namespace: ''
117+
- description: Manages cloud backup on Spectrum Virtualize systems
118+
name: ibm_sv_manage_cloud_backups
119+
namespace: ''
120+
- description: Allows user to restore an existing cloud backup on Spectrum Virtualize systems
121+
name: ibm_sv_restore_cloud_backup
122+
namespace: ''

galaxy.yml

Lines changed: 1 addition & 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.10.0
12+
version: 1.11.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

plugins/module_utils/ibm_svc_utils.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def token(self):
152152
def token(self, value):
153153
return setattr(self, '_token', value)
154154

155-
def _svc_rest(self, method, headers, cmd, cmdopts, cmdargs):
155+
def _svc_rest(self, method, headers, cmd, cmdopts, cmdargs, timeout=10):
156156
""" Run SVC command with token info added into header
157157
:param method: http method, POST or GET
158158
:type method: string
@@ -163,6 +163,8 @@ def _svc_rest(self, method, headers, cmd, cmdopts, cmdargs):
163163
:param cmdopts: svc command options, name paramter and value
164164
:type cmdopts: dict
165165
:param cmdargs: svc command arguments, non-named paramaters
166+
:type timeout: int
167+
:param timeout: open_url argument to set timeout for http gateway
166168
:return: dict of command results
167169
:rtype: dict
168170
"""
@@ -189,7 +191,7 @@ def _svc_rest(self, method, headers, cmd, cmdopts, cmdargs):
189191
self.log("_svc_rest: payload=%s", payload)
190192

191193
try:
192-
o = open_url(url, method=method, headers=headers,
194+
o = open_url(url, method=method, headers=headers, timeout=timeout,
193195
validate_certs=self.validate_certs, data=bytes(data))
194196
except HTTPError as e:
195197
self.log('_svc_rest: httperror %s', str(e))
@@ -236,14 +238,16 @@ def _svc_authorize(self):
236238

237239
return None
238240

239-
def _svc_token_wrap(self, cmd, cmdopts, cmdargs):
241+
def _svc_token_wrap(self, cmd, cmdopts, cmdargs, timeout=10):
240242
""" Run SVC command with token info added into header
241243
:param cmd: svc command to run
242244
:type cmd: string
243245
:param cmdopts: svc command options, name paramter and value
244246
:type cmdopts: dict
245247
:param cmdargs: svc command arguments, non-named paramaters
246248
:type cmdargs: list
249+
:param timeout: open_url argument to set timeout for http gateway
250+
:type timeout: int
247251
:returns: command results
248252
"""
249253

@@ -257,20 +261,22 @@ def _svc_token_wrap(self, cmd, cmdopts, cmdargs):
257261
}
258262

259263
return self._svc_rest(method='POST', headers=headers, cmd=cmd,
260-
cmdopts=cmdopts, cmdargs=cmdargs)
264+
cmdopts=cmdopts, cmdargs=cmdargs, timeout=timeout)
261265

262-
def svc_run_command(self, cmd, cmdopts, cmdargs):
266+
def svc_run_command(self, cmd, cmdopts, cmdargs, timeout=10):
263267
""" Generic execute a SVC command
264268
:param cmd: svc command to run
265269
:type cmd: string
266270
:param cmdopts: svc command options, name parameter and value
267271
:type cmdopts: dict
268272
:param cmdargs: svc command arguments, non-named parameters
269273
:type cmdargs: list
274+
:param timeout: open_url argument to set timeout for http gateway
275+
:type timeout: int
270276
:returns: command output
271277
"""
272278

273-
rest = self._svc_token_wrap(cmd, cmdopts, cmdargs)
279+
rest = self._svc_token_wrap(cmd, cmdopts, cmdargs, timeout)
274280
self.log("svc_run_command rest=%s", rest)
275281

276282
if rest['err']:
@@ -281,19 +287,21 @@ def svc_run_command(self, cmd, cmdopts, cmdargs):
281287
# Might be None
282288
return rest['out']
283289

284-
def svc_obj_info(self, cmd, cmdopts, cmdargs):
290+
def svc_obj_info(self, cmd, cmdopts, cmdargs, timeout=10):
285291
""" Obtain information about an SVC object through the ls command
286292
:param cmd: svc command to run
287293
:type cmd: string
288294
:param cmdopts: svc command options, name parameter and value
289295
:type cmdopts: dict
290296
:param cmdargs: svc command arguments, non-named paramaters
291297
:type cmdargs: list
298+
:param timeout: open_url argument to set timeout for http gateway
299+
:type timeout: int
292300
:returns: command output
293301
:rtype: dict
294302
"""
295303

296-
rest = self._svc_token_wrap(cmd, cmdopts, cmdargs)
304+
rest = self._svc_token_wrap(cmd, cmdopts, cmdargs, timeout)
297305
self.log("svc_obj_info rest=%s", rest)
298306

299307
if rest['code']:

0 commit comments

Comments
 (0)