Bug 1994877

Summary: [RFE] Example is missing in "Install packages" option in the Advanced Tab of "Register Host" form.
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Sam Bible <sbible>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: lstejska
Target Milestone: 6.12.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:32:46 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 Sayan Das 2021-08-18 04:49:36 UTC
Description of problem:

Right now, If I click on the info (?) button for "Install packages" , It shows me only what it's meant to do but not how the values are meant to be mentioned.

Someone can get confused whether if they have to mention the package's name in array format or csv format or name separated by space.


Version-Release number of selected component (if applicable):
Sat 6.10 snap 13


How reproducible:
100%

Steps to Reproduce:
1. Host --> All Hosts --> Register Host
2. Go to Advanced Tab
3. Click on the info (?) button for "Install packages" option


Actual results:
Install packages on the host when registered. Can be set by `host_packages` parameter


Expected results:

Install packages on the host when registered. Can be set by `host_packages` parameter. Example: `pkg1 pkg2`


Additional info:

It seems our code for controllers has that info with examples.

# grep -r "Packages to install" /usr/share/foreman
/usr/share/foreman/app/controllers/api/v2/registration_commands_controller.rb:        param :packages, String, desc: N_("Packages to install on the host when registered. Can be set by `host_packages` parameter. Example: `pkg1 pkg2`")
/usr/share/foreman/app/controllers/api/v2/registration_controller.rb:      param :packages, String, desc: N_("Packages to install on the host when registered. Can be set by `host_packages` parameter. Example: `pkg1 pkg2`")

Comment 1 Leos Stejskal 2022-01-12 13:01:06 UTC
Created redmine issue https://projects.theforeman.org/issues/34252 from this bug

Comment 2 Bryan Kearney 2022-01-14 16:04:43 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34252 has been resolved.

Comment 4 Sam Bible 2022-08-24 17:07:21 UTC
Version- Sat 6.12.0 snap 7


How reproducible:
100%

Steps to Reproduce:
1. Host --> All Hosts --> Register Host
2. Go to Advanced Tab
3. Click on the info (?) button for "Install packages" option


Actual results:
Text displays "Packages to install on the host when registered. Can be set by `host_packages` parameter, example: `pkg1 pkg2`."


Expected results:

Install packages on the host when registered. Can be set by `host_packages` parameter. Example: `pkg1 pkg2`

Comment 8 errata-xmlrpc 2022-11-16 13:32:46 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.12 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:8506