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:
Created attachment 1686077 [details] only 5 secrets listed
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.
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.
- 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.
Tested with 4.5.0-0.nightly-2020-05-28-070355 and followed by the steps in Comment 0, issue is fixed
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