Giter VIP home page Giter VIP logo

fujitsu-ansible-irmc-integration's People

Contributors

af778998 avatar akumch avatar hmbjorth avatar nakamura-taka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fujitsu-ansible-irmc-integration's Issues

Links broken

Hello

The links in documentation section are broken as when i use them this is not redirected to the correct document

Regards
Jose

Please add meta directory and main.yml

It is not possible to install this role with ansible-galaxy:

cat requirements.yml 
---
# from GitHub
- src: https://github.com/FujitsuPrimergy/fujitsu-ansible-irmc-integration.git

$ ansible-galaxy install -r requirements.yml  
 [WARNING]: - fujitsu-ansible-irmc-integration was NOT installed successfully: this role does not appear to have a meta/main.yml file.

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.```

irmc_raid not working at all

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.

irmc_setnextboot not correctly setting next boot to virtual media

As part of the "boot_to_virtual_cd.yml" playbook example, the "irmc_setnextboot" example is not correctly setting the next boot option to the virtual media attached.

Checking in iRMC S5 GUI, I can see that the virtual media is connected, and manually booting to virtual CD shows the expected boot options from iso.

Looking at the boot options in BIOS, there is a "CD" option, then there are "virtual CD" options 0 and 1. Is there a way to force this next boot to use the correct virtual media?

Using ansible for firmware upgrades

Hi,
this is more a question than an issue with the ansible code -- are the best practices by fujitsu for large scale firmware updates via ansible? I want to put firmware updates into our automated (OS) patch process but it seems I'm the first one attempting that ;)
My current workaround is to just use the Update Manager Express cli and downloading the UpdateDVD manually but I would very much like to automate this properly using a real local mirror that can refresh itself and then have an ansible role that properly updates all firmware components through irmc

Greetings
Klaas

Error running example related toy import in irmc_facts.p

Trying to get started by running a simple get_facts example. I get the following error. I've made sure all of the dependencies are met (pip install future requests urllib3 requests_toolbelt succeeded).

Dump below of error

jscott@scoj-mac-0:fujitsu-ansible-irmc-integration/examples $ ansible-playbook -vvv get_server_facts.yml
No config file found; using defaults

PLAYBOOK: get_server_facts.yml *************************************************
1 plays in get_server_facts.yml

PLAY [get server facts via iRMC] ***********************************************

TASK [Get basic server and iRMC facts] *****************************************
task path: /Users/jscott/.ansible/plugins/modules/fujitsu-ansible-irmc-integration/examples/get_server_facts.yml:26
fatal: [spc1]: FAILED! => {"failed": true, "msg": "error importing module in /Users/jscott/.ansible/plugins/modules/fujitsu-ansible-irmc-integration/library/irmc_facts.py, expecting format like 'from ansible.module_utils. import *'"}

NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @get_server_facts.retry

PLAY RECAP *********************************************************************
spc1 : ok=0 changed=0 unreachable=0 failed=1

Unable to register failed outputs through irmc_user or irmc* modules

Hi Everyone,

I'm trying to gather the information of failed sessions through irmc module but it shows like it dropping all the failed connections, its not registering to the results.

Is there anyway i can fetch those results through IRMC module or am i missing something

thanks,
Babu

HBA information in get_server_facts.yml

Hello,

Is it possible to extend the get_server_facts.yml in order to obtain also HBA information ?

This is available in iRMC web console, but not using this module.

Thanks

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.