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 1760434 - [fips] pcsd fails to start in fips mode due to OpenSSL::PKey::DHError
Summary: [fips] pcsd fails to start in fips mode due to OpenSSL::PKey::DHError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.8
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-10 14:21 UTC by Patrik Hagara
Modified: 2020-03-31 19:10 UTC (History)
8 users (show)

Fixed In Version: pcs-0.9.168-2.el7
Doc Type: Bug Fix
Doc Text:
Previously, pcsd was generating custom Diffie-Hellman key with the default length of 1024bits. This is not long enough when FIPS is enabled. After fix, the DH key is only generated by pcsd when requested (by setting a custom key length in /etc/sysconfig/pcsd). This allows pcsd to start with its default configuration even when FIPS is enabled.
Clone Of:
Environment:
Last Closed: 2020-03-31 19:09:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed fix (2.68 KB, patch)
2019-10-17 10:06 UTC, Tomas Jelinek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0996 0 None None None 2020-03-31 19:10:01 UTC

Description Patrik Hagara 2019-10-10 14:21:52 UTC
Description of problem:

> Oct 10 12:00:59 virt-028 systemd[1]: Starting PCS GUI and remote configuration interface...
> Oct 10 12:01:01 virt-028 systemd[1]: Created slice User Slice of root.
> Oct 10 12:01:01 virt-028 systemd[1]: Started Session 2 of user root.
> Oct 10 12:01:01 virt-028 CROND[3621]: (root) CMD (run-parts /etc/cron.hourly)
> Oct 10 12:01:01 virt-028 run-parts(/etc/cron.hourly)[3624]: starting 0anacron
> Oct 10 12:01:01 virt-028 anacron[3631]: Anacron started on 2019-10-10
> Oct 10 12:01:01 virt-028 anacron[3631]: Will run job `cron.daily' in 8 min.
> Oct 10 12:01:01 virt-028 anacron[3631]: Will run job `cron.weekly' in 28 min.
> Oct 10 12:01:01 virt-028 anacron[3631]: Will run job `cron.monthly' in 48 min.
> Oct 10 12:01:01 virt-028 anacron[3631]: Jobs will be executed sequentially
> Oct 10 12:01:01 virt-028 run-parts(/etc/cron.hourly)[3633]: finished 0anacron
> Oct 10 12:01:01 virt-028 abrt[3597]: detected unhandled Ruby exception in '/usr/lib/pcsd/pcsd'
> Oct 10 12:01:07 virt-028 kernel: TECH PREVIEW: eBPF syscall may not be fully supported.
>                                  Please review provided documentation for limitations.
> Oct 10 12:01:08 virt-028 crontab[4216]: (root) LIST (root)
> Oct 10 12:01:10 virt-028 systemd[1]: Starting Hostname Service...
> Oct 10 12:01:10 virt-028 dbus[701]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
> Oct 10 12:01:10 virt-028 dbus[701]: [system] Successfully activated service 'org.freedesktop.hostname1'
> Oct 10 12:01:10 virt-028 systemd[1]: Started Hostname Service.
> Oct 10 12:01:14 virt-028 systemd[1]: Got automount request for /proc/sys/fs/binfmt_misc, triggered by 4555 (sysctl)
> Oct 10 12:01:14 virt-028 systemd[1]: Mounting Arbitrary Executable File Formats File System...
> Oct 10 12:01:14 virt-028 systemd[1]: Mounted Arbitrary Executable File Formats File System.
> Oct 10 12:01:14 virt-028 kernel: nr_pdflush_threads exported in /proc is scheduled for removal
> Oct 10 12:01:20 virt-028 kernel: warning: `turbostat' uses 32-bit capabilities (legacy support in use)
> Oct 10 12:01:32 virt-028 root[5362]: 2019-10-10 12:01:32 /usr/bin/rhts-test-runner.sh 25243 180 hearbeat...
> Oct 10 12:02:29 virt-028 systemd[1]: pcsd.service start operation timed out. Terminating.
> Oct 10 12:02:29 virt-028 pcsd[3597]: /usr/lib/pcsd/ssl.rb:162:in `generate': BN lib (OpenSSL::PKey::DHError)
> Oct 10 12:02:29 virt-028 pcsd[3597]: from /usr/lib/pcsd/ssl.rb:162:in `<top (required)>'
> Oct 10 12:02:29 virt-028 pcsd[3597]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> Oct 10 12:02:29 virt-028 pcsd[3597]: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
> Oct 10 12:02:29 virt-028 pcsd[3597]: from /usr/lib/pcsd/pcsd:14:in `<main>'
> Oct 10 12:02:29 virt-028 systemd[1]: Failed to start PCS GUI and remote configuration interface.
> Oct 10 12:02:29 virt-028 systemd[1]: Unit pcsd.service entered failed state.
> Oct 10 12:02:29 virt-028 systemd[1]: pcsd.service failed.


Version-Release number of selected component (if applicable):
pcs-0.9.168-1.el7
pacemaker-1.1.21-2.el7
corosync-2.4.5-4.el7

How reproducible:
always

Steps to Reproduce:
1. enable fips
2. try creating a cluster

Actual results:

Expected results:


Additional info:

Comment 3 Tomas Jelinek 2019-10-16 08:46:02 UTC
Workaround: set PCSD_SSL_DH_KEX_BITS=2048 in /etc/sysconfig/pcsd

Comment 6 Tomas Jelinek 2019-10-17 10:06:23 UTC
Created attachment 1626766 [details]
proposed fix

Comment 7 Ivan Devat 2019-10-18 11:49:44 UTC
After Fix

[mule76 ~] $ rpm -q pcs
pcs-0.9.168-2.el7.x86_64

[mule76 ~] $ cat /proc/sys/crypto/fips_enabled
1
[mule76 ~] $ systemctl stop pcsd
[mule76 ~] $ systemctl start pcsd
[mule76 ~] $ systemctl status pcsd
● pcsd.service - PCS GUI and remote configuration interface
   Loaded: loaded (/usr/lib/systemd/system/pcsd.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-10-18 13:00:09 CEST; 4s ago
...
[mule76 ~] $ pcs status pcsd mule76
  mule76: Online

Comment 11 errata-xmlrpc 2020-03-31 19:09:41 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, 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/RHBA-2020:0996


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