Description of problem: improve engine logging when migration fail Version-Release number of selected component (if applicable): ovirt-engine-4.3.3.7-0.1.el7.noarch How reproducible: everytime Steps to Reproduce: 1. create vm with name vmA on hostA 2. rename the vmA to vmA-1 while vm is running 3. create vm with name on vmA on hostB 4. try to migrate vmA from hostB to hostA Actual results: migration will fail with error: "Failed Migrating VM vmA to Host hostA." Expected results: engine will notify user that there is already running vm with the same name on the hostA Additional info: there is already another rfe open for customer case - https://bugzilla.redhat.com/show_bug.cgi?id=1717399
there is an indication that the name has been changed in the UI. Yes, operations will fail when the old name collide. I think a failure is good enough we should include the libvit message as an additional detail though, here it would be: 'domain 'XXX' already exists with uuid 0848830e-1939-4add-bafe-a13324cc1169'
sync2jira
Again this bug was missing assignee. Moving needinfo.
Verified with: ovirt-engine-4.4.6.5-0.17.el8ev.noarch vdsm-4.40.60.5-1.el8ev.x86_64 Steps: 1. Create vm with name vmA on hostA(host name is host_mixed_1 in test env) 2. Rename the vmA to vmA-1 while vm is running 3. Create vm with name vmA on hostB(host name is host_mixed_2 in test env) 4. Try to migrate vmA from hostB to hostA Results: There is migration failed message on engine: 2021-04-23 16:33:30,225+03 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-15689) [75ec3ed5] EVENT_ID: VM_MIGRATION_TO_SERVER_FAILED(120), Migration failed due to an Error: domain 'vmA' already exists with uuid 634df1ca-2793-4852-a4da-f2a758280a97 (VM: vmA, Source: host_mixed_2, Destination: host_mixed_1).
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 security update (ovirt-engine) [ovirt-4.4.6]), 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-2021:2179