Project

General

Profile

action #19602

[tools] New ipmi backend can not switch back to sol console from root-ssh console

Added by xlai about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2017-06-06
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

In the new ipmi backend, root-ssh console can be successfully selected. And running commands under root-ssh console works fine too. However before reboot, when switching back to sol console, it fails. Job link http://147.2.212.149/tests/26. From autoinst log, it fails in finding sol needle. However the screen does not change to sol relative window, it just stays on the root-ssh screen window, so it is not able to create the relative needle.

Code to switch to sol:
sub use_sol_serial_console() {
console('root-ssh')->disable;
select_console('sol'); //fails here
set_var('SERIALDEV', '');
bmwqemu::save_vars();
resetup_console;
}

Also I have a question, when using root-ssh console, the key board interaction is via ssh pipe, the serial console is from the simulated fifo device. When switching back to sol console, the key board interaction should be re-established via ipmi, and serial console should also via ipmiconsole, right?

History

#1 Updated by coolo about 5 years ago

  • Assignee changed from coolo to xlai

'sol' has no screen - it's just serial. So it should not assert_screen. There is a whitelist in console_selected - but you better use await_console => 0 in select_console

#2 Updated by xlai about 5 years ago

coolo, If sol has no screen, does this mean that after switching to sol(OR WHEN THE SYSTEM IS DURING REBOOT), there is no way to execute commands via type_string, or get screenshot to know where it is and control the process? Then how to control the behavior after typing reboot?

#3 Updated by okurz about 5 years ago

  • Subject changed from [tools] New ipmi backend can not switch back to sol console from root-ssh console. to [tools] New ipmi backend can not switch back to sol console from root-ssh console
  • Category set to Bugs in existing tests

#4 Updated by xlai about 5 years ago

  • Category deleted (Bugs in existing tests)

When leave root-ssh console, we should switch to sut console which relies on ipmi.

#5 Updated by xlai about 5 years ago

  • Status changed from New to Resolved

#6 Updated by okurz about 5 years ago

  • Category set to Bugs in existing tests

Also available in: Atom PDF