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
Deflake policy startup issue #6387
Deflake policy startup issue #6387
Conversation
[test] |
@@ -177,6 +180,18 @@ func (c *MasterConfig) ensureComponentAuthorizationRules() { | |||
glog.Errorf("Error creating bootstrap policy: %v", err) | |||
} | |||
|
|||
// Wait until the policy cache has caught up before continuing | |||
err := wait.Poll(100*time.Millisecond, 30*time.Second, func() (done bool, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow that's a long interval.
addressed comments, also switched to always wait for the cache, even when there was an existing policy, to ensure later initialization steps don't fail because the policy cache wasn't up to date |
Evaluated for origin test up to a723137 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/8022/) |
lgtm [merge] |
flake #6437, [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4457/) (Image: devenv-rhel7_3019) |
Evaluated for origin merge up to a723137 |
Merged by openshift-bot
Fixes issues with initial
ensure
calls not being allowed because the policy cache wasn't updated yet.Things like this: