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 2168503 - Cannot disable Red Hat web console on Satellite after it has been enabled
Summary: Cannot disable Red Hat web console on Satellite after it has been enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.15.0
Assignee: Ewoud Kohl van Wijngaarden
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-09 08:55 UTC by Jayant Bhatia
Modified: 2024-04-23 17:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:13:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36090 0 Normal Ready For Testing Support removal of REX cockpit plugin 2023-02-13 17:59:55 UTC
Red Hat Issue Tracker SAT-19678 0 None None None 2023-11-07 16:04:41 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:13:35 UTC

Description Jayant Bhatia 2023-02-09 08:55:14 UTC
Description of problem:

Red Hat web console on Satellite is disabled by default. Running "# satellite-installer --enable-foreman-plugin-remote-execution-cockpit" enables the web console. Once it is enabled, it cannot be disabled again and running "# satellite-installer --no-enable-foreman-plugin-remote-execution-cockpit" does not help.


Version-Release number of selected component (if applicable):satellite-6.13.0-4.el8sat.noarch


How reproducible: Always


Steps to Reproduce:

1. Run following command on Satellite "# satellite-installer --enable-foreman-plugin-remote-execution-cockpit" and allow it execute successfully.

2. Navigate to Satellite WebUI -> Hosts -> All Hosts -> click on listed host -> Web Console button is visible/enabled.

3. Run "# satellite-installer --no-enable-foreman-plugin-remote-execution-cockpit" command. Allow it to complete.


Actual results: 

The Web Console button is still listed on All Hosts page on Satellite WebUI and has not been disabled.


Expected results:

The Web Console button should get disabled after using "--no-enable-foreman-plugin-remote-execution-cockpit" parameter with satellite-installer.


Additional info:

7.1. Enabling Red Hat web console on Satellite in https://dxp-docp-prod.apps.ext-waf.spoke.prod.us-west-2.aws.paas.redhat.com/documentation/en-us/red_hat_satellite/6.13/html-single/managing_hosts/index?lb_target=preview

Comment 1 Adam Ruzicka 2023-02-09 13:38:06 UTC
Well, yes, in general no plugin can really be disabled. The installer either manages things or leaves them alone, so enabling plugin and then changing your mind leaves things around. I don't see this changing in the foreseeable future.

However, in this particular case, you should be able to
1) run satellite-installer --no-enable-foreman-plugin-remote-execution-cockpit to tell the installer to stop managing cockpit related things
2) Go into Administer > Settings > Remote Execution and set the "Cockpit URL" to be blank. This should make the web console button disappear
3) On your satellite, uninstall rubygem-foreman_remote_execution-cockpit package

Also note, starting with 6.13 iirc, cockpit integration can be independently enabled/disabled on capsules, including the internal one. If you want to be extra safe, in addition to the three steps above you can also run the installer with --foreman-proxy-plugin-remote-execution-script-cockpit-integration=false

With that being said, a "proper fix" is most likely not going to happen, but we can at least document it. Either in Satellite docs or just as a KCS

Comment 8 Bryan Kearney 2023-02-13 20:03:51 UTC
Upstream bug assigned to ekohlvan

Comment 9 Bryan Kearney 2023-02-13 20:03:53 UTC
Upstream bug assigned to ekohlvan

Comment 11 Bryan Kearney 2023-11-07 16:02:21 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36090 has been resolved.

Comment 12 Peter Ondrejka 2024-01-10 12:00:13 UTC
Checked on Satellite 6.15 snap 5, running installer with  --no-enable-foreman-plugin-remote-execution-cockpit alone does not remove the web-console item from the host menu, the console is still accessible. Also the foreman-cockpit service remains running on satellite. Test machine available if needed

Comment 14 Peter Ondrejka 2024-01-10 13:24:55 UTC
talked to Ewoud offline, he confirmed the expected form is --foreman-plugin-remote-execution-cockpit-ensure=absent, moving back to on_qa for re-verification

Comment 15 Peter Ondrejka 2024-01-10 14:40:06 UTC
Checked again on Satellite 6.15 snap 5, using 

satellite-installer --foreman-plugin-remote-execution-cockpit-ensure=absent

I was able to remove the console, service and package. Note that after this, to re-enable cockpit on satellite one needs to run 

satellite-installer --foreman-plugin-remote-execution-cockpit-ensure=present

Comment 16 Ewoud Kohl van Wijngaarden 2024-01-10 14:53:24 UTC
I've submitted https://github.com/theforeman/foreman-documentation/pull/2660 as a docs update. In a bit it should have rendered a preview. Would you mind checking those instructions?

Comment 19 errata-xmlrpc 2024-04-23 17:13:34 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.15.0 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-2024:2010


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