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.
Bug 1917262 - The volume can't be detached from v2v appliance automatically after v2v converting guest to OSP16.2
Summary: The volume can't be detached from v2v appliance automatically after v2v conve...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-v2v
Version: unspecified
Hardware: x86_64
OS: Unspecified
high
high
Target Milestone: beta
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard: V2V_OSP_INT
Depends On:
Blocks: 1948358
TreeView+ depends on / blocked
 
Reported: 2021-01-18 08:33 UTC by mxie@redhat.com
Modified: 2021-08-06 13:27 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-06 13:27:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
volume-cannot-detach-after-v2v-conversion (113.33 KB, image/png)
2021-01-18 08:33 UTC, mxie@redhat.com
no flags Details
convert-guest-to-osp16.2.log (1.34 MB, text/plain)
2021-01-18 08:36 UTC, mxie@redhat.com
no flags Details

Description mxie@redhat.com 2021-01-18 08:33:02 UTC
Created attachment 1748389 [details]
volume-cannot-detach-after-v2v-conversion

Description of problem:
The volume can't be detached from v2v appliance automatically after v2v converting guest to OSP16.2

Version-Release number of selected component (if applicable):
virt-v2v-1.42.0-7.module+el8.4.0+9398+f376ac33.x86_64
libguestfs-1.44.0-1.module+el8.4.0+9398+f376ac33.x86_64
libvirt-libs-7.0.0-1.module+el8.4.0+9464+3e71831a.x86_64
qemu-kvm-5.2.0-2.module+el8.4.0+9186+ec44380f.x86_64
nbdkit-1.24.0-1.module+el8.4.0+9341+96cf2672.x86_64
python3-openstackclient-4.0.1-2.20201217180131.bff556c.el8ost.1.noarch
RHOS-16.2-RHEL-8-20210113.n.0


How reproducible:
100%

Steps to Reproduce:
1. Prepare a guest which has installed virt-v2v on OSP16.2 environment, we call the guest as 'v2v-appliance'
$ openstack server list
+--------------------------------------+----------------------+--------+------------------------------------+--------------------------------------+--------+
| ID                                   | Name                 | Status | Networks                           | Image                                | Flavor |
+--------------------------------------+----------------------+--------+------------------------------------+--------------------------------------+--------+
| 381a9246-ddd7-4236-8d19-27868e360380 | v2v-appliance-latest | ACTIVE | private=192.168.0.112, 10.73.224.2 | RHEL-8.4.0-20210107.n.0-x86_64.qcow2 |        |
+--------------------------------------+----------------------+--------+------------------------------------+--------------------------------------+--------+


2.Convert a guest from VMware to OSP16.2 by virt-v2v
(overcloud) [root@localhost ~]# 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 -o openstack -oo server-id=v2v-appliance-latest  -ip /home/passwd esx7.0-rhel8.3-x86_64-efi
[   1.6] Opening the source -i libvirt -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.3-x86_64-efi -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
[   3.7] Creating an overlay to protect the source from being modified
[   4.6] Opening the overlay
[  11.7] Inspecting the overlay
[  32.0] Checking for sufficient free disk space in the guest
[  32.0] Estimating space required on target for each disk
[  32.0] Converting Red Hat Enterprise Linux 8.3 Beta (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 120.7] Mapping filesystem data to avoid copying unused and blank areas
virt-v2v: warning: fstrim on guest filesystem /dev/sda1 failed.  Usually 
you can ignore this message.  To find out more read "Trimming" in 
virt-v2v(1).

Original message: fstrim: fstrim: /sysroot/: the discard operation is not 
supported
[ 121.7] Closing the overlay
[ 122.0] Assigning disks to buses
[ 122.0] Checking if the guest needs BIOS or UEFI to boot
virt-v2v: This guest requires UEFI on the target to boot.
[ 122.0] Initializing the target -o openstack
Failed to set volume read-only access mode flag: Invalid volume: Volume 8254e656-8ac6-409d-b0ab-7205f368be09 status must be available to update readonly flag, but current status is: creating. (HTTP 400) (Request-ID: req-8a69287f-7c37-47ac-baf6-73af9443757d)
[ 136.9] Copying disk 1/1 to /dev/disk/by-id/virtio-8254e656-8ac6-409d-b (raw)
    (100.00/100%)
[ 670.4] Creating output metadata
[ 676.2] Finishing off


3.Try to launch the volume as instance on OSP16.2 dashboard after v2v conversion, but found the status of volume is in-use, the volume can't be detach from v2v appliance automatically, pls refer to screenshot"volume-cannot-detach-after-v2v-conversion"


Actual result:
As above description

Expected results:
The volume should be detached from v2v appliance automatically after v2v converting guest to OSP16.2

Additional info:
1.Can't reproduce the bug on OSP16.1

Comment 1 mxie@redhat.com 2021-01-18 08:36:26 UTC
Created attachment 1748390 [details]
convert-guest-to-osp16.2.log

Comment 3 mxie@redhat.com 2021-07-30 08:52:40 UTC
I can't reproduce the bug on openstack environment which has version RHOS-16.2-RHEL-8-20210722.n.0, I think the bug maybe caused by old openstack version RHOS-16.2-RHEL-8-20210113.n.0

Test packages of rhel8.5 v2v appliance on OSP16.2 environment:

virt-v2v-1.42.0-14.module+el8.5.0+11846+77888a74.x86_64
libguestfs-1.44.0-3.module+el8.5.0+10681+17a9b157.x86_64
libvirt-libs-7.5.0-1.module+el8.5.0+11664+59f87560.x86_64
qemu-img-6.0.0-25.module+el8.5.0+11890+8e7c3f51.x86_64
virtio-win-1.9.17-3.el8_4.noarch
nbdkit-1.24.0-1.module+el8.4.0+9341+96cf2672.x86_64
kernel-4.18.0-324.el8.x86_64
python3-openstackclient-4.0.2-2.20210528091917.54bf2c0.el8ost.1.noarch

Comment 4 Klaus Heinrich Kiwi 2021-08-06 13:27:33 UTC
(In reply to mxie from comment #3)
> I can't reproduce the bug on openstack environment which has version
> RHOS-16.2-RHEL-8-20210722.n.0, I think the bug maybe caused by old openstack
> version RHOS-16.2-RHEL-8-20210113.n.0
> 
> Test packages of rhel8.5 v2v appliance on OSP16.2 environment:
> 
> virt-v2v-1.42.0-14.module+el8.5.0+11846+77888a74.x86_64
> libguestfs-1.44.0-3.module+el8.5.0+10681+17a9b157.x86_64
> libvirt-libs-7.5.0-1.module+el8.5.0+11664+59f87560.x86_64
> qemu-img-6.0.0-25.module+el8.5.0+11890+8e7c3f51.x86_64
> virtio-win-1.9.17-3.el8_4.noarch
> nbdkit-1.24.0-1.module+el8.4.0+9341+96cf2672.x86_64
> kernel-4.18.0-324.el8.x86_64
> python3-openstackclient-4.0.2-2.20210528091917.54bf2c0.el8ost.1.noarch

Suggesting we close this until we have another repro with recent packages...


Note You need to log in before you can comment on or make changes to this bug.