Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
+++ This bug was initially created as a clone of Bug #1685081 +++
Refer to <https://bugzilla.redhat.com/show_bug.cgi?id=1685081#c9> for details.
The openstack output module currently passes the "--non-bootable --read-write" options to the "openstack volume create" command. There is a bug in the "openstack" utility however itself (in the "python-openstackclient" package) where it assumes that the image creation API blocks, and as soon as it completes, the readonly and bootable flags can be tweaked with the APIs that exist for those purposes. The image creation API does not block however, and when the "openstack" command line utility tries to set the readonly & bootable flags, those APIs fail because image creation is still in progress. This results in an obscure error message on the virt-v2v standard error.
Given that "--non-bootable" and "--read-write" are both defaults for VM image creation, per <https://docs.openstack.org/python-openstackclient/yoga/cli/command-objects/volume.html>, work the symptom around by simply not passing these options.
Verify the bug with below builds:
virt-v2v-2.0.4-1.el9.x86_64
libguestfs-1.48.1-1.el9.x86_64
guestfs-tools-1.48.0-1.el9.x86_64
libvirt-libs-8.3.0-1.el9.x86_64
qemu-img-7.0.0-2.el9.x86_64
nbdkit-server-1.30.4-1.el9.x86_64
libnbd-1.12.2-1.el9.x86_64
python3-openstackclient-5.5.1-0.20220427021748.53f1efa.el9ost.noarch
Steps:
Scenairo1:
1.1 Prepare a v2v-appliance on OSP16 env and convert a linux guest from VMware to openstack by v2v on v2v-appliance
# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -ip /home/passwd esx7.0-rhel9.1-x86_64 -o openstack -oo server-id=v2v-appliance
[ 0.0] Setting up the source: -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-rhel9.1-x86_64
[ 3.9] Opening the source
[ 15.7] Inspecting the source
[ 26.1] Checking for sufficient free disk space in the guest
[ 26.1] Converting Red Hat Enterprise Linux 9.1 Beta (Plow) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 203.6] Mapping filesystem data to avoid copying unused and blank areas
[ 204.9] Closing the overlay
[ 205.2] Assigning disks to buses
[ 205.2] Checking if the guest needs BIOS or UEFI to boot
[ 205.2] Setting up the destination: -o openstack -oo server-id=v2v-appliance
[ 226.2] Copying disk 1/1
█ 100% [****************************************]
[ 524.2] Creating output metadata
[ 530.5] Finishing off
1.2 Launch the volume as instance after v2v conversion on OSP16 env, check guest and checkpoints of guest are passed
Scenario2:
2.1 Convert a windows guest from VMware to openstack by v2v on v2v-appliance
# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -ip /home/passwd esx7.0-win2022-x86_64-uefi -o openstack -oo server-id=v2v-appliance
[ 0.5] Setting up the source: -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-win2022-x86_64-uefi
[ 4.3] Opening the source
[ 12.3] Inspecting the source
[ 23.8] Checking for sufficient free disk space in the guest
[ 23.8] Converting Windows Server 2022 Standard to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 47.9] Mapping filesystem data to avoid copying unused and blank areas
[ 50.1] Closing the overlay
[ 50.4] Assigning disks to buses
[ 50.4] Checking if the guest needs BIOS or UEFI to boot
virt-v2v: This guest requires UEFI on the target to boot.
[ 50.4] Setting up the destination: -o openstack -oo server-id=v2v-appliance
[ 66.7] Copying disk 1/1
█ 100% [****************************************]
[ 449.7] Creating output metadata
[ 454.9] Finishing off
2.2 Launch the volume as instance after v2v conversion on OSP16 env, check guest and checkpoints of guest are passed
Result:
The bug has been fixed, 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 (Low: virt-v2v security, 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/RHSA-2022:7968