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

Example synergy_environment_setup.yml not working when creating Logical enclosure #384

Closed DungKHoang closed 5 years ago

DungKHoang commented 5 years ago

Scenario/Intent

I try to run the example synergy_environment_setup.yml to create a LE

Environment Details

Module Version: current master - v5.1.1

Ansible Version:2.64

OneView Appliance Version: 4.10.03-364293

OneView Client API Version: 600

Python Version: 2.710

python-hpOneView SDK Version: v4.7

Platform: Ubuntu 18

Steps to Reproduce

run the example of sysnergy setup

Expected Result

a logical enclosure is created with SAS modules

Actual Result

There are many errors: a) the following attributes are not working: interconnectBayMappingCount: 6 stackingMode : "Enclosure" The errros is: UNRECOGNIZED_JSON_FIELD

b) when running the playbook, the error is: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: cannot import name compare fatal: [localhost -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/dung/.ansible/tmp/ansible-tmp-1546452760.8-51385139826711/AnsiballZ_oneview_logical_enclosure.py\", line 113, in \n _ansiballz_main()\n File \"/home/dung/.ansible/tmp/ansible-tmp-1546452760.8-51385139826711/AnsiballZ_oneview_logical_enclosure.py\", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/dung/.ansible/tmp/ansible-tmp-1546452760.8-51385139826711/AnsiballZ_oneview_logical_enclosure.py\", line 48, in invoke_module\n imp.load_module('main', mod, module, MOD_DESC)\n File \"/tmp/ansible_oneview_logical_enclosure_payload_XfwQ8h/main.py\", line 209, in \nImportError: cannot import name compare\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

DungKHoang commented 5 years ago

Environment variable ANSIBLE_MODULE_UTILS not defined