-
Notifications
You must be signed in to change notification settings - Fork 268
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
[SURE-6536] Cluster labels cannot be removed, updated or modified #9563
Comments
First task is to reproduce this and confirm whether this is UI or if this points to backend. |
I've given this a quick try with v2.7.5 and the latest ui code
The edit cluster process for imported clusters is in ember, which updates the norman cluster. It might be something with the sync process between norman and steve cluster objects We should confirm if the above is true when using the UI from v2.7.5 as well |
We'll confirm if this is backend or not. |
Update @gaktive @richard-cox : just confirmed Richard's findings with a Rancher v2.7.5 + ui code v2.7.5. |
Looks like backend after all based on the Steve to Norman talk. Will transfer ticket over and notify the SURE folks that this will not be in Q3. |
Transferred. Att'n @Sahota1225 |
I did some research on it. Rancher have two distinct objects that are used to manage and keep clusters information: Clusters created from rancher using RKE2 and K3S as well as imported clusters are considered "clusters" wile clusters created from RKE and the local cluster are considered "legacy clusters". The "normal clusters" are created using the The imported clusters have the When "importing a cluster" the UI do a POST into When updating the imported cluster the UI do a PUT into I do believe that the "right" solution would be to change the UI to interact over a single object ( |
The handling of imported clusters in the new UI is done via an embedded instance of the old UI. The old ui exclusively uses the old norman API and has no concept of the new steve api. |
@felipe-colussi, thank you for the detailed explanation. We'll discuss further within the team to see what can/should be done on backend side to remedy this. |
@richard-cox @gaktive , we have further discussed it and since provisioning cattle object is the primary one for imported clusters (and is the one that is correctly created by UI) it should be the same object modified on Edit. Having 2 primary objects makes bi-directional sync unfeasible and will lead to sync conflicts. |
ok, i'm late to the party. This will be resolved via #9476 |
Backend should have unblocked this for UI and now we're blocking them. Moving to Next Up. |
For those folks who run into this, there is a workaround: update the labels on |
FTR: our UI e2e tests for fleet have noticed an increase on the failiures due to this since 2.9 (example) while removing labels. while it seemed to have been relatively ok in 2.8. |
Related issue: #11241 |
@eva-vashkevich FYI, backend PR for this issue has been merged. |
Internal reference: SURE-6536
Reported in 2.7.3 & 2.7.4
Issue description:
Cluster labels are deleted or overwritten when modified or added.
Business impact:
Fleet operates by targeting cluster groups however clusters cannot be consistently added or removed from groups because the label changes get overwritten by Rancher.
Troubleshooting steps:
Repro steps:
Workaround:
None
Actual behavior:
Cluster labels are reverted to the state before the change is made.
Expected behavior:
Cluster label changes according to the edit
Additional notes:
An internal person was able to reproduce this with a k3s cluster created via the node driver and also with imported clusters, though they have not tried other cluster types.
A fix was done for 2.7.5 via rancher/ui#4975 but from that person's tests:
Imported k3s cluster
- Labels cannot be deleted from a cluster if the label was added during cluster creation [FAIL]
- Labels cannot be edited if the label was added during cluster creation [FAIL]
Hostbusters (@snasovich) offered some guidance from the backend standpoint and it was determined that the user tried this example:
The text was updated successfully, but these errors were encountered: