Libvirt XML generation config APIs

Registered by Daniel Berrange on 2012-03-21

This replaces the current Cheetah template approach for generating XML documents, with a formal configuration object model & API which is capable of serializing itself to XML & deserializing itself from XML. The result will ensure correct XML escaping, centralize the logic for generating XML improving maintainence and mean no libvirt driver code needs to know about the XML documents directly.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Low
Drafter:
Daniel Berrange
Direction:
Approved
Assignee:
Daniel Berrange
Definition:
Approved
Series goal:
Accepted for folsom
Implementation:
Implemented
Milestone target:
milestone icon 2012.2
Started by
Vish Ishaya on 2012-05-08
Completed by
Vish Ishaya on 2012-05-08

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/libvirt-xml-config-apis,n,z

Addressed by: https://review.openstack.org/5621
    Convert libvirt connection class to use config APIs for guests

Addressed by: https://review.openstack.org/5620
    Move NIC devices back after disk devices

Addressed by: https://review.openstack.org/5623
    Convert libvirt connection class to use config APIs for CPU comparisons

Addressed by: https://review.openstack.org/5622
    Introduce a class for storing libvirt CPU configuration

Addressed by: https://review.openstack.org/5617
    Convert libvirt connection class to use config APIs for input devices

Addressed by: https://review.openstack.org/5616
    Convert libvirt connection class to use config APIs for serial/console devices

Addressed by: https://review.openstack.org/5619
    Convert libvirt connection class to use config APIs for disk devices

Addressed by: https://review.openstack.org/5618
    Convert libvirt connection class to use config APIs for filesystem devices

Addressed by: https://review.openstack.org/5625
    Add a test case for generation of libvirt guest config

Addressed by: https://review.openstack.org/5624
    Introduce a class for storing libvirt snapshot configuration

Addressed by: https://review.openstack.org/5612
    Delete the test_preparing_xml_info libvirt test

Addressed by: https://review.openstack.org/5613
    Convert libvirt volume classes over to use config API

Addressed by: https://review.openstack.org/5614
    Convert libvirt vif classes over to use config API

Addressed by: https://review.openstack.org/5615
    Convert libvirt connection class to use config APIs for graphics

Addressed by: https://review.openstack.org/5610
    Introduce a set of classes for storing libvirt guest configuration

QA:
-----
Internal - redoes XML-libvirt interaction
Functional Test impact - None
Let QA know if it otherwise.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.