IBM / cloud-pak-deployer

Configuration-based installation of OpenShift and Cloud Pak for Data/Integration/Watson AIOps on various private and public cloud infrastructure providers. Deployment attempts to achieve the end-state defined in the configuration. If something fails along the way, you only need to restart the process to continue the deployment.
https://ibm.github.io/cloud-pak-deployer/
Apache License 2.0
132 stars 67 forks source link

Destroy of AWS OpenShfit cluster fails #528

Closed fketelaars closed 10 months ago

fketelaars commented 11 months ago

When destroying an AWS OpenShift cluster, the following error is thrown:

TASK [destroy-aws : Destroy Openshift with AWS ROSA] ***************************
Sunday 17 September 2023  05:48:58 +0000 (0:00:00.035)       0:01:33.528 ******
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'current_openshift_cluster.infrastructure.type  == 'rosa'' failed. The error was: error while evaluating conditional (current_openshift_cluster.infrastructure.type  == 'rosa'): 'current_openshift_cluster' is undefined\n\nThe error appears to be in '/cloud-pak-deployer/automation-roles/30-provision-infra/destroy-aws/tasks/main.yml': line 35, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Destroy Openshift with AWS ROSA\n  ^ here\n"}

Then, once fixed, another error is issued:

TASK [destroy-aws : Destroy Openshift with AWS IPI] ****************************
Sunday 17 September 2023  05:55:46 +0000 (0:00:00.031)       0:01:34.615 ******
fatal: [localhost]: FAILED! => {"reason": "Could not find or access '/cloud-pak-deployer/playbooks/destroy-aws-ipi.yml' on the Ansible Controller."}
Alan111S commented 11 months ago

I've just started using the Cloud Pak Deployer with Self Managed AWS and hit this same issue today while trying to destroy a failed cluster build.