First run is as expected, subsequent run gives error stating
{"changed": false, "error_code": 1, "msg": "Adding initiators ['10:00:00:10:9B:56:A0:07', '10:00:00:10:9B:56:A0:04'] to host dell52.crk.lab.emc.com failed with error HTTP code: 400, Bad Request [{'messages': [{'code': '0xE0A01001002D', 'severity': 'Error', 'message_l10n': 'One of the provided port names is already registered with another host. Please use port names unique to all hosts.'}]}]", "status_code": "400"}
To Reproduce
Steps to reproduce the behavior:
Create host with some wwn
run playbook again
Get error as above
...
Expected behavior
Task should run without any change noted.
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
If applicable, submit logs or stack traces from the affected services
System Information (please complete the following information):
OS/Version: RHEL 8.2
Ansible Version core 2.11.8
Python Version 3.6.8
Additional Information...
Additional context
Add any other context about the problem here.
Describe the bug Run playbook to create FC host
First run is as expected, subsequent run gives error stating
{"changed": false, "error_code": 1, "msg": "Adding initiators ['10:00:00:10:9B:56:A0:07', '10:00:00:10:9B:56:A0:04'] to host dell52.crk.lab.emc.com failed with error HTTP code: 400, Bad Request [{'messages': [{'code': '0xE0A01001002D', 'severity': 'Error', 'message_l10n': 'One of the provided port names is already registered with another host. Please use port names unique to all hosts.'}]}]", "status_code": "400"}
To Reproduce Steps to reproduce the behavior:
Expected behavior Task should run without any change noted. Screenshots If applicable, add screenshots to help explain your problem.
Logs If applicable, submit logs or stack traces from the affected services
System Information (please complete the following information):
Additional context Add any other context about the problem here.