Skip to content

sources/azure: do not persist failed_desired_api_version flag#1159

Merged
TheRealFalcon merged 1 commit into
canonical:mainfrom
cjp256:remove-fallback-api-var
Jan 4, 2022
Merged

sources/azure: do not persist failed_desired_api_version flag#1159
TheRealFalcon merged 1 commit into
canonical:mainfrom
cjp256:remove-fallback-api-var

Conversation

@cjp256
Copy link
Copy Markdown
Contributor

@cjp256 cjp256 commented Dec 15, 2021

If get_imds_data_with_api_fallback() falls back to the minimum required
API version, it is effectively pinned to the old API version forever.

Remove the failed_desired_api_version property to prevent persistence of
the flag between calls and/or reboots.

The continued presence of this flag in obj.pkl should be harmless.

Signed-off-by: Chris Patterson cpatterson@microsoft.com

@anhvoms
Copy link
Copy Markdown
Contributor

anhvoms commented Dec 15, 2021

LGTM

Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though we recently applied black formatting to the codebase, so this PR will need a rebase before we can merge it.

@github-actions
Copy link
Copy Markdown

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging mitechie, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag mitechie to reopen it.)

@github-actions github-actions Bot added the stale-pr Pull request is stale; will be auto-closed soon label Dec 31, 2021
@TheRealFalcon TheRealFalcon removed the stale-pr Pull request is stale; will be auto-closed soon label Dec 31, 2021
If get_imds_data_with_api_fallback() falls back to the minimum required
API version, it is effectively pinned to the old API version forever.

Remove the failed_desired_api_version property to prevent persistence of
the flag between calls and/or reboots.

The continued presence of this flag in obj.pkl should be harmless.

Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
@cjp256 cjp256 force-pushed the remove-fallback-api-var branch from c880a9b to e774b9f Compare January 3, 2022 14:17
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TheRealFalcon TheRealFalcon merged commit 2fd80c6 into canonical:main Jan 4, 2022
@cjp256 cjp256 deleted the remove-fallback-api-var branch April 25, 2022 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants