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

[libguestfs] [btrfs] Failed to get the file created under /tmp in virt-rescue steps

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

    • No
    • None
    • rhel-virt-tools
    • None
    • QE ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Failed to get the file created under /tmp in virt-rescue steps 

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      libguestfs-1.56.0-1.el10.1.x86_64

      kernel-6.12.0-95.el10.x86_64

      libguestfs-fssupport-10.1-3.el10.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

       

      1. Prepare a btrfs image:

      #GSTEST_image_path=/home/images/esx8.0-sles12sp5-x86_64-with-btrfs-sda.raw 

      #mount_point="$(virt-rescue --suggest -a $GSTEST_image_path |awk '/\/sysroot\/$/{print $2}')"

      #echo $mount_point 
      /dev/sda2

      #virt-rescue -a $GSTEST_image_path
      ><rescue> mount /dev/sda2 /sysroot
      ><rescue> cd /sysroot/
      ><rescue> ls -l
      total 0
      drwxr-xr-x 1 root root 1786 May 21 22:58 bin
      drwxr-xr-x 1 root root  612 May 22 08:09 boot
      drwxr-xr-x 1 root root    0 May 21 22:53 dev
      drwxr-xr-x 1 root root 5130 May 26 15:25 etc
      drwxr-xr-x 1 root root    0 May 21 22:53 home
      drwxr-xr-x 1 root root 3136 May 21 23:01 lib
      drwxr-xr-x 1 root root 4812 May 21 22:57 lib64
      drwxr-xr-x 1 root root    0 Jun 27  2017 mnt
      drwxr-xr-x 1 root root    0 May 21 22:53 opt
      drwxr-xr-x 1 root root    0 May 21 22:53 proc
      drwx------ 1 root root  222 May 22 08:21 root
      drwxr-xr-x 1 root root   16 May 22 08:08 run
      drwxr-xr-x 1 root root 5152 May 22 08:08 sbin
      drwxr-xr-x 1 root root    0 Jun 27  2017 selinux
      drwxr-xr-x 1 root root    0 May 21 22:53 srv
      drwxr-xr-x 1 root root    0 May 21 22:53 sys
      drwxr-xr-x 1 root root    0 May 21 22:53 tmp
      drwxr-xr-x 1 root root  130 May 21 22:53 usr
      drwxr-xr-x 1 root root  124 May 21 23:02 var
      ><rescue> echo 'virt-rescue' > tmp/virt-rescue.txt
      ><rescue> cat tmp/virt-rescue.txt
      virt-rescue
      ><rescue> exit
      exit

      virt-rescue: Syncing the disk now before exiting ...

      Rebooting.
      [  259.285235] reboot: Restarting system

      #output=`virt-cat -a $GSTEST_image_path /tmp/virt-rescue.txt`
      libguestfs: error: download: /tmp/virt-rescue.txt: No such file or directory

       

      Expected results

      Should virt-cat the file content prepared in virt-rescue steps.

      RHEL10.1 works fine.

      Actual results

      As above.

              virt-maint virt-maint
              xchen@redhat.com Xiang Hua Chen
              virt-maint virt-maint
              Xiang Hua Chen Xiang Hua Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: