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

Bug 1609204

Summary: [admin] Pod selector link should not point to "all projects" searching page.
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.11.0CC: aos-bugs, jokerman, mmccomas, yapei, yufchang
Target Milestone: ---Keywords: OnlineStarter, Reopened
Target Release: 3.11.0   
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-10-11 07:22:24 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 Yanping Zhang 2018-07-27 09:23:58 UTC
Description of problem:
Common user creates dc in project, then click link under "POD SELECTOR" on dc overview page, it jumps to all project searching page, on which user has no permission to list pod.

Version-Release number of selected component (if applicable):
openshift v3.11.0-0.9.0
kubernetes v1.11.0+d4cacc0
registry.reg-aws.openshift.com:443/openshift3/ose-console                   v3.11               e03103f86278        3 days ago          273 MB

How reproducible:
Always

Steps to Reproduce:
1.Create dc in project.
# oc run testdc --image=aosqe/hello-openshift -n protest
2.On console, goto the "testdc" page, on "Overview' tab, click link under "POD SELECTOR".
3.

Actual results:
2.It jumps to all project searching page, and user has no permission to list pods. The link url is "https://console.****/search/all-namespaces?kind=Pod&q=run%3Dtestdc"

Expected results:
2.Should jump to current project searching page.

Additional info:
Same issue exists for other resources' "POD SELECTOR" link, eg, deployment, service,rc, statefulset and so on.

Comment 1 Samuel Padgett 2018-07-27 12:38:22 UTC
https://github.com/openshift/console/pull/324

Comment 2 Yanping Zhang 2018-08-03 06:35:00 UTC
Kubernetes v1.11.0+d4cacc0
OpenShift v3.11.0-0.10.0
ose-console                   v3.11               abfda950c7e7        8 hours ago         273 MB
Tested on ocp 3.11 with above version, all "POD SELECTOR' link will open searching page for current project, and the search result is correct.
The bug has been fixed, so move it to Verified.

Comment 3 Yadan Pei 2018-08-15 05:52:42 UTC
Pod Selector also need to be fixed on Resources list page:

Deployment Configs
Deployments
Replication Controllers
Replica Sets
Daemon Sets

Comment 4 Samuel Padgett 2018-08-15 13:56:44 UTC
https://github.com/openshift/console/pull/407

Comment 6 Yanping Zhang 2018-08-24 04:58:56 UTC
Pod selector link on services list page still points to "all project" search page.

Comment 7 Samuel Padgett 2018-08-24 17:15:59 UTC
Follow on fix for services:

https://github.com/openshift/console/pull/455

Comment 8 Yanping Zhang 2018-08-29 09:38:12 UTC
openshift v3.11.0-0.24.0
kubernetes v1.11.0+d4cacc0
registry.dev.redhat.io/openshift3/ose-console                   v3.11.0             e174a3b28f9ab       283MB
Checked on OCP env with above version, the issue in Comment 6 has been fixed.
The bug has been fixed, so move it to Verified.

Comment 10 errata-xmlrpc 2018-10-11 07:22:24 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, 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/RHBA-2018:2652