Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1605115

Summary: Tried to find jenkins-pipeline-example template which is not exist in the env
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: TemplatesAssignee: Ben Parees <bparees>
Status: CLOSED NOTABUG QA Contact: XiuJuan Wang <xiuwang>
Severity: low Docs Contact:
Priority: low    
Version: 3.10.0CC: aos-bugs, jokerman, mmccomas, spadgett
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-23 00:22:49 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:
Attachments:
Description Flags
404 error for non-existed template jenkins-pipeline-example none

Description Junqi Zhao 2018-07-20 08:26:28 UTC
Created attachment 1464877 [details]
404 error for non-existed template jenkins-pipeline-example

Description of problem:
Installed OCP 3.10, and log in web console, check with browser developer tools
XHR result 
https://host-8-249-146.host.centralci.eng.rdu2.redhat.com:8443/apis/template.openshift.io/v1/namespaces/openshift/templates/jenkins-pipeline-example [HTTP/2.0 404 Not Found 1464ms]


The error indicates template jenkins-pipeline-example is not found under openshift namespace

Checked, there is not jenkins-pipeline-example template exist under openshift namespace. This bug does not affect the OCP function so far.
# oc get template -n openshift | grep jenkins-pipeline-example
nothing returned


Raw Data of GET Response:
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "templates.template.openshift.io \"jenkins-pipeline-example\" not found",
  "reason": "NotFound",
  "details": {
    "name": "jenkins-pipeline-example",
    "group": "template.openshift.io",
    "kind": "templates"
  },
  "code": 404
}

More info please see the attached picture

Version-Release number of selected component (if applicable):
# oc version
oc v3.10.18
kubernetes v1.10.0+b81c8f8
features: Basic-Auth GSSAPI Kerberos SPNEGO


How reproducible:
Always

Steps to Reproduce:
1. Installed OCP 3.10, and log in web console
2. Use browser developer tools to check
3.

Actual results:
Tried to find template jenkins-pipeline-example which does not exist in the env

Expected results:
Should not have such error

Additional info:

Comment 1 Samuel Padgett 2018-07-20 13:53:15 UTC
Is the bug that the sample pipeline template should have been installed?

The error is expected in the browser dev tools if the template isn't there. The console uses that check to determine if it should show the "Create Pipeline" button for the empty state message on the overview and pipelines pages. If the request for the template fails, the button is hidden.

Comment 2 Ben Parees 2018-07-20 14:15:52 UTC
That template is not installed by the ansible installer, so it sounds like this is expected.

Comment 3 Junqi Zhao 2018-07-23 00:22:49 UTC
Per Comment 1 and Comment 2, close it as NOTABUG