Project

General

Profile

Actions

action #153760

closed

[qe-core]Adapt svirt backend to be able to boot systems with root ssh disabled

Added by jlausuch 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
Start date:
2024-01-17
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

ALP images (following Factory approach) do not allow root ssh by default, the best practices are to use a key-pair to ssh to the system.

There is a way to enable it, which consists of installing the package openssh-server-config-rootlogin, which is simply doing echo 'PermitRootLogin yes' >> /etc/sshd/sshd_config.d/root_login_config..

Our svirt backend rely on doing a root ssh to the machine after it's booted, therefore it fails to do so.

There are several ideas to workaround this:
1) Add echo 'PermitRootLogin yes' >> /etc/sshd/sshd_config.d/root_login_config >$pty to the svirt backend commands.
2) Create a keypair for each run and inject it to the VM using svirt backend commands.
3) Create new combustion script for s390x including the command `echo 'PermitRootLogin yes' >> /etc/sshd/sshd_config.d/root_login_config

Acceptance criteria

  • ALP s390x images boot with svirt backend
Actions #1

Updated by jlausuch 3 months ago

  • Priority changed from Normal to High
Actions #2

Updated by rfan1 3 months ago

  • Subject changed from Adapt svirt backend to be able to boot systems with root ssh disabled to [qe-core]Adapt svirt backend to be able to boot systems with root ssh disabled
  • Target version set to QE-Core: Ready
Actions #3

Updated by rfan1 3 months ago

  • Status changed from Workable to In Progress
Actions #4

Updated by rfan1 3 months ago

I would like to use option 1 as it is a simple way for me :)

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

Actions #5

Updated by rfan1 3 months ago

  • Status changed from In Progress to Feedback
Actions #6

Updated by rfan1 3 months ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF