| 1 |
.. _nvme_host_module: |
| 2 |
|
| 3 |
|
| 4 |
nvme_host -- Manage NVMe hosts on Dell PowerFlex |
| 5 |
================================================ |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
Managing NVMe hosts on PowerFlex storage system includes creating, getting details of NVMe hosts , modifying and deleting NVMe hosts. |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
Requirements |
| 20 |
------------ |
| 21 |
The below requirements are needed on the host that executes this module. |
| 22 |
|
| 23 |
- A Dell PowerFlex storage system version 3.6 or later. |
| 24 |
- PyPowerFlex 2.0.0. |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
Parameters |
| 29 |
---------- |
| 30 |
|
| 31 |
max_num_paths (optional, str, None) |
| 32 |
Maximum number of paths per volume. Used to create or modify the NVMe host. |
| 33 |
|
| 34 |
|
| 35 |
max_num_sys_ports (optional, str, None) |
| 36 |
Maximum number of ports per protection domain. Used to create or modify the NVMe host. |
| 37 |
|
| 38 |
|
| 39 |
nqn (optional, str, None) |
| 40 |
NQN of the NVMe host. Used to create, get or modify the NVMe host. |
| 41 |
|
| 42 |
To retrieve NQN of NVMe host, use command :command:\`cat /etc/nvme/hostnqn\` |
| 43 |
|
| 44 |
|
| 45 |
nvme_host_name (optional, str, None) |
| 46 |
Name of the NVMe host. |
| 47 |
|
| 48 |
Specify either \ :emphasis:`nvme\_host\_name`\ , \ :emphasis:`nqn`\ for create, get or rename operation. |
| 49 |
|
| 50 |
|
| 51 |
nvme_host_new_name (optional, str, None) |
| 52 |
New name of the NVMe host. Used to rename the NVMe host. |
| 53 |
|
| 54 |
Only used for updates. Ignored during creation. |
| 55 |
|
| 56 |
|
| 57 |
state (optional, str, present) |
| 58 |
State of the NVMe host. |
| 59 |
|
| 60 |
|
| 61 |
hostname (True, str, None) |
| 62 |
IP or FQDN of the PowerFlex host. |
| 63 |
|
| 64 |
|
| 65 |
username (True, str, None) |
| 66 |
The username of the PowerFlex host. |
| 67 |
|
| 68 |
|
| 69 |
password (True, str, None) |
| 70 |
The password of the PowerFlex host. |
| 71 |
|
| 72 |
|
| 73 |
validate_certs (optional, bool, True) |
| 74 |
Boolean variable to specify whether or not to validate SSL certificate. |
| 75 |
|
| 76 |
\ :literal:`true`\ - Indicates that the SSL certificate should be verified. |
| 77 |
|
| 78 |
\ :literal:`false`\ - Indicates that the SSL certificate should not be verified. |
| 79 |
|
| 80 |
|
| 81 |
port (optional, int, 443) |
| 82 |
Port number through which communication happens with PowerFlex host. |
| 83 |
|
| 84 |
|
| 85 |
timeout (False, int, 120) |
| 86 |
Time after which connection will get terminated. |
| 87 |
|
| 88 |
It is to be mentioned in seconds. |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
Notes |
| 95 |
----- |
| 96 |
|
| 97 |
.. note:: |
| 98 |
- The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform. |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
Examples |
| 104 |
-------- |
| 105 |
|
| 106 |
.. code-block:: yaml+jinja |
| 107 |
|
| 108 |
|
| 109 |
- name: Create NVMe host |
| 110 |
dellemc.powerflex.nvme_host: |
| 111 |
hostname: "{{ hostname }}" |
| 112 |
username: "{{ username }}" |
| 113 |
password: "{{ password }}" |
| 114 |
validate_certs: "{{ validate_certs }}" |
| 115 |
nqn: "{{ nqn }}" |
| 116 |
nvme_host_name: "{{ nvme_host_name }}" |
| 117 |
state: "present" |
| 118 |
|
| 119 |
- name: Rename nvme_host using NVMe host id |
| 120 |
dellemc.powerflex.nvme_host: |
| 121 |
hostname: "{{ hostname }}" |
| 122 |
username: "{{ username }}" |
| 123 |
password: "{{ password }}" |
| 124 |
validate_certs: "{{ validate_certs }}" |
| 125 |
nvme_host_name: "{{ nvme_host_name }}" |
| 126 |
nvme_host_new_name: "{{ nvme_host_new_name }}" |
| 127 |
state: "present" |
| 128 |
|
| 129 |
- name: Set maximum number of paths per volume and maximum Number of Ports Per Protection Domain of nvme_host |
| 130 |
dellemc.powerflex.nvme_host: |
| 131 |
hostname: "{{ hostname }}" |
| 132 |
username: "{{ username }}" |
| 133 |
password: "{{ password }}" |
| 134 |
validate_certs: "{{ validate_certs }}" |
| 135 |
nvme_host_name: "{{ nvme_host_name }}" |
| 136 |
max_num_paths: "{{ max_num_paths }}" |
| 137 |
max_num_sys_ports: "{{ max_num_sys_ports }}" |
| 138 |
state: "present" |
| 139 |
|
| 140 |
- name: Remove nvme_host |
| 141 |
dellemc.powerflex.nvme_host: |
| 142 |
hostname: "{{ hostname }}" |
| 143 |
username: "{{ username }}" |
| 144 |
password: "{{ password }}" |
| 145 |
validate_certs: "{{ validate_certs }}" |
| 146 |
nvme_host_name: "{{ nvme_host_name }}" |
| 147 |
state: "absent" |
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
Return Values |
| 152 |
------------- |
| 153 |
|
| 154 |
changed (always, bool, false) |
| 155 |
Whether or not the resource has changed. |
| 156 |
|
| 157 |
|
| 158 |
nvme_host_details (When NVMe host exists, dict, {'hostOsFullType': 'Generic', 'systemId': '264ec85b3855280f', 'name': 'name', 'sdcApproved': None, 'sdcAgentActive': None, 'mdmIpAddressesCurrent': None, 'sdcIp': None, 'sdcIps': None, 'osType': None, 'perfProfile': None, 'peerMdmId': None, 'sdtId': None, 'mdmConnectionState': None, 'softwareVersionInfo': None, 'socketAllocationFailure': None, 'memoryAllocationFailure': None, 'versionInfo': None, 'sdcType': None, 'nqn': 'nqn.org.nvmexpress:uuid', 'maxNumPaths': 6, 'maxNumSysPorts': 10, 'sdcGuid': None, 'installedSoftwareVersionInfo': None, 'kernelVersion': None, 'kernelBuildNumber': None, 'sdcApprovedIps': None, 'hostType': 'NVMeHost', 'sdrId': None, 'id': '1040d67200010000', 'links': [{'rel': 'self', 'href': '/api/instances/Host::1040d67200010000'}, {'rel': '/api/Host/relationship/Volume', 'href': '/api/instances/Host::1040d67200010000/relationships/Volume'}, {'rel': '/api/Host/relationship/NvmeController', 'href': '/api/instances/Host::1040d67200010000/relationships/NvmeController'}, {'rel': '/api/parent/relationship/systemId', 'href': '/api/instances/System::264ec85b3855280f'}]}) |
| 159 |
Details of the NVMe host. |
| 160 |
|
| 161 |
|
| 162 |
hostOsFullType (, str, ) |
| 163 |
Full type of the host OS. |
| 164 |
|
| 165 |
|
| 166 |
hostType (, str, ) |
| 167 |
Type of the host. |
| 168 |
|
| 169 |
|
| 170 |
id (, str, ) |
| 171 |
ID of the NVMe host. |
| 172 |
|
| 173 |
|
| 174 |
installedSoftwareVersionInfo (, str, ) |
| 175 |
Installed software version information. |
| 176 |
|
| 177 |
|
| 178 |
kernelBuildNumber (, str, ) |
| 179 |
Kernel build number. |
| 180 |
|
| 181 |
|
| 182 |
kernelVersion (, str, ) |
| 183 |
Kernel version. |
| 184 |
|
| 185 |
|
| 186 |
links (, list, ) |
| 187 |
Links related to the NVMe host. |
| 188 |
|
| 189 |
|
| 190 |
href (, str, ) |
| 191 |
Hyperlink reference. |
| 192 |
|
| 193 |
|
| 194 |
rel (, str, ) |
| 195 |
Relation type. |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
max_num_paths (, int, ) |
| 200 |
Maximum number of paths per volume. Used to create or modify the NVMe host. |
| 201 |
|
| 202 |
|
| 203 |
max_num_sys_ports (, int, ) |
| 204 |
Maximum number of ports per protection domain. Used to create or modify the NVMe host. |
| 205 |
|
| 206 |
|
| 207 |
mdmConnectionState (, str, ) |
| 208 |
MDM connection state. |
| 209 |
|
| 210 |
|
| 211 |
mdmIpAddressesCurrent (, list, ) |
| 212 |
Current MDM IP addresses. |
| 213 |
|
| 214 |
|
| 215 |
name (, str, ) |
| 216 |
Name of the NVMe host. |
| 217 |
|
| 218 |
|
| 219 |
nqn (, str, ) |
| 220 |
NQN of the NVMe host. Used to create, get or modify the NVMe host. |
| 221 |
|
| 222 |
|
| 223 |
osType (, str, ) |
| 224 |
OS type. |
| 225 |
|
| 226 |
|
| 227 |
peerMdmId (, str, ) |
| 228 |
Peer MDM ID. |
| 229 |
|
| 230 |
|
| 231 |
perfProfile (, str, ) |
| 232 |
Performance profile. |
| 233 |
|
| 234 |
|
| 235 |
sdcAgentActive (, bool, ) |
| 236 |
Whether the SDC agent is active. |
| 237 |
|
| 238 |
|
| 239 |
sdcApproved (, bool, ) |
| 240 |
Whether an SDC has approved access to the system. |
| 241 |
|
| 242 |
|
| 243 |
sdcApprovedIps (, list, ) |
| 244 |
SDC approved IPs. |
| 245 |
|
| 246 |
|
| 247 |
sdcGuid (, str, ) |
| 248 |
SDC GUID. |
| 249 |
|
| 250 |
|
| 251 |
sdcIp (, str, ) |
| 252 |
SDC IP address. |
| 253 |
|
| 254 |
|
| 255 |
sdcIps (, list, ) |
| 256 |
SDC IP addresses. |
| 257 |
|
| 258 |
|
| 259 |
sdcType (, str, ) |
| 260 |
SDC type. |
| 261 |
|
| 262 |
|
| 263 |
sdrId (, str, ) |
| 264 |
SDR ID. |
| 265 |
|
| 266 |
|
| 267 |
sdtId (, str, ) |
| 268 |
SDT ID. |
| 269 |
|
| 270 |
|
| 271 |
softwareVersionInfo (, str, ) |
| 272 |
Software version information. |
| 273 |
|
| 274 |
|
| 275 |
systemId (, str, ) |
| 276 |
ID of the system. |
| 277 |
|
| 278 |
|
| 279 |
versionInfo (, str, ) |
| 280 |
Version information. |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
Status |
| 288 |
------ |
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
Authors |
| 295 |
~~~~~~~ |
| 296 |
|
| 297 |
- Peter Cao (@P-Cao) <[email protected]> |
| 298 |
|