Bug 1281255 - The ansible playbook should copy custom certificate files to the master machines
Summary: The ansible playbook should copy custom certificate files to the master machines
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-12 07:45 UTC by Ma xiaoqiang
Modified: 2016-07-04 00:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-17 21:19:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2667 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise bug fix update 2015-12-18 02:18:50 UTC

Description Ma xiaoqiang 2015-11-12 07:45:09 UTC
Description of problem:
The ansible playbook should copy custom certificate file to the master machines

Version-Release number of selected component (if applicable):
https://github.com/openshift/openshift-ansible master

How reproducible:
Always


Steps to Reproduce:

1. Install env with custom ca file, the certificate file exist on the machine which use run playbook on.
openshift_master_named_certificates=[{"certfile": "custom2.crt", "keyfile": "custom2.key", "names": ["test.custom.com","test1.custom.com"]}, {"certfile": "/root/custom1.crt", "keyfile": "/root/custom1.key"}]
 
 #openssl x509 -in custom2.crt -noout -text|egrep -i "issue"
        Issuer: C=86, ST=BJ, L=BeiJing, O=redhat, OU=apc, CN=*.openshift.redhat.com/emailAddress=test



Actual results:
Can not start master service

  servingInfo.namedCertificates[0].certFile: invalid value '/etc/origin/master/custom2.crt', Details: could not read file
  servingInfo.namedCertificates[0].keyFile: invalid value '/etc/origin/master/custom2.key', Details: could not read file


Expected results:
ansible copy the files to masters and start the master service successfully

Additional info:

Comment 1 Andrew Butcher 2015-11-18 14:15:40 UTC
Proposed fix is here: https://github.com/openshift/openshift-ansible/pull/881

Comment 2 Ma xiaoqiang 2015-11-19 01:39:28 UTC
Get expected result, move it to VERIFIED

Comment 4 errata-xmlrpc 2015-12-17 21:19:26 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-2015:2667


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