Bug 1920248

Summary: re-running the pipelinerun with pipelinespec crashes the UI
Product: OpenShift Container Platform Reporter: Aritra Roy <ariroy>
Component: Dev ConsoleAssignee: Aritra Roy <ariroy>
Status: CLOSED ERRATA QA Contact: Karthik Jeeyar <kjeeyar>
Severity: medium Docs Contact:
Priority: high    
Version: 4.6CC: aballant, aos-bugs, kjeeyar, nmukherj
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1924069 (view as bug list) Environment:
Last Closed: 2021-02-24 15:55:53 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: 1924069    
Attachments:
Description Flags
fix rerun pipeline run when embedded pipelineSpec present none

Description Aritra Roy 2021-01-25 22:03:26 UTC
Created attachment 1750725 [details]
fix rerun pipeline run when embedded pipelineSpec present

Description of problem:
While re-running the pipelineRun with embedded pipelinespec causes the UI to crash.

Prerequisites (if any, like setup, operators/versions):
Openshift Pipeline Operator 1.2

Steps to Reproduce:
1. create a pipeline with embedded pipelineSpec

apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  name: pipelinerun-with-taskspec-to-echo-good-morning
spec:
  pipelineSpec:
    tasks:
      - name: echo-good-morning
        taskSpec:
          metadata:
            labels:
              app: "example"
          steps:
            - name: echo
              image: ubuntu
              script: |
                #!/usr/bin/env bash
                echo "Good Morning!"

Actual results:
rerun action throws an error in the browser console

Expected results:
re-run action should not result in unhandled error and it should re run the pipelinerun successfully.

Reproducibility (Always/Intermittent/Only Once):
Always

Build Details:
4.7.0-0.nightly-2021-01-22-134922

Comment 2 Karthik Jeeyar 2021-02-02 10:02:53 UTC
Verified in  4.7.0-0.nightly-2021-02-01-180932.

Comment 5 errata-xmlrpc 2021-02-24 15:55:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:5633