ibm-mas / ansible-devops

Ansible collection supporting devops for IBM Maximo Application Suite
https://ibm-mas.github.io/ansible-devops/
Eclipse Public License 2.0
49 stars 82 forks source link

rosa cli api url missing in the response #1381

Closed padmankosalaram closed 1 month ago

padmankosalaram commented 1 month ago

We noticed api_url is returned empty from the logs.

Code Ref : https://github.com/ibm-mas/ansible-devops/blob/0a46ceb73e990e23b6bad3dcd670de43275ebc0f/ibm/mas_devops/roles/ocp_provision/tasks/providers/rosa.yml#L124

Logs

TASK [ibm.mas_devops.ocp_provision : rosa/provision : Debug cluster admin creation] ***
ok: [localhost] => 
  msg:
  - '{'
  - '  "api_url": "",'
  - '  "username": "cluster-admin"'
  - '}'

Expected change: We may need to look up the api_url via the below cli execution and read from {api.url} and add a wait & retry till it is present rosa describe cluster -c <cluster_name>