~tr3buchet/nova/lock

« back to all changes in this revision

Viewing changes to nova/virt/xenapi/vm_utils.py

  • Committer: Vishvananda Ishaya
  • Date: 2010-12-22 20:59:53 UTC
  • mto: This revision was merged to the branch mainline in revision 482.
  • Revision ID: vishvananda@gmail.com-20101222205953-j2j5t0qjwlcd0t2s
merge trunk and upgrade to cheetah templating

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    """
48
48
    The class that wraps the helper methods together.
49
49
    """
 
50
 
50
51
    def __init__(self):
51
52
        return
52
53
 
228
229
        try:
229
230
            host = session.get_xenapi_host()
230
231
            host_ip = session.get_xenapi().host.get_record(host)["address"]
231
 
            metrics = session.get_xenapi().VM_guest_metrics.get_record(
232
 
                record["guest_metrics"])
233
 
            diags = {
234
 
                "Kernel": metrics["os_version"]["uname"],
235
 
                "Distro": metrics["os_version"]["name"]}
 
232
            diags = {}
236
233
            xml = get_rrd(host_ip, record["uuid"])
237
234
            if xml:
238
235
                rrd = minidom.parseString(xml)