Project

General

Profile

Actions

action #116851

closed

test fails in check_system_info - sle-module-basesystem is not in the output of zypper lr

Added by leli over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Low
Assignee:
Target version:
Start date:
2022-09-20
Due date:
% Done:

0%

Estimated time:

Description

Observation

openQA test in scenario sle-15-SP5-Migration-from-SLE15-SPx-x86_64-online_sles15sp4_pscc_basesys-srv-live-tsm_def_full_zdup@64bit fails in
check_system_info

sle-module-basesystem is not in the output of zypper lr.

Acceptance criteria

AC1: Investigate why the sle-module-basesystem is not in the output of zypper lr.

Actions #1

Updated by tinawang123 over 1 year ago

Need add setting 'KEEP_REGISTERED=1'
As, we did de-register at patch_sle, so after patch_sle we cannot find any modules.
We need keep register then check modules.

Actions #2

Updated by tinawang123 over 1 year ago

Need check why check modules at x86_64 platform, but not check modules at ppc64le and s390x platform:
https://openqa.nue.suse.com/tests/9564837#step/check_system_info/4
https://openqa.nue.suse.com/tests/9564900#

Actions #3

Updated by leli over 1 year ago

Need check why output of 'SUSEConnect -s' is 'Not Registered', it can still check addons.

Check the expected addons before migration

 if (check_var('VERSION', get_required_var('ORIGIN_SYSTEM_VERSION')) && ($output !~ /Not Registered/)) {
Actions #4

Updated by coolgw over 1 year ago

  • Tags set to qe-yast-refinement
Actions #5

Updated by coolgw over 1 year ago

jgwang will investigate firstly try to find root cause

Actions #6

Updated by jgwang over 1 year ago

  • Assignee set to jgwang
Actions #7

Updated by JERiveraMoya over 1 year ago

  • Tags deleted (qe-yast-refinement)
  • Target version set to future
Actions #8

Updated by JERiveraMoya over 1 year ago

  • Priority changed from Normal to Low

Setting Priority: 'Low' and Target version: 'future' and removing Tag 'qe-yast-refinement' until we have more info.

Actions #9

Updated by jgwang over 1 year ago

tinawang123 wrote:

Need check why check modules at x86_64 platform, but not check modules at ppc64le and s390x platform:
https://openqa.nue.suse.com/tests/9564837#step/check_system_info/4
https://openqa.nue.suse.com/tests/9564900#

I checked the above jobs about ppc64le and s390x, the jobs didn't check basesystem module because the code of "version_switch_origin_system" changed the value(15-SP5) of "VERSION" to the value(15-SP2) of "ORIGIN_SYSTEM_VERSION", and the job for x86_64 doesn't include "version_switch_origin", so the conditions in the code "check_system_info" are not true after de-register:

     # Check the expected addons before migration
     if (check_var('VERSION', get_required_var('ORIGIN_SYSTEM_VERSION')) && ($output !~ /Not Registered/))
     ...
     # Check the expected information after migration
     if (check_var('VERSION', get_required_var('UPGRADE_TARGET_VERSION')))

that's the reason that the behavior of s390x and ppc64le is different from x86_64.

Actions #10

Updated by jgwang over 1 year ago

leli wrote:

Need check why output of 'SUSEConnect -s' is 'Not Registered', it can still check addons.

Check the expected addons before migration

 if (check_var('VERSION', get_required_var('ORIGIN_SYSTEM_VERSION')) && ($output !~ /Not Registered/)) {

this code block is not executed for https://openqa.nue.suse.com/tests/9545668/modules/check_system_info/steps/14, the condition($output !~ /Not Registered/) is not true.

Actions #11

Updated by jgwang over 1 year ago

we can add the code "version_switch_origin_system" in the beginning of the job https://openqa.nue.suse.com/tests/9681180, this solution doesn't break existing workflow in the job(actually I don't like to change variable values arbitrarily), I suggest we adopt the solution. please add your comments if you have good suggestions.

Actions #12

Updated by leli over 1 year ago

jgwang wrote:

we can add the code "version_switch_origin_system" in the beginning of the job https://openqa.nue.suse.com/tests/9681180, this solution doesn't break existing workflow in the job(actually I don't like to change variable values arbitrarily), I suggest we adopt the solution. please add your comments if you have good suggestions.

Right, the version_switch_origin_system is not loaded, you need deep investigation to find the root cause why the module hasn't been loaded.

Actions #13

Updated by jgwang over 1 year ago

leli wrote:

jgwang wrote:

we can add the code "version_switch_origin_system" in the beginning of the job https://openqa.nue.suse.com/tests/9681180, this solution doesn't break existing workflow in the job(actually I don't like to change variable values arbitrarily), I suggest we adopt the solution. please add your comments if you have good suggestions.

Right, the version_switch_origin_system is not loaded, you need deep investigation to find the root cause why the module hasn't been loaded.

I am a little confused, I think these three jobs are for online migration, but the values of ONLINE_MIGRATION are different.

Actions #14

Updated by jgwang over 1 year ago

I only set ONLINE_MIGRATION=0, and the job for x86_64 passed:

I compared online_sles15sp4_pscc_basesys-srv-live-tsm_def_full_zdup with online_sles15sp3_pscc_basesys-srv-live-tsm_def_full_zdup, no ONLINE_MIGRATION in online_sles15sp3_pscc_basesys-srv-live-tsm_def_full_zdup.

Actions #15

Updated by leli over 1 year ago

jgwang wrote:

I only set ONLINE_MIGRATION=0, and the job for x86_64 passed:

I compared online_sles15sp4_pscc_basesys-srv-live-tsm_def_full_zdup with online_sles15sp3_pscc_basesys-srv-live-tsm_def_full_zdup, no ONLINE_MIGRATION in online_sles15sp3_pscc_basesys-srv-live-tsm_def_full_zdup.

Yes, in fact for zdup cases we shouldn't set ONLINE_MIGRATION=1, please fix it by removing the setting (while don't set ONLINE_MIGRATION=0, that's not the usual using).

Actions #17

Updated by leli over 1 year ago

jgwang wrote:

I committed MR:

Merged, good job.

Actions #18

Updated by jgwang over 1 year ago

leli wrote:

jgwang wrote:

I committed MR:

Merged, good job.

Thank you @leli

Actions #19

Updated by jgwang over 1 year ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF