This change removes the Xen support which was deprecared during
the previous cycle[1].
[1] fd0a561bea
Change-Id: If1675468095cbc1b9c065edb6b086e7f4afa2f3e
Since Nova removed its XenAPI driver[1] and Xen support using libvirt,
we no longer expect usage of Xen in OpenStack deployments.
[1] adb28f503ca8c38bd7224ec0a335f730557d7ca9
[1] 3a390c2c8238409c00acc08fad725d46fa02c0ad
Change-Id: Id79799541dfc8ec17d3ea1482c6b8ca4b58f7a92
Add two new meters called network.incoming.bytes.delta and
network.outgoing.bytes.delta that give the delta Bytes that were send or
received by an vNic.
Change-Id: Icf45a8d185cdb4a7b00a83586c98f998cbc0e928
Signed-off-by: Arnaud Morin <arnaud.morin@gmail.com>
os-xenapi contains all XenServer dom0 plugins and provide utility
tools for communicating to XenServer dom0 plugins, currently both
nova and neutron projects are using os-xenapi. This patch is to
change ceilometer to use os-xenapi too.
Change-Id: I14819fd57305edb0f4337af88e56ed6b980d7da8
The default duration value is used only in test.
We can miss bug when test have a small diff with runtime.
So this change removes the default duration at runtime and fixes the
tests.
Change-Id: I2637facbd67fb81b995e9c9a7e4c092acfa06fcb
Currently each compute pollster polls the backend for each
metric of each instance while almost all backends can retrieve all stats
at once (all except xenapi).
This change reworks the compute pollsters to make one inspector call to
retrieve data for an instance.
The cache structure is simplified a lot by removing the useless intermediate
object.
We now cache the cpu stats, since putting the polling of an instance
twice in polling.yaml is a non sense. We don't care if the second poll
have a wrong timestamp due to the caching.
Related-Bug: 1670948
Change-Id: Id90f701cef261e165b63f0ba92a35cecfed659e7
This remove pollsters option from configfile sample
due to a duplicate option registration. This will
be fixed later.
The exchange_control group in the config sample doesn't exit
in reality exchange are in DEFAULT group.
This removes usage of cfg.CONF everywhere left.
This adds all missing OPTS in sample file.
Change-Id: I48c11ee7e1aae65847958b98532b3bdb48a3ceb5
Some deployments depend on the meters of network.*.bytes to
do health check.But xenapi currently not support those meters.
So it will block the deployment(fuel health check).
This commit is to add two network meters to support the
deployment:
network.incoming.bytes
network.outgoing.bytes
Change-Id: I3d0fa4e446c9a746b2da34c3b4d8cb31a315ce46
Closes-Bug: #1626385
The following 4 meters are always 0, which is wrong.
network.incoming.bytes.rate
network.outgoing.bytes.rate
network.incoming.packets.rate
network.outgoing.packets.rate
The fix is to fetch data via RRD.
Change-Id: I6547999f865136d64b1a7abb22469d8fb5766b8a
Closes-Bug: #1625925
Currently the memory_usage polled is the allocated memory size;
but it should be "Volume of RAM used by the instance from the amount
of its allocated memory" per the meter definition.
Change-Id: I5b1499a98d4e9873e5ae98c3b2cd430ac3c733eb
VM_metrics is obsoleted, which will fail the polling on meter of
cpu_util. This commit will fix it with other APIs.
Change-Id: I3b87f5a5780e21366549f6daae7d8afdb1608f27
Related-bug: 1614874
current xenapi inspector is only support the session to master
xenserver, and when xenserver is slave mode the session could
not be created successfully.
Change-Id: Icbcd497f0c5e50984d24f46f8db519f1eb2e0296
Closes-Bug: 1484768
This removes entirely our usage of eventlet and its ugly monkey-patching
in favor of a threaded approach.
Implements: remove-eventlet
Change-Id: Ib5f623e2d1ff9e9254601ad091bf5b53ab32000d
When url is "unix://local", xenapi inspector should use specific
api to create the session to xenapi.
Change-Id: I1531c4ab75be7e1d462093dff1ddf0ca4ae4808e
Closes-Bug: 1484764
* Replace 123L with 123: "123L" is a syntax error on Python 3
* Replace long() with int()
* Replace (int, long) with six.integer_types
* Make long type conditional in META_TYPE_MAP
(ceilometer/storage/sqlalchemy/utils.py)
Change-Id: Iccd628222b63caf4ff9bbab17f973b7da1f370bb
oslo.utils 1.2.0 has changed its namespace from oslo.utils to
oslo_utils, the old import style of oslo.utils still can work but
it is deprecated.
Change-Id: I8832259624f15a8040f6de35136db7dd6d217f02
compute.virt.inspector:Inspector.inspect_instances has been introduced
on Dec 4, 2012, by commit 40a3874c38,
but not used at that time[1], and even for current code[2]. This patch
removes those code and corresponding test code.
1. https://launchpad.net/ceilometer/grizzly/grizzly-2/+download/ceilometer-2013.1%7Eg2.tar.gz
2. $ grep inspect_instances ceilometer -r | grep -v 'pyc matches' | grep -v 'ceilometer/tests/'
ceilometer/compute/virt/inspector.py:150: def inspect_instances(self):
ceilometer/compute/virt/hyperv/inspector.py:36: def inspect_instances(self):
ceilometer/compute/virt/libvirt/inspector.py:120: def inspect_instances(self):
ceilometer/compute/virt/xenapi/inspector.py:114: def inspect_instances(self):
Change-Id: I37c7b63e756fb9f92a4031b5c324702dd85b9fff
Closes-Bug: #1397485
log_handler is not used any more by Ceilometer project, but still
listed on openstack-common.conf, this patch fixes it.
Note: oslo-incubator.timeutils is not used by oslo-incubator modules
any more after we do code sync, this patch removes it too.
gettextutils has graduated from oslo-incubator, we should port our
project to use oslo.i18n. To use oslo.i18n conveniently, this patch
introduces a helper module ceilometer.i18n, which is stolen from Nova.
Note: gettextutils.install is deprecated, see:
http://docs.openstack.org/developer/oslo.i18n/usage.html#creating-an-integration-module
Note: _ is removed from builtins in tox.ini since we're not using
install any more.
Change-Id: I829f9faf97c825422b395bf9c01ae5c17c86d9fb
Closes-Bug: #1389546
the config generator has been moved to oslo.config. this patch
switches to use oslo.config and removes related deprecated code.
Change-Id: I9a22336142913d65da6299ea4092e170c9b2ff33
For consistency, add "." at end of help strings, fix grammar and
capitalization. Remove "(float)" from heartbeat since the description
will include the type.
Change-Id: I0d6f4203b2b6de1dc22a156aa67526a067e48cbb
Implemented inspect_disk_rates() to inspect the disk statistics as rates
for an instance.
Change-Id: I0220e612b156a967745ff281ce09329fa0d15a12
Implements: blueprint xenapi-support
Implemented inspect_vnic_rates() to inspect the vNIC rate statistics
for an instance.
Change-Id: Ic8fb59904f5ff8fc05819b9414b7730b8746bfad
Implements: blueprint xenapi-support
Implemented inspect_memory_usage() to inspect the memory usage statistics
for an instance.
Change-Id: I0a8549e9e80ffeab18acc3b236c8fdc63d970783
Implements: blueprint xenapi-support
Implemented inspect_cpu_util() to inspect the CPU utilization (%)
for an instance.
Change-Id: I0cd1c926f074be632d9c5ce071dfd4d0d3ba78a7
Implements: blueprint xenapi-support
1) Added XenAPI inspector.
2) Implemented inspect_instances() to list the instances on the XenServer host.
Change-Id: I1f6e33696770ec2f4e5cbb2e54e29991978aed32
Implements: blueprint xenapi-support