Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.

only set image and user data when we actually want to provision#94

Merged
dhellmann merged 4 commits intometal3-io:masterfrom
dhellmann:conditionally-set-host-issue-93
Jul 2, 2019
Merged

only set image and user data when we actually want to provision#94
dhellmann merged 4 commits intometal3-io:masterfrom
dhellmann:conditionally-set-host-issue-93

Conversation

@dhellmann
Copy link
Copy Markdown
Member

@dhellmann dhellmann commented Jul 1, 2019

We only want to update the image setting if the host does not already have
a consumer and image.

A consumer without an image is "externally provisioned" and assigning the
image will trigger reprovisioning. Since the control plane nodes will be
configured this way, reprovisioning will take them offline and try to turn
them into workers.

A host with an existing image is also already provisioned and upgrades are
not supported at this time. To re-provision ahost, we must fully deprovision
it and then provision it again.

Fixes #93

dhellmann added 3 commits July 1, 2019 13:17
Name the scenarios and use subtests to make it easier to see which
output belongs with which failure.
@dhellmann dhellmann requested review from hardys and mhrivnak July 1, 2019 17:21
We only want to update the image setting if the host does not already
have a consumer and image.

A consumer without an image is "externally provisioned" and assigning
the image will trigger reprovisioning. Since the control plane nodes
will be configured this way, reprovisioning will take them offline and
try to turn them into workers.

A host with an existing image is also already provisioned and upgrades
are not supported at this time. To re-provision a host, we must fully
deprovision it and then provision it again.

Fixes #93
Copy link
Copy Markdown
Member

@mhrivnak mhrivnak left a comment

Choose a reason for hiding this comment

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

LGTM. Should there also be something on the BMO side to enforce this? It seems like it should know that a host is provisioned, and in that case, not try to overwrite it without going through the formal deprovisioning workflow.

@dhellmann dhellmann merged commit 511dd0e into metal3-io:master Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

only set image on hosts we want provisioned

2 participants