Bug 1707769

Summary: Associate vms not working for google compute resource
Product: Red Hat Satellite Reporter: Kavita <kgaikwad>
Component: Compute Resources - GCEAssignee: Kavita <kgaikwad>
Status: CLOSED ERRATA QA Contact: Jitendra Yejare <jyejare>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: kgaikwad, pcreech
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.22.0.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:47:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1724064    
Bug Blocks:    

Description Kavita 2019-05-08 10:20:09 UTC

Comment 1 Kavita 2019-05-08 10:20:12 UTC
Created from redmine issue https://projects.theforeman.org/issues/26761

Comment 2 Kavita 2019-05-08 10:20:16 UTC
Upstream bug assigned to kgaikwad

Comment 4 Bryan Kearney 2019-06-27 10:03:17 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26761 has been resolved.

Comment 7 Jitendra Yejare 2019-07-09 10:06:56 UTC
Verified!

@ Satellite 6.6 snap 10


Steps:
------------
1. Associate / Disassoicate / Import VM from GCE.


Observation:
-------------------


1. Deleting Associated VM deletes the VM from GCE.

2. Deleting Disassociated VM does not delete the VM from GCE.

3. Importing VM as managed host also associates VM to host profile.

4. Buttons:

        Disassociate Host: Displays for the associated host.
        Associate Host: Displays for the disassociated host.
        Unmanaged Host: Displays for the managed host.
        Managed Host: Displays for the unmanaged host.

5. The managed Hosts VM gets deleted from GCE when we delete it from the Compute Resource - > VMs tab, but the host profile is intact.
6. Powering on/off the unmanaged host from Hosts page works.
7. Powering on/off the managed host from Hosts page works.
8. Reimporting the VM(that has host profile already from last unmanaged host) throws an error for name already taken, changing the name imports the VM with new name.
9. Error message is displayed when there is no host profile to associate with, while associating VM
10. All the tabs are displayed while importing the VM as managed.
11. Except for VM and OS tabs, all the tabs are displayed while importing the VM as unmanaged.
12. While importing the VM as managed and unmanaged host, the IP remains the same as its in GCE.

Comment 8 Bryan Kearney 2019-10-22 19:47:19 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, 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-2019:3172