rancher: [BUG][EKS][2.6/2.7] Unable to view YAML for downstream EKS clusters

Rancher Server Setup

  • Rancher version: 2.6.10 / 2.7.1
  • Installation option: Docker
  • Proxy/Cert Details: N/A

User Information

  • What is the role of the user logged in: admin

Describe the bug

Can not view the cluster information page after importing EKS cluster into Rancher (k8s version: 1.23, 1.24, etc), the page shows “Loading…” and the console log shows the error of the eksNodeGroups is null.

To Reproduce

  1. Create an EKS cluster in the AWS console, kube version 1.23/1.24.
  2. Import this cluster into Rancher.
  3. Go to the cluster information page.

Result

The page shows “Loading…” and the console log shows the error of the eksNodeGroups is null.

Screenshot 2023-02-08 at 17 49 15

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (16 by maintainers)

Most upvoted comments

@Josh-Diamond I think the behavior you’ve seen here is a different bug - the error in the console is different and the problem occurs on the yaml page rather than the detail page. Would you mind opening a separate issue for this?

Actually I think a backend issue needs to be opened around this rather than another dashboard issue: in 2.6-head I’m seeing the view link for management clusters is pointing to .../apis/management.cattle.io/v3/clusters/<cluster id> which standard users don’t have permission to view (hence the 403 error in console). In 2.7-head the view link for management clusters points to .../v1/management.cattle.io.clusters/<cluster id> which standard users can view. I think the fix needed here is probably to update 2.6 (steve api specifically) to use the same view links as 2.7-head

I wouldn’t expect much of a chance for additional regressions around this. The actual fix was in Steve https://github.com/rancher/steve/commit/48cf877a80b3a5a5b4aca2759181ee0b9036ae9e

The fix only changes the content of the view/selfLink for this particular resource.

That fix was actually already part of 2.6.10, but the problem was that it never got put back on the 2.6 branch, so it wasn’t picked-up by 2.6-head builds.

With https://github.com/rancher/rancher/pull/40680 merged, I believe this is now ready to test.

@crobby okay, I can confirm the EKS View YAML issue is NOT seen on 2.6.10 after all.

I believe what happened, is before this issue title changed and was transferred, that comment confirming this was seen on 2.6.10 was in reference to Cluster Details page won't load for imported EKS.

Updating that comment