[Openstack] Modify instance by use of libvirt XML

Thanassis Parathyras aparathyras at stackmasters.eu
Tue Dec 1 15:17:06 UTC 2015


Hi Dionysis,

The only recommended way to change resources managed by OpenStack 
services is through the services API.
In your case you should explore the Nova API to find the operation that 
provides the change you are looking for to apply.

Best,
Thanassis

Thanassis Parathyras
StackMasters - The European OpenStack Integration Company
www.stackmasters.eu

On 30/11/2015 3:04 μμ, Drakopoulos, Dionisis (Nokia - GR/Athens) wrote:
> Good afternoon to all!
> As I have read, NOVA interacts with QEMU/KVM through libvirt virtualization API. Virtual Machine instances are defined in libvirt by the use of an XML file which lives in /etc/libvirt/qemu/ path of each compute node.
>
> Based on the following Launchpad bug (link below), starting from OpenStack Nova 2013.1 release, let me quote: " There's no reason to ever use the the XML files stored in the instances directory; it is there for operational purposes only." and "This will undo any one-off/by-hand changes in favor of absolute consistency with the database, which is preferred.".
>
> https://bugs.launchpad.net/nova/+bug/1081373
>
> So, the question is simple. What operation to follow in order to permanently change instance metadata by editing this XML file? Or else, edit Nova database records?
>
> Thank you in advance!
>
> Dionisis (Dennis) Drakopoulos
> OMP MP SW Engineer/SyVe/Maintenance/SL
> MBB OMP MP R&D 14 GR
> ____________________________
>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack





More information about the Openstack mailing list