Bug 2185934

Summary: NFS repository messages less useful and in a less natural place than before
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 39CC: anaconda-maint-list, vponcova, vslavik, w
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: openqa
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Adam Williamson 2023-04-11 16:28:36 UTC
Since recent Rawhide changes - probably 31cd5e7eab51ae05ec1b58f120f90e034eff679c - the log messages relating to NFS repositories are less useful and in a less useful place than before.

Previously, the messages appeared in packaging.log (where you'd expect to find them), and one of them looked like this:

10:38:37,252 DBG packaging: Add the 'addrepo' repository (RepoConfigurationData(cost=1000, enabled=True, excluded_packages=[], included_packages=[], installation_enabled=False, name='addrepo', origin='USER', proxy='', ssl_configuration=SSLConfigurationData(), ssl_verification_enabled=True, type='BASEURL', url='nfs://172.16.2.110:/mnt/update_repo')).

note the 'url' given is the actual url of the repository.

Now, the messages appear in syslog (probably not where you'd expect to find them), and that same message looks like this:

14:34:24,666 WARNING org.fedoraproject.Anaconda.Modules.Payloads:DEBUG:anaconda.modules.payloads.payload.dnf.repositories:Add the 'addrepo' repository (RepoConfigurationData(cost=1000, enabled=True, excluded_packages=[], included_packages=[], installation_enabled=False, name='addrepo', origin='USER', proxy='', ssl_configuration=SSLConfigurationData(), ssl_verification_enabled=True, type='BASEURL', url='file:///run/install/sources/mount-0000-nfs-device')).

it's got a useless prefix on it which is annoying, but more importantly the url is now not the actual url of the NFS repo at all, but some kind of internal anaconda redirection file URL, which is of no use to the user.

Comment 1 Adam Williamson 2023-04-11 16:29:29 UTC
I noticed this because it messes up openQA's checks for verifying that the repo we attempted to add actually got added, but even if I hack up that check to keep working, this is clearly a less useful log message than before.

Comment 2 Fedora Release Engineering 2023-08-16 08:15:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.