Bug 1820282
| Summary: | Tell virt-v2v where the overlay files must be placed, rather than defaulting always to cachedir | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Ilanit Stein <istein> |
| Component: | virt-v2v | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED ERRATA | QA Contact: | liuzi <zili> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.2 | CC: | mxie, mzhan, ptoscano, rjones, tyan, tzheng, virt-maint, xiaodwan, zili |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.4 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | V2V | ||
| Fixed In Version: | virt-v2v-1.42.0-7.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-25 06:42:08 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: | |||
|
Description
Ilanit Stein
2020-04-02 16:30:02 UTC
Fixed upstream in https://github.com/libguestfs/virt-v2v/commit/717b808bc5cb632778973eb000600e87eaf5c31a You can now (optionally) set $VIRT_V2V_TMPDIR to put the large temporary files like the overlays in a separate directory. Verify bug with builds: virt-v2v-1.42.0-9.module+el8.4.0+9561+069bb9c1.x86_64 qemu-kvm-5.2.0-4.module+el8.4.0+9676+589043b9.x86_64 Steps: Scenario 1: On standalone v2v conversion server,set normal storage to keep overlay files. 1.1 Set dir to keep overlay files: # export VIRT_V2V_TMPDIR=/home/test # echo $VIRT_V2V_TMPDIR /home/test 1.2 Use virt-v2v to convert guests from Vmware to RHV # virt-v2v -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1 esx7.0-win2019-x86_64 -o rhv-upload -os nfs_data -of raw -b ovirtmgmt -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 -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -oo rhv-cluster=Default -oo rhv-direct -ip /home/passwd -oo rhv-verifypeer=true -oo rhv-cafile=/home/ca.pem 1.3 During conversion,check the new dir # ls /home/test null.DDB809 v2vovl4f79dd.qcow2 Check the log: [...] check_host_free_space: large_tmpdir=/home/test free_space=689785180160 [ 2.2] Creating an overlay to protect the source from being modified qemu-img 'create' '-q' '-f' 'qcow2' '-b' 'nbd:unix:/tmp/v2vnbdkit.4ZU1N9/nbdkit2.sock:exportname=/' '-o' 'compat=1.1,backing_fmt=raw' '/home/test/v2vovld8ee4c.qcow2' [...] 1.4 After conversion finishing,check the cachedir,the overlay file have been deleted. Scenario 2: On rhv4.4 node,use nfs storage as cachedir 2.1 Set dir to keep overlay files: # export VIRT_V2V_TMPDIR=/home/nfs_data/test 2.2 Use virt-v2v to convert guest # virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-win10-x86_64 -o rhv-upload -os nfs_data -of raw -b ovirtmgmt -it vddk -io vddk-libdir=/home/vddk6.7/vmware-vix-disklib-distrib -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -oo rhv-cluster=Default -ip /home/passwd -oo rhv-verifypeer=true -oo rhv-cafile=/home/ca.pem -oo rhv-direct=true 2.3 During conversion,check the new dir # ls /home/nfs_data/test null.7q1PdX v2vovld94ef6.qcow2 Check the log: [...] check_host_free_space: large_tmpdir=/home/nfs_data/test free_space=742164733952 [ 2.2] Creating an overlay to protect the source from being modified qemu-img 'create' '-q' '-f' 'qcow2' '-b' 'nbd:unix:/tmp/v2vnbdkit.BG3ZgE/nbdkit2.sock:exportname=/' '-o' 'compat=1.1,backing_fmt=raw' '/home/nfs_data/test/v2vovl5e88bd.qcow2' [...] 2.4 After conversion finishing,check the cachedir,the overlay file have been deleted. Result: virt-v2v can set the dir to set overlay files.so change the bug from ON_QA to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (virt:av bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2098 |