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: set provider id earlier #114

Merged
merged 3 commits into from
Jan 25, 2022
Merged

feat: set provider id earlier #114

merged 3 commits into from
Jan 25, 2022

Conversation

Callisto13
Copy link
Member

@Callisto13 Callisto13 commented Jan 24, 2022

feat: set the provider ID earlier

At the old location the ID was not persisted before the state switch,
meaning that we would sometimes (in almost all cases) exit and requeue
before it was set. This lead to dupe mvms being created on multiple
hosts.

Closes #111

feat: do not requeue after a create

Instead we can just switch on the state immediately (at that point it
will be the default pending) and update the cluster conditions before
requeueing.

feat: Return mvm object from service.Create

This returns the microvm in the Create response so that we can use
details for subsequent actions, eg status checks and getting the UUID.

Closes #113

@Callisto13 Callisto13 added the kind/feature New feature or request label Jan 24, 2022
@Callisto13 Callisto13 requested a review from a team January 24, 2022 13:11
@Callisto13 Callisto13 force-pushed the set-provider-id-earlier branch from 7ad4064 to 6818d56 Compare January 25, 2022 10:06
@github-actions github-actions bot added size/s and removed size/xs labels Jan 25, 2022
@Callisto13 Callisto13 force-pushed the set-provider-id-earlier branch from 6818d56 to 1624d9a Compare January 25, 2022 10:07
@Callisto13 Callisto13 marked this pull request as ready for review January 25, 2022 10:07
@Callisto13 Callisto13 changed the title [wip] feat: set provider id earlier feat: set provider id earlier Jan 25, 2022
This returns the microvm in the Create response so that we can use
details for subsequent actions, eg status checks and getting the UUID.
Instead we can just switch on the state immediately (at that point it
will be the default `pending`) and update the cluster conditions before
requeueing.
At the old location the ID was not persisted before the state switch,
meaning that we would sometimes (in almost all cases) exit and requeue
before it was set. This lead to dupe mvms being created on multiple
hosts.
@Callisto13 Callisto13 force-pushed the set-provider-id-earlier branch from 1624d9a to 9387801 Compare January 25, 2022 11:37
@Callisto13 Callisto13 merged commit 4b04568 into main Jan 25, 2022
@Callisto13 Callisto13 deleted the set-provider-id-earlier branch January 25, 2022 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return the mvm object from the service.Create method Set the providerID a little earlier
2 participants