Bug 1717088
| Summary: | libvirt still doesn't relabel sockets in nbd: backing URLs | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Pino Toscano <ptoscano> | |
| Component: | libguestfs | Assignee: | Libvirt Maintainers <libvirt-maint> | |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 8.1 | CC: | berrange, jsuchane, juzhou, lmen, lvrabec, mkletzan, mmalik, mtessun, mxie, mzhan, plautrba, ptoscano, rjones, ssekidde, tzheng, virt-bugs, vmojzis, xiaodwan, zpytela | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | 8.0 | |||
| Hardware: | x86_64 | |||
| OS: | Unspecified | |||
| Whiteboard: | V2V | |||
| Fixed In Version: | libguestfs-1.38.4-12.module+el8.1.0+3306+18be956d | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 1698437 | |||
| : | 1717097 (view as bug list) | Environment: | ||
| Last Closed: | 2019-11-05 20:50:11 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: | 1698437 | |||
| Bug Blocks: | 1717097 | |||
|
Description
Pino Toscano
2019-06-04 16:49:57 UTC
Verify the bug with below builds: virt-v2v-1.38.4-14.module+el8.1.0+4010+d6842f29.x86_64 libguestfs-1.38.4-14.module+el8.1.0+4010+d6842f29.x86_64 libvirt-4.5.0-32.module+el8.1.0+4010+d6842f29.x86_64 qemu-kvm-2.12.0-85.module+el8.1.0+4010+d6842f29.x86_64 nbdkit-1.4.2-5.module+el8.1.0+4010+d6842f29.x86_64 python3-openstackclient-3.19.0-0.20190617090007.57dec52.el8ost.noarch kernel-4.18.0-135.el8.x86_64 Steps: 1.Prepare a guest which have installed python3-openstackclient and virt-v2v packages on openstack(OSP14) environment # openstack server list +--------------------------------------+---------------------------------+--------+----------------------+-----------------------+-----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------+--------+----------------------+-----------------------+-----------+ | bc4c19ad-eff0-45f8-850f-43fc6d60b6a9 | v2v-rhel8.1-conversion-server | ACTIVE | public01=10.73.224.2 | esx6.7-rhel8.1-x86_64 | m1.medium | | 87d4bfc3-f3ce-4d5d-8287-763dc5b7448f | v2v-rhel8.0.1-conversion-server | ACTIVE | public01=10.73.224.7 | esx6.7-rhel8.0-x86_64 | m1.medium | | ff074bf3-51ed-4897-9a81-2ba97a69d81e | rhel7.6-v2v-conversion-server | ACTIVE | public01=10.73.224.5 | esx6.7-rhel7.6-x86_64 | m1.medium | +--------------------------------------+---------------------------------+--------+----------------------+-----------------------+-----------+ 2.Copy keystone_admin from openstack host to guest "v2v-rhel8.1-conversion-server", then source keystone_admin to authenticate with openstack env #source keystone_admin 3.Enable selinux on v2v conversion appliance guest and don't set direct for LIBGUESTFS_BACKEND env variable # getenforce Enforcing # echo $LIBGUESTFS_BACKEND nothing 4.Convert a guest from vmware to openstack by virt-v2v via vddk # virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.1-x86_64 --password-file /tmp/passwd -o openstack -oo server-id=v2v-rhel8.1-conversion-server -it vddk -io vddk-libdir=/home/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 virt-v2v: error: unknown -o option: openstack If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] Hi rjones and Pino, Because I only can reproduce the bug when convert guest from VMware via vddk to openstack with selinux enabled, I never met the bug when convert guest using vddk+rhv-upload, I can't ensure the bug is fixed if only verify the bug with vddk+rhv-upload or vddk+glance,my suggestion is move the bug to 8.1 AV, or do you have any other suggestions? Thanks (In reply to mxie from comment #2) > Because I only can reproduce the bug when convert guest from VMware via > vddk to openstack with selinux enabled, I never met the bug when convert > guest using vddk+rhv-upload, I can't ensure the bug is fixed if only verify > the bug with vddk+rhv-upload or vddk+glance,my suggestion is move the bug to > 8.1 AV, or do you have any other suggestions? - rhv-upload is unusable in RHEL 8 so far - the issue happens when opening the disks from VMware via vddk, with nothing that makes it specific to the openstack output mode; what about trying -o libvirt? (In reply to Pino Toscano from comment #3) > (In reply to mxie from comment #2) > > Because I only can reproduce the bug when convert guest from VMware via > > vddk to openstack with selinux enabled, I never met the bug when convert > > guest using vddk+rhv-upload, I can't ensure the bug is fixed if only verify > > the bug with vddk+rhv-upload or vddk+glance,my suggestion is move the bug to > > 8.1 AV, or do you have any other suggestions? > > - rhv-upload is unusable in RHEL 8 so far > - the issue happens when opening the disks from VMware via vddk, with > nothing that makes it specific to the openstack output mode; what about > trying -o libvirt? Also never met the bug when convert guest from vmware via vddk to libvirt, pls refer to below guest which is converted from vmware via vddk (selinux is enabled and not set direct for LIBGUESTFS_BACKEND env variable) Package:virt-v2v-1.38.4-11.module+el8.1.0+3006+b7e94bb9.x86_64 Case: https://libvirt-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/v2v/view/RHEL-8.1/job/v2v-RHEL-8.1-runtest-x86_64-acceptance-libvirt/13/testReport/rhel/convert_vm_to_libvirt/esx_vm_6_7_linux_latest7_arch_x86_64_it_vddk/ Background: Confirmed with Pino, this bug happens when opening the disks from VMware via vddk from a code perspective,and it's impossible customers meet the bug during v2v openstack conversion on rhel8.1 slow stream as openstack output isn't supported (comment2), so verify the bug with below steps Verify the bug with below builds: virt-v2v-1.38.4-14.module+el8.1.0+4066+0f1aadab.x86_64 libguestfs-1.38.4-14.module+el8.1.0+4066+0f1aadab.x86_64 libvirt-4.5.0-33.module+el8.1.0+4066+0f1aadab.x86_64 qemu-kvm-2.12.0-85.module+el8.1.0+4066+0f1aadab.x86_64 nbdkit-1.4.2-5.module+el8.1.0+4066+0f1aadab.x86_64 python3-openstackclient-3.19.0-0.20190617090007.57dec52.el8ost.noarch kernel-4.18.0-135.el8.x86_64 Steps: 1.Enable selinux and don't set direct for LIBGUESTFS_BACKEND env variable on v2v conversion server # getenforce Enforcing # echo $LIBGUESTFS_BACKEND nothing 2.Convert a guest from vmware to rhv by virt-v2v via vddk # virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 -it vddk -io vddk-libdir=/home/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 --password-file /tmp/passwd -o rhv -os 10.73.194.236:/home/nfs_export esx6.7-rhel8.1-x86_64 [ 0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.1-x86_64 -it vddk -io vddk-libdir=/home/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 [ 1.9] Creating an overlay to protect the source from being modified nbdkit: error: VixDiskLib: VixDiskLibIsLegacyConnParams: the instance of VixDiskLibConnectParams is NOT allocated by VixDiskLib_AllocateConnectParams. The new features in 6.7 or later are not supported. [ 2.4] Initializing the target -o rhv -os 10.73.194.236:/home/nfs_export [ 2.7] Opening the overlay nbdkit: error: VixDiskLib: VixDiskLibIsLegacyConnParams: the instance of VixDiskLibConnectParams is NOT allocated by VixDiskLib_AllocateConnectParams. The new features in 6.7 or later are not supported. [ 12.2] Inspecting the overlay [ 30.9] Checking for sufficient free disk space in the guest [ 30.9] Estimating space required on target for each disk [ 30.9] Converting Red Hat Enterprise Linux 8.1 Beta (Ootpa) to run on KVM virt-v2v: This guest has virtio drivers installed. [ 165.5] Mapping filesystem data to avoid copying unused and blank areas [ 166.1] Closing the overlay [ 166.4] Checking if the guest needs BIOS or UEFI to boot [ 166.4] Assigning disks to buses [ 166.4] Copying disk 1/1 to /tmp/v2v.YQWkiz/d46d664d-c030-42de-a8ee-ef109f8c3766/images/7c9d3b15-c067-48f0-9643-11abd8e718aa/b48fcc38-fbea-4d7a-8d57-1e2cdf7c4183 (raw) nbdkit: error: VixDiskLib: VixDiskLibIsLegacyConnParams: the instance of VixDiskLibConnectParams is NOT allocated by VixDiskLib_AllocateConnectParams. The new features in 6.7 or later are not supported. (100.00/100%) [ 306.8] Creating output metadata [ 306.9] Finishing off 3.Import the guest from export domain to data domain, checkpoints of guest are passed Result: No need to set environment variable "export LIBGUESTFS_BACKEND=direct" during virt-v2v VMware vddk conversion if selinux is enabled, so move 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, 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/RHSA-2019:3345 |