dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
329 stars 162 forks source link

dellemc_get_system_inventory returns syntax error #48

Closed wioch closed 5 years ago

wioch commented 5 years ago

Hello,

I'm trying to automate iDRAC deployment. Here is my very simple playbook. copy/paste from User Guide: dellemc_get_system_inventory_DEBUG.txt

- name: Test iDrac connectivity
  hosts: idrac1
  gather_facts: false

  tasks:
  - name: Get HW inventory
    dellemc_get_system_inventory:
      idrac_ip: "10.42.163.202"
      idrac_user: "root"
      idrac_pwd: "calvin"

This is the result I get:


PLAY [Test iDrac connectivity] ************************************************************************************************************

TASK [Get HW inventory] *******************************************************************************************************************
 [WARNING]: sftp transfer mechanism failed on [10.42.163.202]. Use ANSIBLE_DEBUG=1 to see detailed information

 [WARNING]: scp transfer mechanism failed on [10.42.163.202]. Use ANSIBLE_DEBUG=1 to see detailed information

fatal: [10.42.163.202]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 10.42.163.202 closed.\r\n", "module_stdout": "rcmdstat\r\n\r\tstatus       : 2\r\n\r\tstatus_tag   : COMMAND PROCESSING FAILED\r\n\r\terror        : 252\r\n\r\terror_tag    : COMMAND SYTAX ERROR\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 0}
        to retry, use: --limit @/root/dell_idrac_test.retry

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

I used ANSIBLE_DEBUG=1 (full output attached) to check what could be wrong and I noticed the following:

cmdstat1557827893.80669: _low_level_execute_command() done: rc=0, stdout=
        status       : 2
        status_tag   : COMMAND PROCESSING FAILED
        error        : 252
        error_tag    : COMMAND SYNTAX ERROR
, stderr=
  5382 1557827893.81018: _low_level_execute_command(): starting
  5382 1557827893.81078: _low_level_execute_command(): executing: /bin/sh -c '/usr/bin/python '"'"'     error_tag    : COMMAND SYNTAX ERROR/AnsiballZ_dellemc_get_system_inventory.py'"'"' && sleep 0'

About server:

About iDRAC:

Is it me doing something wrong, or is it a bug, or maybe blades for VRTX are not supported ?

Thanks in advance, Regards,

wioch commented 5 years ago

Got it working. I was missing: connection: local