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

bootloader role tests do not work on ostree

    • rhel-system-roles-1.78.1-0.1.el9
    • 4
    • rhel-sst-system-roles
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • System Roles Sprint 1, System Roles Sprint 2, System Roles Sprint 3, System Roles Sprint 4
    • Bug Fix
    • Hide
      .The `bootloader` RHEL system role generates the missing `/etc/default/grub` configuration file if necessary

      Previously, the `bootloader` RHEL system role expected the `/etc/default/grub` configuration file to be present. In some cases, for example on OSTtree systems, `/etc/default/grub` can be missing. As a consequence, the role failed unexpectedly. With this update, the role generates the missing file with default parameters if necessary.
      Show
      .The `bootloader` RHEL system role generates the missing `/etc/default/grub` configuration file if necessary Previously, the `bootloader` RHEL system role expected the `/etc/default/grub` configuration file to be present. In some cases, for example on OSTtree systems, `/etc/default/grub` can be missing. As a consequence, the role failed unexpectedly. With this update, the role generates the missing file with default parameters if necessary.
    • Done
    • None

      bootloader role tests do not work on ostree systems:

      TASK [linux-system-roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] ***
      task path: /home/rmeggins/linux-system-roles/bootloader/tests/roles/linux-system-roles.bootloader/tasks/main.yml:46
      Monday 26 February 2024  14:25:26 -0700 (0:00:00.018)       0:00:02.610 *******
      fatal: [/home/rmeggins/.cache/linux-system-roles/centos-9-ostree.qcow2]: FAILED! => {
          "changed": false,
          "rc": 257
      }
      
      MSG:
      
      Path /etc/default/grub does not exist !
      

      I'm not sure if this is due to the way our testing builds ostree machines, or if there is some issue in the role.

      spetros@redhat.com djez@redhat.com rhn-support-jharuda

              spetros@redhat.com Sergei Petrosian
              spetros@redhat.com Sergei Petrosian
              Sergei Petrosian
              Sergei Petrosian Sergei Petrosian
              David Jez David Jez
              Jaroslav Klech Jaroslav Klech
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: