This change adds launched_at/started_at/deleted_at attribute to instance.
Rely on started_at/ended_at of Gnocchi to known when the operation have
done is not precise. Nova records the exact time of this event, just
copy them to Gnocchi.
Change-Id: If7870fd525d1ef58e4c2dbbbf93525bab3623b0f
When os-win was first introduced, a decorator which converts all os-win
exceptions to virt inspector exceptions has been added to the
HyperVInspector.
However, the decorator works as intended for methods that return values,
and not for the ones that yield (they return a generator).
This patch makes sure that exceptions are converted properly for yielding
methods as well.
Closes-Bug #1751088
Change-Id: I7d09e1860c6940758f0d0965fedfe4dd285e0cae
This commit puts a try/except AttributeError block around all the code
that is fetching attributes on the result of metadata_xml.find(...).
Change-Id: I41aa76cf9def3e8c4bceef0280d15c1fd7c48e3d
Closes-Bug: #1749960
Missing metadata in the libvirt domain xml for a nova instance would
cause ceilometer-compute to abort, leading to missing metrics for the
current and any subequent libvirt guests.
This commit puts a try/except AttributeError block around all the code
that is fetching attributes on the result of metadata_xml.find(...).
Change-Id: I8adc609cc21c86de2daba326d24b73a80d6eb61f
Closes-Bug: #1749960
- log that no pollsters loaded rather than throwing error
- ipmi are expected to be missing as note says, just debug logs
with details rather than massive traceback.
Closes-Bug: #1747536
Change-Id: Ib592c84dca017e94c66aad0170f0317e514fd747
msgpack-python got renamed to msgpack (see
https://pypi.python.org/pypi/msgpack-python/0.5.1) and msgpack-python
is deprecated now.
This is important because other requirements already switched to
msgpack (eg. oslo.serialization) and installing both in parallel is
not possible for Distros.
Change-Id: I603eadbc2a5e1705375050920d5f1631c51a5a02
Closes-Bug: #1743445
see: 24152a8f8f/nova/notifications/base.py (L434)
i'm not adding meter because cell_name doesn't exist in libvirt
metadata so libvirt_metadata polling will never find it.
Change-Id: I58e35261e23041f640b73fecc1e4082db067abe9
disk.* are just aggregates of disk.device.*. We
basically build the same think twice.
It's up to the backend (ie: Gnocchi) to aggregate them
if someone want the aggregate.
Change-Id: I612b575004f65665f8630f19f56c2fb3637448fd
nova sends *.update events in between create.start and create.end
events and it might not have a host name (which we need). in reality
to any changes to vcpus/memory/root_gb/ephemeral_gb metrics will
either send a *.resize notification and/or require a reboot which
sends it's own notification. because of that, just ignore
*.update notifications
Change-Id: I1f975c2d73adfc19126d70bdb1ab452e37b278fd
closes-bug: #1718290
only the attributes of a resource may change so there's no reason
to capture the entire resource in cache. this means we don't need
to cache if no attributes.
this also changes code so we only compute attribute_hash once.
Change-Id: I1363e0b0dc6e0957a7e933536b67737bd3496cbd
Once I delete resource manually by gnocchi client,
the resource won't be created by the ceilometer until 600s passed,
because the resource has cached in the memcached.
Change-Id: I601e39b4c4782276daba3f9d1b7be92f09efabfc
Closes-Bug: #1718570