Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Using the python-openvswitch to connect to OVN db's does not work when OVN is configured for SSL.
Steps to reproduce:
Configure OVN for SSL:
ovn-nbctl set-ssl ./keys/ovn-ndb.key.nopass ./certs/ovn-ndb.cer ./ca.pem
ovn-nbctl set-connection pssl:6641
Try connecting to OVN:
ovs.db.idl.Idl('ssl:127.0.0.1:6641', schema_helper).run()
Result:
No connection, OVN db logs do not show any connection, tcpdump does not show any traffic.
Reason:
The pyOpenSSL package on Centos seems to be missing some functionality:
x'OpenSSL.SSL.Context' object has no attribute 'set_session_cache_mode'
also it might be nice to include pyOpenSSL as a 'require' in the python-openvswitch rpm (although it is not needed when not using SSL, so this might not be doable).
Workaround:
Install the fedora version of pyOpenSSL, version: pyOpenSSL-16.2.0-1.fc25.noarch.rpm
this solves this specific problem
Recently-added support for SSL in the Python ovsdb API requires a newer
version of the pyopenssl package than present in RHEL7 or CentOS 7. This
is not specific to OVN.
Added Numan to cc: list as he is looking into an upstream fix for this issue.
Lance/Numan, this is quite bad, as it makes the recent encryption support useless on production, where it is most importantly needed.
Which version of pyopenssl is required to enable encryption in OVN?
Could you ask RHEL-7.4 to have it?
If not, we may have to push it into the fast datapath.
I am looking into this issue and see if this can support v0.13 of pyopenssl and I will update the same here. But I feel it's good if v0.14, v16 or above is used since v0.13 is very old.
On fedora I see the version pyOpenSSL-16.2.0-1.fc25.noarch
Using the python-openvswitch to connect to OVN db's does not work when OVN is configured for SSL. Steps to reproduce: Configure OVN for SSL: ovn-nbctl set-ssl ./keys/ovn-ndb.key.nopass ./certs/ovn-ndb.cer ./ca.pem ovn-nbctl set-connection pssl:6641 Try connecting to OVN: ovs.db.idl.Idl('ssl:127.0.0.1:6641', schema_helper).run() Result: No connection, OVN db logs do not show any connection, tcpdump does not show any traffic. Reason: The pyOpenSSL package on Centos seems to be missing some functionality: x'OpenSSL.SSL.Context' object has no attribute 'set_session_cache_mode' also it might be nice to include pyOpenSSL as a 'require' in the python-openvswitch rpm (although it is not needed when not using SSL, so this might not be doable). Workaround: Install the fedora version of pyOpenSSL, version: pyOpenSSL-16.2.0-1.fc25.noarch.rpm this solves this specific problem