Bug 2046618 - Start last run action should contain current user name in the started-by annotation of the PLR
Summary: Start last run action should contain current user name in the started-by anno...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: All
OS: All
medium
low
Target Milestone: ---
: 4.11.0
Assignee: Mohammed Saud
QA Contact: Abhinandan Das
Olivia Payne
URL:
Whiteboard:
Depends On:
Blocks: 2052414
TreeView+ depends on / blocked
 
Reported: 2022-01-27 04:41 UTC by Karthik Jeeyar
Modified: 2022-08-10 10:44 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-08-10 10:44:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11005 0 None open Bug 2046618: Add started-by annotation to pipelines created with "Start last run" 2022-02-07 12:35:15 UTC
Red Hat Knowledge Base (Solution) 6677961 0 None Closed Information not available on RHEL website 2022-05-22 11:03:50 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:44:28 UTC

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


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