[BUG] - Azure deployment fails after upgrade on 2025.2.1rc2
#2964
Labels
area: nebari-cli
area: user experience 👩🏻💻
impact: high 🟥
This issue affects most of the nebari users or is a critical issue
provider: Azure
type: bug 🐛
Something isn't working
Describe the bug
Due to recent changes in the Azure provider version (#2812), a few inner attributes from the cluster networking configuration were deprecated and removed, while some were entirely replaced.
This does not affect any nebari deployment per sisince the actual apply command ccalls the
tofu init
method under the hood. However, before deploying to avoid misuse of specific attributes in our config, we rancheck_immutable_file.d
nebari/src/_nebari/stages/terraform_state/__init__.py
Lines 226 to 229 in a032b9f
nebari/src/_nebari/stages/terraform_state/__init__.py
Lines 263 to 266 in a032b9f
which depends on
tofu show --json
to load the state data info that is used later in the checks. The main problem comes when there are provider version schema changes, which is the case for this release. In this situation, the open tofu docs suggests its users runtofu refresh
to update the provider versions beforehand, as seen below:Based on a quick look at the code, we have two options:
check_immutable_fields
to properly refresh its state before attempting to runtofu show
;To me, addressing the root cause of the issue will not be the best in this case, but it would also address the issue in eventual provider updates without requiring us to maintain these patches in the upgrade command. However, a caveat is that since
tofu show
didn't depend on any input variable for it to run, that was not implemented considering this, whiletofu refresh
requires the values of those inputs to be passed down or else the results in an error with missing vars.Expected behavior
Correct run of nebari's deployment
OS and architecture in which you are running Nebari
Linux
How to Reproduce the problem?
deploy an Azure deployment using the latest release (
2024.12.1
) and then, after running nebari upgrade with the latest RC, run nebari deployCommand output
Versions and dependencies used.
No response
Compute environment
Azure
Integrations
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: