dell / ansible-powerstore

Ansible Modules for Dell PowerStore
GNU General Public License v3.0
33 stars 24 forks source link

[BUG]: Creating host is not an idempotent Task #23

Closed rawstorage closed 1 year ago

rawstorage commented 1 year ago

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:

  1. Create host with some wwn
  2. run playbook again
  3. 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):

Additional context Add any other context about the problem here.

anupamaloke commented 1 year ago

Closed by #30