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

boom does not enable Red Hat optional keys by default on RHEL8

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • rhel-8.8.0, rhel-8.9.0, rhel-8.10
    • boom-boot
    • None
    • None
    • Moderate
    • rhel-sst-logical-storage
    • ssg_filesystems_storage_and_HA
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

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

      Create a boom OsProfile for RHEL8 using the --from-host option as documented in the upgrade/rollback process documented here:

      https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_storage_devices/managing-system-upgrades-with-snapshots_managing-storage-devices

      Please provide the package NVR for which bug is seen:

      boom-boot-1.3-2.el8.noarch

      How reproducible:

      100%

      Steps to reproduce

      [root@localhost ~]# boom profile create --from-host
      

      Expected results

      [root@localhost ~]# boom profile create --from-host
      Created profile with os_id 43747d3:
        OS ID: "43747d3888b663d2bc88efd35d0813159a84d291",
        Name: "Red Hat Enterprise Linux", Short name: "rhel",
        Version: "8.9 (Ootpa)", Version ID: "8.9",
        Kernel pattern: "/vmlinuz-%{version}", Initramfs pattern: "/initramfs-%{version}.img",
        Root options (LVM2): "rd.lvm.lv=%{lvm_root_lv}",
        Root options (BTRFS): "rootflags=%{btrfs_subvolume}",
        Options: "root=%{root_device} ro %{root_opts}",
        Title: "%{os_name} %{os_version_id} (%{version})",
        Optional keys: "grub_users grub_arg grub_class id", UTS release pattern: "el8"
      

      Actual results

      [root@localhost ~]# boom profile create --from-host
      Created profile with os_id 43747d3:
        OS ID: "43747d3888b663d2bc88efd35d0813159a84d291",
        Name: "Red Hat Enterprise Linux", Short name: "rhel",
        Version: "8.9 (Ootpa)", Version ID: "8.9",
        Kernel pattern: "/vmlinuz-%{version}", Initramfs pattern: "/initramfs-%{version}.img",
        Root options (LVM2): "rd.lvm.lv=%{lvm_root_lv}",
        Root options (BTRFS): "rootflags=%{btrfs_subvolume}",
        Options: "root=%{root_device} ro %{root_opts}",
        Title: "%{os_name} %{os_version_id} (%{version})",
        Optional keys: "", UTS release pattern: "el8"
      

      Optional keys is empty but should have the value "grub_users grub_arg grub_class id"

      This leads to entries being created that do not include the optional keys:

      [root@localhost ~]# boom create --backup --title "Root LV snapshot before changes" --rootlv rhel/root_snapshot_before_changes
      Created entry with boot_id 4573f23:
        title Root LV snapshot before changes
        machine-id 6db8de82fe42457a93cb9fab744d2e99
        version 4.18.0-513.24.1.el8_9.x86_64
        linux /vmlinuz-4.18.0-513.24.1.el8_9.x86_64.boom0
        initrd /initramfs-4.18.0-513.24.1.el8_9.x86_64.img.boom0
        options root=/dev/rhel/root_snapshot_before_changes ro rd.lvm.lv=rhel/root_snapshot_before_changes
      

      vs:

      [root@localhost ~]# boom create --backup --title "Root LV snapshot before changes" --rootlv rhel/root_snapshot_before_changes
      Created entry with boot_id 5f9e916:
        title Root LV snapshot before changes
        machine-id 6db8de82fe42457a93cb9fab744d2e99
        version 4.18.0-513.24.1.el8_9.x86_64
        linux /vmlinuz-4.18.0-513.24.1.el8_9.x86_64.boom0
        initrd /initramfs-4.18.0-513.24.1.el8_9.x86_64.img.boom0
        options root=/dev/rhel/root_snapshot_before_changes ro rd.lvm.lv=rhel/root_snapshot_before_changes
        grub_users $grub_users
        grub_arg --unrestricted
        grub_class kernel
      

              lvm-team lvm-team
              rhn-support-bmr Bryn Reeves
              lvm-team lvm-team
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: