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

libguestfs fails to parse /etc/fstab when there is a double comma after character.

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-9.5
    • augeas
    • None
    • No
    • Low
    • ZStream
    • 1
    • rhel-virt-tools
    • ssg_virtualization
    • None
    • QE ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Virt-tools for next sprint
    • None
    • None
    • None

      libguestfs fails to parse /etc/fstab when there is a double comma after character

      For example:

      cat /etc/fstab | grep ",," 
      /dev/mapper/vg00-vartmp /var/tmp xfs rw,,nodev,nosuid,noexec,relatime 0 0

      How reproducible:
      100%

       

      VM contains double commas which works fine but MTV migration fails.

       

      /dev/mapper/vg00-vartmp /var/tmp xfs rw,,nodev,nosuid,noexec,relatime 0 0

       

      virt-v2v

      virt-v2v: error: libguestfs error: inspect_os: 
      /etc/fstab:<missing>:<missing>: augeas parse failure: <missing>If reporting bugs, run virt-v2v with debugging enabled and include the 
      complete output:  virt-v2v -v -x [...]

      This is from cu request where they cannot update a lot of VMs manually, similar issue was fixed for trailing comma.

              twiederh-1 Tim Wiederhake
              rhn-support-rsharm Rahul Sharma
              virt-maint virt-maint
              Xiang Hua Chen Xiang Hua Chen
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: