Skip to content

Conversation

@skanthed
Copy link
Collaborator

@skanthed skanthed commented Mar 31, 2025

Sets the default OS_BAREMETAL_API_VERSION earlier in plugin.py to ensure it's applied before OpenStackClient initializes.
Fixes microversion mismatch by preventing fallback to unsupported default (1.95) during CLI execution.

@skanthed skanthed requested a review from tzumainn March 31, 2025 21:58
@skanthed skanthed self-assigned this Mar 31, 2025
Copy link
Member

@larsks larsks left a comment

Choose a reason for hiding this comment

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

Please add a commit message and pull request description. What issue does this address? How does it implement the correction?

@skanthed skanthed force-pushed the fix-api-micorversion branch 3 times, most recently from b160a0e to 0988ec4 Compare April 18, 2025 17:00
Copy link
Contributor

@tzumainn tzumainn left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me - I tried moving the if statement into various places, and can confirm that none of it works elsewhere. There is almost definitely a more elegant solution somewhere, but I think that may require digging deep into the openstackclient code.

@tzumainn
Copy link
Contributor

@skanthed you may want to squash the commits to get rid of the merge commit, though

@skanthed skanthed force-pushed the fix-api-micorversion branch from d0de0a6 to 96b1433 Compare April 18, 2025 17:24
@skanthed
Copy link
Collaborator Author

@tzumainn Squashed it!

@skanthed skanthed requested a review from tzumainn April 18, 2025 17:26
@tzumainn
Copy link
Contributor

Ah, I think you may have to rebase from master first! It looks like the ubuntu OS update is manually applied here.

@larsks
Copy link
Member

larsks commented Apr 18, 2025

And please copy the PR description to the commit message, which is still empty.

Sets the default OS_BAREMETAL_API_VERSION earlier in plugin.py to ensure it's applied before OpenStackClient initializes.

Fixes microversion mismatch by preventing fallback to unsupported default (1.95) during CLI execution.
@skanthed skanthed force-pushed the fix-api-micorversion branch from 96b1433 to 0f74691 Compare April 18, 2025 18:10
Copy link
Contributor

@tzumainn tzumainn left a comment

Choose a reason for hiding this comment

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

Looks good!

@tzumainn tzumainn merged commit 775476e into CCI-MOC:master Apr 18, 2025
6 checks passed
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