Bug 1868323

Summary: "Confirm services restart" modal window grammatically does not respect that multiple systems are selected for a reboot
Product: Red Hat Satellite Reporter: Ondrej Gajdusek <ogajduse>
Component: katello-tracerAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Ladislav Vasina <lvasina>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: lvasina
Target Milestone: 6.12.0Keywords: EasyFix, Triaged
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: 2022-11-16 13:32:23 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 Ondrej Gajdusek 2020-08-12 10:19:28 UTC
Description of problem:
Singular is used instead of plural even when operating with multiple hosts.

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

How reproducible:
always

Steps to Reproduce:
1. Navigate to the Content Hosts page.
2. Select multiple hosts whose services require a reboot.
3. Select "Manage Host Traces" from the actions list.
4. Select multiple entries that require a reboot on multiple hosts.
5. Click on the "Restart Selected" button.

Actual results:
"Resolving the selected Traces will reboot this host." is displayed in the window.

Expected results:
There should be a plural used - "hosts" not "host" if you selected Traces on multiple hosts.

Additional info:
Created during the verification of BZ1709557.

Katello code:
https://github.com/jturel/katello/blob/d5ce8e0809cb9080b968e1e0b8c5b145af87cd01/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-traces.html#L46

Comment 1 Partha Aji 2021-11-30 01:53:14 UTC
Connecting redmine issue https://projects.theforeman.org/issues/34037 from this bug

Comment 2 Bryan Kearney 2021-11-30 08:03:00 UTC
Upstream bug assigned to paji

Comment 3 Bryan Kearney 2021-11-30 08:03:01 UTC
Upstream bug assigned to paji

Comment 4 Bryan Kearney 2021-12-01 12:02:49 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34037 has been resolved.

Comment 8 Ladislav Vasina 2022-09-13 09:59:10 UTC
VERIFIED
I have verified that the warning message that shows while restarting services on multiple hosts is grammatically correct.
Tested on Satellite 6.12 Snap:10

Comment 12 errata-xmlrpc 2022-11-16 13:32:23 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