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

Storage role crashes on systems without /etc/fstab

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.0
    • rhel-system-roles
    • None
    • No
    • None
    • rhel-system-roles
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • 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
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: