VM provisioning on Red Hat Satellite server fails with an error, Failed to attach ISO image to CDROM.
Environment
- Red Hat Satellite 6.13
- VMware vCenter 8
Issue
-
Provisioning the virtual machines in the
VMwareplatform viaRed Hat Satellite v6.13using the Bootdisk Method (BIOSandUEFI) failed to create the host with the below error:Failed to attach ISO image to CDROM drive of instance client.example.com: InvalidPowerState: The attempted operation cannot be performed in the current state (Powered on).' error (RbVmomi::Fault) -
Provisioning the virtual machines in the
VMwareplatform viaRed Hat Satellite v6.13failed with the below error:Failed to detach ISO image from CDROM drive of instance client.example.com: InvalidPowerState.
Resolution
-
The reported issue has been fixed in the errata RHSA-2024:2010.
-
This content is not included.Upgrade the Red Hat Satellite server to version 6.15 to fix the reported issue.
For more KB articles/solutions related to Red Hat Satellite 6.x Provisioning Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Provisioning related Issues
Diagnostic Steps
-
The below logs are generated in
production.logonRed Hat Satelliteserver:Backtrace for 'Failed to attach ISO image to CDROM drive of instance client.example.com: InvalidPowerState: The attempted operation cannot be performed in the current state (Powered on).' error (RbVmomi::Fault): InvalidPowerState: The attempted operation cannot be performed in the current state (Powered on). eb9fe95d | /usr/share/gems/gems/rbvmomi2-3.6.0/lib/rbvmomi/vim/Task.rb:15:in `wait_for_completion' eb9fe95d | /usr/share/gems/gems/fog-vsphere-3.6.2/lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb:10:in `vm_reconfig_hardware' eb9fe95d | /usr/share/gems/gems/fog-vsphere-3.6.2/lib/fog/vsphere/requests/compute/vm_reconfig_cdrom.rb:32:in `vm_reconfig_cdrom' eb9fe95d | /usr/share/gems/gems/foreman_bootdisk-21.0.3/app/models/concerns/foreman_bootdisk/compute_resources/vmware.rb:43:in `iso_attach' eb9fe95d | /usr/share/gems/gems/foreman_bootdisk-21.0.3/app/models/concerns/foreman_bootdisk/orchestration/compute.rb:63:in `bootdisk_attach_iso' eb9fe95d | /usr/share/gems/gems/foreman_bootdisk-21.0.3/app/models/concerns/foreman_bootdisk/orchestration/compute.rb:89:in `setAttachIsoImage' eb9fe95d | /usr/share/foreman/app/models/concerns/orchestration.rb:227:in `execute' eb9fe95d | /usr/share/foreman/app/models/concerns/orchestration.rb:152:in `block in process' eb9fe95d | /usr/share/foreman/app/models/concerns/orchestration.rb:144:in `each' eb9fe95d | /usr/share/foreman/app/models/concerns/orchestration.rb:144:in `process' eb9fe95d | /usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration' eb9fe95d | /usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks' eb9fe95d | /usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:137:in `run_callbacks' eb9fe95d | /usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:824:in `_run_save_callbacks' eb9fe95d | /usr/share/gems/gems/activerecord-6.1.7/lib/active_record/callbacks.rb:457:in `create_or_update' eb9fe95d | /usr/share/gems/gems/activerecord-6.1.7/lib/active_record/timestamp.rb:126:in `create_or_update' eb9fe95d | /usr/share/gems/gems/activerecord-6.1.7/lib/active_record/persistence.rb:474:in `save' eb9fe95d | /usr/share/gems/gems/activerecord-6.1.7/lib/active_record/validations.rb:47:in `save' eb9fe95d | /usr/share/gems/gems/activerecord-6.1.7/lib/active_record/transactions.rb:298:in `block in save'
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.