Bug 1567767
Summary: | [3.9] openshift_logging : Run JKS generation script failed | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Anping Li <anli> | |
Component: | Installer | Assignee: | Rich Megginson <rmeggins> | |
Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 3.9.0 | CC: | aos-bugs, jokerman, juzhao, mmccomas, rmeggins, sradco | |
Target Milestone: | --- | Keywords: | TestBlocker | |
Target Release: | 3.9.z | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause: When creating the Elasticsearch server certificate, the external Elasticsearch hostnames are being unconditionally added to the subjectAltName.
Consequence: Install fails because only hostname components beginning with a letter are allowed in the subjectAltName, so hostnames like es.0xdeadbeef.com disallowed and cause an error.
Fix: Issue a warning if the Elasticsearch hostname contains a component which does not begin with a letter, and do not add it to the subjectAltName.
Result: Logging install completes successfully.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1568660 1569350 (view as bug list) | Environment: | ||
Last Closed: | 2018-06-06 15:46:20 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1568660, 1569350 |
Description
Anping Li
2018-04-16 07:53:37 UTC
keytool error: java.lang.RuntimeException: java.io.IOException: DNSName components must begin with a letter The problem is the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1554878 I unconditionally added the external ES hostnames - not aware that it was possible to have a valid hostname/domain name that would _not_ be a valid DNS value in subject alt name :-( san=dns:localhost,ip:127.0.0.1,dns:logging-es,dns:logging-es.logging.svc.cluster.local,dns:logging-es-cluster,dns:logging-es-cluster.logging.svc.cluster.local,dns:logging-es-ops,dns:logging-es-ops.logging.svc.cluster.local,dns:logging-es-ops-cluster,dns:logging-es-ops-cluster.logging.svc.cluster.local,dns:es.0416-8p6.qe.rhcloud.com,dns:es-ops.0416-8p6.qe.rhcloud.com It is complaining about the hostnames es.0416-8p6.qe.rhcloud.com and es-ops.0416-8p6.qe.rhcloud.com Commits pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/2f6708286d16be57ed17ac3ba6608abae0c9b457 Bug 1567767 - openshift_logging : Run JKS generation script failed https://bugzilla.redhat.com/show_bug.cgi?id=1567767 Hostnames or hostname components beginning with a digit are not allowed to be a DNS item in a certificate subjectAltName. If such hostnames are presented as Elasticsearch hostnames, ops and non-ops, then issue a warning, and exclude them from the Elasticsearch server certificate subjectAltName. https://github.com/openshift/openshift-ansible/commit/313dbb3d25c8573874e50f6ce92f64f1d7772cc2 Merge pull request #7996 from richm/bug-1567767 Bug 1567767 - openshift_logging : Run JKS generation script failed committed to release-3.9: https://github.com/openshift/openshift-ansible/commit/8ae62129daa55b46aff9454869d53865899340e9 Issue is fixed with openshift-ansible-3.9.30, logging could be deployed successfully without error. # openshift version openshift v3.9.30 kubernetes v1.9.1+a0ce1bc657 etcd 3.2.16 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-2018:1796 |