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
    • 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
    • Enhancement
    • Hide
      Enhancement: Add /etc/default/grub if missing.

      Reason: In some cases, the file /etc/default/grub can be missing. For example, in ostree systems.

      Result: When /etc/default/grub is missing, the role generates it with default parameters.
      Show
      Enhancement: Add /etc/default/grub if missing. Reason: In some cases, the file /etc/default/grub can be missing. For example, in ostree systems. Result: When /etc/default/grub is missing, the role generates it with default parameters.
    • Proposed
    • 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
            David Jez David Jez
            Lucie Varakova Lucie Varakova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: