How to Check Previous Ansible Automation Platform Operator Versions and Installation Dates in OpenShift
Environment
- Ansible Automation Platform 2.x Operator
- Red Hat OpenShift 4.x
Issue
- The OpenShift Console only shows the current AAP operator version and the date when it was installed. How can we find the exact older AAP operator versions and their installation dates?
Resolution
-
Use the following oc command to find the older AAP operator versions installed in a particular namespace:
$oc get installplan -n aap | more install-94gjn aap-operator.v2.4.0-0.1720482179 Manual true install-fkgnj aap-operator.v2.4.0-0.1711590540 Manual true install-llr64 aap-operator.v2.4.0-0.1717558474 Manual true install-ngkln aap-operator.v2.4.0-0.1718152210 Manual true
- The above command shows the current and all the previous operator versions installed in the "aap" namespace. Please change the namespace name as per your environment.
-
To get the exact date when the particular operator version was installed, use the following command:
$ oc get installplan install-fkgnj -o json | jq -r .metadata.creationTimestamp 2024-04-02T20:59:48Z
Note: Replace the install plan name with the one in your AAP deployment.
Root Cause
- There is no easy way to determine the previously installed AAP operators versions using the OpenShift console. Please use the oc command line tool to get the exact information.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments