[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] virsh edit error



In an attempt to rename a kvm vm (which was powered off) I performed
the following:

$ virsh edit old-name

Then changed <name>old-name</name> to <name>new-name</name> and saved
and quit from the editor.

$ virsh list --all

 Id Name                 State
----------------------------------
 -  old-name            shut off
 -  new-name          shut off

Performing an edit on each of these shows they're completely
identical. Even the <name> section shows the old-name on both of them.
I've performed restarts of libvirtd as well.

If the action I did is truly invalid, we should catch that an error
out on it. However I think VM renaming can be a valid use case and we
have the UUID to match off of for the rename. Basically, I'm
contacting the list to see if my use case was invalid and I should
write my patch to spit an error, or if I should write my patch to
correct the improper handling. Patch to follow based on responses.

Thanks all.

-- 
Doug Goldstein


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]