Bug 1318508

Summary: [intservice_public_227]Logging deployer failed when creating the logging-kibana-template
Product: OKD Reporter: Xia Zhao <xiazhao>
Component: LoggingAssignee: ewolinet
Status: CLOSED CURRENTRELEASE QA Contact: chunchen <chunchen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.xCC: aos-bugs, ewolinet, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 17:10:50 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:
Attachments:
Description Flags
logging_deployer_pod_log none

Description Xia Zhao 2016-03-17 06:14:05 UTC
Created attachment 1137317 [details]
logging_deployer_pod_log

Problem description: 
Logging deployer failed when creating logging-kibana-template, the "oc process -v" commands is lack of "-f -" in the following lines of run.sh:
https://github.com/openshift/origin-aggregated-logging/blob/master/deployment/run.sh#L232
https://github.com/openshift/origin-aggregated-logging/blob/master/deployment/run.sh#L239
https://github.com/openshift/origin-aggregated-logging/blob/master/deployment/run.sh#L257
https://github.com/openshift/origin-aggregated-logging/blob/master/deployment/run.sh#L264

Version-Release number of selected component (if applicable):
logging images built from https://github.com/openshift/origin-aggregated-logging

How reproducible:
Always

Steps to Reproduce:
0.Define local builds according to https://github.com/openshift/origin-aggregated-logging#defining-local-builds
1. Login openshift, create a project
oc new-project logging
2. Create supporting service account and deployer secrets
oc create -f - <<API
apiVersion: v1
kind: ServiceAccount
metadata:
 name: logging-deployer
secrets:
- name: logging-deployer
API

oc secrets new logging-deployer nothing=/dev/null
oc policy add-role-to-user edit system:serviceaccount:logging:logging-deployer
#Note: need 'cluster-admin' role to run below commands
oadm policy add-scc-to-user hostmount-anyuid system:serviceaccount:logging:aggregated-logging-fluentd
oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:logging:aggregated-logging-fluentd

3. Run the deployer with nodeSelector specified for ES, Kibana, Curator:
wget https://raw.githubusercontent.com/openshift/origin-aggregated-logging/master/deployment/deployer.yaml

oc process -f deployer.yaml -v IMAGE_PREFIX=${image_prefix},\
              KIBANA_HOSTNAME=${kibana_route},\
              PUBLIC_MASTER_URL=https://${master_dns}:8443,\
              ES_INSTANCE_RAM=1024M,\
              ES_CLUSTER_SIZE=1,\
              ES_NODESELECTOR=logging-infra=true,\
              ES_OPS_NODESELECTOR=logging-infra=true,\
              KIBANA_NODESELECTOR=logging-infra=true,\
              KIBANA_OPS_NODESELECTOR=logging-infra=true,\
              CURATOR_NODESELECTOR=logging-infra=true,\
              CURATOR_OPS_NODESELECTOR=logging-infra=true\
              | oc create -f -
4. Check the deployer pod status

Actual Result:
Deployer pod failed when creating the logging-kibana-template , pod log attached
oc get po| grep deployer
logging-deployer-kr9ll          0/1       Error       0          37m

Expected Result:
Deployer pod should succeed

Comment 3 Xia Zhao 2016-03-18 02:49:44 UTC
Verified with latest built images from upstream. Issue has been fixed well. Successfully deployed logging system by the deployer.

Thanks,
Xia