Bug 1705338
Summary: | Ghost OVFs are written when using floating SD to migrate VMs between 2 RHV environments. | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Germano Veit Michel <gveitmic> |
Component: | ovirt-engine | Assignee: | Pavel Bar <pbar> |
Status: | CLOSED ERRATA | QA Contact: | Evelina Shames <eshames> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.4.0 | CC: | aefrat, ahadas, aperotti, emarcus, michal.skrivanek, mkalinin, pbar, sfishbai, shipatil, smelamud, tnisan |
Target Milestone: | ovirt-4.5.3 | Keywords: | PrioBumpQA, ZStream |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ovirt-engine-4.5.3.1 | Doc Type: | Bug Fix |
Doc Text: |
Previously, stale data sometimes appeared in the DB "unregistered_ovf_of_entities" DB table. As a result, when importing a floating Storage Domain with a VM and disks from a source RHV to destination RHV. After importing the floating Storage Domain back into the source RHV, the VM is listed under the "VM Import" tab, but can't be imported because all its disks are now located on another Storage Domain (the destination RHV). In addition, after the first OVF update, the OVF of the VM reappears on the floating Storage Domain as a "ghost" OVF.
In this release, after the floating Storage Domain is re-attached in the source RHV, the VM does not appear under the "VM Import" tab and no "ghost" OVF is re-created after the OVF update, and the DB table is filled correctly during Storage Domain attachment.
This ensures that the "unregistered_ovf_of_entities" DB table contains the most up-to-date data, and no irrelevant entries are present.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-16 12:17:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1541529 |
Description
Germano Veit Michel
2019-05-02 05:55:37 UTC
Source RHV importing back the SD (step 9) - no VM OVF yet 2019-05-02 15:43:37,918+10 INFO [org.ovirt.engine.core.utils.archivers.tar.TarInMemoryExport] (EE-ManagedThreadFactory-engine-Thread-1966) [78420b6c] Finish to fetch OVF files from tar file. The number of OVF entities are 0 Source RHV updating OVFs and writing the Ghost OVF happens here (step 10) 2019-05-02 15:45:31,970+10 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.UploadStreamVDSCommand] (EE-ManagedThreadFactory-engine-Thread-2013) [4a84a42b-1787-407e-b3c0-dc41a80e7267] FINISH, UploadStreamVDSCommand, log id: 3ce0ea06 Tal, this sounds more Storage than Virt Shmuel, any thoughts here? I'm not sure if we're intentionally leaving this in the DB on removal, but it should not be possible to generate an OVA without a matching disk -- no exceptions thrown? The record in vm_ovf_generations table should be deleted when the storage domain is detached, together with the corresponding VMs. It is a part of the Storage task, I think. sync2jira sync2jira I did not have time to do the whole thing again on master, but I reproduced what we understand is the root cause of the problem on ovirt-engine-4.3.7.2-1.el7.noarch. After detaching the SD which contains the VM disk, vm_ovf_generations still has an entry for the VM that is gone due to the detach engine=# select vm_guid from vm_ovf_generations where vm_guid = '5010dcc9-2573-469d-93c7-47be2cd5d7db'; vm_guid -------------------------------------- 5010dcc9-2573-469d-93c7-47be2cd5d7db (1 row) engine=# select vm_name from vm_static where vm_guid = '5010dcc9-2573-469d-93c7-47be2cd5d7db'; vm_name --------- (0 rows) Pavel, please set the doc text QE instructions: The reproduction is described in the "Description of problem" by Germano and also in the Doc Text that I added. Verified on ovirt-engine-4.5.3.1 with the flow described in the description/Doc Text. 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 (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.3] bug fix and security 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:8502 |