Bug 2149990

Summary: 'Via customized remote execution' is broken on the new host detail page
Product: Red Hat Satellite Reporter: Jeremy Lenz <jlenz>
Component: Hosts - ContentAssignee: Jeremy Lenz <jlenz>
Status: CLOSED ERRATA QA Contact: Ian Ballou <iballou>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: iballou, pcreech
Target Milestone: 6.13.0Keywords: Triaged, WorkAround
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: 2023-05-03 13:23:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Lenz 2022-12-01 14:29:33 UTC
On the new host details page Katello sends url params to the job wizard, including the host_ids param:

/job_invocations/new?feature=katello_errata_install_by_search&host_ids=name%20%5E%20(rhel8c.fedora.example.com)&inputs%5BErrata%20search%20query%5D=errata_id%20=%20RHEA-2022:1985

The other url params work fine (feature, inputs) - they fill in their respective fields. But host_ids does not populate the hosts.

Since the new job wizard is default now, the correct URL param has changed. Katello needs to stop using host_ids and instead use 'search' param.


Steps to recreate:

1. On new host details page, go to Content > Errata > select an errata
2. Click the dropdown next to Apply and click 'via customized remote execution'
3. On the job wizard, click through to the second step 'Target hosts and inputs'

Expected: Search query shows 'name ^ (hostname)' and 'Apply to 1 hosts'
Actual: Search query is blank and it applies to all hosts


To work around:

Manually enter a host search in the job wizard, or change "host_ids" in the url to "search"

Comment 1 Jeremy Lenz 2022-12-01 14:29:36 UTC
Created from redmine issue https://projects.theforeman.org/issues/35810

Comment 2 Jeremy Lenz 2022-12-01 14:29:37 UTC
Upstream bug assigned to None

Comment 3 Bryan Kearney 2022-12-01 20:03:38 UTC
Upstream bug assigned to jlenz

Comment 4 Bryan Kearney 2022-12-01 20:03:40 UTC
Upstream bug assigned to jlenz

Comment 5 Bryan Kearney 2022-12-05 20:03:22 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35810 has been resolved.

Comment 6 Ian Ballou 2023-01-09 21:23:08 UTC
Verified!

I was able to see that the host was in the remote execution filter and other hosts were not specified.

Comment 9 errata-xmlrpc 2023-05-03 13:23:27 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.13 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-2023:2097