dellemc.powerflex.nvme_host module – Manage NVMe hosts on Dell PowerFlex
Note
This module is part of the dellemc.powerflex collection (version 2.6.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 dellemc.powerflex
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.powerflex.nvme_host
.
New in dellemc.powerflex 2.6.0
Synopsis
Managing NVMe hosts on PowerFlex storage system includes creating, getting details of NVMe hosts , modifying and deleting NVMe hosts.
Requirements
The below requirements are needed on the host that executes this module.
A Dell PowerFlex storage system version 3.6 or later.
PyPowerFlex 1.14.0.
Parameters
Parameter |
Comments |
---|---|
IP or FQDN of the PowerFlex host. |
|
Maximum number of paths per volume. Used to create or modify the NVMe host. |
|
Maximum number of ports per protection domain. Used to create or modify the NVMe host. |
|
NQN of the NVMe host. Used to create, get or modify the NVMe host. To retrieve NQN of NVMe host, use command :command:`cat /etc/nvme/hostnqn` |
|
Name of the NVMe host. Specify either nvme_host_name, nqn for create, get or rename operation. |
|
New name of the NVMe host. Used to rename the NVMe host. Only used for updates. Ignored during creation. |
|
The password of the PowerFlex host. |
|
Port number through which communication happens with PowerFlex host. Default: |
|
State of the NVMe host. Choices:
|
|
Time after which connection will get terminated. It is to be mentioned in seconds. Default: |
|
The username of the PowerFlex host. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Runs task to validate without performing action on the target machine. |
|
Support: full |
Runs the task to report the changes made or to be made. |
Notes
Note
The modules present in the collection named as ‘dellemc.powerflex’ are built to support the Dell PowerFlex storage platform.
Examples
- name: Create NVMe host
dellemc.powerflex.nvme_host:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nqn: "{{ nqn }}"
nvme_host_name: "{{ nvme_host_name }}"
state: "present"
- name: Rename nvme_host using NVMe host id
dellemc.powerflex.nvme_host:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nvme_host_name: "{{ nvme_host_name }}"
nvme_host_new_name: "{{ nvme_host_new_name }}"
state: "present"
- name: Set maximum number of paths per volume and maximum Number of Ports Per Protection Domain of nvme_host
dellemc.powerflex.nvme_host:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nvme_host_name: "{{ nvme_host_name }}"
max_num_paths: "{{ max_num_paths }}"
max_num_sys_ports: "{{ max_num_sys_ports }}"
state: "present"
- name: Remove nvme_host
dellemc.powerflex.nvme_host:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
nvme_host_name: "{{ nvme_host_name }}"
state: "absent"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether or not the resource has changed. Returned: always Sample: |
|
Details of the NVMe host. Returned: When NVMe host exists Sample: |
|
Full type of the host OS. Returned: success |
|
Type of the host. Returned: success |
|
ID of the NVMe host. Returned: success |
|
Installed software version information. Returned: success |
|
Kernel build number. Returned: success |
|
Kernel version. Returned: success |
|
Links related to the NVMe host. Returned: success |
|
Hyperlink reference. Returned: success |
|
Relation type. Returned: success |
|
Maximum number of paths per volume. Used to create or modify the NVMe host. Returned: success |
|
Maximum number of ports per protection domain. Used to create or modify the NVMe host. Returned: success |
|
MDM connection state. Returned: success |
|
Current MDM IP addresses. Returned: success |
|
Name of the NVMe host. Returned: success |
|
NQN of the NVMe host. Used to create, get or modify the NVMe host. Returned: success |
|
OS type. Returned: success |
|
Peer MDM ID. Returned: success |
|
Performance profile. Returned: success |
|
Whether the SDC agent is active. Returned: success |
|
Whether an SDC has approved access to the system. Returned: success |
|
SDC approved IPs. Returned: success |
|
SDC GUID. Returned: success |
|
SDC IP address. Returned: success |
|
SDC IP addresses. Returned: success |
|
SDC type. Returned: success |
|
SDR ID. Returned: success |
|
SDT ID. Returned: success |
|
Software version information. Returned: success |
|
ID of the system. Returned: success |
|
Version information. Returned: success |