Closed ghost closed 5 years ago
@ComportConsulting , From API version 600 on wards, 'interconnectBayMappingCount" field got removed from the request. Please refer the API doc for more info.
@ComportConsulting, Closing this, as it's not a repository issue.
Scenario/Intent
Try to run the synergy_environment_setup.yml file
Environment Details
Steps to Reproduce
run the synergy-environment_setup.yml
Expected Result
run as expected
Actual Result
ansible@ansible-virtual-machine:~/oneview-ansible/library/Project$ ansible-playbook synergy_environment_setup.yml [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] **
TASK [Gathering Facts] **** ok: [localhost]
TASK [Gather facts about the SAS Interconnect Type Synergy 12Gb SAS Connection Module] **** ok: [localhost -> localhost]
TASK [Ensure the SAS Logical Interconnect Group is present] *** ok: [localhost -> localhost]
TASK [Ensure the Enclosure Group is present] ** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: HPOneViewException: (u'Unrecognized JSON field.', {u'errorSource': None, u'recommendedActions': [u'Check the valid fields for this JSON object and remove or correct the unrecognized field.'], u'data': {}, u'errorCode': u'UNRECOGNIZED_JSON_FIELD', u'details': u'The field named interconnectBayMappingCount near line 1, column 34 is not a valid field in this JSON object.', u'message': u'Unrecognized JSON field.', u'nestedErrors': []}) fatal: [localhost -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_lY9LNi/ansible_module_oneview_enclosure_group.py\", line 143, in\n main()\n File \"/tmp/ansible_lY9LNi/ansible_module_oneview_enclosure_group.py\", line 139, in main\n EnclosureGroupModule().run()\n File \"/tmp/ansible_lY9LNi/ansible_modlib.zip/ansible/module_utils/oneview.py\", line 428, in run\n result = self.execute_module()\n File \"/tmp/ansible_lY9LNi/ansible_module_oneview_enclosure_group.py\", line 133, in execute_module\n return self.resource_present(resource, 'enclosure_group')\n File \"/tmp/ansible_lY9LNi/ansible_modlib.zip/ansible/module_utils/oneview.py\", line 489, in resource_present\n resource = getattr(self.resource_client, create_method)(self.data)\n File \"/home/ansible/.local/lib/python2.7/site-packages/hpOneView/resources/servers/enclosure_groups.py\", line 135, in create\n return self._client.create(resource, timeout=timeout, default_values=self.DEFAULT_VALUES)\n File \"/home/ansible/.local/lib/python2.7/site-packages/hpOneView/resources/resource.py\", line 451, in create\n return self.do_post(uri, resource, timeout, custom_headers)\n File \"/home/ansible/.local/lib/python2.7/site-packages/hpOneView/resources/resource.py\", line 760, in do_post\n task, entity = self._connection.post(uri, resource, custom_headers=custom_headers)\n File \"/home/ansible/.local/lib/python2.7/site-packages/hpOneView/connection.py\", line 377, in post\n return self.do_rest_call('POST', uri, body, custom_headers=custom_headers)\n File \"/home/ansible/.local/lib/python2.7/site-packages/hpOneView/connection.py\", line 404, in do_rest_call\n raise HPOneViewException(body)\nHPOneViewException: (u'Unrecognized JSON field.', {u'errorSource': None, u'recommendedActions': [u'Check the valid fields for this JSON object and remove or correct the unrecognized field.'], u'data': {}, u'errorCode': u'UNRECOGNIZED_JSON_FIELD', u'details': u'The field named interconnectBayMappingCount near line 1, column 34 is not a valid field in this JSON object.', u'message': u'Unrecognized JSON field.', u'nestedErrors': []})\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
to retry, use: --limit @/home/ansible/oneview-ansible/library/Project/synergy_environment_setup.retry
PLAY RECAP **** localhost : ok=3 changed=0 unreachable=0 failed=1
Below is the full trace back of just the error portion:
The full traceback is: Traceback (most recent call last): File "/tmp/ansible_2DVt10/ansible_module_oneview_enclosure_group.py", line 143, in
main()
File "/tmp/ansible_2DVt10/ansible_module_oneview_enclosure_group.py", line 139, in main
EnclosureGroupModule().run()
File "/tmp/ansible_2DVt10/ansible_modlib.zip/ansible/module_utils/oneview.py", line 428, in run
result = self.execute_module()
File "/tmp/ansible_2DVt10/ansible_module_oneview_enclosure_group.py", line 133, in execute_module
return self.resource_present(resource, 'enclosure_group')
File "/tmp/ansible_2DVt10/ansible_modlib.zip/ansible/module_utils/oneview.py", line 489, in resource_present
resource = getattr(self.resource_client, create_method)(self.data)
File "/home/ansible/.local/lib/python2.7/site-packages/hpOneView/resources/servers/enclosure_groups.py", line 135, in create
return self._client.create(resource, timeout=timeout, default_values=self.DEFAULT_VALUES)
File "/home/ansible/.local/lib/python2.7/site-packages/hpOneView/resources/resource.py", line 451, in create
return self.do_post(uri, resource, timeout, custom_headers)
File "/home/ansible/.local/lib/python2.7/site-packages/hpOneView/resources/resource.py", line 760, in do_post
task, entity = self._connection.post(uri, resource, custom_headers=custom_headers)
File "/home/ansible/.local/lib/python2.7/site-packages/hpOneView/connection.py", line 377, in post
return self.do_rest_call('POST', uri, body, custom_headers=custom_headers)
File "/home/ansible/.local/lib/python2.7/site-packages/hpOneView/connection.py", line 404, in do_rest_call
raise HPOneViewException(body)
HPOneViewException: (u'Unrecognized JSON field.', {u'errorSource': None, u'recommendedActions': [u'Check the valid fields for this JSON object and remove or correct the unrecognized field.'], u'data': {}, u'errorCode': u'UNRECOGNIZED_JSON_FIELD', u'details': u'The field named interconnectBayMappingCount near line 1, column 34 is not a valid field in this JSON object.', u'message': u'Unrecognized JSON field.', u'nestedErrors': []})