Closed DungKHoang closed 4 years ago
@DungKHoang, Im not able to reproduce the error with the above playbook. Can you just the try the same book with validate_etag as False and let us know if it works. I could rename the enclosure using the below playbook.
Scenario/Intent
Rename an enclosure
Environment Details
Steps to Reproduce
Expected Result
rename enclosure
Actual Result
fatal: [localhost -> localhost]: FAILED! => { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/dung/.ansible/tmp/ansible-tmp-1566985222.48-33735279464979/AnsiballZ_oneview_enclosure.py\", line 114, in\n _ansiballz_main()\n File \"/home/dung/.ansible/tmp/ansible-tmp-1566985222.48-33735279464979/AnsiballZ_oneview_enclosure.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/dung/.ansible/tmp/ansible-tmp-1566985222.48-33735279464979/AnsiballZ_oneview_enclosure.py\", line 49, in invoke_module\n imp.load_module('main', mod, module, MOD_DESC)\n File \"/tmp/ansible_oneview_enclosure_payload_Ys30Y6/main.py\", line 720, in \n File \"/tmp/ansible_oneview_enclosure_payload_Ys30Y6/main.py\", line 716, in main\n File \"/tmp/ansible_oneview_enclosure_payload_Ys30Y6/ansible_oneview_enclosure_payload.zip/ansible/module_utils/oneview.py\", line 430, in run\n File \"/tmp/ansible_oneview_enclosure_payload_Ys30Y6/main.py\", line 504, in execute_module\n File \"/tmp/ansible_oneview_enclosure_payload_Ys30Y6/main.py\", line 552, in present\n File \"/tmp/ansible_oneview_enclosure_payload_Ys30Y6/main.py\", line 670, in replace_enclosure_name\n File \"/home/dung/.local/lib/python2.7/site-packages/hpOneView/resources/resource.py\", line 68, in call\n obj.ensure_resource_data(update_data=self.update_data)\n File \"/home/dung/.local/lib/python2.7/site-packages/hpOneView/resources/resource.py\", line 118, in ensure_resource_data\n raise exceptions.HPOneViewMissingUniqueIdentifiers(MISSING_UNIQUE_IDENTIFIERS)\nHPOneViewMissingUniqueIdentifiers: Missing unique identifiers(URI/Name) for the resource\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}