dellemc.powermax.process_storage_pool_dict (3.0.0) — module

Process storage pools on PowerMax/VMAX Storage System

| "added in version" 1.5.0 of dellemc.powermax"

Authors: Akash Shendge (@shenda1) <ansible.team@dell.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install dellemc.powermax:==3.0.0


Add to requirements.yml

  collections:
    - name: dellemc.powermax
      version: 3.0.0

Description

Process storage pools on PowerMax/VMAX storage system to find out the storage pool with maximum free storage.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get best suitable Pool using our python sorting module
  register: assigned_pool
  dellemc.powermax.process_storage_pool_dict:
    unispherehost: "{{unispherehost}}"
    verifycert: "{{verifycert}}"
    user: "{{user}}"
    password: "{{password}}"
    pool_data: "{{ pools_list }}"
    size: 40
    service_level: "Diamond"
    sg_name: "intellgent_provisioning"

Inputs

    
size:
    description:
    - Size of the storage group in GB.
    required: true
    type: float

user:
    description:
    - The username of the Unisphere host.
    required: true
    type: str

sg_name:
    description:
    - Name of the storage group.
    type: str

timeout:
    default: 120
    description:
    - Time after which the connection will get terminated.
    - It is to be mentioned in seconds.
    type: int

password:
    description:
    - The password of the Unisphere host.
    required: true
    type: str

pool_data:
    description:
    - Storage pool details including service levels, usable total space, usable free space,
      total free space.
    elements: dict
    required: true
    type: list

universion:
    choices:
    - 91
    - 92
    - 100
    - 101
    description:
    - Unisphere version, currently '91', '92', '100' and '101' versions are supported.
    required: false
    type: int

verifycert:
    description:
    - Specifies system whether to validate SSL certificate or not, Values can be True
      or False or a custom file path for SSL certificate with .pem extension or .cer with
      base 64 encoding.
    required: true
    type: str

service_level:
    description:
    - Service level of the storage group.
    type: str

unispherehost:
    description:
    - IP or FQDN of the Unisphere host
    required: true
    type: str

Outputs

all_pools:
  contains:
    serial_no:
      description: The PowerMax array on which storage pool resides
      returned: when array satisfies the given criteria
      type: str
    storage_pool:
      description: The ID of the storage pool
      returned: when storage pool exists satisfying the given criteria
      type: str
  description: List of all pools on unisphere
  returned: when pool exists
  type: list
changed:
  description: Whether or not the resource has changed.
  returned: always
  type: bool
serial_no:
  description: The PowerMax array on which storage pool resides
  returned: when array satisfies the given criteria
  type: str
storage_group:
  description: Name of the storage group
  returned: when storage group exists satisfying the given criteria
  type: str
storage_pool:
  description: The ID of the storage pool
  returned: when storage pool exists satisfying the given criteria
  type: str