Bug 2056469

Summary: Not possible to set hostgroup parameter during hostgroup creation
Product: Red Hat Satellite Reporter: Jan Jansky <jjansky>
Component: Host GroupAssignee: Ron Lavi <rlavi>
Status: CLOSED ERRATA QA Contact: Omkar Khatavkar <okhatavk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: aruzicka, bbuckingham, inecas, jlenz, kgaikwad, ofedoren, pcreech, pdragun, zhunting
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.3.0.40-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:33:39 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 Jan Jansky 2022-02-21 10:25:34 UTC
Description of problem:
When i am trying to create new hostgroup and i will set hostgroup parameter during creation it will fail with "Name can't be blank" even though it was set.

As bonus when i will fill again hostgroup parameter and try to submit again hostgroup creation will forget already set values as below.

Content Source
Content view
Lifecycle Environmnent
Synced Content
Root Password


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

How reproducible:
Always

Steps to Reproduce:
1. Create hostgroup
2. Fill all choices
3. Add hostgroup parameter
4. Submit
5. Fill hostgroup parameter again
6. Submit

Actual results:
4. Hostgroup parameter shows "Name can't be blank"
6. Please select a content source before assigning a kickstart repository on Host Group tab

Expected results:
Create host group on first attempt.
Remember already selected values during seconds attempt.

Additional info:

Comment 2 Brad Buckingham 2022-02-21 14:06:06 UTC
Is this a regression from Satellite 6.10?

Comment 3 Jan Jansky 2022-02-21 14:29:17 UTC
Just tested the same on Satellite 6.9 and 6.10 and there it works fine, it is new behavior on 7.0 Snap 9.0

Comment 10 Oleh Fedorenko 2022-04-27 14:52:24 UTC
Connecting redmine issue https://projects.theforeman.org/issues/34747 from this bug

Comment 11 Omkar Khatavkar 2022-05-17 11:18:13 UTC
After having a conversation with Jan, Verified this Bugzilla in Satellite 6.11 and snap 20. The main issue mentioned by Jan is resolved but the underneath issue is still not fixed when we use the Activation Key tab. 

Steps:
1. Create a host group with parameters and submit it.
2. Try to edit the same group by adding a content view and then selecting the activation key and clicking on submit.
3. the parameters in parameter tabs are getting reset.

The error displayed as "Name can't be blank"

Marking this as Failed QA and assigned back again.

Comment 12 Ron Lavi 2022-05-17 11:29:55 UTC
Thanks Omkar,
I created a fix in https://github.com/Katello/katello/pull/10117
and connected it to https://projects.theforeman.org/issues/34747 as well

Comment 15 Brad Buckingham 2022-05-25 15:52:28 UTC
Moving to POST as the upstream PR referenced in comment 14 has been merged.

Comment 17 Ron Lavi 2022-06-06 11:12:02 UTC
*** Bug 2092860 has been marked as a duplicate of this bug. ***

Comment 18 Omkar Khatavkar 2022-06-07 13:37:24 UTC
verified on Satellite 6.11 in snap 23 it is fixed.

Comment 21 errata-xmlrpc 2022-07-05 14:33:39 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 (Moderate: Satellite 6.11 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-2022:5498