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

AKS region changes in Edit Mode #11841

Open
IsaSih opened this issue Sep 6, 2024 · 4 comments · Fixed by #13037
Open

AKS region changes in Edit Mode #11841

IsaSih opened this issue Sep 6, 2024 · 4 comments · Fixed by #13037
Assignees
Labels
Milestone

Comments

@IsaSih
Copy link
Contributor

IsaSih commented Sep 6, 2024

Setup

  • Rancher version: v2.9-0f2bd9c3cde85aa2b5270946d0cecd5c95b86fd2-head

Describe the bug

When creating an AKS cluster in a region different from the default displayed in the UI (East US) with the wrong configuration, once the user edits the cluster config, the Azure Region is set back to the default, undoing the region that the user previously selected

To Reproduce
1- Via UI, create an Azure cluster under a region other than East US with incomplete or wrong config
2- After the cluster is created, try to edit the cluster config via UI
3 - Observe that the region switches to the East US

Result
the Azure Region is set back to the default, undoing the region that the user previously selected

Expected Result
The region previously selected by the user must be preserved in the Edit form

Screenshots

Screen.Recording.2024-09-05.at.17.24.41.mov
@github-actions github-actions bot added the QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this label Sep 6, 2024
@richard-cox richard-cox added this to the v2.10.0 milestone Sep 6, 2024
@gaktive gaktive modified the milestones: v2.10.0, v2.11.0 Oct 1, 2024
@nwmac nwmac modified the milestones: v2.12.0, v2.11.0 Nov 1, 2024
@gaktive
Copy link
Member

gaktive commented Nov 1, 2024

/backport v2.10.1

@mantis-toboggan-md mantis-toboggan-md added QA/manual-test Indicates issue requires manually testing and removed QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this labels Jan 9, 2025
@IsaSih IsaSih self-assigned this Jan 13, 2025
@IsaSih
Copy link
Contributor Author

IsaSih commented Jan 29, 2025

I'll reopen the issue as the behavior is still not expected. Once the user edits the cluster region when it's still in provisioning mode, the dropdown is available for changes, then the user can choose a different region and Save the changes. However, if the user edits the cluster a second time, the original region selected is locked in the dropdown, with a No options element being displayed and scrolled in the whole page as observed in the screenshot.

Tested in
Rancher | v2.11-a1bda936c809e0394520c9d40d2998529223401e-head
Dashboard | master c987984
Rancher CLI | v2.11.0-rc.1

@IsaSih
Copy link
Contributor Author

IsaSih commented Jan 29, 2025

Screen.Recording.2025-01-28.at.16.57.03.mov

@mantis-toboggan-md
Copy link
Member

That video looks like expected behavior to me. Region is generally only editable immediately after creating an AKS cluster in Rancher, unless something has gone wrong. The intent is to allow users to fix mistakes if some aspect of their cluster configuration has prevented backing resources in Azure to be created, for whatever reason.

Pretty soon after you create an AKS cluster through Rancher, Rancher will go talk to azure and create AKS resources on your behalf, the state of which are reported back to Rancher (and its UI) in the cluster status field. In the period of time between you initially creating your cluster in the Rancher UI, and when stuff starts being created in azure, you can edit most of the cluster spec. This is the stage at which you are changing the region in your video. Once the cluster status field reports that there are underlying resources created in azure, less of the form is editable. That's the state the cluster is in at the end of your video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants