Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2162545

Summary: No option to remove packages using katello-agent in new host UI, if katello-agent plugin is enabled
Product: Red Hat Satellite Reporter: Gaurav Talreja <gtalreja>
Component: Hosts - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: ahumbe, iballou, jlenz
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-05 14:52: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 Gaurav Talreja 2023-01-19 22:06:14 UTC
Description of problem:
No option or dropdown to remove packages using katello-agent in new host UI, if katello-agent plugin is enabled using installer

Version-Release number of selected component (if applicable):
Satellite 6.12.2 Snap 1.0
Satellite 6.13.0 Snap 7.0

How reproducible:
Always

Steps to Reproduce:
1. Enable katello-agent on Satellite using --foreman-proxy-content-enable-katello-agent true
2. Register host using global registration template and enable el8 repo
3. Navigate to Content tab on host details page
5. On sub-tab Packages, select package to remove, which uses REX by default (REX fails to remove package if katello-agent is enabled, ref BZ 2162544)

Actual results:
No option/dropdown to remove packages using katello-agent in new host UI, if katello-agent plugin is enabled using installer, 

Expected results: 
Option to remove packages using katello-agent in new host UI, as similar to install packages

Additional info:

Comment 1 Jeremy Lenz 2023-02-06 20:17:27 UTC
Hello Gaurav,

The Remove action will use katello-agent or REX as appropriate. The way it decides is:

1. Look for the setting 'remote_execution_by_default'. If that's turned on, use REX. Otherwise..
2. On the host's content facet, look for the two properties 'katello_agent_installed' (which indicates if katello-agent is listed in the host's installed packages) and 'katello_agent_enabled' (which reflects if Satellite has katello-agent enabled - !!SETTINGS.dig(:katello, :agent, :enabled).)
3. If both of the above are true, use katello-agent.
4. Otherwise, use REX.

Can you confirm if the behavior you're seeing matches this expected behavior?

Comment 3 Jeremy Lenz 2023-02-23 17:51:50 UTC
Responding to https://bugzilla.redhat.com/show_bug.cgi?id=2162542#c4

The "Remove" option in the new host UI will use katello-agent if it's enabled and installed on the host, and will use REX otherwise. The wording on the screen is always simply "Remove" and not "Remove via katello-agent."

However, for installing new packages the wording is "Install via katello-agent" or "Install via remote execution" -- in other words, it tells you what it's going to use, and gives you the option of using REX even if katello-agent is available.

We should probably adjust the wording to be consistent. Since katello-agent is going away, I'd vote for having just a single "Install" or "Remove" in both places. Thoughts?

Comment 4 Ian Ballou 2023-04-25 19:29:58 UTC
I'd vote to use just Install or Remove.

Comment 6 Jeremy Lenz 2023-06-05 14:52:38 UTC
Closing per https://bugzilla.redhat.com/show_bug.cgi?id=2162545#c5, and also since a wording change seems too much when we're about to remove katello-agent soon anyway.