yadro.tatlin_uni.tatlin_sp_drives_info module – Get information about drive groups

Note

This module is part of the yadro.tatlin_uni collection (version 1.0.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install yadro.tatlin_uni.

To use it in a playbook, specify: yadro.tatlin_uni.tatlin_sp_drives_info.

New in version 1.0.0: of yadro.tatlin_uni

Synopsis

  • This module is intended to get information about drive groups and physical drives in a form of detailed inventory

  • Supports check mode

Parameters

Parameter

Comments

connection

dictionary / required

connection describes Tatlin Storage Processor (SP) connection configuration.

Only session connection supported.

Authorization is executed automatically with corresponding endpoint. ‘auth/login’ by default.

Client receives x-auth-token and uses it for following requests.

base_url

string / required

Tatlin REST API entrypoint.

password

string

Tatlin user password.

timeout

integer

Tatlin REST API request timeout.

Default: 60

username

string

Tatlin username to login.

validate_certs

boolean

Responsible for SSL certificates validation.

If set to False certificates won’t validated.

Choices:

  • no

  • yes ← (default)

Notes

Note

Examples

---
- name: Get tatlin drives info
  yadro.tatlin_uni.tatlin_sp_drives_info:
    connection: "{{ connection }}"
  register: result

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

drives_info

dictionary

Details of the drive groups

Returned: on success

Sample: [{“capacity_available”: “7549747200”, “capacity_failed”: “0”, “capacity_total”: “8388608000”, “capacity_used”: “838860800”, “drive_capacity”: “209715200”, “drive_type”: “HDD”, “drives”: [{“bay”: “1000000001”, “capacity”: 209715200, “model”: “YADRO-shared_disk-2.5+”, “pool”: “testpool”, “serial_number”: “0450513bb2bbd68fdc7cb9f2e38d00c0”, “slot”: “4”, “status”: “Healthy”}, {“bay”: “1000000002”, “capacity”: 209715200, “model”: “YADRO-shared_disk-2.5+”, “pool”: null, “serial_number”: “28f1808838540d6b959ab0a1962d6443”, “slot”: “1”, “status”: “Healthy”}], “drives_available”: 36, “drives_failed”: 0, “drives_total”: 40, “drives_used”: 4, “group_name”: “HDD_209.71MB”, “status”: “Ready”}]

error

string

Error details if raised

Returned: on error

msg

string

Operation status message

Returned: always

Authors

  • Sergey Kovalev (@kvlvs)