Bug 1222947

Summary: [Build 80.1] openQA test fails in autofs_server, 'nfsidmap' is missing from proxy scc
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP6 Reporter: Richard Fan <richard.fan>
Component: BasesystemAssignee: Marcus Meissner <meissner>
Status: VERIFIED FIXED QA Contact:
Severity: Normal    
Priority: P2 - High CC: eugenio.paolantonio, nfbrown, rtsvetkov
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.suse.de/tests/14047837/modules/autofs_server/steps/30
Whiteboard: Neil - provide info
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

Description Richard Fan 2024-04-17 07:39:54 UTC
## Observation

openQA test in scenario sle-15-SP6-Online-x86_64-autofs-server@64bit fails in
[autofs_server](https://openqa.suse.de/tests/14047837/modules/autofs_server/steps/30)

## Test suite description
Maintainer: zluo 
MM test autofs server added for SLES 15 SP3.
Now job dependency has changed to `START_AFTER_TEST=create_hdd_textmode_autoyast`, see poo#128339



## Reproducible

Fails since (at least) Build [80.1](https://openqa.suse.de/tests/14042418)


## Expected result

Last good: [79.1](https://openqa.suse.de/tests/13958871) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=x86_64&distri=sle&flavor=Online&machine=64bit&test=autofs-server&version=15-SP6)
Comment 1 Richard Fan 2024-04-17 07:44:47 UTC
The package is not seen if register the system with proxy scc:

system from registration proxy http://all-80.1.proxy.scc.suse.de

>susetest:~ # zypper se -s nfsidmap
>Refreshing service 'Basesystem_Module_15_SP6_x86_64'.
>Refreshing service 'Python_3_Module_15_SP6_x86_64'.
>Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP6_x86_64'.
>Refreshing service 'Server_Applications_Module_15_SP6_x86_64'.
>Loading repository data...
>Reading installed packages...
>
>S  | Name           | Type    | Version         | Arch   | Repository
>---+----------------+---------+-----------------+--------+--------------------------
>i+ | libnfsidmap1   | package | 1.0-150600.26.1 | x86_64 | SLE-Module-Basesystem15-SP6-Pool
>i+ | libnfsidmap1   | package | 1.0-150600.26.1 | x86_64 | SLE-Module-Basesystem15-SP6-Updates
>   | nfsidmap-devel | package | 1.0-150600.26.1 | x86_64 | SLE-Module-Basesystem15-SP6-Pool
>   | nfsidmap-devel | package | 1.0-150600.26.1 | x86_64 | SLE-Module-Basesystem15-SP6-Updates

No such issue if register the system to scc

>susetest:~ # zypper se -s nfsidmap
>S  | Name           | Type    | Version           | Arch   | Repository
>---+----------------+---------+-------------------+--------+------------------------
>i+ | libnfsidmap1   | package | 1.0-150600.26.1   | x86_64 | (System Packages)
>   | nfsidmap       | package | 0.26-150000.3.7.1 | x86_64 | SLE-Module-Basesystem15-SP6-Pool
>   | nfsidmap-devel | package | 0.26-150000.3.7.1 | x86_64 | SLE-Module-Basesystem15-SP6-Pool
Comment 2 Eugenio Paolantonio 2024-04-17 10:10:25 UTC
Hi,

nfs-utils has been updated in 80.1. It now ships libnfsmap1 in place of nfsidmap.

I see on the spec file that it has an Obsoletes: nfsidmap but not a matching Provides:. I suppose this is by design? but can explain why trying to install the nfsidmap package would fail.

The media only ships nfsidmap-devel and libnfsidmap1:

/mounts/dist/SLP/SLE-15-SP6-Full-TEST/x86_64/DVD1/Module-Basesystem/x86_64/nfsidmap-devel-1.0-150600.26.1.x86_64.rpm
/mounts/dist/SLP/SLE-15-SP6-Full-TEST/x86_64/DVD1/Module-Basesystem/x86_64/libnfsidmap1-1.0-150600.26.1.x86_64.rpm


I think what happens when you're registering in SCC is that the old repos from the past snapshot gets installed so that might explain why it works there.


@Neil, is adding a Provides: nfsidmap to libnfsidmap1 a bad idea?


Thanks.
Comment 3 Richard Fan 2024-04-22 02:32:57 UTC
Thanks for your quick update!

The test is passed after I revised my test code:

> (is_opensuse || is_sle('>=15-SP6')) ? zypper_call('in libnfsidmap1') : zypper_call('in nfsidmap');

> https://openqa.suse.de/tests/14112155#dependencies

Please go ahead to close this bug then I can mark it as verified.
Comment 4 Neil Brown 2024-04-22 03:02:25 UTC
> @Neil, is adding a Provides: nfsidmap to libnfsidmap1 a bad idea?

Maybe not.  libnfsidmap1 already Obsoletes nfsidmap

I've submitted an update for Tumbleweed to add the Provides.
But as Richard has found an alternate solution I don't think we need to push to SLE15-SP6.
So I'll close as suggested.
Comment 5 OBSbugzilla Bot 2024-04-22 03:35:04 UTC
This is an autogenerated message for OBS integration:
This bug (1222947) was mentioned in
https://build.opensuse.org/request/show/1169581 Factory / nfs-utils
Comment 6 Richard Fan 2024-04-22 03:53:32 UTC
Thanks much Neil! code changes done:
>https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19150
Comment 7 OBSbugzilla Bot 2024-04-22 23:55:05 UTC
This is an autogenerated message for OBS integration:
This bug (1222947) was mentioned in
https://build.opensuse.org/request/show/1169773 Factory / nfs-utils