Coder Social home page Coder Social logo

Comments (10)

Nathan-UK avatar Nathan-UK commented on August 16, 2024

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.

anupamaloke avatar anupamaloke commented on August 16, 2024

@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.

Nathan-UK avatar Nathan-UK commented on August 16, 2024

@anupamaloke, Thanks for coming back on this. Have tried in virtualenv with the same results

from dellemc-openmanage-ansible-modules.

anupamaloke avatar anupamaloke commented on August 16, 2024

@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.

anupamaloke avatar anupamaloke commented on August 16, 2024

@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.

Nathan-UK avatar Nathan-UK commented on August 16, 2024

I got re assigned to another priority, I'll be re looking at this shortly

from dellemc-openmanage-ansible-modules.

Nathan-UK avatar Nathan-UK commented on August 16, 2024

This made no difference

from dellemc-openmanage-ansible-modules.

mariomelofilho avatar mariomelofilho commented on August 16, 2024

@Nathan-UK , try become: False in your playbooks.

from dellemc-openmanage-ansible-modules.

Nathan-UK avatar Nathan-UK commented on August 16, 2024

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.

rajeevarakkal avatar rajeevarakkal commented on August 16, 2024

@Nathan-UK Thanks for update. As you got things back on working we are closing issue

from dellemc-openmanage-ansible-modules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.