Bug 1293894

Summary: oadm cannot create the server cert
Product: OpenShift Container Platform Reporter: zhaozhanqi <zzhao>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED NOTABUG QA Contact: Wei Sun <wsun>
Severity: medium Docs Contact:
Priority: high    
Version: 3.1.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-24 04:29:21 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:

Description zhaozhanqi 2015-12-23 12:14:28 UTC
Description of problem:
No files will be created when using 'oadm ca create-server-cert' 

Version-Release number of selected component (if applicable):
# oc version
oc v3.1.1.0
kubernetes v1.1.0-origin-1107-g4c8e6f4

How reproducible:
always

Steps to Reproduce:
1. set up ose env 
2. Create server cert file
  
   $ CA=/etc/openshift/master
   $ oadm ca create-server-cert --signer-cert=$CA/ca.crt       --signer-key=$CA/ca.key --signer-serial=$CA/ca.serial.txt       --hostnames='*.cloudapps.example.com'       --cert=cloudapps.crt --key=cloudapps.key
3. ls -lrt

Actual results:
cloudapps.crt and cloudapps.key did not be created.

Expected results:
cloudapps.crt and cloudapps.key should be created.

Additional info:
the env is using container install mode

Comment 1 zhaozhanqi 2015-12-24 04:29:21 UTC
Close this bug since the output file need the specified directory for container install, like use:
oadm ca create-server-cert --signer-cert=$CA/ca.crt       --signer-key=$CA/ca.key --signer-serial=$CA/ca.serial.txt       --hostnames='*.cloudapps.example.com'       --cert=/tmp/cloudapps.crt --key=/tmp/cloudapps.key