Bug 2277177

Summary: [RFE] Disable the REX pull provider installation in the generated script for Host Content source change.
Product: Red Hat Satellite Reporter: Mohit Kushwah <mkushwah>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED MIGRATED QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.14.4CC: amasolov, aruzicka, peter.vreman
Target Milestone: UnspecifiedKeywords: FutureFeature, MigratedToJIRA
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: 2024-06-06 17:29:38 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 Mohit Kushwah 2024-04-25 14:55:56 UTC
Description of problem:

Can not disable the REX pull provider installation in the generated script for Host Content source change.



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

Red Hat Satellite 6.14
Red Hat Satellite 6.15


How reproducible:

100%


Steps to Reproduce:

1. On satellite Web UI >> Hosts >> All Hosts >> Edit a Host
2. click on 'Change host content source' Select Content Source, Lifecycle environment and Content View
3. Select 'Update Hosts Manually' Option and view the generated script



Actual results:

The Script try to install package which is not required in SSH push mode Satellite environment:

~~~
...
echo "Starting deployment of REX pull provider"
# check if system is registered
subscription-manager identity > /dev/null
if [ $? -ne 0 ]; then
    echo "Please register with subscription-manager first, then re-run '$0'."
    exit 1
fi

set -e

echo '#'
echo '# Installing packages'
echo '#'

dnf -y install foreman_ygg_worker
...
~~



Expected results:

- Installation of package 'foreman_ygg_worker' is not required while Satellite is not configured to use 'REX pull mode'.

- Need a way to remove steps 'Starting deployment of REX pull provider'.

Comment 1 Alexey Masolov 2024-04-26 03:41:07 UTC
Looking at the source code, I'm not sure if we use the 'Configure host for new content source
' template to template this job and it's rather something like this:

https://github.com/Katello/katello/blob/b12280a74b81f47d4b59118b0f1fc0f7bb1a0d03/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb#L276

At least my Satellite 6.15 is not generating output according to the template.

Comment 3 Eric Helms 2024-06-06 17:29:38 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.