Bug 1218346

Summary: [Build 20231221] rsyncd: user config in /etc seems to be ignored
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: OtherAssignee: David Anes <david.anes>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.opensuse.org/tests/3832319/modules/rsync_client/steps/14
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

Description Dominique Leuenberger 2023-12-22 10:42:42 UTC
## Observation

The latest rsync change moved the dist config from /etc to /usr/etc (which sounds right)

The test code installs an own conf file into /etc/rsyncd.conf plus a relevant secrets file - those files are supposed to take precedence over the files in /usr/etc if existing.

Yet, the test fails to rsync from a such-configured rsync server in openQA


openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-rsync-client@64bit fails in
[rsync_client](https://openqa.opensuse.org/tests/3832319/modules/rsync_client/steps/14)

## Test suite description
Maintainer: zluo@suse.de install and test rsync client


## Reproducible

Fails since (at least) Build [20231221](https://openqa.opensuse.org/tests/3831845)


## Expected result

Last good: [20231220](https://openqa.opensuse.org/tests/3828788) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=rsync-client&version=Tumbleweed)
Comment 1 Dominique Leuenberger 2023-12-22 10:45:18 UTC
the rsync.conf installed into /etc is
https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/data/console/rsyncd.conf
Comment 2 Dominique Leuenberger 2023-12-22 10:54:21 UTC
This actually seems to be a test bug 

in the past, the package installed an /etc/rsyncd.secrets file with mode 0600; the test then adds credentials there using cat user:pass > /etc/rsyncd.secrets (preserving the mode of the file)

as the file now does not exist in /etc, cat creates a new file with mode 644 - which in turn is denied by rsync s default config (strict modes on)

This finding makes the bug INVALID (will file as a test issue in progress.o.o)
Comment 3 Dominique Leuenberger 2023-12-22 10:57:14 UTC
For reference: https://progress.opensuse.org/issues/152891