RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1693364 - Document HA pcsd web UI and pcsd SSL certificates syncing
Summary: Document HA pcsd web UI and pcsd SSL certificates syncing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: Documentation
Version: 8.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.1
Assignee: Steven J. Levine
QA Contact: RHEL DPM
URL:
Whiteboard:
Depends On: 1158577 1665898 1673822
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-27 16:19 UTC by Tomas Jelinek
Modified: 2019-09-18 18:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1749918 (view as bug list)
Environment:
Last Closed: 2019-09-18 18:59:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Jelinek 2019-03-27 16:19:48 UTC
HA web UI is a nice feature not a lot of people know of (I think). On top of that, there was an issue reported recently related to it (se bz links in the text bellow). So it would be good to document it (for both RHEL 7 and RHEL 8). Description and explanation of the feature follows. Feel free to restructure it as you need for it to fit existing docs. My goal is to provide you enough info about the feature. As always, let me know if you have any questions.


If a user is managing a cluster using web UI and the node they run the web UI on goes down, the user must manually change URL in their browser to connect to web UI on another node. As a solution, pcsd web UI is HA since RHEL 7.2 (bz1158577).


The HA web UI feature consists of several parts:

1) pcsd config files syncing
Pcsd automatically synces its config files across its local cluster. Therefore it does not matter which node's web UI a user accesses, they all have the same settings, imported clusters etc.

2) virtual IP for accessing the web UI in an HA manner
Let's say a cluster consists of nodes nodeA, nodeB, nodeC and a user accesses web UI on nodeA. When nodeA goes down, the user must change URL in their browser to either nodeB or nodeC.
To prevent this, the user can create a virtual IP resource and use it to connect to pcsd in a running cluster. When the node the virtual IP is running on goes down, pacemaker migrates the IP to another node. The user is automatically reconnected to the new node without any manual intervention. They have to log in to pcsd, though, because sessions are not shared between the nodes for security reasons.

3) pcsd SSL certificate syncing
When the pcsd virtual IP moves to a new node and that node has a different pcsd SSL certificate than the first one, browsers do not communicate with the web UI on the new node for security reasons. To overcome this, pcsd synchronizes its certificate across its local cluster when creating a cluster or adding a new node.
This, however, is not ideal from security point of view. See bz1673822 and bz1665898. It is highly recommended for users to create their own certificates for pcsd and make them valid for all nodes. To achieve that, they can either use wildcard certificates or specify Subject Alternative Name. (Creating such certificates is out of scope of pcs docs, I would say. And I guess it is described somewhere already, so a link for that doc could be added.)
Installing custom certificates to pcsd is already documented somewhere, I think. 'pcs pcsd certkey' and 'pcs pcsd sync-certificates' are the commands for that.


How to setup HA pcsd web UI:
* Create a virtual IP resource
* Make sure all nodes have the same pcsd SSL certificate.
* Connect to the web UI using the virtual IP.



Now, due to issues mentioned in step 3, changes have been made to the certs syncing:

RHEL 7 (bz1665898):
* The syncing is enabled by default. (No change here, actually.)
* It can be disabled by setting PCSD_SSL_CERT_SYNC_ENABLED to false in /etc/sysconfig/pcsd

RHEL 8 (bz1673822):
* The syncing is disabled by default.
* It can be enabled by setting PCSD_SSL_CERT_SYNC_ENABLED to true in /etc/sysconfig/pcsd


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