dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
335 stars 163 forks source link

[QUESTION]: idrac_os_deployment with cifs share #416

Closed fawu007 closed 2 years ago

fawu007 commented 2 years ago

Hello, I am getting the error following error when trying to boot to network iso using a cifs share.

I am able to get firmware inventory using the same playbook variables. Thanks

Error message: "msg": { "Key": "", "DeleteOnCompletion": "false", "InstanceID": "DCIM_OSDConcreteJob:1", "JobName": "BootToNetworkISO", "JobStatus": "Failed", "Message": "General failure", "MessageID": "OSD2", "Name": "BootToNetworkISO", "Status": "Failed", "retval": false, "file": "\\cifs_ip\qa\VMware-VMvisor-Installer-7.0U3c-19193900.x86_64.iso" }, "invocation": { "module_args": { "idrac_ip": "x.x.x.x", "idrac_user": "root", "idrac_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "share_name": "\\cifs_ip\qa", "share_user": "user@company.com", "share_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "iso_image": "VMware-VMvisor-Installer-7.0U3c-19193900.x86_64.iso", "expose_duration": 180, "validate_certs": false, "idrac_port": 443, "timeout": 30, "ca_path": null } },

Here's my playbook:

fawu007 commented 2 years ago

Hello, I am getting the error following error when trying to boot to network iso using a cifs share.

I am able to get firmware inventory using the same playbook variables. Thanks

Error message: "msg": { "Key": "", "DeleteOnCompletion": "false", "InstanceID": "DCIM_OSDConcreteJob:1", "JobName": "BootToNetworkISO", "JobStatus": "Failed", "Message": "General failure", "MessageID": "OSD2", "Name": "BootToNetworkISO", "Status": "Failed", "retval": false, "file": "\cifs_ip\qa\VMware-VMvisor-Installer-7.0U3c-19193900.x86_64.iso" }, "invocation": { "module_args": { "idrac_ip": "x.x.x.x", "idrac_user": "root", "idrac_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "share_name": "\cifs_ip\qa", "share_user": "user@company.com", "share_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "iso_image": "VMware-VMvisor-Installer-7.0U3c-19193900.x86_64.iso", "expose_duration": 180, "validate_certs": false, "idrac_port": 443, "timeout": 30, "ca_path": null } },

Here's my playbook:

  • name: Boot to Network ISO dellemc.openmanage.idrac_os_deployment: idrac_ip: '{{ inventory_hostname }}' idrac_user: '{{ vault_idrac_user }}' idrac_password: '{{ vault_new_idrac_password }}' share_name: '{{ share_name }}' share_user: '{{ share_user }}' share_password: '{{ share_password }}' iso_image: '{{ iso_image_name }}' expose_duration: 180 validate_certs: false delegate_to: localhost

Hello, I am getting the error following error when trying to boot to network iso using a cifs share.

I am able to get firmware inventory using the same playbook variables. Thanks

Error message: "msg": { "Key": "", "DeleteOnCompletion": "false", "InstanceID": "DCIM_OSDConcreteJob:1", "JobName": "BootToNetworkISO", "JobStatus": "Failed", "Message": "General failure", "MessageID": "OSD2", "Name": "BootToNetworkISO", "Status": "Failed", "retval": false, "file": "\cifs_ip\qa\VMware-VMvisor-Installer-7.0U3c-19193900.x86_64.iso" }, "invocation": { "module_args": { "idrac_ip": "x.x.x.x", "idrac_user": "root", "idrac_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "share_name": "\cifs_ip\qa", "share_user": "user@company.com", "share_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "iso_image": "VMware-VMvisor-Installer-7.0U3c-19193900.x86_64.iso", "expose_duration": 180, "validate_certs": false, "idrac_port": 443, "timeout": 30, "ca_path": null } },

Here's my playbook:

  • name: Boot to Network ISO dellemc.openmanage.idrac_os_deployment: idrac_ip: '{{ inventory_hostname }}' idrac_user: '{{ vault_idrac_user }}' idrac_password: '{{ vault_new_idrac_password }}' share_name: '{{ share_name }}' share_user: '{{ share_user }}' share_password: '{{ share_password }}' iso_image: '{{ iso_image_name }}' expose_duration: 180 validate_certs: false delegate_to: localhost

Update: Looks like the OpenManage Enterprise Advanced or Advanced Plus license is required on the server. I tested with another server and it worked as expected. Thanks

fawu007 commented 2 years ago

Would be good to add this check in the playbook. Thanks