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

Storage role crashes on systems without /etc/fstab

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

    • rhel-system-roles-1.110.0-0.1.el10
    • No
    • Low
    • rhel-system-roles
    • 0
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Bug Fix
    • Hide
      Storage role no longer fails when `/etc/fstab` is missing::
      Before this update, the storage role crashed on systems where `/etc/fstab` was absent. As a consequence, systems without a file system table configuration experienced failures.
      +
      With this update, the storage role checks whether `/etc/fstab` exists before attempting to parse it. As a result, systems without this file no longer experience a crash when using the storage role.
      Show
      Storage role no longer fails when `/etc/fstab` is missing:: Before this update, the storage role crashed on systems where `/etc/fstab` was absent. As a consequence, systems without a file system table configuration experienced failures. + With this update, the storage role checks whether `/etc/fstab` exists before attempting to parse it. As a result, systems without this file no longer experience a crash when using the storage role.
    • Done
    • Done
    • Done
    • Not Required
    • None

      Using storage role on systems without /etc/fstab results in a crash, even when the playbook doesn't include any mountpoint configuration.

        File "/tmp/ansible_blivet_payload_vy67jhn_/ansible_blivet_payload.zip/ansible/modules/blivet.py", line 2642, in <module>
          main()
          ~~~~^^
        File "/tmp/ansible_blivet_payload_vy67jhn_/ansible_blivet_payload.zip/ansible/modules/blivet.py", line 2638, in main
          run_module()
          ~~~~~~~~~~^^
        File "/tmp/ansible_blivet_payload_vy67jhn_/ansible_blivet_payload.zip/ansible/modules/blivet.py", line 2550, in run_module
          fstab = FSTab(b)
        File "/tmp/ansible_blivet_payload_vy67jhn_/ansible_blivet_payload.zip/ansible/modules/blivet.py", line 2177, in __init__
          self.parse()
          ~~~~~~~~~~^^
        File "/tmp/ansible_blivet_payload_vy67jhn_/ansible_blivet_payload.zip/ansible/modules/blivet.py", line 2189, in parse
          with open('/etc/fstab') as f:
               ~~~~^^^^^^^^^^^^^^
      FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'
      

      Upstream report: https://github.com/linux-system-roles/storage/issues/557

              rmeggins@redhat.com Richard Megginson
              vtrefny@redhat.com Vojtěch Trefný
              Richard Megginson Richard Megginson
              Guangwu Zhang Guangwu Zhang
              Angana Chakraborty Angana Chakraborty
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: