Repository navigation
Verify the rollout status of the hosted router and registry - #4402
openshift-bot merged 2 commits into
Conversation
|
|
Waits, determines if it's progressing or not. When it fails to progress and fails, the client call fails.
3.5 and 3.6 for sure |
|
More specifically, 1.4+ |
When deploying the hosted router and registry components, we need to ensure that they correctly roll out. The previous checks were weak in that they either simply waited for a set amount of time and/or did one replica check. They would fail if the router or registry took longer to deploy or if there were un-ready or failing replicas. The `oc rollout` command group contains the `status` endpoint for internalizing all of the logic for determining when a rollout has succeeded or failed, so simply using this client call will ensure that the router and registry correctly deploy. Signed-off-by: Steve Kuznetsov <[email protected]>
7608d60 to
9ba4195
Compare
|
Have your newlines, @sdodson can we get aos-ci on this and I think it's ready |
|
|
I'd expect up to a minute or more in environments that actually require images to be pulled. Especially for whichever is deployed first as pod, deployer, and the actual image need to be pulled. |
|
aos-ci-test |
I would too -- but the cluster isn't valid if this doesn't happen, so it's kind of a moot point. I am more worried that it would have made CI significantly slower. |
|
Job only failed on checking other job statuses |
|
[merge] |
|
AOS CI decided not to work? WTF? |
|
aos-ci-test |
|
@sdodson looks like it's throwing a fit... no logs? Can we re-test? |
|
aos-ci-test |
|
I wouldn't use |
|
Or are you more concerned about customer environments rather than CI flake |
Exactly. kubernetes/kubernetes#40224 needs to be fixed for |
|
Hmmm -- can we add In the interim do we have a better solution for verifying the rollout status? This hit some other people as well where it was as bad as the router image being missing and the installer reported 100% happy. Should we just do the |
|
|
|
@Kargakis why RC, not DC? |
| until: "'Running' not in openshift_hosted_registry_rc_phase.stdout" | ||
| delay: 15 | ||
| reties: 40 | ||
| failed_when: "'Failed' in openshift_hosted_registry_rc_phase.stdout" |
There was a problem hiding this comment.
Did you figure out if this fails early or does it hit max retries?
There was a problem hiding this comment.
It doesn't fail early, unfortunately. No way to do that it seems
| oc rollout status deploymentconfig {{ openshift_hosted_registry_name }} \ | ||
| --namespace {{ openshift_hosted_registry_namespace }} \ | ||
| --config {{ openshift.common.config_base }}/master/admin.kubeconfig | ||
| failed_when: no |
There was a problem hiding this comment.
I think we tend to gravitate towards false
|
@sdodson updated PTAL |
c38e128 to
bb2a75b
Compare
|
aos-ci-test |
|
PLEASE |
We cannot rely on the `watch.Until` call in the `rollout status` subcommand for the time being, so we need to ignore the result of this call. This will make the rollout status check best-effort, so we need to follow it with a poll for the actual status of the rollout, which we can extract from the `openshift.io/deployment.phase` annotation on the ReplicationControllers. This annotation can have only three values -- `Running`, `Complete` and `Failed`. If we poll on this attribute until we stop seeing `Running`, we can then inspect the last result for `Failed`; if it's present, we have failed the deployment. Signed-off-by: Steve Kuznetsov <[email protected]>
bb2a75b to
acb7831
Compare
|
Evaluated for openshift ansible test up to acb7831 |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible/221/) (Base Commit: 75a46c1) |
|
aos-ci-test |
|
[merge] |
|
[merge] |
|
@openshift-bot, the last build failed from the following flakes:
|
|
@sdodson can you re-tag for merge please |
|
[merge][severity: bug] |
|
Evaluated for openshift ansible merge up to acb7831 |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/574/) (Base Commit: 7608068) (PR Branch Commit: acb7831) (Extended Tests: bug) |
When deploying the hosted router and registry components, we need to
ensure that they correctly roll out. The previous checks were weak in
that they either simply waited for a set amount of time and/or did one
replica check. They would fail if the router or registry took longer to
deploy or if there were un-ready or failing replicas. The
oc rolloutcommand group contains the
statusendpoint for internalizing all ofthe logic for determining when a rollout has succeeded or failed, so
simply using this client call will ensure that the router and registry
correctly deploy.
Signed-off-by: Steve Kuznetsov [email protected]
[test]
aos-ci-test
/cc @sdodson