Updating main.yaml to get the correct output from oc get hc command - #506
Updating main.yaml to get the correct output from oc get hc command#506shallike wants to merge 2 commits into
Conversation
Adding changes to get the right output for oc get hc command
|
FAILED - RETRYING: [bastion_hcp]: Wait for Hosted Control Plane to Complete (2 retries left). This particular code is returning hosted-cluster-admin-kubeconfig as the output instead of Completed. |
|
|
||
| - name: Wait for Hosted Control Plane to Complete | ||
| shell: oc get hc -n {{ hcp.control_plane.clusters_namespace }} --no-headers | awk '{print $4}' | ||
| shell: oc get hc -n {{ hcp.control_plane.clusters_namespace }} --no-headers | awk '{print $5}' |
There was a problem hiding this comment.
Hi @shallike
From which OCP/MCE version this change is applicable ?
There was a problem hiding this comment.
Hi @veera-damisetti ,
I am seeing this from 4.22.0 OCP version and MCE version 2.17
There was a problem hiding this comment.
Hi @veera-damisetti ,
does this PR need any more changes or is it ok to merge??
There was a problem hiding this comment.
yes @shallike
This changes might cause failure for older versions.
Better to have a version based check , or try to get status from json.
🔔 Stale PR NoticeThis pull request has been automatically marked as stale because it has not had any activity for 30 days. To remove the stale label, do any of the following:
|
Adding changes to get the right output for oc get hc command