Bug 2162542 - Content tab of new host UI doesn't contain "Install/Apply via katello-agent", if katello-agent package is not installed on host
Summary: Content tab of new host UI doesn't contain "Install/Apply via katello-agent",...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.12.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-19 21:47 UTC by Gaurav Talreja
Modified: 2023-08-14 14:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-14 14:08:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-15042 0 None None None 2023-01-23 14:25:12 UTC

Description Gaurav Talreja 2023-01-19 21:47:45 UTC
Description of problem:
Content tab of new host UI doesn't contain "Install/Apply via katello-agent", if katello-agent package is installed on host, and goferd isn't running

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. Verify katello-agent package isn't installed and goferd isn't running on host
4. Navigate to Content tab on host details page
5. On sub-tab Packages, "Install packages", select package to install, check dropdown of install   
6. On sub-tab Errata, select errata to apply, check dropdown of apply button
  
Actual results:
No option of Install via katello-agent or Apply via katello-agent

Expected results:
Option available of Install via katello-agent or Apply via katello-agent, despite katello-agent is installed or not, and should fail with "Host did not respond within 20 seconds. The task has been cancelled. Is katello-agent installed and goferd running on the Host?" as similar to old content host UI 

Additional info:

Comment 1 Jeremy Lenz 2023-01-26 15:54:51 UTC
Hello Gaurav

In order for Katello agent to show in the new UI, two things must be the case:

1. Katello-agent must be enabled via the installer.  (It seems you've covered that in https://bugzilla.redhat.com/show_bug.cgi?id=2162545; should one of these BZs be closed as a duplicate?)

2. The setting "Use remote execution by default" (Administer > Settings > Content) must be set to False.


Can you confirm that both of these are the case?

Comment 2 Jeremy Lenz 2023-02-06 20:26:40 UTC
Also, 

3. katello-agent must be listed in the host's installed packages.

Comment 4 Gaurav Talreja 2023-02-23 17:14:02 UTC
Hi Jeremy,

This issue happens when a katello-agent package isn't installed and goferd isn't running on the host, and it's enabled via the installer, BZ summary looks a little misleading here and the description is right, sorry for the confusion!

If it's installed there is an option available to use katello-agent, earlier it used to fail in the old UI with a mentioned message in the expected result section of this BZ

And for BZ 2162545, in case of removal, there is no option present to select as similar to install, it's either REX or katello-agent, which doesn't look appropriate to me and it's not a duplicate of this I think.

Also when both REX and katello-agent are available to use, we hit BZ 2162544


Thanks
Gaurav

Comment 5 Jeremy Lenz 2023-02-23 17:47:07 UTC
> If it's installed there is an option available to use katello-agent, earlier it used to fail in the old UI with a mentioned message in the expected result section of this BZ

So the request is to be able to force the use of katello-agent regardless of whether it's installed, like you could in the old UI? I don't see a reason that the new UI should allow that, especially since katello-agent is going away. The new UI is smarter in that it allows and supports the use of katello-agent if it's enabled and installed on the host, and uses REX as appropriate otherwise.

I agree that it's a bit inconsistent to have the install option say "Install via katello-agent" and the remove option just say "Remove." We could use the other BZ to update that wording to just "Install" or "Remove" to be more consistent. But for this BZ, the new UI is behaving as designed.

Thoughts?

Comment 6 Brad Buckingham 2023-02-28 14:03:49 UTC
Adding needinfo based upon comment 5.

Comment 7 Gaurav Talreja 2023-06-05 13:05:50 UTC
(In reply to Jeremy Lenz from comment #5)
> > If it's installed there is an option available to use katello-agent, earlier it used to fail in the old UI with a mentioned message in the expected result section of this BZ
> 
> So the request is to be able to force the use of katello-agent regardless of
> whether it's installed, like you could in the old UI? I don't see a reason
> that the new UI should allow that, especially since katello-agent is going
> away. The new UI is smarter in that it allows and supports the use of
> katello-agent if it's enabled and installed on the host, and uses REX as
> appropriate otherwise.
> 
Nope, anyway it doesn't work if katello-agent package isn't installed on the host, so I think its fine if user doesn't see that option, and continue to show only REX options instead, but we need to make sure its documented for this behaviour.

> I agree that it's a bit inconsistent to have the install option say "Install
> via katello-agent" and the remove option just say "Remove." We could use the
> other BZ to update that wording to just "Install" or "Remove" to be more
> consistent. But for this BZ, the new UI is behaving as designed.
> 
> Thoughts?
Yes, it makes sense, so if I understand this correctly, you mean when setting remote_execution_by_default is set to FALSE then this Install/Remove options will use katello-agent by default and it its set to TRUE then REX is default Install/Remove operations on client, right? or removing katello-agent completely?
if yes, then I think we're good to close this BZ as NOTABUG and can continue in this BZ 2162545

Comment 8 Jeremy Lenz 2023-08-14 14:08:04 UTC
Closing as NOTABUG; see https://bugzilla.redhat.com/show_bug.cgi?id=2162542#c7


Note You need to log in before you can comment on or make changes to this bug.