Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2188593

Summary: [RFE] Include NetBackup's systemd unit files in rear rescue environment and start the services automatically.
Product: Red Hat Enterprise Linux 9 Reporter: Joerg <jkastnin>
Component: rearAssignee: Pavel Cahyna <pcahyna>
Status: CLOSED ERRATA QA Contact: Jakub Haruda <jharuda>
Severity: medium Docs Contact: Šárka Jana <sjanderk>
Priority: medium    
Version: 9.1CC: jharuda, pcahyna, pdwyer
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: rear-2.6-18.el9 Doc Type: Enhancement
Doc Text:
.The NetBackup services are now enabled for backup restoration When using the NetBackup (NBU) backup method, ReaR now includes the unit files for the NetBackup services version 10.1.1 in the rescue image and starts them when the rescue system boots. As a result, you can restore the system backup by using the NBU backup method during the recovery process and complete the restore successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:37:21 UTC Type: Story
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joerg 2023-04-21 09:26:29 UTC
1. Proposed title of this feature request
-----------------------------------------

[RFE] Include NetBackup's systemd unit files in rear rescue environment and start the services automatically.

2. Who is the customer behind the request?
------------------------------------------

This information will be attached as private comment after the BZ is created.

3. What is the nature and description of the request?
-----------------------------------------------------

The customer successfully uses rear and NetBackup 10.1.1 on RHEL 8. They try to validate this solution for RHEL 9 as it's an important part of their disaster recovery strategy.

In RHEL 8 NetBackup 10.1.1 installs init-scripts in `/etc/init.d/*`. These are included in the rear rescue environment when creating the rear ISO. When the customer creates the REAR ISO they are able to see all NBU /etc/init.d files and the service is automatically started.

On RHEL 9 however NetBackup 10.1.1 installs systemd service unit files instead of /etc/init.d files. Creating the rear ISO recovery environment, these files are not included. Booting the recovery ISO, the systemd service unit files are missing in the rescue environment.

Looking upstream at [0] it seems that rear takes care of files in /etc/init.d only but ignores systemd unit files.

4. Why does the customer need this? (List the business requirements here)
-------------------------------------------------------------------------

- NetBackup >= 10.1.1 on RHEL 9 uses systemd unit files instead of init-scripts in `/etc/init.d/*`
- The feature is an important part in the customers disaster recovery strategy.
- The missing feature is preventing the adoption of RHEL 9 in the customer's infrastructure.

5. How would the customer like to achieve this? (List the functional requirements here)

- When creating the rear recovery ISO the systemd unit files, needed to start the NetBackup services automatically after boot, should be getting included in the rear rescue ISO.
- When the RHEL 9 machine boots into the rear rescue environment using the ISO previously created the NetBackup services should start automatically.

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

6.1. Install RHEL 9.1
6.2. Install Netbackup >= 10.1.1
6.3. Install rear, configure it, and create rescue ISO
6.4. Boot rear ISO
6.5. Check whether NetBackup services are started automatically

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?
No.

8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL8, RHEL9)?
The customer would like to see this feature in RHEL 9.3.

9. Is the sales team involved in this request and do they have any additional input?
The sales team is currently not involved.

10. List any affected packages or components.
- rear
- NetBackup >= 10.1.1 (see [1] for reference)

11. Would the customer be able to assist in testing this functionality if implemented?
Yes.

Additional Information
----------------------

The customer is able to bring up the NetBackup services manually in the rear rescue environment running the following commands. However this is not convenient as it's adding several manual steps to the disaster recovery process for first level support:

~~~
/usr/openv/netbackup/bin/vnetd -standalone
/usr/openv/netbackup/bin/bpcd -standalone
/opt/VRTSpbx/bin/pbx_exchange
~~~

[0] https://github.com/rear/rear/blob/master/usr/share/rear/rescue/NBU/default/450_prepare_netbackup.sh

[1] https://download.veritas.com/resources/content/live/OSVC/100046000/100046445/en_US/nbu_100_scl.html?__gda__=1682113924_284c2b4b6c279132d4597b7ff56be943#operating_systems-red_hat_enterprise_linux

Comment 54 errata-xmlrpc 2023-11-07 08:37:21 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-2023:6571

Comment 55 Red Hat Bugzilla 2024-03-07 04:25:43 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days