sonofspike / cluster_mgnt_roles

OpenShift 4 Management Cluster Seed Playbook
Apache License 2.0
9 stars 8 forks source link

Cluster ISO is failing to attach/boot on dell servers #61

Open maheshd2 opened 3 years ago

maheshd2 commented 3 years ago

This issue looks similar to https://github.com/sonofspike/cluster_mgnt_roles/issues/60

Our iDRAC version of dell server is iDRAC-9. RAC Version was 14G, Hence it was trying redfish api and failing. As a workaround to unblock ourselves we tweaked the code and forced to boot via racadm command, it was successful.

- name: Using iDRAC ISO method for 13G and below
  include_tasks: dell_idrac.yml
  when: drac_version.stdout | int <= 14

- name: Using iDRAC ISO method for 13G and below

  include_tasks: dell_redfish.yml
  when: drac_version.stdout | int > 14
maheshd2 commented 3 years ago

Error trace:


TASK [boot_iso : Set Dell OneTimeBoot VirtualCD] *****************************************************************************************************************************************************************
ok: [sos-master-3]
TASK [boot_iso : DELL Eject Virtual Media (if any)] **************************************************************************************************************************************************************
fatal: [sos-master-4]: FAILED! => {"changed": false, "msg": "No VirtualMedia resource found with image 'http://172.29.231.35/iso/discovery_image_ldc-griffintown.iso' inserted"}
...ignoring
TASK [boot_iso : DELL Eject Virtual Media (if any)] **************************************************************************************************************************************************************
fatal: [sos-master-2]: FAILED! => {"changed": false, "msg": "No VirtualMedia resource found with image 'http://172.29.231.35/iso/discovery_image_ldc-griffintown.iso' inserted"}
...ignoring
TASK [boot_iso : DELL Eject Virtual Media (if any)] **************************************************************************************************************************************************************
fatal: [sos-master-3]: FAILED! => {"changed": false, "msg": "No VirtualMedia resource found with image 'http://172.29.231.35/iso/discovery_image_ldc-griffintown.iso' inserted"}
...ignoring
TASK [boot_iso : DELL Insert Virtual Media] **********************************************************************************************************************************************************************
fatal: [sos-master-2]: FAILED! => {"changed": false, "msg": "Unable to find an available VirtualMedia resource supporting ['CD', 'DVD']"}
TASK [boot_iso : DELL Insert Virtual Media] **********************************************************************************************************************************************************************
fatal: [sos-master-4]: FAILED! => {"changed": false, "msg": "Unable to find an available VirtualMedia resource supporting ['CD', 'DVD']"}
TASK [boot_iso : DELL Insert Virtual Media] **********************************************************************************************************************************************************************
fatal: [sos-master-3]: FAILED! => {"changed": false, "msg": "Unable to find an available VirtualMedia resource supporting ['CD', 'DVD']"}
PLAY RECAP *******************************************************************************************************************************************************************************************************
bastion                    : ok=23   changed=4    unreachable=0    failed=0    skipped=35   rescued=0    ignored=0
sos-master-2               : ok=7    changed=1    unreachable=0    failed=1    skipped=2    rescued=0    ignored=1
sos-master-3               : ok=7    changed=1    unreachable=0    failed=1    skipped=2    rescued=0    ignored=1
sos-master-4               : ok=7    changed=1    unreachable=0    failed=1    skipped=2    rescued=0    ignored=1
[root@localhost cluster_mgnt_roles]#
nocturnalastro commented 3 years ago

Looks like this is linked to #60?

novacain1 commented 3 years ago

This issue looks similar to #60

Our iDRAC version of dell server is iDRAC-9.

What iDRAC firmware version?

RAC Version was 14G, Hence it was trying redfish api and failing. As a workaround to unblock ourselves we tweaked the code and forced to boot via racadm command, it was successful.

@dylwong can you assist here when you have cycles, as I believe you said in issue 60 (which appears to be the same problem)?

dylwong commented 3 years ago

@novacain1 Yeah I will look into this

dylwong commented 3 years ago

@novacain1
@maheshd2 Do they have their discovery iso server in the inventory mapped to port "8080"? Try setting that value in the inventory.

nocturnalastro commented 3 years ago

@maheshd2 What does the task earlier in the log called Set Dell OneTimeBoot VirtualCD say? If I remember correctly, if this fails, it can cause this issue.

maheshd2 commented 3 years ago

@nocturnalastro As seen in the logs for the task Set Dell OneTimeBoot VirtualCD it says ok

TASK [boot_iso : Set Dell OneTimeBoot VirtualCD] *****************************************************************************************************************************************************************
ok: [sos-master-3]

This is the value set in inventory file: discovery_iso_server="http://172.29.231.35/iso", which runs on default 8080 port.

Firmware Versions: image