Project

General

Profile

Actions

action #49703

closed

[functional][y][timebox:8h] Evaluate how to switch between TTYs in specific scenarios (hyperv, ssh,vnc)

Added by JRivrain about 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Spike/Research
Target version:
-
Start date:
2019-04-02
Due date:
2020-06-02
% Done:

50%

Estimated time:
Difficulty:

Description

Motivation

Currently There are several cases where we cannot switch to a root console when we are in an installation, however being able to switch to a console can be very useful.
This is a follow-up of poo#45020 as we had to exclude some remote installations for that reason.

Acceptance criteria

  • AC1: Cases where a switch to console is not possible at all are identified. At the moment that we know about, vnc, ssh.
  • AC2: Adapt the current select_console mechanism to those particular cases.

Further details

It seems so far that the only cases where we cannot switch to root are on hyperv, and for remote installations (remote_ssh_controller and remote_vnc_controller). But more verification would be wise.


Related issues 2 (0 open2 closed)

Related to openQA Tests - action #45020: [functional][y] tests should detect that the wrong desktop will show upResolvedJRivrain2018-12-122019-03-26

Actions
Related to openQA Tests - action #49622: [functional][y] Verify the wrong desktop will show upResolvedJERiveraMoya2018-12-122020-04-21

Actions
Actions #1

Updated by JRivrain about 5 years ago

  • Related to action #45020: [functional][y] tests should detect that the wrong desktop will show up added
Actions #2

Updated by JRivrain about 5 years ago

  • Related to action #49622: [functional][y] Verify the wrong desktop will show up added
Actions #3

Updated by JRivrain about 5 years ago

Precision:

The way to switch between ttys is:
select_console 'install-shell';
select_console 'installation';

Actions #4

Updated by JERiveraMoya about 5 years ago

  • Subject changed from [functional][y] Evaluate how to switch between TTYs in more, or all cases. to [functional][y][timebox:8h] Evaluate how to switch between TTYs in specific scenarios (hyperv, ssh,vnc)
  • Description updated (diff)
  • Status changed from New to Workable
Actions #5

Updated by SLindoMansilla about 5 years ago

  • Category set to Spike/Research

As a result of backlog triaging (see https://progress.opensuse.org/projects/openqatests/wiki#ticket-backlog-triaging for more information).

Please, feel free to adjust the category or the "[label]" if you think different.

Actions #6

Updated by JRivrain about 5 years ago

  • Assignee set to JRivrain
Actions #7

Updated by JRivrain about 5 years ago

  • Status changed from Workable to In Progress

Extract of lib/susedistribution.pm:

=head2 hyperv_console_switch

hyperv_console_switch($console, $nr)

On Hyper-V console switch from one console to another is not possible with the general
'Ctrl-Alt-Fx' binding as the combination is lost somewhere in VNC-to-RDP translation.
For VT-to-VT switch we use 'Alt-Fx' binding, however this is not enough for X11-to-VT
switch, which requires the missing 'Ctrl'. However, in X11 we can use chvt command
to do the switch for us.

This is expected to be executed either from activate_console(), or from console_selected(),
test variable C works as a mutually exclusive lock.

Requires C name, an actual VT number C is optional.
=cut

Actions #8

Updated by JRivrain about 5 years ago

There seem to be no way to switch between ttys with shortkeys for hyperv and ssh installs, not sure yet about vnc. But one way to open a console that should work in all cases is to open a new ssh session.

Actions #9

Updated by JRivrain about 5 years ago

  • Assignee deleted (JRivrain)

I bravely un-assign myself from this ticket to let someone more experienced with perl and openqa to take over, I am not yet confident enough to touch this.
Examples of particular cases: ssh, vnc, hyperv

My conclusion so far when we have to switch to install_shell:

  • make sure to enable ssh in bootloader on the guest
  • open another TTY on the remote controller, from which we open a new ssh session to the guest. This should work in all particular cases.
Actions #10

Updated by riafarov about 5 years ago

  • Status changed from In Progress to Workable
Actions #11

Updated by riafarov about 5 years ago

I will take a look here and create task for AC2, in 8h it's definitely not possible to do.

Actions #12

Updated by JRivrain about 5 years ago

  • Status changed from Workable to Feedback
Actions #13

Updated by JRivrain about 5 years ago

  • Status changed from Feedback to Resolved
Actions #14

Updated by riafarov about 5 years ago

  • Due date set to 2019-05-07

due to changes in a related task

Actions #15

Updated by riafarov about 5 years ago

  • Assignee set to JRivrain
Actions

Also available in: Atom PDF