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

Wait for API availability before migrating storage, add retries #9090

Merged
merged 2 commits into from Jul 6, 2018

Conversation

sdodson
Copy link
Member

@sdodson sdodson commented Jul 6, 2018

Wait for all core apis to become available and add more retries to the
storage migration to work around a problem where storage migration fails
due to certain api endpoints not being available in time

Potential fix for https://bugzilla.redhat.com/show_bug.cgi?id=1591053

Wait for all core apis to become available and add more retries to the
storage migration to work around a problem where storage migration fails
due to certain api endpoints not being available in time
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 6, 2018
@mtnbikenc
Copy link
Member

@sdodson This doesn't call into the task that checks all core APIs. That task is at the end of main.yml and will require some refactoring to be able to call it directly. There are a lot of checks here which could be useful to run at different stages but I don't know that we need to completely rework it at this point. Increasing retries looks fine.

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 6, 2018
@sdodson sdodson force-pushed the wait-for-storage-migration branch from 584212e to 27704b7 Compare July 6, 2018 16:48
@sdodson
Copy link
Member Author

sdodson commented Jul 6, 2018

Ugh, can't believe I missed that. I've moved the core api checks into the included task file, i think it's a good generic check for api availability now.

@sdodson sdodson force-pushed the wait-for-storage-migration branch from 27704b7 to 12fe557 Compare July 6, 2018 17:08
Copy link
Member

@mtnbikenc mtnbikenc left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2018
@sdodson sdodson force-pushed the wait-for-storage-migration branch from 12fe557 to de68730 Compare July 6, 2018 17:40
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2018
@sdodson
Copy link
Member Author

sdodson commented Jul 6, 2018

Fixed an undefined variable error i encountered in testing.

TASK [openshift_control_plane : fail] *****************************************************************************************************************************************************************************
task path: /home/rdu/sdodson/git/openshift-ansible/roles/openshift_control_plane/tasks/check_master_api_is_ready.yml:21
Friday 06 July 2018  13:27:17 -0400 (0:00:00.037)       0:23:25.585 *********** 
fatal: [ose3-master.example.com]: FAILED! => {
    "failed": true, 
    "msg": "The conditional check 'l_api_available_output.stdout != 'ok'' failed. The error was: error while evaluating conditional (l_api_available_output.stdout != 'ok'): 'l_api_available_output' is undefined\n\nThe error appears to have been in '/home/rdu/sdodson/git/openshift-ansible/roles/openshift_control_plane/tasks/check_master_api_is_ready.yml': line 21, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- fail:\n  ^ here\n"
}

@mtnbikenc
Copy link
Member

I hit the same error in my test.
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mtnbikenc, sdodson

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

@sdodson sdodson merged commit c03b777 into openshift:master Jul 6, 2018
@sdodson
Copy link
Member Author

sdodson commented Jul 6, 2018

/cherrypick release-3.10

@openshift-cherrypick-robot

@sdodson: new pull request created: #9099

In response to this:

/cherrypick release-3.10

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
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.

None yet

4 participants