Comments (10)
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
_ansiballz_main()
File "/home/XXX/.ansible/tmp/ansible-tmp-1553099447.13-174085394283652/AnsiballZ_dellemc_idrac_firmware.py", line 105, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/XXX/.ansible/tmp/ansible-tmp-1553099447.13-174085394283652/AnsiballZ_dellemc_idrac_firmware.py", line 48, in invoke_module
imp.load_module('main', mod, module, MOD_DESC)
File "/tmp/ansible_dellemc_idrac_firmware_payload_XfxA9d/main.py", line 467, in
File "/tmp/ansible_dellemc_idrac_firmware_payload_XfxA9d/main.py", line 457, in main
File "/tmp/ansible_dellemc_idrac_firmware_payload_XfxA9d/ansible_dellemc_idrac_firmware_payload.zip/ansible/module_utils/remote_management/dellemc/dellemc_idrac.py", line 49, in enter
File "/usr/lib/python2.7/site-packages/omsdk/sdkinfra.py", line 144, in get_driver
return self._create_driver(mod, ipaddr, creds, protopref, pOptions)
File "/usr/lib/python2.7/site-packages/omsdk/sdkinfra.py", line 165, in _create_driver
drv = self.disc_modules[mod].is_entitytype(self, ipaddr, creds, protopref, mod, pOptions)
File "/usr/lib/python2.7/site-packages/omsdk/sdkbase.py", line 143, in is_entitytype
entity = self.my_entitytype(pinfra, ipaddr, creds, protofactory)
File "/usr/lib/python2.7/site-packages/omdrivers/iDRAC.py", line 3225, in my_entitytype
return iDRACEntity(self.ref, protofactory, ipaddr, creds, self.srcdir, 'iDRAC')
File "/usr/lib/python2.7/site-packages/omdrivers/iDRAC.py", line 3244, in init
self.license_mgr = iDRACLicense(self)
NameError: global name 'iDRACLicense' is not defined
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
}
from dellemc-openmanage-ansible-modules.
@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
from dellemc-openmanage-ansible-modules.
@anupamaloke, Thanks for coming back on this. Have tried in virtualenv with the same results
from dellemc-openmanage-ansible-modules.
@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'
from dellemc-openmanage-ansible-modules.
@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?
from dellemc-openmanage-ansible-modules.
I got re assigned to another priority, I'll be re looking at this shortly
from dellemc-openmanage-ansible-modules.
This made no difference
from dellemc-openmanage-ansible-modules.
@Nathan-UK , try become: False in your playbooks.
from dellemc-openmanage-ansible-modules.
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
from dellemc-openmanage-ansible-modules.
@Nathan-UK Thanks for update. As you got things back on working we are closing issue
from dellemc-openmanage-ansible-modules.
Related Issues (20)
- [BUG]: idrac_reset fails when idrac is InUse state HOT 4
- [BUG]: Python 3.12 Support HOT 2
- [QUESTION]: Does the module idrac_certificates module works only one host at a time ? HOT 2
- [QUESTION]: Galaxy.yml in Signed Archive HOT 2
- [QUESTION]:dellemc.openmanage is slow with an iDRAC8 vs. iDRAC9 HOT 2
- [QUESTION]: Timezone attribute different on iDRAC8 vs iDRAC9
- [BUG]: unable to set IscsiDev1ConXVlanID HOT 1
- Set syslog server address and altering config HOT 2
- [FEATURE]: Allow SNMP v3 Passphrase configuration through the `idrac_user` module
- [BUG]: Virtual media support in idrac_boot doesn't work for iDrac8
- [FEATURE]: Add aliases to the hostname, username and password arguments in the idrac_session module
- Error "HTTP Error 404: Not Found" when Configuring DNS Settings on iDRAC Using Ansible HOT 6
- [BUG]: Incompatible with pysnmp >6.2.2 HOT 5
- SecureErase and BOSS HOT 1
- [QUESTION]: SecureErase issue erasing multiple drives HOT 1
- generate multiple random password
- [FEATURE]: Improve Role Variable Naming for Enhanced Clarity and Scalability
- [BUG]: redfish_storage_volume job returns 404. HOT 2
- [FEATURE]: redfish_firmware wait until remote download finished and update scheduled HOT 1
- [BUG]: Module 8.7.0, idrac_gather_facts role and iDrac8 (2.84.84.84)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dellemc-openmanage-ansible-modules.