noseka1 / openshift-auto-upi

OpenShift Automated User-Provided Infrastructure
Apache License 2.0
98 stars 51 forks source link

static ip iso lock issue in vsphere #19

Closed jfblaine closed 3 years ago

jfblaine commented 4 years ago

When running static ip in vsphere, i received the following message for each vm:

The guest operating system has locked the CD-ROM door and is probably using the CD-ROM, which can prevent the guest from recognizing media changes...

To get past the message, I had to manually click "Yes" to force eject in the vsphere console. I searched for a better solution, and the following vmware doc addresses:

https://kb.vmware.com/s/article/2144053

As the article states, I tried adding the following to the customvalues section in roles/openshift_vsphere/tasks/deploy_host.yml (note the first three customvalues were already present in master branch):

    customvalues:
      - key: guestinfo.ignition.config.data.encoding
        value: base64
      - key: guestinfo.ignition.config.data
        value: '{{ vsphere_ignition.content }}'
      - key: disk.EnableUUID
        value: 'TRUE'
      - key: cdrom.showIsoLockWarning
        value: 'FALSE'
      - key: msg.autoanswer
        value: 'TRUE'

This resolved the issue and allowed the playbook to complete with no manual intervention.

noseka1 commented 3 years ago

Thanks for reporting this issue! As of openshift-auto-upi >= 1.7, the CD-ROM ISO is not used anymore to achieve static IPs. Closing this issue now.