action #49703

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

Added by JRivrain about 1 year ago. Updated 16 days ago.

Status:ResolvedStart date:02/04/2019
Priority:NormalDue date:21/04/2020
Assignee:JRivrain% Done:

50%

Category:Spike/ResearchEstimated time:8.00 hours
Target version:-
Difficulty:
Duration: 276

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.


Subtasks

action #49889: [functional][epic][y] Switch between installation/install...In Progressriafarov

action #50111: [functional][y] Switch between installation/install shell...ResolvedJERiveraMoya

action #58505: [functional][y] Make console switching working for hyper-...New


Related issues

Related to openQA Tests - action #45020: [functional][y] tests should detect that the wrong deskto... Resolved 12/12/2018 26/03/2019
Related to openQA Tests - action #49622: [functional][y] Verify the wrong desktop will show up Feedback 12/12/2018 07/04/2020

History

#1 Updated by JRivrain about 1 year ago

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

#2 Updated by JRivrain about 1 year ago

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

#3 Updated by JRivrain about 1 year ago

Precision:

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

#4 Updated by JERiveraMoya about 1 year 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

#5 Updated by SLindoMansilla about 1 year 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.

#6 Updated by JRivrain about 1 year ago

  • Assignee set to JRivrain

#7 Updated by JRivrain about 1 year 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

#8 Updated by JRivrain about 1 year 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.

#9 Updated by JRivrain about 1 year 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.

#10 Updated by riafarov about 1 year ago

  • Status changed from In Progress to Workable

#11 Updated by riafarov about 1 year ago

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

#12 Updated by JRivrain about 1 year ago

  • Status changed from Workable to Feedback

#13 Updated by JRivrain about 1 year ago

  • Status changed from Feedback to Resolved

#14 Updated by riafarov 12 months ago

  • Due date set to 07/05/2019

due to changes in a related task

#15 Updated by riafarov 11 months ago

  • Assignee set to JRivrain

Also available in: Atom PDF