Bug 2110321

Summary: Workloads list page has different PDB action items from details page when All Projects selected
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.12CC: jhadvig, jonjacks, yapei
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Using active namespace, instead of resource's namespace, when listing actions in the kebab menu Consequence: Inconsistency in PDB actions Fix: Use resource's namespace, when listing actions in the kebab menu Result: Consistency in PDB actions, for both when listing in all namespaces and a specific namespace.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:53:27 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:

Description Yadan Pei 2022-07-25 08:18:34 UTC
Description of problem:
when all projects are selected, workloads list page and details page shows inconsistent PDB actions 

Version-Release number of selected component (if applicable):
4.12.0-0.nightly-2022-07-25-010250

How reproducible:
Always

Steps to Reproduce:
1. cluster admin goes to All projects deployments list page, click the kebab button of deployment/api-server in openshift-apiserver namespace
2. goes to deployment details page /k8s/ns/openshift-apiserver/deployments/apiserver, click 'Actions' and check PDB related action items
3. goes to project deployment list page /k8s/ns/openshift-apiserver/deployments, check the action items 

Actual results:
1. the PDB action is 'Add PodDisruptionBudget'
2. the PDB actions are 'Edit PodDisruptionBudget' and 'Remove PodDisruptionBudget'
3. the PDB actions are 'Edit PodDisruptionBudget' and 'Remove PodDisruptionBudget'


Expected results:
1. workloads list and details page should have consistent PDB action items when 'All projects' are selected

Additional info:

Comment 3 Yadan Pei 2022-10-28 02:17:38 UTC
- When workloads has no HPA defined,  select 'All Projects'  in project dropdown, workloads list kebab action item and workloads detail page Action item has consistent menu 'Remove HorizontalPodAutoscaler'

- When workloads has HPA added, select 'All Projects'  in project dropdown, workloads list kebab action item and workloads detail page Action item has consistent menu 'Add HorizontalPodAutoscaler' 'Edit HorizontalPodAutoscaler'{}

verified on 4.12.0-0.nightly-2022-10-25-210451

Comment 6 errata-xmlrpc 2023-01-17 19:53:27 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.12.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:7399