Project

General

Profile

Actions

action #32458

closed

[functional][hyperv][hard][u] test fails in consoletest_setup - switch from X11 to VT is not supported

Added by zluo about 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
michalnowak
Category:
New test
Target version:
SUSE QA - Milestone 19
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
hard

Description

Observation

openQA test in scenario sle-15-Installer-DVD-x86_64-gnome@svirt-hyperv fails in
consoletest_setup

Reproducible

Fails since (at least) Build 288.8

Expected result

Last good: (unknown) (or more recent)

Further details

Always latest result in this scenario: latest


Related issues 1 (0 open1 closed)

Blocked by openQA Tests - action #37907: [sle][functional][hyperv][u] Various test failures on hyperv - stabilizeResolvedmichalnowak2018-06-27

Actions
Actions #1

Updated by zluo about 6 years ago

  • Subject changed from test fails in consoletest_setup - "text log in root" seems to be not working to test fails in consoletest_setup - "text logged in root" seems to be not working
Actions #2

Updated by zluo about 6 years ago

we have this issue already for quite long time. Need to investigate why this is not working.

Actions #3

Updated by zluo about 6 years ago

  • Subject changed from test fails in consoletest_setup - "text logged in root" seems to be not working to [sles 15][functional] test fails in consoletest_setup - "text logged in root" seems to be not working
Actions #4

Updated by okurz about 6 years ago

  • Subject changed from [sles 15][functional] test fails in consoletest_setup - "text logged in root" seems to be not working to [sles 15][functional][fast] test fails in consoletest_setup - "text logged in root" seems to be not working
  • Due date set to 2018-03-13
  • Priority changed from Normal to High
  • Target version set to Milestone 14
Actions #5

Updated by zluo about 6 years ago

  • Assignee set to zluo

take over

Actions #6

Updated by michalnowak about 6 years ago

The problem is that switch from X11 to virtual console is not supported on Hyper-V because ctrl from ctrl-alt-fX is not being sent thru xfreerdp. We could change to virtual console via chvt command (I tried that) but it's a bit complicated.

Actions #7

Updated by zluo about 6 years ago

  • Status changed from New to Blocked

set is as blocked for now.

Actions #8

Updated by okurz about 6 years ago

blocked by what?

Actions #9

Updated by okurz about 6 years ago

  • Due date changed from 2018-03-13 to 2018-03-27
  • Target version changed from Milestone 14 to Milestone 15
Actions #10

Updated by okurz about 6 years ago

  • Status changed from Blocked to Workable

We should use Blocked only with an external reference.

Actions #11

Updated by mgriessmeier about 6 years ago

  • Subject changed from [sles 15][functional][fast] test fails in consoletest_setup - "text logged in root" seems to be not working to [sles 15][functional] test fails in consoletest_setup - "text logged in root" seems to be not working
Actions #12

Updated by zluo about 6 years ago

  • Assignee changed from zluo to michalnowak

Michal, are you still work on this as you mentioned in #6?

I still see same problem at:
http://e13.suse.de/tests/637#step/consoletest_setup/5

Thanks!

Actions #13

Updated by zluo about 6 years ago

@michalnowak if you have a ticket for this related issue, please let me know. Thanks!

Actions #14

Updated by nicksinger about 6 years ago

  • Subject changed from [sles 15][functional] test fails in consoletest_setup - "text logged in root" seems to be not working to [functional][hyperv][hard] test fails in consoletest_setup - "text logged in root" seems to be not working
Actions #15

Updated by nicksinger about 6 years ago

  • Due date changed from 2018-03-27 to 2018-04-10
  • Category changed from Bugs in existing tests to New test
  • Start date deleted (2018-02-28)
Actions #16

Updated by michalnowak about 6 years ago

  • Category changed from New test to Enhancement to existing tests

I do not work on it atm. WIP code is here: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4613. Not sure of a more suitable ticket.

Actions #17

Updated by okurz about 6 years ago

  • Subject changed from [functional][hyperv][hard] test fails in consoletest_setup - "text logged in root" seems to be not working to [functional][hyperv][hard][u] test fails in consoletest_setup - "text logged in root" seems to be not working
Actions #18

Updated by cwh about 6 years ago

  • Difficulty set to hard
Actions #19

Updated by mgriessmeier about 6 years ago

  • Due date changed from 2018-04-10 to 2018-04-24
Actions #20

Updated by mgriessmeier about 6 years ago

  • Due date changed from 2018-04-24 to 2018-05-08
  • Target version changed from Milestone 15 to Milestone 16
Actions #21

Updated by mgriessmeier almost 6 years ago

  • Due date changed from 2018-05-08 to 2018-05-22
Actions #22

Updated by mgriessmeier almost 6 years ago

  • Due date changed from 2018-05-22 to 2018-06-05

@michal: can you give us an update here?

Actions #23

Updated by michalnowak almost 6 years ago

No change.

Actions #24

Updated by michalnowak almost 6 years ago

  • Subject changed from [functional][hyperv][hard][u] test fails in consoletest_setup - "text logged in root" seems to be not working to [functional][hyperv][hard][u] test fails in consoletest_setup - switch from X11 to VT is not supported
Actions #25

Updated by mgriessmeier almost 6 years ago

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

Updated by okurz almost 6 years ago

  • Target version changed from Milestone 16 to Milestone 17

we are in M17 by now

Actions #27

Updated by okurz almost 6 years ago

  • Target version changed from Milestone 17 to Milestone 17
Actions #28

Updated by mgriessmeier almost 6 years ago

hey michal - any update on the status here?

Actions #29

Updated by mgriessmeier almost 6 years ago

  • Due date changed from 2018-06-19 to 2018-07-03
Actions #30

Updated by michalnowak almost 6 years ago

  • Assignee deleted (michalnowak)

I replaced 'default' with another test suite in Virtualization-Milestone group so it should not offend in SLE group anywhere anymore, however a proper fix, as https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4613 shows, brings a lot of mess with it.

I am happy for anyone to take this, but for me low prio wrt other virt stuff.

Actions #31

Updated by zluo almost 6 years ago

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

take over and try to verify this issue at first...

Actions #32

Updated by zluo almost 6 years ago

run test by using latest iso image (GMC2): http://e13.suse.de/tests/5480

Actions #33

Updated by zluo almost 6 years ago

the problem atm seems to be at welcome page which it takes very long time. after inst_welcome needle it should go further with send_key for "Next" which is properly not working.

Actions #34

Updated by michalnowak almost 6 years ago

The job is run with BETA=1 for a GMC2 ISO.

Actions #35

Updated by zluo almost 6 years ago

@michal thanks!

I corrected this in setting and re-triggered it, but the test got cancelled. I found in log:

DIE Error connecting to host <openqaw5-xen-1.qa.suse.de>: IO::Socket::INET: connect: Connection timed out
at /usr/lib/os-autoinst/backend/baseclass.pm line 80.
backend::baseclass::die_handler('OpenQA::Exception::VNCSetupError=HASH(0x6229ca0)') called at /usr/lib/perl5/vendor_perl/5.18.2/Exception/Class/Base.pm line 88
Exception::Class::Base::throw('OpenQA::Exception::VNCSetupError', 'error', 'Error connecting to host <openqaw5-xen-1.qa.suse.de>: IO::Soc...') called at /usr/lib/os-autoinst/consoles/VNC.pm line 151
consoles::VNC::login('consoles::VNC=HASH(0x65282a0)') called at /usr/lib/os-autoinst/consoles/VNC.pm line 842
consoles::VNC::send_update_request('consoles::VNC=HASH(0x65282a0)') called at /usr/lib/os-autoinst/consoles/vnc_base.pm line 82
consoles::vnc_base::request_screen_update('consoles::vnc_base=HASH(0x4322fc0)', undef) called at /usr/lib/os-autoinst/backend/baseclass.pm line 587
backend::baseclass::bouncer('backend::svirt=HASH(0x6ebcc78)', 'request_screen_update', undef) called at /usr/lib/os-autoinst/backend/baseclass.pm line 570
backend::baseclass::request_screen_update('backend::svirt=HASH(0x6ebcc78)') called at /usr/lib/os-autoinst/backend/baseclass.pm line 177
eval {...} called at /usr/lib/os-autoinst/backend/baseclass.pm line 156
backend::baseclass::run_capture_loop('backend::svirt=HASH(0x6ebcc78)') called at /usr/lib/os-autoinst/backend/baseclass.pm line 129
backend::baseclass::run('backend::svirt=HASH(0x6ebcc78)', 5, 8) called at /usr/lib/os-autoinst/backend/driver.pm line 85
backend::driver::start('backend::driver=HASH(0x5ed7ff8)') called at /usr/lib/os-autoinst/backend/driver.pm line 48
backend::driver::new('backend::driver', 'svirt') called at /usr/bin/isotovideo line 236
main::init_backend() called at /usr/bin/isotovideo line 305

It seems the network connection is too bad ?

Actions #36

Updated by zluo almost 6 years ago

http://e13.suse.de/tests/6004

cancelled at welcome test module

Actions #37

Updated by michalnowak almost 6 years ago

I am sorry, had to restart the host recently. Please, retrigger.

Actions #38

Updated by zluo almost 6 years ago

re-triggered the test.

it fails at: http://e13.suse.de/tests/6007#step/welcome/15

[2018-06-26T12:01:46.0277 CEST] [debug] >>> testapi::_check_backend_response: match=inst-welcome,inst-welcome-confirm-self-update-server,linuxrc-dhcp-question,no-product-found-on-scc,scc-invalid-url timed out after 500
[2018-06-26T12:01:46.0373 CEST] [debug] 200 OK (1.524126s, 0.656/s)
[2018-06-26T12:01:46.0465 CEST] [debug] # Test died: no candidate needle with tag(s) 'inst-welcome-confirm-self-update-server, scc-invalid-url, inst-welcome, no-product-found-on-scc, linuxrc-dhcp-question' matched
[2018-06-26T12:01:46.0466 CEST] [debug] <<< testapi::check_screen(mustmatch=[
'yast-still-running',
'linuxrc-install-fail',
'linuxrc-repo-not-found'
], timeout=5)

Next seems to be not working...

Actions #39

Updated by michalnowak almost 6 years ago

I don't see anything Hyper-V specific there. Probably something wrong with your environment, missing variable or something... I see there remnants of build "503.1", so I wonder how you started the job.

Actions #40

Updated by zluo almost 6 years ago

I create the job by:

/usr/share/openqa/script/client --host localhost jobs post --params vars.json WORKER_CLASS=svirt-hyperv ISO=SLE-15-Installer-DVD-x86_64-Build668.1-Media1.iso

I replace the build number now but this is not related to the issue with needles match: inst-welcome,inst-welcome-confirm-self-update-server,linuxrc-dhcp-question,no-product-found-on-scc,scc-invalid-url

Actions #41

Updated by zluo almost 6 years ago

I removed welcome needles by mistake :(

@michal: I use your PR to test this right now:

https://github.com/Zaoliang/os-autoinst-distri-opensuse/tree/chvt_on_hyperv

test is running: http://e13.suse.de/tests/6009

Actions #42

Updated by zluo almost 6 years ago

await_install: it was too slow and it stops at at end: remain: 00:05, 0 packages - 90%

Trying with TIMEOUT_SCALE=3 for another test run:

http://e13.suse.de/tests/6010

Actions #43

Updated by zluo almost 6 years ago

http://e13.suse.de/tests/6011#step/reboot_after_installation/8 shows that system boot is not coming up. Before this I saw reboot triggered and logs_from_installation_system got skipped:

sub run {
my ($self) = @_;
return if get_var('REMOTE_CONTROLLER') || is_caasp || is_hyperv_in_gui;

@michal, any suggestion to make reboot_after_installation to get passed? I've already set TIMEOUT_SCALE=3 for the test run.
Thanks!

Actions #44

Updated by michalnowak almost 6 years ago

You are running an experimental PR which wasn't updated for three months, I am not surprised at all there are problems along the way. In this particular case the post-install countdown wasn't stopped because select_console('installation') unsuccessfully tried the hack when it should not, so the job end up in grub screen.

Actions #45

Updated by okurz almost 6 years ago

  • Blocked by action #37907: [sle][functional][hyperv][u] Various test failures on hyperv - stabilize added
Actions #46

Updated by okurz almost 6 years ago

  • Due date deleted (2018-07-03)
  • Category changed from Enhancement to existing tests to New test
  • Status changed from In Progress to Blocked
  • Assignee changed from zluo to okurz
  • Target version changed from Milestone 17 to Milestone 19

Actually I think the assessment by @nicksinger in #32458#note-15 was correct, it's the category "New Test" also according to our definition in https://progress.opensuse.org/projects/openqatests/wiki/#ticket-workflow . I think we got confused here about what is the current state, what to do and what is expected.

I strongly suggest that we update the description here regarding the expected result before we do anything more in regards of touching code. For now I see this blocked by #37907 including the setup of the new hyperv test instance.

Actions #47

Updated by okurz almost 6 years ago

  • Status changed from Blocked to Workable
  • Assignee deleted (okurz)
  • Priority changed from High to Normal

Blocker #37907 resolved, we can pick this up e.g. for SLE15SP1 again

Actions #48

Updated by okurz over 5 years ago

  • Status changed from Workable to Rejected
  • Assignee set to okurz

we don't have gnome@hyperv anymore and I consider it acceptable to not try to add it. textmode and "default" (also not gnome) should be enough of coverage.

Actions #49

Updated by michalnowak over 5 years ago

  • Status changed from Rejected to In Progress
  • Assignee changed from okurz to michalnowak
Actions #50

Updated by michalnowak over 5 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF