Skip to content

Wait for inspection completion#785

Merged
metal3-io-bot merged 1 commit intometal3-io:masterfrom
andfasano:wait-inspection-complete
Feb 8, 2021
Merged

Wait for inspection completion#785
metal3-io-bot merged 1 commit intometal3-io:masterfrom
andfasano:wait-inspection-complete

Conversation

@andfasano
Copy link
Copy Markdown
Member

The previous logic for Provisioner.InspectHardware() considered the action completed by just looking at the Inspector result flags Finished and Error. Anyhow, even though the inspection was effectively completed, there could be some cases where the related node Provisioning state was still in inspectWait since the update in Ironic is not simultaneous.
This could be a problem since the BMO state machine goes on and some BMO states could report an error if the node is not in the expected provisioning state (as the new Preparing state introduced in #763).

This PR so waits also for the node to not be in inspectWait before considering the inspection successfully done.

/cc @dtantsur @zaneb @Hellcatlk

@metal3-io-bot
Copy link
Copy Markdown
Contributor

@andfasano: GitHub didn't allow me to request PR reviews from the following users: Hellcatlk.

Note that only metal3-io members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

The previous logic for Provisioner.InspectHardware() considered the action completed by just looking at the Inspector result flags Finished and Error. Anyhow, even though the inspection was effectively completed, there could be some cases where the related node Provisioning state was still in inspectWait since the update in Ironic is not simultaneous.
This could be a problem since the BMO state machine goes on and some BMO states could report an error if the node is not in the expected provisioning state (as the new Preparing state introduced in #763).

This PR so waits also for the node to not be in inspectWait before considering the inspection successfully done.

/cc @dtantsur @zaneb @Hellcatlk

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 2, 2021
@zaneb
Copy link
Copy Markdown
Member

zaneb commented Feb 3, 2021

/approve

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 3, 2021
@metal3-io-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andfasano, dtantsur, elfosardo, zaneb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@elfosardo
Copy link
Copy Markdown
Member

/test-integration

@hardys
Copy link
Copy Markdown
Member

hardys commented Feb 8, 2021

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2021
@metal3-io-bot metal3-io-bot merged commit fc1dbce into metal3-io:master Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants