Comment 4 for bug 1559758

Revision history for this message
raghunath (raghunath-d) wrote : Re: [Bug 1559758] Re: libvirt.yaml failed to load

Hi,

 The issue related to 1559758 is resolved by installing libvirt-python
,lxml,nova and neutron clients.

/opt/monasca-agent/bin/pip install libvirt-python
/opt/monasca-agent/bin/pip install lxml

But still monasca is unable to monitor the newly created vm.

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.
Already bug is raised on the above issue and it is in closed state,but it
is not working in the lates setup.
https://bugs.launchpad.net/monasca/+bug/1486688

With Best Regards
Raghunath Dudyala
Tata Consultancy Services Limited
Mailto: <email address hidden>
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
                        Business Solutions
                        Consulting
____________________________________________

From: Laszlo Hegedus <email address hidden>
To: <email address hidden>
Date: 05/03/2016 12:05 PM
Subject: [Bug 1559758] Re: libvirt.yaml failed to load
Sent by: <email address hidden>

Hi,

I managed to reproduce the issue in DevStack on current master.

2016-05-03 08:01:04 CEST | ERROR | collector |
monasca_agent.collector.checks.check.libvirt(check.py:248) | Check
'libvirt' instance #0 failed
Traceback (most recent call last):
  File
"/opt/monasca-agent/local/lib/python2.7/site-packages/monasca_agent/collector/checks/check.py",
line 246, in run
    self.check(instance)
  File
"/opt/monasca-agent/lib/python2.7/site-packages/monasca_agent/common/../collector/checks_d/libvirt.py",
line 428, in check
    for inst in insp._get_connection().listAllDomains():
AttributeError: 'Inspector' object has no attribute '_get_connection'

I'd like to look into this and try to find a solution if no one is
working on it right now.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1559758

Title:
  libvirt.yaml failed to load

Status in Monasca:
  New

Bug description:
  Followed the below link to install monasa using devstack.
  https://github.com/openstack/monasca-api/tree/master/devstack

  For vm stats copied libvirt.yam from

  /opt/stack/monasca-agent/conf.d/libvirt.yaml.example to
/etc/monasca/agent/conf.d/libvirt.yaml and restartednasca-agent.
  Restart is succeful but the libvirt plugin failed to load with the below
error (in collector.log):

  2016-03-20 13:44:47 EDT | WARNING | collector |
monasca_agent.collector.checks.check.libvirt(libvirt.py:228) | Metrics
cache missing or corrupt, rebuilding.
  2016-03-20 13:44:47 EDT | ERROR | collector |
monasca_agent.collector.checks.check.libvirt(check.py:565) | Check
'libvirt' instance #0 failed
  Traceback (most recent call last):
    File
"/opt/monasca-agent/local/lib/python2.7/site-packages/monasca_agent/collector/checks/check.py",
line 556, in run
      self.check(instance)
    File
"/opt/monasca-agent/lib/python2.7/site-packages/monasca_agent/common/../collector/checks_d/libvirt.py",
line 425, in check
      for inst in insp._get_connection().listAllDomains():
  AttributeError: 'Inspector' object has no attribute '_get_connection'
  2016-03-20 13:45:02 EDT | WARNING | collector |
monasca_agent.collector.checks.check.libvirt(libvirt.py:228) | Metrics
cache missing or corrupt, rebuilding.
  2016-03-20 13:45:02 EDT | ERROR | collector |
monasca_agent.collector.checks.check.libvirt(check.py:565) | Check
'libvirt' instance #0 failed
  Traceback (most recent call last):
    File
"/opt/monasca-agent/local/lib/python2.7/site-packages/monasca_agent/collector/checks/check.py",
line 556, in run
      self.check(instance)
    File
"/opt/monasca-agent/lib/python2.7/site-packages/monasca_agent/common/../collector/checks_d/libvirt.py",
line 425, in check
      for inst in insp._get_connection().listAllDomains():
  AttributeError: 'Inspector' object has no attribute '_get_connection'

To manage notifications about this bug go to:
https://bugs.launchpad.net/monasca/+bug/1559758/+subscriptions

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you