Re: persistent->transient [was: [PATCH 8/8] UndefineFlags: Extend virsh undefine to support new flag]

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

 



On Thu, Jul 14, 2011 at 10:25:43AM -0600, Eric Blake wrote:
> On 07/13/2011 09:56 PM, Osier Yang wrote:
> >>> -=item B<undefine>  I<domain-id>
> >>> +=item B<undefine>  I<domain-id>  optional I<--undefine-managed-state>
> >>>
> >>>   Undefine the configuration for an inactive domain. Since it's not
> >>> running
> >>>   the domain name or UUID must be used as the I<domain-id>.
> >> Oh, this is different than libvirt.c, which claimed you can run
> >> 'undefine' on a running persistent domain.  Which is it?  Can undefine
> >> make a running domain transient, or must it be on an inactive domain?
> > 
> > No, document in libvirt.c is not correct, undefining on a running domain
> > will be refused.
> 
> I argue that we found a bug in the qemu driver then.
> 
> Right now, you can use 'virDomainDefineXML' to convert a transient guest
> into a persistent one, but there is no counterpart operation to convert
> a persistent guest back into a transient one.
> 
> That is, I think the libvirt.c docs are right in implying that you can
> 'undefine' a running domain, and that the qemu driver needs to be fixed
> to allow this use case.
> 
> Either Dan, do you want to weigh in on this API question?

  I also side on the side that it should be allowed and it's "just"
a qemu driver bug :-)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]