newly created VM does not get libvirt metrics

Bug #1486688 reported by Yan Ning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
Fix Committed
Undecided
Unassigned

Bug Description

Here is the info in monasca agent log on the compute node on which the VM is running.

2015-08-18 19:39:32 UTC | ERROR | collector | monasca_agent.collector.checks.check.libvirt(libvirt.py:186) | instance-000251fb is not known to nova after instance cache update -- skipping this ghost VM.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to monasca-agent (master)

Reviewed: https://review.openstack.org/214736
Committed: https://git.openstack.org/cgit/stackforge/monasca-agent/commit/?id=2fbc40b918956747f36b24fef6e70bee5f884532
Submitter: Jenkins
Branch: master

commit 2fbc40b918956747f36b24fef6e70bee5f884532
Author: bklei <email address hidden>
Date: Wed Aug 19 12:00:58 2015 -0600

    Fix libvirt plugin bug for newly created VMs

    Once the instance cache file is built, we can never refresh the
    cache because we get a TypeError trying to build the dimensions
    and mis-diagnose the VM as a ghost VM. Simple fix is to move
    the update cache call above where we look for the instance name
    in the cache.

    Change-Id: Iddc229a4e0f150e838a82ace36bc1ba92be17a0e
    Closes-Bug: #1486688

Changed in monasca:
status: New → Fix Committed
Revision history for this message
raghunath (raghunath-d) wrote :

Hi ,

In the latsest monasca code this fix is present.
I have a installation with this fix.But still I can see this errorere

Here is the log:

2016-04-19 00:13:28 MDT | ERROR | collector | monasca_agent.collector.checks.check.libvirt(libvirt.py:451) | instance-00000002 is not known to nova after instance cache update -- skipping this ghost VM.

Code:
insp = inspector.get_hypervisor_inspector()
        for inst in insp._get_connection().listAllDomains():
            # Verify that this instance exists in the cache. Add if necessary.
            inst_name = inst.name()
            if inst_name not in instance_cache:
                instance_cache = self._update_instance_cache()

Could you please revisit this issue once.

Regards
Raghu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.