ibm-mas / cli

Maximo Application Suite command line interface
https://ibm-mas.github.io/cli/
Eclipse Public License 2.0
24 stars 18 forks source link

Uninstall doesn't clean resources of failed installation #198

Open eyalcha opened 1 year ago

eyalcha commented 1 year ago

In case installation process has failed in the middle, and some resources have been created, uninstall is not cleaning resources of failed instance

[ibmmas/cli:3.12.0]mascli$ mas uninstall
IBM Maximo Application Suite Uninstall Manager
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/

1. Set Target OpenShift Cluster
Connected to OCP cluster: 
   https://console-openshift-console.aaaaaaaaaaa-9ca4d14d48413d18ce61b80811ba4308-0000.us-south.containers.appdomain.cloud
Proceed with this cluster? [Y/n] 
MAS Instance ID > mas-instance-1
Error: The project "mas-mas-instance-1-core" does not exist.

Fatal Error[1]  See /opt/app-root/src/.ibm-mas/logs/mas.log for details
andrercm commented 1 year ago

Thanks for the feedback @eyalcha We're working on extending support for uninstalling MAS Core resources i.e mongo dbs, deployments, pods, suite cr, namespace, etc and we'll cover this support for cli as well.