Is JON able to roll back the patch?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Operations Network (JON)
    • 2.4.x
  • Red Hat JBoss patch content feed applied

Issue

  • I applied a patch via JON but it does not work.  Is JON able to roll back the patch?

Resolution

  • There is no roll-back or revert function in JON as such. However, when a patch is applied, the files that were changed are backed up. The backup contains a name similar to <real-name>-<date-time>.rej. So, for example, if run.jar was replaced by the CP08 patch, then a backup would have been created in the same folder and named run.jar-20110630-0330.rej (or similar). What this could mean is that the process could be undone in a manual way:

    1. Shutdown the EAP instance;
    2. Make a complete backup of <JBOSS_HOME> folder;
    3. Undo any configuration or application updates that have been done as part of the manual steps from the upgrade;
    4. Move the backup file over the top of the updated file.
  • Alternatively, if a backup of <JBOSS_HOME> was done prior to applying the patch, a backup of the current <JBOSS_HOME> could be performed and then delete <JBOSS_HOME> and restore from the backup that was done prior to applying the patch.

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.