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

Automated cherry pick of #17080 #17153

Merged

Conversation

enj
Copy link
Contributor

@enj enj commented Nov 2, 2017

Cherry pick of #17080 on stage.

#17080: Correctly handle NotFound errors during migration

enj added 2 commits November 2, 2017 14:05
This change makes it so that the migrate storage command will now
reprocess the body of a failed GET request to follow the standard
path of extracting a status error.  This normalizes the structure of
the errors the code must handle.

When comparing the resource.Info to an error, the info's REST
mapping is now used to extract group kind information since the
associated runtime.Object is not guaranteed to have valid type meta
data.  This is combined with relaxed case-insensitive matching to
make sure that we only fail the migrate storage command on NotFound
errors that we know do not match the info.

When a NotFound error occurs, the migrate command now correctly
reports that it did not change the resource.  Previously it reported
that it had successfully migrated the resource, which is not true
since it is impossible to migrate a resource that does not exist.

Bug 1506006

Signed-off-by: Monis Khan <[email protected]>
This change adds glog style timestamps to the reporting output of
the migration tracker.  This will aid in debugging migration errors
by making it easier to correlate client errors with master logs.

Signed-off-by: Monis Khan <[email protected]>
@enj
Copy link
Contributor Author

enj commented Nov 3, 2017

/test all

@smarterclayton
Copy link
Contributor

/lgtm
/retest

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 3, 2017
@smarterclayton smarterclayton added kind/bug Categorizes issue or PR as related to a bug. kind/delivery-blocker labels Nov 3, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enj, smarterclayton

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 3, 2017
@enj
Copy link
Contributor Author

enj commented Nov 3, 2017

/retest

@enj enj merged commit 8e83534 into openshift:stage Nov 3, 2017
@enj
Copy link
Contributor Author

enj commented Nov 3, 2017

Merged to make stage upgrades less flakey on migrate. All tests green.

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. kind/bug Categorizes issue or PR as related to a bug. kind/delivery-blocker lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants