|
Bugzilla – Full Text Bug Listing |
| Summary: | After migration HPC-15-SP5 to SLES-15-SP6: SUSEConnect error: Unable to detect base product | ||
|---|---|---|---|
| Product: | [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP6 | Reporter: | Chenzi Cao <chcao> |
| Component: | Basesystem | Assignee: | Eugenio Paolantonio <eugenio.paolantonio> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | Normal | ||
| Priority: | P1 - Urgent | CC: | eich, jeriveramoya, tschmidt |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| URL: | https://openqa.suse.de/tests/13626112/modules/system_prepare/steps/28 | ||
| Whiteboard: | |||
| Found By: | openQA | Services Priority: | |
| Business Priority: | Blocker: | Yes | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
y2log_during_upgrading
Fix |
||
|
Description
Chenzi Cao
2024-02-28 05:46:06 UTC
@Chenzi Since I don't have access to the test system, could you check what's in /etc/os-release and who's file it is (rpm -qf /etc/os-release), please? Ok, I've looked into this.
The cause is that although the package sles-release-15.6 contains the link:
/etc/products.d/baseproduct
it does not get updated:
# ls -l /etc/products.d/baseproduct
lrwxrwxrwx 1 root root 12 Jun 16 2023 /etc/products.d/baseproduct -> SLE_HPC.prod
This link is definitely owned by package sles-release-15.6:
# rpm -qf /etc/products.d/baseproduct
sles-release-15.6-150600.23.8.x86_64
The reason for this is the postinstall scriptlet:
if [ -L /etc/products.d/baseproduct ] ; then
PRODLINK=`readlink -f /etc/products.d/baseproduct`
PRODLINK=`basename $PRODLINK`
# bsc#1091952
if [ $PRODLINK == "SUSE_SLES.prod" -o $PRODLINK == "openSUSE.prod" ]; then
ln -sf SLES.prod /etc/products.d/baseproduct
fi
# bsc#1057321
elif [ ! -e /etc/products.d/baseproduct ]; then
ln -sf SLES.prod /etc/products.d/baseproduct
fi
The test `[ $PRODLINK == "S$PRODLINK == "USE_SLES.prod" -o $PRODLINK == "openSUSE.prod" ]` needs an `-o $PRODLINK == SLE_HPC.prod` added.
After fixing the link manually, `SUSEConnect -l` works as expected. (In reply to Egbert Eich from comment #1) > @Chenzi > Since I don't have access to the test system, could you check what's in > /etc/os-release and who's file it is (rpm -qf /etc/os-release), please? # cat /etc/os-release NAME="SLES" VERSION="15-SP6" VERSION_ID="15.6" PRETTY_NAME="SUSE Linux Enterprise Server 15 SP6" ID="sles" ID_LIKE="suse" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:suse:sles:15:sp6" DOCUMENTATION_URL="https://documentation.suse.com/" # rpm -qf /etc/os-release sles-release-15.6-150600.24.7.x86_64 (In reply to Egbert Eich from comment #3) > After fixing the link manually, `SUSEConnect -l` works as expected. Thank you, then I reassign it to you now, and please feel free to reassign whenever necessary, thanks. Created attachment 873078 [details]
Fix
Attached patch adds the missing test for SLE_HPC.prod to the sles-release post-install scriptlet.
@Eugenio, would you merge above patch to SUSE:SLE-15-SP6:GA/000package-groups, please? I'm not going to submit as there is still SR#320609 pending. Thank you very much Egbert, will apply on my local branch. Apologies for missing SR#320609... I did the change by myself but sorted apptainer-sle15_6 rather than apptainer-sle15. Will amend that as well. apptainer-sle15_6 is actually correct. Did I have this wrong in SR#320609? I cannot check any more ... @Chenzi - FYI: 1. Online migration (from SLE HPC 15 SP5) using `zypper migration` suffers from the same problem with the same root cause and fix. Any ticket regarding this would be a duplicate of this one. 2. Online migration (from SLE HPC 15 SP5) using `yast migration` suffers from a more fundamental problem (bsc#1220567). This likely requires fixes to yast components in 15SP5 and earlier. Fix has been integrated. The issue is still reproducible on build59.2 result: https://openqa.suse.de/tests/13644282#step/system_prepare/25 I'll keep eyes on the testing and will verify the bug report when the case pass, thank you! @Egbert, This is the latest test result, there's no errors now.
Just a minor question that is it design that keep the original product name after name here? Please see the output of SUSEConnect --status-text after migration:
Installed Products:
------------------------------------------
SUSE Linux Enterprise Server 15 SP6
(SLES/15.6/x86_64)
Registered
Subscription:
Name: SUSE High Performance Computing (x86-64) test subscription
Regcode: XXXXXXXXXXXXXXXX
Starts at: 2018-04-05 09:58:16 UTC
Expires at: 2100-01-01 00:00:00 UTC
Status: ACTIVE
Type: test
------------------------------------------
Openqa job:
https://openqa.suse.de/tests/13715255#step/system_prepare/19
Same with SUSEConnect -s:
https://openqa.suse.de/tests/13715255#step/system_prepare/20
The name is still HPC, but no problem with detect base product now.
(In reply to Chenzi Cao from comment #14) > @Egbert, This is the latest test result, there's no errors now. > > Just a minor question that is it design that keep the original product name > after name here? Please see the output of SUSEConnect --status-text after > migration: That's the subscription, not the product name. I have no idea where this comes from - @Tom? It's the name of the used subscription, this comes from SCC. That's fine, I don't think we are going to rename existing subscriptions. Thanks Tom! NOTE: There is still a subscription for the HPC SKU - which is sold with different T&Cs and prices compared to SLES. Thanks, then I verify here. https://openqa.suse.de/tests/13715255#step/system_prepare/22 |