Bug 2217640

Summary: No error thrown when attempting to import a VM as a managed Host when it's already associated with a different Host
Product: Red Hat Satellite Reporter: Sam Bible <sbible>
Component: Compute Resources - VMWareAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Gaurav Talreja <gtalreja>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: chrobert, lstejska, mhulan, shwsingh
Target Milestone: UnspecifiedFlags: lstejska: needinfo? (sbible)
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sam Bible 2023-06-26 19:03:03 UTC
Description of problem:
When you attempt to import a VM as a managed Host, but the underlying VM is already being managed by a different Host, the form allows you to click submit, but it throws no error, and gives no indication as to what happened. It simply stays on the same page. 

Version-Release number of selected component (if applicable):
6.14 - Snap 5

How reproducible:
100%

Steps to Reproduce:
1. Create a compute resource that has some VM associated.
2. Import this VM as a managed Host successfully.
3. Without disassociating or delete the first Host, attempt to import that VM as a managed Host again

Actual results:
When clicking 'Submit', you receive no error, and the page doesn't change at all.

Expected results:
There is some error thrown that indicates that this VM is already being managed by a Host

Additional info:
This was all done with a VMware compute resource, so it's possible the bug only affects this case.

Comment 1 Leos Stejskal 2023-06-27 11:25:04 UTC
Hi, is this a regression?