Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker install is unable to view users #37531

Closed
Josh-Diamond opened this issue Mar 8, 2022 · 14 comments
Closed

Docker install is unable to view users #37531

Josh-Diamond opened this issue Mar 8, 2022 · 14 comments
Assignees
Labels
internal JIRA To be used in correspondence with the internal ticketing system. kind/bug-qa Issues that have not yet hit a real release. Bugs introduced by a new feature or enhancement release-note Note this issue in the milestone's release notes size/2 team/area3
Milestone

Comments

@Josh-Diamond
Copy link
Contributor

Josh-Diamond commented Mar 8, 2022

Rancher Server Setup

  • Rancher version: v2.6-b26b920420e47e99d5c96356b96c393360dd5739-head
  • Installation option (Docker install/Helm Chart): Docker
    • If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):
  • Proxy/Cert Details: self-generated

Information about the Cluster

  • Kubernetes version: 1.23.3+k3s1
  • Cluster Type (Local/Downstream): Local
    • If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):
      N/A

User Information

  • What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)
    Admin

Describe the bug
When selecting the hamburger menu from the rancher home page (upper-left hand corner) and then selecting "Users & Authentication", right away you'll notice no users are listed, not even the admin, which exists. Upon clicking "create" to attempt to create a new user, the form seems incomplete in the UI and the "create" button in bottom right, is disabled, even when all required fields are filled in. (my initial thoughts are that the UI "create" form for "Users & Auth" is not displaying the entire form, so if that is correct, there might be no way to actually fill in all the required fields to allow the "create" button to become enabled, assuming that the button is only enabled when ALL required fields are filled, and in this instance the UI form itself may not be displaying all input field options. Further investigating, I noticed that if you log out, the UI will get caught in a "hang" state of "Loading...", but with a hard refresh, you are able to log back in and the bug seems to be resolved. I was also able to create a new user through the api with Postman. When attempting to log out of rancher, the UI seemed to "hang" on the "Logging out..." screen. With a hard refresh, I was able to log back in as the new user, created through Postman, and then I was able to see ALL users (new user + admin) as well as having the correct UI display on the "create" user form page)

To Reproduce

  1. Fresh install rancher with Docker, using v2.6-b26b920420e47e99d5c96356b96c393360dd5739-head
  2. Once logged in, as admin, from the home page, select the hamburger menu found in the upper-left corner
  3. You should now be able to view "all" users on the server, however, even admin (currently logged in as) is not listed
  4. To continue, the issue also persists when attempting to "create" a new user, if "create" button is selected, it seems an incomplete form page is shown in UI, also no matter what data the user inputs, the "create" button is never enabled

Result
bug#1

bug rancher/rancher#2

Expected Result
Screen Shot 2022-03-08 at 12 47 11 PM

Screen Shot 2022-03-08 at 12 47 32 PM

Additional Comments
Successful creation of a new user through api with Postman:
Screen Shot 2022-03-08 at 4 14 46 PM

Logs:

2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [ERROR] defaultSvcAccountHandler: Sync: error handling default ServiceAccount of namespace key=cattle-fleet-local-system, err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [INFO] namespaceHandler: addProjectIDLabelToNamespace: adding label field.cattle.io/projectId=p-m2vwh to namespace=cattle-fleet-local-system
2022/03/08 19:39:52 [ERROR] namespaceHandler: Sync: error adding project id label to namespace err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [ERROR] defaultSvcAccountHandler: Sync: error handling default ServiceAccount of namespace key=cattle-fleet-local-system, err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [INFO] namespaceHandler: addProjectIDLabelToNamespace: adding label field.cattle.io/projectId=p-m2vwh to namespace=cattle-fleet-local-system
2022/03/08 19:39:52 [ERROR] namespaceHandler: Sync: error adding project id label to namespace err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [INFO] namespaceHandler: addProjectIDLabelToNamespace: adding label field.cattle.io/projectId=p-m2vwh to namespace=cattle-fleet-local-system
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:40:06 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-03-08 19:39:11 +0000 UTC notAfter=2023-03-08 19:40:06 +0000 UTC
2022/03/08 19:40:06 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-03-08 19:39:11 +0000 UTC notAfter=2023-03-08 19:40:06 +0000 UTC
2022/03/08 19:40:06 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-03-08 19:39:11 +0000 UTC notAfter=2023-03-08 19:40:06 +0000 UTC
2022/03/08 19:40:06 [INFO] Updating TLS secret for serving-cert (count: 6): map[field.cattle.io/projectId:local:p-m2vwh listener.cattle.io/cn-127.0.0.1:127.0.0.1 listener.cattle.io/cn-IP_ADDRESS_REDACTED:IP_ADDRESS_REDACTED listener.cattle.io/cn-ANOTHER_IP_ADDRESS_REDACTED:ANOTHER_IP_ADDRESS_REDACTED listener.cattle.io/cn-localhost:localhost listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system listener.cattle.io/fingerprint:SHA1=HIDDEN_VALUE]
2022/03/08 19:40:06 [INFO] Active TLS secret serving-cert (ver=3265) (count 6): map[field.cattle.io/projectId:local:p-m2vwh listener.cattle.io/cn-127.0.0.1:127.0.0.1 listener.cattle.io/cn-IP_ADDRESS_REDACTED:IP_ADDRESS_REDACTED listener.cattle.io/cn-ANOTHER_IP_ADDRESS_REDACTED:ANOTHER_IP_ADDRESS_REDACTED listener.cattle.io/cn-localhost:localhost listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system listener.cattle.io/fingerprint:SHA1=HIDDEN_VALUE]
2022/03/08 19:40:07 [ERROR] Error during subscribe write tcp IP_ADDRESS_REDACTED:443->ALT_IP_ADDRESS_REDACTED:59558: use of closed network connection
2022/03/08 19:40:09 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:42:10 [INFO] starting duplicate binding cleanup
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] starting bindings cleanup
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] total PRTB duplicate clusterRoleBindings 0, roleBindings 0
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] total CRTB duplicate clusterRoleBindings 0, roleBindings 0
2022/03/08 19:42:10 [INFO] successfully cleaned up duplicate bindings
2022/03/08 21:39:10 [INFO] Updating global catalog system-library
2022/03/08 21:39:10 [INFO] Catalog sync done. 0 templates created, 1 templates updated, 0 templates deleted, 0 templates failed
2022/03/08 22:38:01 [INFO] Creating new GlobalRoleBinding for GlobalRoleBinding grb-9lmpq
2022/03/08 22:38:01 [INFO] [mgmt-auth-grb-controller] Creating clusterRoleBinding for globalRoleBinding grb-9lmpq for user u-gzcr4 with role cattle-globalrole-user
2022/03/08 23:22:51 [ERROR] Error during subscribe write tcp IP_ADDRESS_REDACTED:443->ALT_IP_ADDRESS_REDACTED:62661: write: broken pipe
@Josh-Diamond Josh-Diamond added the kind/bug-qa Issues that have not yet hit a real release. Bugs introduced by a new feature or enhancement label Mar 8, 2022
@Josh-Diamond Josh-Diamond self-assigned this Mar 8, 2022
@anupama2501 anupama2501 transferred this issue from rancher/rancher Mar 9, 2022
@catherineluse catherineluse self-assigned this Mar 18, 2022
@zube zube bot added the team/area1 label Mar 18, 2022
@gaktive
Copy link
Member

gaktive commented Mar 18, 2022

Possible internal reference: SURE-4255. Re-reading just to make sure.

@gaktive
Copy link
Member

gaktive commented Mar 18, 2022

This is also popping up on Keycloak. Internal reference: SURE-4195

@catherineluse
Copy link

catherineluse commented Mar 20, 2022

(my initial thoughts are that the UI "create" form for "Users & Auth" is not displaying the entire form, so if that is correct, there might be no way to actually fill in all the required fields

You're correct - in your second screenshot, the Global Permissions section is missing. At least one checkbox in Global Permissions must be selected in order for the Create button to be enabled.

For me, on a fresh Docker install, when I log in for the first time, I get a fail whale. Then if I go to the Users & Authentication section, it's a blank page:
Screen Shot 2022-03-19 at 6 29 51 PM

And the console is filled with certificate errors.

However, after refreshing the page, everything works as expected.

Possibly related issues:

@catherineluse
Copy link

@gaktive This issue is less critical than I thought at first glance because it does have a workaround - it works if you refresh the page. So I think it can be bumped to v2.6.5.

@gaktive gaktive added the release-note Note this issue in the milestone's release notes label Mar 21, 2022
@gaktive
Copy link
Member

gaktive commented Mar 21, 2022

@jtravee something to release note for 2.6.4. Per Catherine's comment, a refresh of the page is a workaround.

@jtravee
Copy link

jtravee commented Mar 21, 2022

@jtravee something to release note for 2.6.4. Per Catherine's comment, a refresh of the page is a workaround.

Thank you, added!

@zube zube bot modified the milestones: v2.7.0, v2.7.2 Sep 6, 2022
@snasovich snasovich removed the v2.7.0 label Sep 22, 2022
@samjustus samjustus added the JIRA To be used in correspondence with the internal ticketing system. label Oct 3, 2022
@samjustus samjustus modified the milestones: v2.7.2, v2.7.1 Oct 3, 2022
@samjustus
Copy link
Collaborator

SURE-4255

@samjustus
Copy link
Collaborator

will reevaluate after #39094 as it might fix this

@MKlimuszka
Copy link
Collaborator

According to the reporter, this has been remedied as of Rancher 2.6.6.

@MKlimuszka MKlimuszka modified the milestones: v2.7.x, v2.6.x Nov 1, 2023
@zube zube bot removed the [zube]: Done label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal JIRA To be used in correspondence with the internal ticketing system. kind/bug-qa Issues that have not yet hit a real release. Bugs introduced by a new feature or enhancement release-note Note this issue in the milestone's release notes size/2 team/area3
Projects
None yet
Development

No branches or pull requests