Closed Nathan-UK closed 4 years ago
The full traceback is:
Traceback (most recent call last):
File "/home/XXX/.ansible/tmp/ansible-tmp-1553099447.13-174085394283652/AnsiballZ_dellemc_idrac_firmware.py", line 113, in
failed: [XXX10DSL01 -> 127.0.0.1] (item=AAA01APP02) => { "changed": false, "item": { "Chassis_SN": #########, "DNS1": "x.x.x.x", "DNS2": "x.x.x.x", "GW": "x.x.x.x", "IP": "x.x.x.x", "iDRAC": "x.x.x.x", "idrac_pwd": ##########, "idrac_user": #########, "mgtvlan": 13, "name": "AAA01APP02", "network": "NIC", "platform": "Dell", "tower": "tower" }, "module_stderr": "See above", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 }
@Nathan-UK, on a first glance, this looks like a python path issue. Could you please try installing the ansible, omsdk, openmanage ansible modules in a python virtualenv and see if it is working? Make sure to set the ansible python interpreter to use the python from the virtualenv.
# Install virtualenv
sudo pip install virtualenv
virtualenv my_project
cd my_project
source bin/activate
# install ansible
pip install ansible==2.7.8
# install omsdk
git clone https://github.com/dell/omsdk.git
sh build.sh 1.2 345
cd dist
pip install omsdk-1.2.345_-py2.py3-none-any.whl
cd ../../
# install om ansible modules
git clone https://github.com/dell/dellemc-openmanage-ansible-modules.git
cd dellemc-openmanage-ansible-modules
python install.py
@anupamaloke, Thanks for coming back on this. Have tried in virtualenv with the same results
@Nathan-UK, that is strange as it is working properly in my virtualenv setup. Are you setting the ansible_python_interpreter correctly, something like below in your playbook:
vars:
ansible_python_interpreter: python
OR, from the command-line:
ansible-playbook -vvvv <my_playbook.yml> -i <my_inventory_file> -e 'ansible_python_interpreter=python'
@Nathan-UK, if you are able to run the playbook with above changes, then could you please let us know whether I can close this issue?
I got re assigned to another priority, I'll be re looking at this shortly
This made no difference
@Nathan-UK , try become: False in your playbooks.
I've been working with my Linux colleague on this, using the latest 2.01 release, virtualenvs & Ansible 2.8 we've got it working as expected. I'll get more details from him to share with the thread as I'm still new to this
@Nathan-UK Thanks for update. As you got things back on working we are closing issue
I've been developing process to deploy R740s and C6420 and have been using these modules from the fw_update_url branch.
On my Dev node (Centos 7.6 Ansible 2.7.8) all is fine. We've deployed new CENTOS7.6 hosts as part of our testing. Now the dellemc_idrac_firmware is always failing with he following message:
or
or other global name XXX is not defined.
I've followed the following steps to install post Ansible 2.7.8
Pip freeze output has been matched from working node