Bug 2096230 - etcd.cert is generated without SAN IP address record
Summary: etcd.cert is generated without SAN IP address record
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 17.0
Assignee: Alan Bishop
QA Contact: Marian Krcmarik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-13 10:44 UTC by Marian Krcmarik
Modified: 2022-09-21 12:22 UTC (History)
5 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-0.20220706080800.feca772.el9ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:22:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 845597 0 None master: MERGED tripleo-heat-templates: Restore missing SAN IP in etcd cert (I28e268c58bf63aaa81a67f48ca492fe97d9a07e9) 2022-06-29 17:10:56 UTC
OpenStack gerrit 847183 0 None stable/wallaby: MERGED tripleo-heat-templates: Restore missing SAN IP in etcd cert (I28e268c58bf63aaa81a67f48ca492fe97d9a07e9) 2022-06-29 17:11:01 UTC
Red Hat Issue Tracker OSP-15645 0 None None None 2022-06-13 10:52:03 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:22:52 UTC

Description Marian Krcmarik 2022-06-13 10:44:53 UTC
Description of problem:
The etcd.cert used when DCN Site is deployed with ceph storage managed by etcd and TLS, is generated without SAN IP and that's why connection from cinder to etcd fails on following traceback:

2022-06-10 11:08:09.481 15 ERROR oslo_service.service [-] Error starting thread.: etcd3gw.exceptions.ConnectionFailedError
2022-06-10 11:08:09.481 15 ERROR oslo_service.service Traceback (most recent call last):
2022-06-10 11:08:09.481 15 ERROR oslo_service.service   File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
2022-06-10 11:08:09.481 15 ERROR oslo_service.service     httplib_response = self._make_request(
2022-06-10 11:08:09.481 15 ERROR oslo_service.service   File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
2022-06-10 11:08:09.481 15 ERROR oslo_service.service     self._validate_conn(conn)
2022-06-10 11:08:09.481 15 ERROR oslo_service.service   File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
2022-06-10 11:08:09.481 15 ERROR oslo_service.service     conn.connect()
2022-06-10 11:08:09.481 15 ERROR oslo_service.service   File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 464, in connect
2022-06-10 11:08:09.481 15 ERROR oslo_service.service     _match_hostname(cert, self.assert_hostname or server_hostname)
2022-06-10 11:08:09.481 15 ERROR oslo_service.service   File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 512, in _match_hostname
2022-06-10 11:08:09.481 15 ERROR oslo_service.service     match_hostname(cert, asserted_hostname)
2022-06-10 11:08:09.481 15 ERROR oslo_service.service   File "/usr/lib64/python3.9/ssl.py", line 416, in match_hostname
2022-06-10 11:08:09.481 15 ERROR oslo_service.service     raise CertificateError("hostname %r "
2022-06-10 11:08:09.481 15 ERROR oslo_service.service ssl.SSLCertVerificationError: ("hostname '172.25.3.50' doesn't match either of 'dcn2-computehci2-0.internalapi.redhat.local', 'overcloud.internalapi.redhat.local'",)

The inability of cinder to connect to the etcd causing that volume service on the edge DCN site is not operational.
It was tested successfully with a THT patch which includes SAN IP into the etcd cert.

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-14.3.1-0.20220513220827.4edb55d.el9ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Deploy DCN (Distributed compute nodes) topology with ceph storage on the DCN site and TLS-E

Actual results:
The volume service is not able to establish connection to the etcd and that's why does not work

Expected results:


Additional info:

Comment 1 Alan Bishop 2022-06-13 13:22:56 UTC
I have a fix for this.

Comment 10 errata-xmlrpc 2022-09-21 12:22:30 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543


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