Bug 2111059
| Summary: | Evaluation enhancement of PRE_RECOVERY/POST_RECOVERY/PRE_BACKUP/POST_BACKUP scripts | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Pavel Cahyna <pcahyna> |
| Component: | rear | Assignee: | Pavel Cahyna <pcahyna> |
| Status: | CLOSED ERRATA | QA Contact: | David Jež <djez> |
| Severity: | medium | Docs Contact: | Šárka Jana <sjanderk> |
| Priority: | medium | ||
| Version: | 9.0 | CC: | djez, ovasik, pcahyna, rhel-cs-system-management-subsystem-qe, rmetrich |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | rear-2.6-12.el9 | Doc Type: | Enhancement |
| Doc Text: |
.ReaR adds new variables for executing commands before and after recovery
With this enhancement, ReaR introduces two new variables for easier automation of commands to be executed before and after recovery:
* `PRE_RECOVERY_COMMANDS` accepts an array of commands. These commands will be executed before recovery starts.
* `POST_RECOVERY_COMMANDS` accepts an array of commands. These commands will be executed after recovery finishes.
These variables are an alternative to `PRE_RECOVERY_SCRIPT` and `POST_RECOVERY_SCRIPT` with the following differences:
* The earlier `PRE_RECOVERY_SCRIPT` and `POST_RECOVERY_SCRIPT` variables accept a single shell command. To pass multiple commands to these variables, you must separate the commands by semicolons.
* The new `PRE_RECOVERY_COMMANDS` and `POST_RECOVERY_COMMANDS` variables accept arrays of commands, and each element of the array is executed as a separate command.
As a result, providing multiple commands to be executed in the rescue system before and after recovery is now easier and less error-prone.
For more information, see the `default.conf` file.
|
Story Points: | --- |
| Clone Of: | 2035872 | Environment: | |
| Last Closed: | 2022-11-15 10:42:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2035872 | ||
|
Description
Pavel Cahyna
2022-07-26 11:59:25 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (rear bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8246 |