Bug 1717097
| Summary: | libvirt still doesn't relabel sockets in nbd: backing URLs | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Pino Toscano <ptoscano> |
| Component: | libguestfs | Assignee: | Pino Toscano <ptoscano> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | berrange, jsuchane, juzhou, knoel, libvirt-maint, lmen, lvrabec, mkletzan, mmalik, mtessun, mxie, mzhan, plautrba, ptoscano, rjones, ssekidde, tzheng, virt-bugs, vmojzis, xiaodwan, zpytela |
| Target Milestone: | rc | Flags: | knoel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | V2V | ||
| Fixed In Version: | libguestfs-1.40.2-5.module+el8.0.1+3307+12aaf333 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1717088 | Environment: | |
| Last Closed: | 2019-08-07 10:41:45 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, 1717088 | ||
| Bug Blocks: | |||
|
Description
Pino Toscano
2019-06-04 16:55:03 UTC
Verify the bug with below builds:
virt-v2v-1.40.2-5.module+el8.0.1+3307+12aaf333.x86_64
libguestfs-1.40.2-5.module+el8.0.1+3307+12aaf333.x86_64
libvirt-5.0.0-11.module+el8.0.1+3459+e357ef2f.x86_64
qemu-kvm-3.1.0-27.module+el8.0.1+3253+c5371cb3.x86_64
virtio-win-1.9.8-2.el8.noarch
nbdkit-1.12.1-2.module+el8.0.1+3338+906ce030.x86_64
python3-openstackclient-3.18.0-0.20190312140834.6868499.el8ost.noarch
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 |
+--------------------------------------+---------------------------------+--------+----------------------+-----------------------+-----------+
| 87d4bfc3-f3ce-4d5d-8287-763dc5b7448f | v2v-rhel8.0.1-conversion-server | ACTIVE | public01=10.73.224.x | esx6.7-rhel8.0-x86_64 | m1.medium |
| ff074bf3-51ed-4897-9a81-2ba97a69d81e | rhel7.6-v2v-conversion-server | ACTIVE | public01=10.73.224.x | esx6.7-rhel7.6-x86_64 | m1.medium |
+--------------------------------------+---------------------------------+--------+----------------------+-----------------------+-----------+
2.Copy keystone_admin from openstack host to guest "v2v-rhel8.0.1-conversion-server", then source keystone_admin to authenticate with openstack
#source keystone_admin
3.Enable selinux on v2v conversion appliance guest and do not set direct for LIBGUESTFS_BACKEND
# 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 -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 esx6.7-rhel8.0-x86_64 --password-file /tmp/passwd -o openstack -oo server-id=v2v-rhel8.0.1-conversion-server
[ 2.1] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.0-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
[ 3.9] Creating an overlay to protect the source from being modified
[ 5.4] Opening the overlay
[ 65.9] Inspecting the overlay
[ 125.9] Checking for sufficient free disk space in the guest
[ 125.9] Estimating space required on target for each disk
[ 125.9] Converting Red Hat Enterprise Linux 8.0 Beta (Ootpa) to run on KVM
virt-v2v: warning: don't know how to install guest tools on rhel-8
virt-v2v: This guest has virtio drivers installed.
[1937.8] Mapping filesystem data to avoid copying unused and blank areas
[1956.2] Closing the overlay
[1957.1] Assigning disks to buses
[1957.1] Checking if the guest needs BIOS or UEFI to boot
[1957.1] Initializing the target -o openstack
Failed to set volume read-only access mode flag: Invalid volume: Volume e2702e00-6d5e-443c-9635-556ab19542ef status must be available to update readonly flag, but current status is: creating. (HTTP 400) (Request-ID: req-1a56add4-aa7f-49e0-803f-bb325e22ea62)
[1982.7] Copying disk 1/1 to /dev/disk/by-id/virtio-e2702e00-6d5e-443c-9 (raw)
(100.00/100%)
[3181.0] Creating output metadata
[3192.2] Finishing off
5.Launch the volume as instance on openstack env after finishing v2v conversion, the checkpoints of guest are passwd
Result:
No need to set environment variable "export LIBGUESTFS_BACKEND=direct" during virt-v2v openstack conversion if selinux is enabled and use VMware VDDK as a transport, so the bug has been fixed and 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/RHBA-2019:2395 |