rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
450 stars 256 forks source link

Default admin cannot edit local cluster before cluster owner is added #5705

Open anupama2501 opened 2 years ago

anupama2501 commented 2 years ago

Setup

Rancher version: 2.6.5-rc2 Browser type & version: Chrome

Describe the bug Cluster members of the local cluster do not have any members listed. As a result when we perform any update/upgrade on the local cluster, we get an error There must be at least one member with the Owner role.

To Reproduce

  1. Create an RKE1/k3s/RKE2 HA any cluster type
  2. Install rancher on this cluster by following the docs: https://rancher.com/docs/rancher/v2.6/en/installation/install-rancher-on-k8s/
  3. Login to the rancher server
  4. Access the local cluster and edit the local cluster
  5. Add Labels key:test,value:bar

Result Edit won't go through with the error

There must be at least one member with the Owner role.

Expected Result Edit goes through without any error.

Additional context If we add the Default admin as the cluster owner in the local cluster management page >> members and add labels, then goes through without any error.

Similar issue: https://github.com/rancher/dashboard/issues/3537 Seen on v2.6.3 as well.

cnotv commented 2 years ago

This issue is related to the Rancher/UI repository:

Screenshot 2022-04-26 at 11 42 48

gaktive commented 2 years ago

Pushing out to 2.6.6. @anupama2501 let me know if this is more urgent.

gaktive commented 1 year ago

First thing is to establish where this error comes from.

If this is client-side, then this error should be converted into a warning, including asking if there should be at least one other member added. If it's server side, we may be more limited.

This is part of @eva-vashkevich's migration work for Imported Clusters.

gaktive commented 1 year ago

This looks to come from the form member component.

eva-vashkevich commented 11 months ago

This will be fixed once we migrate UI from ember which is currently blocked by BE issue https://github.com/rancher/rancher/issues/43191

gaktive commented 9 months ago

Backend should have unblocked this for UI and now we're blocking them. Moving to Next Up.