Bug 1704892

Summary: [DOCS] Sample event router template doesn't work
Product: OpenShift Container Platform Reporter: rvanderp
Component: DocumentationAssignee: Michael Burke <mburke>
Status: CLOSED NOTABUG QA Contact: Anping Li <anli>
Severity: low Docs Contact: Vikram Goyal <vigoyal>
Priority: low    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---Keywords: Reopened
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
URL: https://docs.openshift.com/container-platform/4.1/logging/efk-logging-eventrouter.html#efk-logging-eventrouter-deploy-efk-logging-curator
Whiteboard: 4.0_Readiness_Feedback
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-26 12:46:07 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: 1664187    

Description rvanderp 2019-04-30 18:14:36 UTC
Document URL: https://docs.openshift.com/container-platform/4.1/logging/efk-logging-eventrouter.html#efk-logging-eventrouter-deploy-efk-logging-curator


Section Number and Name: 

efk-logging-eventrouter-deploy-efk-logging-curator

Describe the issue: 

Creating a resource from the template produces the following error:

oc create -f event_fwd.yaml 
error: unable to recognize "event_fwd.yaml": no matches for /, Kind=Template

Changing apiVersion to:
apiVersion: template.openshift.io/v1

Suggestions for improvement: 

Additional information:

Comment 1 rvanderp 2019-04-30 18:16:08 UTC
Edit:

Changing apiVersion in template to:
apiVersion: template.openshift.io/v1 works

Comment 2 rvanderp 2019-04-30 20:10:42 UTC
I retried this on a new cluster install and the original instructions work now.  I will try to reproduce and re-open if I can.

Comment 3 rvanderp 2019-04-30 20:16:44 UTC
I was able to reproduce the problem again.

Comment 6 Anping Li 2019-05-13 05:32:43 UTC
@rvanderp, which cluster version are you using?

Comment 7 Michael Burke 2019-05-13 13:35:09 UTC
Works for me also.

$ oc get clusterversion
NAME      VERSION      AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.1.0-rc.1   True        False         41m     Cluster version is 4.1.0-rc.1

$ oc process -f event-router.yaml | oc apply -f -
serviceaccount/cluster-logging-eventrouter unchanged
clusterrole.authorization.openshift.io/event-reader created
clusterrolebinding.authorization.openshift.io/event-reader-binding created
configmap/cluster-logging-eventrouter created
deployment.apps/cluster-logging-eventrouter created

$ oc get pods --selector  component=eventrouter -o name
pod/cluster-logging-eventrouter-5866f97957-b58jr