Bug 2046618

Summary: Start last run action should contain current user name in the started-by annotation of the PLR
Product: OpenShift Container Platform Reporter: Karthik Jeeyar <kjeeyar>
Component: Dev ConsoleAssignee: Mohammed Saud <msaud>
Status: CLOSED ERRATA QA Contact: Abhinandan Das <abhindas>
Severity: low Docs Contact: Olivia Payne <opayne>
Priority: medium    
Version: 4.10CC: abhindas, cbremble, msaud, nmukherj, ppitonak, sreber
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: When a pipeline is started using the "start last run" button, the created PipelineRun's `started-by` annotation is not updated to the correct username. Consequence: If a user starts a pipeline using the "start last run" button, and if the user had not started the pipeline previously, the "Triggered by" section does not show the correct username. Fix: Update the PipelineRun's `started-by` annotation value to the correct username. Result: The "triggered by" section shows the username of the correct user that started the pipeline.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:44:09 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: 2052414    

Description Karthik Jeeyar 2022-01-27 04:41:47 UTC
Description of problem:

Started-by annotation is being copied from the previous run and fails to override the annotation with the name of the user who triggered the start last run action.


Version-Release number of selected component (if applicable):
4.9

How reproducible:
Always

Steps to Reproduce:
1. Start a pipeline as kube:admin user
2. Login as consoledeveloper user and Click on Start last run from the kebab menu.

Actual results:

The annotation still contains kube:admin as started-by value.

  annotations:
    pipeline.openshift.io/started-by: 'kube:admin'

Expected results:
The annotation should contain consoledeveloper
   annotations:
    pipeline.openshift.io/started-by: 'consoledeveloper'

Comment 3 Abhinandan Das 2022-02-16 13:57:54 UTC
OpenShift version
4.11.0-0.nightly-2022-02-12-075213
Kubernetes version
v1.23.3+f14faf2
Channel
stable-4.10
Cluster ID
74cb483f-3f55-496f-b18e-b8a12817ce2d
API server
https://api.rhamilto.devcluster.openshift.com:6443

Comment 6 errata-xmlrpc 2022-08-10 10:44:09 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security 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-2022:5069