Bug 2115958

Summary: rsync OUTPUT_URL not respected when BACKUP=RSYNC
Product: Red Hat Enterprise Linux 9 Reporter: Pavel Cahyna <pcahyna>
Component: rearAssignee: Pavel Cahyna <pcahyna>
Status: CLOSED ERRATA QA Contact: David Jež <djez>
Severity: unspecified Docs Contact: Šárka Jana <sjanderk>
Priority: unspecified    
Version: 9.0CC: pcahyna, sjanderk
Target Milestone: rcKeywords: Triaged
Target Release: 9.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rear-2.6-13.el9 Doc Type: Bug Fix
Doc Text:
.ReaR with the PXE output method no longer fails to store the output files in the rsync `OUTPUT_URL` location Previously, the handling of the `OUTPUT_URL` variable with the `OUTPUT=PXE` and `BACKUP=RSYNC` options was removed. As a consequence, when using an rsync location for `OUTPUT_URL`, ReaR failed to copy the `initrd` and kernel files to this location, although it uploaded them to the location specified by `BACKUP_URL`. With this update, the behavior from RHEL 8.4 and earlier releases is restored. ReaR creates the required files at the designated `OUTPUT_URL` destination using rsync.
Story Points: ---
Clone Of: 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:

Description Pavel Cahyna 2022-08-05 19:56:47 UTC
Description of problem:

If BACKUP=RSYNC, the output files are copied by the backup-specific code to BACKUP_URL in addition to OUTPUT_URL, and if OUTPUT_URL is a rsync URL, it is effectively ignored (only BACKUP_URL is used).

Version-Release number of selected component (if applicable):

2.6

How reproducible:

mkrescue with appropriate settings

Steps to Reproduce:
1. set BACKUP=RSYNC OUTPUT_URL=user@host:/path/rsync/output OUTPUT_URL=user@host:/path/rsync/backup
2. run rear mkrescue

Actual results:

The output file rear-$(hostname -s).iso is not found under /path/rsync/output on host, it is under /path/rsync/backup

Expected results:

The output file rear-$(hostname -s).iso is found under /path/rsync/output on host and not /path/rsync/backup

Additional info:

This is a more comprehensive change than bz2115918 since it does not concern just OUTPUT=PXE. The use of rsync OUTPUT_URL for OUTPUT=PXE reported in bz2115918 was a special case and incompatible with other uses of rsync URLs (it was the old-style rsync URL).

Comment 10 errata-xmlrpc 2022-11-15 10:42:27 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