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

fix: ensure libblockdev-loop package on EL7 for loop mounts

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • rhel-system-roles-1.120.5-0.1.el10
    • None
    • Low
    • 1
    • rhel-system-roles
    • 0
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • SysRoles Parking Lot
    • Bug Fix
    • Hide
      Cause: The blivet module on EL7 will try to use a function that is undefined when checking
      for mounts if there is a loop mount (/dev/loopX) on the system. The function is provided
      by the libblockdev-loop package but that isn't always installed.

      Consequence: The role will give an error like:
      "The function 'bd_loop_get_backing_file' called, but not implemented"

      Fix: Ensure that the libblockdev-loop package is installed if there are loop mounts
      on the EL7 system.

      Result: The role works on EL7 when there are loop mounts.

      Added a test to create a loop mount.

      Signed-off-by: Rich Megginson <rmeggins@redhat.com>

      ## Summary by Sourcery

      Ensure EL7 systems with loop mounts have the required libblockdev-loop package installed to prevent blivet errors and add coverage for loop-mount scenarios in tests.

      Bug Fixes:
      - Install libblockdev-loop on EL7 systems with detected loop mounts to avoid blivet calling an undefined bd_loop_get_backing_file function.

      Tests:
      - Add an integration test that creates a loop-backed mount, runs the storage role, and then cleans up the loop device and mount.
      Show
      Cause: The blivet module on EL7 will try to use a function that is undefined when checking for mounts if there is a loop mount (/dev/loopX) on the system. The function is provided by the libblockdev-loop package but that isn't always installed. Consequence: The role will give an error like: "The function 'bd_loop_get_backing_file' called, but not implemented" Fix: Ensure that the libblockdev-loop package is installed if there are loop mounts on the EL7 system. Result: The role works on EL7 when there are loop mounts. Added a test to create a loop mount. Signed-off-by: Rich Megginson < rmeggins@redhat.com > ## Summary by Sourcery Ensure EL7 systems with loop mounts have the required libblockdev-loop package installed to prevent blivet errors and add coverage for loop-mount scenarios in tests. Bug Fixes: - Install libblockdev-loop on EL7 systems with detected loop mounts to avoid blivet calling an undefined bd_loop_get_backing_file function. Tests: - Add an integration test that creates a loop-backed mount, runs the storage role, and then cleans up the loop device and mount.
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Cause: The blivet module on EL7 will try to use a function that is undefined when checking
      for mounts if there is a loop mount (/dev/loopX) on the system. The function is provided
      by the libblockdev-loop package but that isn't always installed.

      Consequence: The role will give an error like:
      "The function 'bd_loop_get_backing_file' called, but not implemented"

      Fix: Ensure that the libblockdev-loop package is installed if there are loop mounts
      on the EL7 system.

      Result: The role works on EL7 when there are loop mounts.

      Added a test to create a loop mount.

      Signed-off-by: Rich Megginson <rmeggins@redhat.com>

        1. Summary by Sourcery

      Ensure EL7 systems with loop mounts have the required libblockdev-loop package installed to prevent blivet errors and add coverage for loop-mount scenarios in tests.

      Bug Fixes:

      • Install libblockdev-loop on EL7 systems with detected loop mounts to avoid blivet calling an undefined bd_loop_get_backing_file function.

      Tests:

      • Add an integration test that creates a loop-backed mount, runs the storage role, and then cleans up the loop device and mount.

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Angana Chakraborty Angana Chakraborty
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: