Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-134818

tuned-adm is unable to set a profile when building a container

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • tuned
    • None
    • None
    • None
    • rhel-net-perf
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      I set this issue as a bug, but please feel free to change it to a story as a feature request. What I am looking for is a way to set the profile on the first boot of a container. If this already exists please let me know.

      What were you trying to do that didn't work?

      Set a profile to be used when the container first boots after building. 

      What is the impact of this issue to you?

      I have to copy in a run once systemd unit and a script to set the server to realtime and reboot.

      Please provide the package NVR for which the bug is seen:

      tuned-2.26.0-1.el10_1.1.noarch

      How reproducible is this bug?:

      Reproduced every time within the container. tuned-adm has a dependency on systemd.

      Steps to reproduce

      1. Copy the containerfile and other files from this issue to build an image. Example is in this issue: https://issues.redhat.com/browse/RHEL-131317
      2. Append the end of the dnf clean all line like so 
        dnf -y clean all && tuned-adm profile realtime
      3. Build the container with podman build

      Expected results

      Container to build and set the tuned-adm profile for the first boot.

      Actual results

      Errors out because systemd is not running.

              jskarvad Jaroslav Škarvada
              jwyatt@redhat.com John Wyatt
              Jaroslav Škarvada Jaroslav Škarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: