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 1779390: force reconcile if any error conditions are set or !Provisioned #152

Merged

Conversation

joelddiaz
Copy link
Contributor

in the event that a CredentialsRequest object has been recently synced, but has an error condition set, ensure that the CredentialsRequest is re-reconciled to attemp detecting/handling the error condition (so that it can be cleared).

also check the CredentialsRequest.Status.Provisioned flag so that we always re-reconcile if Provisioned != True.

in the event that a CredentialsRequest object has been recently synced, but has an error condition set, ensure that the CredentialsRequest is re-reconciled to attemp detecting/handling the error condition (so that it can be cleared).

also check the CredentialsRequest.Status.Provisioned flag so that we always re-reconcile if Provisioned != True.
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 10, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2020
@joelddiaz
Copy link
Contributor Author

/test e2e-aws

@joelddiaz joelddiaz changed the title Bug: 1779390 force reconcile if any error conditions are set or !Provisioned Bug 1779390: force reconcile if any error conditions are set or !Provisioned Jan 10, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Jan 10, 2020
@openshift-ci-robot
Copy link
Contributor

@joelddiaz: This pull request references Bugzilla bug 1779390, which is invalid:

  • expected the bug to target the "4.4.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1779390: force reconcile if any error conditions are set or !Provisioned

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.

@joelddiaz
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jan 10, 2020
@openshift-ci-robot
Copy link
Contributor

@joelddiaz: This pull request references Bugzilla bug 1779390, 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.

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.


if !isStale && hasRecentlySynced && crSecretExists {
if !isStale && hasRecentlySynced && crSecretExists && !hasActiveFailureConditions && cr.Status.Provisioned {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it technically feasible to not set lastSyncGen and lastSyncTime, if we did not fully reconcile the cred request without error?

I feel like the intent of these fields is to indicate the last successfully synced generation and they should not be set if we hit errors.

Copy link
Contributor

Choose a reason for hiding this comment

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

From slack, we don't, normally, and we're not sure how this is possible that we got into this state.

@wking
Copy link
Member

wking commented Jan 10, 2020

in the event that a CredentialsRequest object has been recently synced, but has an error condition set, ensure that the CredentialsRequest is re-reconciled...

When I read this, I thought "but we want to resync if there is an error, even if we haven't been recently synced". Looking at the code, I see that is the case, where we skip resyncing if everything looks good, but an old sync, or an error condition, or a provision failure are all sufficient on their own to trigger a resync. Just thought I'd translate that into English to make sure we're all on the same page and head off anyone else making my same mistaken first impression ;).

@dgoodwin
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 13, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dgoodwin, joelddiaz

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

The pull request process is described 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

@openshift-merge-robot openshift-merge-robot merged commit c8d63aa into openshift:master Jan 13, 2020
@openshift-ci-robot
Copy link
Contributor

@joelddiaz: All pull requests linked via external trackers have merged. Bugzilla bug 1779390 has been moved to the MODIFIED state.

In response to this:

Bug 1779390: force reconcile if any error conditions are set or !Provisioned

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.

@joelddiaz joelddiaz deleted the reconcile-on-condition branch June 16, 2020 17:55
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. 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. 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.

None yet

5 participants