- 19 Apr 2024
-
DarkLight
-
PDF
IAP Rollback Procedure
- Updated on 19 Apr 2024
-
DarkLight
-
PDF
The rollback process involves the following steps.
Warnings & Precautions
The database must be restored to a previous state to ensure feature compatibility. Any data changes made after your latest backup from the rollback-target version of IAP will be lost.
Rollback Procedures
-
If you have fully completed the upgrade, and the new version is live, prevent the new version of IAP from starting new jobs:
- For IAP 2023.1 and above, this may be done from the Admin Essentials UI homepage (Admin Essentials → Server Information → Accept New Jobs).
- For IAP 2022.1, this must be done by individually disabling job sources:
- Automation Catalog Automations
- Operations Manager Automation Triggers
- Any non-Itential product that uses the
startJobWithOptions
API from Workflow Engine.
-
If the new version of IAP has been live for any length of time, now would be an appropriate time to burn down in-flight jobs, if needed. Note that regardless of job burn-down, you will not have access to post-upgrade jobs after you complete the rollback.
-
Once all jobs are in the appropriate state, shut down IAP.
-
Create a database backup using the
mongodump
utility. This preserves post-upgrade data changes for reference purposes only, and will not be usable in the version of IAP targeted by the rollback. -
Make sure all dependency versions satisfy the requirements of the IAP version targeted by the rollback.
-
Restore the previous database state from the archive that was created before upgrading using the
mongorestore
utility. Use the--drop
flag to ensure all collections are cleared before importing the archived contents. This will delete any data changes made after the upgrade was completed. -
Link the previous version of IAP to
/opt/pronghorn/current
.ln -s /opt/pronghorn/<PREVIOUS_IAP_VERSION> /opt/pronghorn/current
-
Start IAP. At this point, IAP should be rolled back to the previous version, with the database as it was prior to upgrading.