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

feat: ensure that mvms can be scheduled onto multiple hosts #121

Merged
merged 5 commits into from
Feb 1, 2022

Conversation

Callisto13
Copy link
Member

Two pieces to this:

  1. Using flintlock's UUID for the Provider ID
  2. Saving an mvm's failure domain to the spec

The second one is the main thing that stops dupe mvms from appearing on every device, but the changes make sense together.


fix: save failureDomain on mvm spec

We previously assumed that the failureDomain would be set on the
Machine Spec and that we could use that to determine placement.
This is eventually the case, but is set after a create is complete.
If we don't want to have duplicate mvms created on every host, then we
need to save this on our own MicrovmMachine Spec.


chore: tidy up tests

We were using a mix of consts and func params and it was messing me up.


feat: use flintlock uuid for mvmmachine providerID

This change:

  • Bumps the flintlock client and api, and updates the way we now make
    Get and Delete requests: these are now done by UID not name/ns.
  • Sets the unique id returned from the flintlock create as the
    providerID on the MvmMachine.

@Callisto13 Callisto13 added the kind/bug Something isn't working label Jan 28, 2022
@Callisto13 Callisto13 requested a review from a team January 28, 2022 14:31
This change:
- Bumps the flintlock client and api, and updates the way we now make
  Get and Delete requests: these are now done by UID not name/ns.
- Sets the unique id returned from the flintlock create as the
  providerID on the MvmMachine.
We were using a mix of consts and func params and it was messing me up.
We previously assumed that the failureDomain would be set on the
Machine Spec and that we could use that to determine placement.
This is eventually the case, but is set after a create is complete.
If we don't want to have duplicate mvms created on every host, then we
need to save this on our own MicrovmMachine Spec.
@Callisto13 Callisto13 force-pushed the unique-id branch 2 times, most recently from 098523f to f35d593 Compare January 31, 2022 16:04
@Callisto13 Callisto13 merged commit 489d1cc into main Feb 1, 2022
@Callisto13 Callisto13 deleted the unique-id branch February 1, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working size/m
Projects
None yet
2 participants