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

Bug 1925276: Set provisioning phase after attempting create #793

Conversation

michaelgugino
Copy link
Contributor

Setting the phase (or anything else) that causes a machine
object to be patched prior to recording the instance ID
can result in a double create. This is because the requeue
from the initial phase will process before the cache is
updated with the instance ID.

Setting the phase (or anything else) that causes a machine
object to be patched prior to recording the instance ID
can result in a double create.  This is because the requeue
from the initial phase will process before the cache is
updated with the instance ID.
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign michaelgugino after the PR has been reviewed.
You can assign the PR to them by writing /assign @michaelgugino in a comment when ready.

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

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

@michaelgugino
Copy link
Contributor Author

/test unit

@michaelgugino michaelgugino changed the title Set provisioning phase after attempting create Bug 1920770: Set provisioning phase after attempting create Jan 29, 2021
Copy link
Contributor

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

this makes sense to me, i just have a question about how the operations are done. is it possible to have the machine be created with the provisioning state? (just curious about the update action and sequence)
/lgtm

edit:
got an answer to my question out of band, updating the status takes an extra call to the api due to the status subresource. so, creating a machine with the state set is complicated to say the least.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 1, 2021
@JoelSpeed
Copy link
Contributor

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@JoelSpeed: Bugzilla bug 1920770 is in a bug group that is not in the allowed groups for this repo.
Allowed groups for this repo are:

  • qe_staff
  • redhat

In response to this:

/bugzilla refresh

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.

@michaelgugino
Copy link
Contributor Author

/retest

@JoelSpeed
Copy link
Contributor

This change means that we won't set the phase to provisioning if the machine actuator create fails right?

As an alternative, what about checking if the phase is empty, setting it to provisioned and then requeueing straight away, so we only start creating when we have read the object as having provisioning already? I think that would solve the same issue and get around the possibility of cache issues /create failure right?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 1, 2021

@michaelgugino: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-operator 2467dd8 link /test e2e-aws-operator
ci/prow/e2e-aws-workers-rhel7 2467dd8 link /test e2e-aws-workers-rhel7

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@michaelgugino michaelgugino changed the title Bug 1920770: Set provisioning phase after attempting create Bug 1925276: Set provisioning phase after attempting create Feb 4, 2021
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. label Feb 4, 2021
@openshift-ci-robot
Copy link
Contributor

@michaelgugino: This pull request references Bugzilla bug 1925276, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1925276: Set provisioning phase after attempting create

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Feb 4, 2021
@openshift-ci-robot
Copy link
Contributor

@michaelgugino: PR needs rebase.

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.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 10, 2021
@michaelgugino
Copy link
Contributor Author

@JoelSpeed you've been working on phases and whatnot, can you take this over?

@JoelSpeed
Copy link
Contributor

/close This has been covered by #857

@JoelSpeed
Copy link
Contributor

/close

@openshift-ci openshift-ci bot closed this May 19, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 19, 2021

@JoelSpeed: Closed this PR.

In response to this:

/close

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 19, 2021

@michaelgugino: This pull request references Bugzilla bug 1925276. The bug has been updated to no longer refer to the pull request using the external bug tracker.

In response to this:

Bug 1925276: Set provisioning phase after attempting create

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants