Project

General

Profile

Actions

action #174457

closed

coordination #169654: [epic] Create test scenarios for Agama

Use a post script to connect to the installed system with Agama for unattended installation with remote workers

Added by JERiveraMoya about 1 month ago. Updated 26 days ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2024-12-16
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Use a post script to connect to the installed system with Agama for unattended installation with remote workers:

scripts: {
  post: [
    {
      name: 'enable-ssh,
      body: |||
        #!/usr/bin/bash
        systemctl enable sshd
      |||,
      chroot: true
    }
  ]
}

https://suse.slack.com/archives/C02TLF25571/p1734350233342459?thread_ts=1733750078.761059&cid=C02TLF25571

Acceptance criteria

  • AC1: Agama can boot using powerVM in OSD and is reflected in job group.
  • AC2: Be in sync with YaST developers in case will create tooling for this before we implement this workaround.
  • AC3: Focus on s390x, but if powervm is enabled and it is possible to check we could evaluate.
  • AC4: (Nice to have) Additionally we could fix that we don't get logs by handling errors when the screen is not visible.

Additional information

Besides to have ssh open in the installed system, for security sle 16 comes without root access allowed,
one way to hack this is doing: echo 'PermitRootLogin yes' > /mnt/etc/ssh/sshd_config.d/root.conf
but probably is much more clean will be to uninstall openssh-server-config-rootlogin (but need to be tested)
When the screen is not visible in order to capture errors and finish the node process properly (meaning we will get logs properly)
we can use the approach we used in puppeteer: https://github.com/jknphy/e2e-agama-playwright/blob/main/pages/installation-finished-page.ts#L12-L22

Actions

Also available in: Atom PDF