ceilometer-agent-compute did not catch exception for disk error
When get instance disk info, ceilometer-agent-compute did not catch exception if failed to get disk info caused by libvirt error. The fix was enable the exception handling for such case. Fix bug 1209509 Change-Id: Ibcdcf3a7490a60b654f09e8aba487200e0c1d8fa
This commit is contained in:
parent
32b135f1ea
commit
d13a055587
@ -78,13 +78,13 @@ class _Base(plugin.ComputePollster):
|
||||
|
||||
def get_samples(self, manager, cache, instance):
|
||||
instance_name = util.instance_name(instance)
|
||||
c_data = self._populate_cache(
|
||||
manager.inspector,
|
||||
cache,
|
||||
instance,
|
||||
instance_name,
|
||||
)
|
||||
try:
|
||||
c_data = self._populate_cache(
|
||||
manager.inspector,
|
||||
cache,
|
||||
instance,
|
||||
instance_name,
|
||||
)
|
||||
yield self._get_sample(instance, c_data)
|
||||
except Exception as err:
|
||||
LOG.warning('Ignoring instance %s: %s',
|
||||
|
Loading…
x
Reference in New Issue
Block a user