HewlettPackard / oneview-ansible

This project is no longer being developed and has limited support. Please use the newer Ansible Collection project: https://github.com/HewlettPackard/oneview-ansible-collection
Apache License 2.0
104 stars 65 forks source link

oneview_enclosure_group module not working in our environement #696

Closed gkdevops1990 closed 3 years ago

gkdevops1990 commented 3 years ago

Scenario/Intent

[What you are trying to achieve but can't?]

We are trying to create Enclosure group using the subjected module. But we are getting bellow error. We even passed uri as well as name for variable.

We also try to hardcode the variable in playbook instead of passing it through variable file but still no luck.

" hpeOneView.exceptions.HPEOneViewException: ('Unrecognized JSON field.', {'errorCode': 'UNRECOGNIZED_JSON_FIELD', 'message': 'Unrecognized JSON field.', 'details': 'The field named type near line 1, column 537 is not a valid field in this JSON object.', 'recommendedActions': ['Check the valid fields for this JSON object and remove or correct the unrecognized field.'], 'errorSource': "

Environment Details

Steps to Reproduce

[What are the complete steps needed to do in order to reproduce your problem?]

Expected Result

[What do you expect to happen after taking the steps above?]

Actual Result

[What actually happens after the steps above? Include error output or a link to a gist.]

gkdevops1990 commented 3 years ago

Update on missing Environment details.,

python-hpOneView SDK Version: v6.1.0 Platform: Ubuntu 20.04.2 LTS

yuvirani commented 3 years ago

Hi @gkdevops1990,

We are looking into this issue and will write back once its fixed.

yuvirani commented 3 years ago

Hi @gkdevops1990,

We have fixed the issue in python SDK, now its working fine with API version 1200 as well in ansible. Please follow the below steps and let us know if you are able to create EG without any error.

  1. cd oneview-python
  2. pip uninstall hpeOneview
  3. git checkout master
  4. git pull
  5. pip install .
gkdevops1990 commented 3 years ago

The Issue is fixed. we are able to create the EG with out any error now. Thanks for the help..