Bug 1550925 - virt-manager loses track of VM after 'virt-clone --replace' is used
Summary: virt-manager loses track of VM after 'virt-clone --replace' is used
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-02 10:01 UTC by Xiaodai Wang
Modified: 2020-01-30 00:31 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-01-30 00:31:24 UTC
Embargoed:


Attachments (Terms of Use)
virt-manager debug log (32.47 KB, application/octet-stream)
2018-03-02 10:40 UTC, Xiaodai Wang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1598509 0 unspecified CLOSED Hosted engine VM migration failed on "libvirtError: Domain not found: no domain with matching name 'HostedEngine'" 2021-02-22 00:41:40 UTC

Internal Links: 1598509

Description Xiaodai Wang 2018-03-02 10:01:10 UTC
Description of problem:
libvirtError: Domain not found: no domain with matching uuid 'xxxx'

Version-Release number of selected component (if applicable):
virt-manager-1.4.3-3.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Prepare a guest, keep it in shutdown status.
2. Open virt-manager and connect to the connection which has the guest.
3. Clone the guest with "--replace" argument.
# virt-clone -o test --name test -f /var/lib/libvirt/images/e.img  --debug --replace

Actual results:
libvirtError: Domain not found: no domain with matching uuid 'xxxx' displays.

Expected results:
No libvirtError displays and the guest should be opened successfully.

Additional info:

Comment 2 Xiaodai Wang 2018-03-02 10:40:43 UTC
Created attachment 1402961 [details]
virt-manager debug log

Comment 4 Pavel Hrdina 2019-02-28 13:45:22 UTC
Moving to upstream, this is corner case where you need to clone guest to the same name, which is almost never done by users, and you need to have virt-manager GUI running.

Comment 5 Cole Robinson 2020-01-30 00:31:24 UTC
In my testing with current git this doesn't seem to happen, so I guess it's fixed nowadays


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