dell / dellemc-openmanage-ansible-modules

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

[dellemc_boot_to_network_iso] IP Address format is invalid #56

Closed ibt23sec5 closed 4 years ago

ibt23sec5 commented 5 years ago

Model: PowerEdge R640 iDRAC Firmware Version: 3.32.32.32

I'm trying to set my ISO as a boot CD and I'm receiving this weird message error. As you can see, the IP address is correct.

Playbook:

---
 - name: Set image as a boot CD
   dellemc_boot_to_network_iso:
     idrac_ip: "{{ idrac_ip }}"
     idrac_user: "{{ idrac_user }}"
     idrac_pwd: "{{ idrac_password }}"
     share_name: "{{ nfs_image_path }}"
     iso_image: "{{ dest_iso_image }}"
 ...

Output:

TASK [Set the previously generated image as a boot CD] *************************
fatal: [xxxxxxxxxx]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "idrac_ip": "172.17.25.140", 
            "idrac_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "idrac_port": 443, 
            "idrac_pwd": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "idrac_user": "root", 
            "iso_image": "debian-netinst.iso", 
            "share_name": "nfs-machine:/data/nfs-share", 
            "share_password": null, 
            "share_user": null
        }
    }, 
    "msg": {
        "DeleteOnCompletion": "false", 
        "InstanceID": "DCIM_OSDConcreteJob:1", 
        "JobName": "BootToNetworkISO", 
        "JobStatus": "Failed", 
        "Key": "<null_index>", 
        "Message": "IP Address format is invalid.", 
        "MessageID": "OSD61", 
        "Name": "BootToNetworkISO", 
        "Status": "Failed", 
        "file": "nfs-machine:/data/nfs-share/debian-netinst.iso", 
        "retval": false
    }
}

The Lifecycle Log reports this action without any error message:

Message ID: USR107 Log Sequence Number: 574 Detailed Description: The identified user has performed the identified set operation or invoke method operation. The operation is either set on an instance of the class identified or an invocation of the identified method. Recommended Action: No response action is required.

Otherwise, following playbook with the same IP and credentials doesn't fail:

  dellemc_get_system_inventory:
    idrac_ip: "{{ idrac_ip }}"
    idrac_user: "{{ idrac_user }}"
    idrac_pwd: "{{ idrac_password }}"
  register: system_inventory
ibt23sec5 commented 5 years ago

I also tried to put raw IP address in the NFS storage path (instead of FQDN) and the error still be same.

anupamaloke commented 5 years ago

@ibt23sec5, could you please post your playbook?

ibt23sec5 commented 5 years ago

@anupamaloke I mentioned the playbook in my post on top. It makes part of several playbooks, but only one related to idrac operations is called before this one - it's the inventory getter as I mentioned too... So here is simplified content:

- hosts: idrac
    connection: local
    gather_facts: no
    vars_files:
    - group_vars/vault_all.yml
    tasks:
    - name: Get inventory
      dellemc_get_system_inventory:
        idrac_ip: "{{ idrac_ip }}"
        idrac_user: "{{ idrac_user }}"
        idrac_pwd: "{{ idrac_password }}"
      register: system_inventory

   - name: Set image as a boot CD
     dellemc_boot_to_network_iso:
       idrac_ip: "{{ idrac_ip }}"
       idrac_user: "{{ idrac_user }}"
       idrac_pwd: "{{ idrac_password }}"
       share_name: "{{ nfs_image_path }}"
       iso_image: "{{ dest_iso_image }}"

Unfortunately I'm not actually able to reproduce this behavior since I already mounted and installed this machine via web interface.

rajeevarakkal commented 4 years ago

@ibt23sec5 Hope you are still not facing this issue, closing this issue as of now