Bug 1318508 - [intservice_public_227]Logging deployer failed when creating the logging-kibana-template
Summary: [intservice_public_227]Logging deployer failed when creating the logging-kiba...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Logging
Version: 3.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: ewolinet
QA Contact: chunchen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-17 06:14 UTC by Xia Zhao
Modified: 2016-09-30 02:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 17:10:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logging_deployer_pod_log (23.61 KB, text/plain)
2016-03-17 06:14 UTC, Xia Zhao
no flags Details

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


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