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

azure: Add support for using an external availability set and resource group #497

Merged
merged 4 commits into from
Apr 8, 2024

Conversation

jepio
Copy link
Member

@jepio jepio commented Feb 7, 2024

An alternative approach to reusing a resource group: only store VM object in the passed resource group and all other objects go in the kola managed RG. Instances already get deleted separately from rgs at the end of the run.

This is needed to support availability set that may be pinned to a specific compute resource. VMs that are part of an availability set must share a resource group with the availability set and must share a vnet.

@jepio jepio requested a review from tormath1 February 7, 2024 10:51
@jepio jepio marked this pull request as ready for review February 7, 2024 10:52
@jepio jepio changed the base branch from tormath1/azure to flatcar-master February 7, 2024 10:52
@jepio jepio closed this Feb 7, 2024
@jepio jepio reopened this Feb 7, 2024
@jepio
Copy link
Member Author

jepio commented Feb 7, 2024

This is not meant to be merged - i just needed the CI to build a container image

@tormath1
Copy link
Contributor

tormath1 commented Apr 3, 2024

@jepio do we still need this?

@jepio
Copy link
Member Author

jepio commented Apr 4, 2024

Actually i think we do - I use this regularly. Do you mind if I rebase, drop the reverts and resubmit?

@tormath1
Copy link
Contributor

tormath1 commented Apr 4, 2024

Actually i think we do - I use this regularly. Do you mind if I rebase, drop the reverts and resubmit?

Sure, feel free.

@jepio jepio force-pushed the tormath1/azure+jepio branch from ebb35c5 to 3ac46a6 Compare April 4, 2024 13:45
@jepio jepio changed the title Tormath1/azure+jepio azure: Add support for using an external availability set and resource group Apr 4, 2024
@jepio
Copy link
Member Author

jepio commented Apr 4, 2024

@tormath1 would you review?

tormath1 and others added 4 commits April 5, 2024 12:03
can be used to deploy resources in an existing resource group

Signed-off-by: Mathieu Tortuyaux <[email protected]>
can be used to deploy instances in.

Signed-off-by: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Jeremi Piotrowski <[email protected]>
The remaining objects stay in a garbage collected kola managed group.
This allows us to use an availability set for the vms, which requires
that VMs be in the same rg as the avset. Kola correctly removes the VMs
through TerminateInstance() separately from any RG that it creates.

Signed-off-by: Jeremi Piotrowski <[email protected]>
@jepio jepio force-pushed the tormath1/azure+jepio branch from 3ac46a6 to 7f3319e Compare April 5, 2024 12:03
@jepio jepio merged commit 745d0b9 into flatcar-master Apr 8, 2024
3 checks passed
@jepio jepio deleted the tormath1/azure+jepio branch April 8, 2024 13:07
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.

2 participants