Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2247081 - Provisioning vm host fails with 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)".
Summary: Provisioning vm host fails with error "Failed to attach ISO image to CDROM dr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - VMWare
Version: 6.13.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.15.0
Assignee: satellite6-bugs
QA Contact: sganar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-30 15:26 UTC by Ashish Patil
Modified: 2024-04-23 17:15 UTC (History)
16 users (show)

Fixed In Version: foreman_bootdisk-21.2.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2257316 2257415 (view as bug list)
Environment:
Last Closed: 2024-04-23 17:15:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman_bootdisk pull 150 0 None Merged Fixes ISO attach in vmware version 8 update 2 2023-12-04 17:31:59 UTC
Red Hat Issue Tracker SAT-21034 0 None None None 2023-10-30 15:30:08 UTC
Red Hat Issue Tracker SAT-21055 0 None None None 2023-10-31 16:09:49 UTC
Red Hat Knowledge Base (Solution) 7041596 0 None None None 2023-10-30 18:29:46 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:15:33 UTC

Comment 2 Sayan Das 2023-10-31 08:01:54 UTC
// For Public Visibility // 


Description of problem:

 - Provisioning virtual machines in the VMware platform vSphere 8.0 via satellite version 6.13.4 using the Bootdisk Method (BIOS and UEFI) failed to create the host with the error.

Version-Release number of selected component (if applicable):
 
Satellite 6.13.4 + VMware vSphere 8 ( compute resource )

How reproducible:

 100% ( for the affected end-users )

Steps to Reproduce:

1. Provision a VM using the Satellite server with the Bootdisk Auto-Attach method on a VMware vSphere 8 compute resource. 
2. Check if the deployment is getting completed.

Actual results:

  ==========================
  [W|app|eb9fe95d] 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).
  [I|app|eb9fe95d] 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'
  ==========================

Expected results:

 The host should be provisioned without any error and the error should happen neither during ATTACH nor DETACH of the CDROM drive

Comment 5 Waldirio M Pinheiro 2023-11-01 00:22:26 UTC
Hello,

Just to keep on track, Satellite 6.13 supports vCenter version 6.x and 7.x. At this moment, we have no support for vCenter 8.x, which is the main idea of bugzilla [1].

Here is the doc.

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13/html-single/provisioning_hosts/index#Creating_a_VMware_User_vmware-provisioning

Best
Waldirio

[1]. https://bugzilla.redhat.com/show_bug.cgi?id=2247345

Comment 6 Ron Lavi 2023-11-06 13:40:04 UTC

*** This bug has been marked as a duplicate of bug 2247345 ***

Comment 8 Sayan Das 2023-12-05 12:09:47 UTC
I hope that the QE team will test the fix on both vCenter 7 as well as 8u2, once the BZ moves to ON_QA stage

Comment 9 sganar 2023-12-19 18:27:00 UTC
Verified.

Tested on Satellite 6.15.0 Snap 3.0
rubygem-foreman_bootdisk-21.2.1-1.el8sat.noarch

Steps followed: 
1. Configure the satellite for provisioning and create the VMware CR
2. Provision a host on VMware using the bootdisk method

Observation: 
1. Tested on vCenter 7 as well as 8
2. The host provisioned without any issues.

One thing to note is after the host is successfully provisioned, the build status still shows `Pending Installation` on VMware 8 but the host is successfully registered and has content access through repos from AK, it just displays the wrong status(this is the only case when provisioning via Bootdisk but Network, Image-based shows correct build status as Installed)

`Everything works fine on VMware 7`

I am going to open a new BZ to track this issue, not going to block verification of this BZ as the main issue of this BZ is resolved.

Comment 10 sganar 2024-02-06 06:45:05 UTC
The above is tested for both VMware Vcenter 7 as well as VMware Vcenter 8.0.2(22380479)

Comment 13 errata-xmlrpc 2024-04-23 17:15:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.15.0 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:2010


Note You need to log in before you can comment on or make changes to this bug.