-
Bug
-
Resolution: Done
-
Major
-
RHODS_1.1_GA
-
1
-
False
-
False
-
Release Notes
-
Yes
-
-
-
-
-
-
1.7.0-4
-
No
-
-
Documented as Resolved Issue
-
No
-
Yes
-
None
-
-
MODH Sprint 34, MODH Sprint 1.7
Description of problem:
When RHODS and RHOAM are installed together on the same cluster, the uninstall process of one of them can be stuck because CRO fails to delete AWS VPC.
The issue has been faced uninstalling RHOAM, but it is reasonable (and i will be tested) that it may happen uninstalling RHODS too.
Talking to RHOAM developers, they said the cause should be that the current CRO implementation only support the creation of one CRO network instance for each cluster. So, when you install the first Add-on (e.g., RHODS) it will create the CRO network. When the second Add-on (e.g., RHOAM) is installed, it uses the CRO network created by the first one. When you try to uninstall one of the two Add-on, the CRO fails to delete VPC because there are still resources installed by the other Add-on.
We have not been able to test every scenario so far, but the one where the issue came out was the following:
- Install RHODS
- Install RHOAM
- Uninstall RHOAM
- Uninstallation is stuck
Prerequisites (if any, like setup, operators/versions):
Install RHODS and RHOAM
Steps to Reproduce
- Install one of the two add on
- install the second one
- uninstall one of them
- check if the uninstallation is stuck
Actual results:
uninstall blocked because there are resources created by the other Addon in the same VPC
Expected results:
uninstallation goes smoothly
Reproducibility (Always/Intermittent/Only Once):
Build Details:
Workaround:
- In case of RHOAM is stuck while uninstalling, you can try doing this: oc edit postgres.integreatly.org -n redhat-rhoam-operator and remove the lines related to the finalizers. After that the uninstallation will progress [TESTED]
- Delete the cluster from OCM. If there are problems uninstalling addons, It forces the cluster deletion after 1 hour. After that you may want to delete resources from AWS console to clean up.
Additional info:
looking at the created resources on AWS, you can see that on a cluster there are two different VPCs: one has the cluster name inside, while the other one is named "RHMI Cloud Resource VPC". Basically the latter is the VPC created by the CRO and this is the one used by both the Addons.
- impacts account
-
RHODS-4503 Install of RHODS fails on CEE-OSD4 cluster
- Closed
- is duplicated by
-
RHODS-2006 ODS uninstall leaving behind RDS instances
- Closed
- mentioned on