Project

General

Profile

Actions

action #158976

closed

Update Ubuntu Host to 24.04

Added by ph03nix 8 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2024-04-25
Due date:
% Done:

0%

Estimated time:

Description

Update the Ubuntu host from 22.04 to 24.04 after the release of 24.04.

We use a pre-build ubuntu image on OSD as starting point for https://openqa.suse.de/group_overview/377 to create an updated HDD image. So, we need to manually build the 24.04 host image and push it to OSD.

JOSE: I created this page some time ago about how to create the initial HDD https://confluence.suse.com/display/qasle/Ubuntu+host+configuration

Acceptance criteria

Actions #1

Updated by ph03nix 8 months ago

Ticket is blocked until the release of 24.04 (expected 25.04.2024).

Actions #2

Updated by jlausuch 8 months ago

  • Description updated (diff)
Actions #3

Updated by ph03nix 8 months ago

  • Status changed from Blocked to Workable
Actions #4

Updated by ph03nix 8 months ago

  • Priority changed from Normal to High
Actions #5

Updated by clanig 7 months ago

  • Assignee set to clanig
Actions #6

Updated by clanig 7 months ago

  • Status changed from Workable to In Progress
Actions #7

Updated by osukup 7 months ago

depends also on devel:kubic:libcontainers:stable repo, still without 24.04 target

Actions #8

Updated by clanig 7 months ago

It shouldn't depend on this.
https://kubic.opensuse.org/blog/2022-06-10-kubic-retired/

It appears that podman came from there. I will check this and, in case of dependencies, try to decouple from them.

Actions #9

Updated by ph03nix 7 months ago

clanig wrote in #note-8:

It shouldn't depend on this.
https://kubic.opensuse.org/blog/2022-06-10-kubic-retired/

It appears that podman came from there. I will check this and, in case of dependencies, try to decouple from them.

Indeed, I also think this repository shouldn't be there. At least I don't remember that is was necessary.

Actions #10

Updated by clanig 7 months ago

I have created an image and updated multiple parts of the documentation.

I am verifying it is correctly setup.

Actions #11

Updated by clanig 7 months ago · Edited

The image for 24.04 appears not to reboot after command reboot was sent during the test.
I am investigating this.

It just took really long to proceed and did not show a changed image.

Actions #12

Updated by ph03nix 7 months ago

Hey @clanig, what is the status of this ticket? This was supposed to be a rather simple task, are you blocked somehow?

Actions #13

Updated by ph03nix 7 months ago

  • Priority changed from High to Normal
Actions #14

Updated by clanig 7 months ago · Edited

After a reboot, the serial console is not reconnected on the new image.
It only reconnects if service serial-getty@hvc0.service is started by manual interaction.
Delaying the service start had no effect apparently.
C.f. https://stratoscamper.qe.suse.de/tests/84#step/update_host/2

Edit: In addition, the original setup guide suggested to either select Docker to be installed during the system installation or later. However, at least in 24.04 selecting Docker at the system installation installs it as Snap. Installing it through the Ubuntu package management though, installs it as usual package. The confusion that came with it caused a significant additional time, because in the beginning it appeared like Snap had gotten the only way to install Docker on Ubuntu and I just noticed late that they had two ways without making this clear anyhow. (As a result, I already made changes to make it run with that new situation, which turned out to be an alternative situation.)

Actions #15

Updated by clanig 7 months ago

  • Status changed from In Progress to Workable
  • Assignee deleted (clanig)

As discussed, may somebody else take it on my vacation. I was not able to get the serial terminals running on my openQA instance.
When I had installed the Docker version from Snap, at least roughly every second attempt the machine did initialize the serial terminals on boot.
With the docker version from the Ubuntu repos though, I never got it to initialize the devices before the getty service timed out, even when I delayed the services etc.
I have to mention though, that the boot process did run horribly slow on my openQA instance.

My idea is that some Systemd service dependencies are not specified and this is usually not noticed, because outside of openQA it boots faster. I wish whoever takes this good luck.

Actions #16

Updated by ph03nix 6 months ago

  • Status changed from Workable to In Progress
  • Assignee set to ph03nix
Actions #17

Updated by ph03nix 6 months ago

Created a new VM disk image and updated https://confluence.suse.com/display/qasle/Ubuntu+host+configuration. Will now test the image.

Actions #18

Updated by ph03nix 6 months ago

New issue: https://openqa.suse.de/tests/14566150#step/bci_prepare/48

pip3 --quiet install --upgrade pip

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Actions #20

Updated by ph03nix 6 months ago

  • Status changed from In Progress to Feedback

Should be done, waiting for test runs to validate.

And then we need to enable podman as well.

Actions #21

Updated by ph03nix 6 months ago

  • Status changed from Feedback to Resolved
Actions #22

Updated by ph03nix about 2 months ago

  • Tags set to containers
Actions

Also available in: Atom PDF