Bug 1832722 - secrets are not fully listed with the project name filter on developer console
Summary: secrets are not fully listed with the project name filter on developer console
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.5.0
Assignee: Debsmita Santra
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-07 07:53 UTC by Junqi Zhao
Modified: 2020-07-13 17:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:35:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
input console in Search by name filter box (65.74 KB, image/png)
2020-05-07 07:53 UTC, Junqi Zhao
no flags Details
only 5 secrets listed (98.49 KB, image/png)
2020-05-07 07:54 UTC, Junqi Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 5462 0 None closed Bug 1832722: remove `project-name` query param when active namespace is changed 2020-06-24 01:53:04 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:35:57 UTC

Description Junqi Zhao 2020-05-07 07:53:34 UTC
Created attachment 1686076 [details]
input console in Search by name filter box

Description of problem:
1. cluster-admin user login developer console, click "Secrets" from the left side, select "all projects" from Project drop-down list
2. input "console" in Search by name filter box,  then click "openshift-console" from the filtered results(The url is changed to https://${console_url}/k8s/ns/openshift-console/secrets?project-name=console), it shows there are only 5 secrets under openshift-console project, but actually it has 14 secrets

# oc -n openshift-console get secret
NAME                       TYPE                                  DATA   AGE
builder-dockercfg-dkrfc    kubernetes.io/dockercfg               1      27h
builder-token-dgt94        kubernetes.io/service-account-token   4      27h
builder-token-vlcd5        kubernetes.io/service-account-token   4      27h
console-dockercfg-bwl64    kubernetes.io/dockercfg               1      27h
console-oauth-config       Opaque                                1      27h
console-serving-cert       kubernetes.io/tls                     2      27h
console-token-hxqgb        kubernetes.io/service-account-token   4      27h
console-token-xz4j9        kubernetes.io/service-account-token   4      27h
default-dockercfg-5wrrd    kubernetes.io/dockercfg               1      27h
default-token-c5k7c        kubernetes.io/service-account-token   4      27h
default-token-v86jm        kubernetes.io/service-account-token   4      27h
deployer-dockercfg-xftbn   kubernetes.io/dockercfg               1      27h
deployer-token-lfczp       kubernetes.io/service-account-token   4      27h
deployer-token-wvcvk       kubernetes.io/service-account-token   4      27h


FYI, if we input "openshift-console" for the project name filter, it shows
"No Secrets Found" on the page

The url is changed to https://${console_url}/k8s/ns/openshift-console/secrets?project-name=openshift-console

Version-Release number of selected component (if applicable):
4.5.0-0.nightly-2020-05-05-205255

How reproducible:
always

Steps to Reproduce:
1. see the description
2.
3.

Actual results:
issue with the secret names

Expected results:
no issue

Additional info:

Comment 1 Junqi Zhao 2020-05-07 07:54:30 UTC
Created attachment 1686077 [details]
only 5 secrets listed

Comment 2 cvogt 2020-05-07 17:52:05 UTC
During testing I found that there are other issues with these pages.
Upon returning to the page after having a project name filter applied, the list will still reflect the previous filter but the filter will be empty. There's also no way for the user to clear this setting now. The user must refresh the page.

Comment 3 Abhishek K N 2020-05-07 19:06:59 UTC
Instead of refreshing the page, if we change the project to "all projects" then we can see previously applied filter. And if we clear that filter & change the project to "openshift-console" we can see all 14 secrets.

Comment 4 cvogt 2020-05-07 20:24:09 UTC
- Go to Developer perspective and click `Secrets` in the left nav.
- Select `all projects` from the project selector dropdown (URL: /k8s/all-namespaces/secrets)
- Enter `openshift-console` in the name filter (URL: /k8s/all-namespaces/secrets?name=openshift-console)
- Click the project `openshift-console` (URL: http://localhost:9000/k8s/ns/openshift-console/secrets?name=openshift-console)
  => First bug: The name filter has transferred to the secrets list page whereas it was entered for the project list.
- Click `Secrets` in the left nav
  => Second bug: The list of secrets is empty and page says `No secrets found`
- Refresh the page and secrets will be listed.

Comment 9 Junqi Zhao 2020-05-29 06:54:15 UTC
Tested with 4.5.0-0.nightly-2020-05-28-070355 and followed by the steps in Comment 0, issue is fixed

Comment 10 errata-xmlrpc 2020-07-13 17:35:44 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-2020:2409


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