Skip to content

Commit

Permalink
Wait for Hive Provision status ProvisionFailed=False up to 15 minut…
Browse files Browse the repository at this point in the history
…es (#1279)

This should resolve the unexpected failure when waiting for
`Provisioned=True` that could fail sometimes.

This has been tested in the old and in the newer Hive clusters:

In old Hive:
```
$▶ oc -n ods-qe-dash-pool-bh9wd wait cd ods-qe-dash-pool-bh9wd --for=condition=ProvisionFailed=False
clusterdeployment.hive.openshift.io/ods-qe-dash-pool-bh9wd condition met
```

In new Hive:
```
$▶ oc -n ods-qe-psi-15-pool-5p98s wait cd ods-qe-psi-15-pool-5p98s --for=condition=ProvisionFailed=False
clusterdeployment.hive.openshift.io/ods-qe-psi-15-pool-5p98s condition met

```
  • Loading branch information
kobihk authored Mar 13, 2024
2 parents bcb0915 + dd725ce commit 394bac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ods_ci/tasks/Resources/Provisioning/Hive/provision.robot
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Wait For Cluster To Be Ready
Run Keyword And Ignore Error Watch Hive Install Log ${pool_namespace} ${install_log_file}
Log Verifying that Cluster '${cluster_name}' has been provisioned and is running according to Hive Pool namespace '${pool_namespace}' console=True # robocop: disable:line-too-long
${provision_status} = Run Process
... oc -n ${pool_namespace} wait --for\=condition\=Provisioned\=True cd ${pool_namespace} --timeout\=10m
... oc -n ${pool_namespace} wait --for\=condition\=ProvisionFailed\=False cd ${pool_namespace} --timeout\=15m
... shell=yes
${web_access} = Run Process
... oc -n ${pool_namespace} get cd ${pool_namespace} -o json | jq -r '.status.webConsoleURL' --exit-status
Expand Down

0 comments on commit 394bac5

Please sign in to comment.