Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irmc_raid not working at all #10

Open
tavasti opened this issue Aug 5, 2020 · 1 comment
Open

irmc_raid not working at all #10

tavasti opened this issue Aug 5, 2020 · 1 comment

Comments

@tavasti
Copy link

tavasti commented Aug 5, 2020

I have in playbook:

    - name: "Get RAID Config"
      irmc_raid:
        irmc_url: "{{ ansible_host }}"
        irmc_username: "{{ irmc_user }}"
        irmc_password: "{{ irmc_password }}"
        validate_certs: "{{ validate_certificate }}"
        command: "get"
      register: raid
      delegate_to: localhost
    - debug:
        msg: "{{ raid.configuration }}"

And on first run I get:


fatal: [xxx-yyy]: FAILED! => {"changed": false, "module_stderr": "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: Insec
ureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)
\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py
:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n  InsecureRequestWarning)\nTraceback (most recent call last):\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1596627549.99-16287-169255758336244/AnsiballZ_irmc_raid.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1596627549.99-16287-169255758336244/AnsiballZ_irmc_raid.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1596627549.99-16287-169255758336244/AnsiballZ_irmc_raid.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.irmc_raid', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n    fname, loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\n    mod_name, mod_fname, mod_loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n    exec code in run_globals\n  File \"/tmp/ansible_irmc_raid_payload_DIrjdS/ansible_irmc_raid_payload.zip/ansible/modules/irmc_raid.py\", line 497, in <module>\n  File \"/tmp/ansible_irmc_raid_payload_DIrjdS/ansible_irmc_raid_payload.zip/ansible/modules/irmc_raid.py\", line 493, in main\n  File \"/tmp/ansible_irmc_raid_payload_DIrjdS/ansible_irmc_raid_payload.zip/ansible/modules/irmc_raid.py\", line 195, in irmc_raid\n  File \"/tmp/ansible_irmc_raid_payload_DIrjdS/ansible_irmc_raid_payload.zip/ansible/modules/irmc_raid.py\", line 401, in get_raid_data\n  File \"/usr/lib/python2.7/site-packages/requests/models.py\", line 885, in json\n    return complexjson.loads(self.text, **kwargs)\n  File \"/usr/lib64/python2.7/site-packages/simplejson/__init__.py\", line 501, in loads\n    return _default_decoder.decode(s)\n  File \"/usr/lib64/python2.7/site-packages/simplejson/decoder.py\", line 370, in decode\n    obj, end = self.raw_decode(s)\n  File \"/usr/lib64/python2.7/site-packages/simplejson/decoder.py\", line 393, in raw_decode\n    return self.scan_once(s, idx=_w(s, idx).end())\nsimplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Then all subsequent runs fail with:
fatal: [xxxx-yyyy]: FAILED! => {"changed": false, "msg": "POST request was not successful (https://10.x.x.x/rest/v1/Oem/eLCM/ProfileManagement/get?PARAM_PATH=Server/HWConfigurationIrmc/Adapters/RAIDAdapter).", "status": 409}

Tried rebooting irmc, powering server on & off, waiting over more than 12 hours, no change.

@Paul-dH
Copy link

Paul-dH commented Nov 26, 2020

Hi @tavasti,

Please check the fix that is provided in: #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants