Bug 1837542
Summary: | [CNV][V2V] virt-v2v does not work when /var/tmp is mounted on NFS | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Martin Kletzander <mkletzan> |
Component: | virt-v2v | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED NOTABUG | QA Contact: | mxie <mxie> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.2 | CC: | awels, bthurber, cnv-qe-bugs, dagur, ibragins, jen, juzhou, mxie, ncredi, pelauter, ptoscano, rjones, tgolembi, tyan, tzheng, xiaodwan, zili |
Target Milestone: | rc | ||
Target Release: | 8.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1814611 | Environment: | |
Last Closed: | 2020-08-24 16:24:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1814611, 1874784 |
Description
Martin Kletzander
2020-05-19 15:55:40 UTC
Currently waiting for access to an environment that can reproduce this. If handled in 8.2.1 this will need to be switched to libguestfs component (as the split of virt-v2v just happened in later release), but that will happen when (if) we figure out where this needs to be fixed and how. I can reproduce the bug with below builds: virt-v2v-1.42.0-3.module+el8.3.0+6497+b190d2a5.x86_64 libguestfs-1.42.0-1.module+el8.3.0+6496+d39ac712.x86_64 libvirt-6.3.0-1.module+el8.3.0+6478+69f490bb.x86_64 qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64 Steps to Reproduce: 1.Change the group and owner for file ".guestfs-0" from root to mxie in /var/tmp #chown mxie .guestfs-0 #chgrp mxie .guestfs-0 # ls -la /var/tmp total 132744 drwxrwxrwt. 5 36 kvm 114 May 22 03:30 . drwxr-xr-x. 21 root root 4096 May 19 08:58 .. drwxr-xr-x. 3 mxie mxie 236 May 22 03:29 .guestfs-0 ..... 2.Convert a guest from VMware by virt-v2v, then reproduce the bug # virt-v2v -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78 esx7.0-rhel8.2-x86_64 -ip /home/passwd -o local -os /home [ 0.2] Opening the source -i libvirt -ic vpx://root.198.169:443/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.2-x86_64 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78 [ 1.7] Creating an overlay to protect the source from being modified [ 2.6] Opening the overlay virt-v2v: error: libguestfs error: security: cached appliance /var/tmp/.guestfs-0 is not owned by UID 0 If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] Upstream discussion: https://www.redhat.com/archives/libguestfs/2020-June/thread.html#00052 Hey Martin K, why was this bug cloned to virt-v2v? I don't think it's really a bug at all. (In reply to Richard W.M. Jones from comment #4) I do not recall, to be honest. But it looks like we did not know whether this is a bug or not and whether or not it was in virt-v2v and virt-v2v was split in the meantime, we wanted to track it. I did not keep up with the discussion, but if it is not a bug, then it can be closed as such, if it is a bug in a management application then it should be moved there, if it was handled as part of another bug then it can be closed as duplicate. I'm going to close this because I don't believe there's a bug here we are able to fix. Basically don't put /var/tmp on NFS and don't share /var/tmp across machines and it should be fine. It's somewhat unfortunate that virt-v2v requires some space in local storage to do its work, but I can't believe we're the only program in a container that has this requirement so maybe containers should be able to handle this. |