Bug 1903223

Summary: Bare Metal option disappears from "Deploy On" menu
Product: Red Hat Satellite Reporter: Gary Scarborough <gscarbor>
Component: Host GroupAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Omkar Khatavkar <okhatavk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: hakon.gislason, inecas, kgaikwad, tbrisker, vijsingh
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-01 09:03:16 UTC 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 Gary Scarborough 2020-12-01 16:41:29 UTC
Description of problem:

I created a child host group on a system with a compute resource defined.  When creating the host group, I have the choice under "Deploy On" to choose either Bare Metal or my compute resource.  If I choose the resource and submit, when I come back to that host group, Bare Metal is no longer an option on the menu.  You have to remake that host group to get the option back.

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

Tested on satellite 6.7.0

How reproducible:

Always

Steps to Reproduce:
1. Create a compute resource

2. Create a child host group and see that "Deploy On" has 2 choices, bare metal and Compute resource.

3. Select Compute Resource and submit.  Then come pack to change that setting.  Bare Metal is no longer available.

Actual results:

Bare Metal is missing from menu


Expected results:

Bare Metal should be available as an option

Additional info:

I am wondering if this might be a duplicate of BZ 1820522. Not exactly the same issue but possibly caused by the same bug.

Comment 1 Tomer Brisker 2021-07-01 09:03:16 UTC
This is indeed the same root cause as BZ 1820522, which is that bare metal is stored as an empty value in the database, but that also conflicts with a blank value used to indicate inheritance from hostgroup or parent hostgroup. Closing as duplicate since fixing one will also fix the other, even though they are different outcomes of the same root issue.

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