Project

General

Profile

Actions

action #34897

closed

[sle][functional][y][hard] smt test fails due to command 'smt-sync' times out

Added by mloviska about 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 17
Start date:
2018-04-13
Due date:
2018-06-19
% Done:

0%

Estimated time:
Difficulty:

Description

smt-sync hangs on "Downloading Subscription information". Downloading Product & Repo information seems to pass without any visible problem.
Similar issue happened several months ago https://openqa.suse.de/tests/1394785#step/smt/21.

Observation

openQA test in scenario sle-12-SP4-Server-DVD-x86_64-smt@64bit fails in
smt

Reproducible

Fails since (at least) Build 0236 (current job)

Expected result

Last good: 0235 (or more recent)

Further details

Always latest result in this scenario: latest


Files

smt-sync.png (190 KB) smt-sync.png zluo, 2018-05-28 08:02
shell-init.png (160 KB) shell-init.png zluo, 2018-05-29 06:58
Actions #1

Updated by okurz almost 6 years ago

  • Subject changed from [sle][functional] smt test fails due to command 'smt-sync' times out to [sle][functional][y] smt test fails due to command 'smt-sync' times out
  • Due date set to 2018-06-05
  • Target version set to Milestone 16
Actions #2

Updated by okurz almost 6 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: smt
https://openqa.suse.de/tests/1683200

Actions #3

Updated by riafarov almost 6 years ago

  • Subject changed from [sle][functional][y] smt test fails due to command 'smt-sync' times out to [sle][functional][y][sporadic] smt test fails due to command 'smt-sync' times out
  • Status changed from New to Workable
Actions #4

Updated by zluo almost 6 years ago

  • Status changed from Workable to In Progress
  • Assignee set to zluo

take over

Actions #5

Updated by zluo almost 6 years ago

found:
# Test died: smt wizard failed at /var/lib/openqa/cache/e13.suse.de/tests/sle/lib/repo_tools.pm line 62.

wait_serial("yast2-smt-wizard-0", 400) || die 'smt wizard failed';
Actions #6

Updated by zluo almost 6 years ago

found:
# Test died: smt wizard failed at /var/lib/openqa/cache/e13.suse.de/tests/sle/lib/repo_tools.pm line 62.

wait_serial("yast2-smt-wizard-0", 400) || die 'smt wizard failed';

http://e13.suse.de/tests/2528#step/smt/19

Actions #7

Updated by zluo almost 6 years ago

http://e13.suse.de/tests/2530#step/smt/23

shows problem with fetching subscription data.
compared with successful test run, it doesn't effect further progress:
http://e13.suse.de/tests/2529#step/smt/21

--
http://e13.suse.de/tests/2530#step/smt/23

I see 'pos' command on screen which reflects a problem for typing smt-repos ?

Actions #8

Updated by zluo almost 6 years ago

the problem is Running synchronization check. It just stucks.

Actions #9

Updated by zluo almost 6 years ago

repo_tools.pm

wait_serial("yast2-smt-wizard-0", 400) || die 'smt wizard failed';

doesn't work in this case.

Actions #10

Updated by zluo almost 6 years ago

in addition timeout issue because bad network connection, for this I increase timout to 800 or 900 for try.

Actions #11

Updated by zluo almost 6 years ago

I found that a pop up shows up if smt-sync script failed, that might explain why test died. Need here workaround, the problem that we don't have a chance to see this pop up after test run....

enable screenshot here at first.

Actions #12

Updated by zluo almost 6 years ago

disable systemd timers, check type_string "yast2 smt-wizard;echo yast2-smt-wizard-\$? > /dev/$serialdev\n" is correctly executed. But I found shell-init issue. see screenshot for this.

Actions #13

Updated by zluo almost 6 years ago

http://e13.suse.de/tests/2590#step/smt/24

just for record, wait_serial successful... but later failed for smt-sync...

Actions #14

Updated by zluo almost 6 years ago

The problems are not sporadic. we have different issues with smt-wizard (wait_serial), smt-sync (failure: performance, systemd timers screensaver etc), smt-repos (failure or timeout).

Actions #15

Updated by zluo almost 6 years ago

Actions #16

Updated by zluo almost 6 years ago

after long time investigation, we found that this problem is related to connection to smt. subscription data cannot be fetched sometimes. So for this kind of issue I can provide softfaill atm.

Actions #17

Updated by riafarov almost 6 years ago

  • Due date changed from 2018-06-05 to 2018-06-19
Actions #18

Updated by riafarov almost 6 years ago

  • Target version changed from Milestone 16 to Milestone 17
Actions #19

Updated by zluo almost 6 years ago

  • Subject changed from [sle][functional][y][sporadic] smt test fails due to command 'smt-sync' times out to [sle][functional][y] smt test fails due to command 'smt-sync' times out

Changes:

smt.pm

assert_script_run "dbus-launch gsettings set org.gnome.desktop.session idle-delay 0"; works without errors.

repo_tools.pm

wait_serial("yast2-smt-wizard-0", 800) || record_soft_failure 'smt wizard failed because of connection issue, poo#34897';

At moment I don't see a way to fix the issue on openqa side directly. Both scripts 'smt-sync', 'smt-repos' works in general. So I cannot file a bug against them.

Actions #20

Updated by mgriessmeier almost 6 years ago

  • Subject changed from [sle][functional][y] smt test fails due to command 'smt-sync' times out to [sle][functional][y][hard] smt test fails due to command 'smt-sync' times out
Actions #21

Updated by zluo almost 6 years ago

using credential for openQA solves the smt-sync timeout issue.

PR:

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/5178

Actions #22

Updated by zluo almost 6 years ago

  • Status changed from In Progress to Resolved
Actions #23

Updated by okurz almost 6 years ago

This is great news. Thank you!

Actions #24

Updated by okurz almost 6 years ago

  • Target version changed from Milestone 17 to Milestone 17
Actions

Also available in: Atom PDF