Commit Graph

34 Commits

Author SHA1 Message Date
Takashi Kajinami 99bdd78d95 Remove Xen support
This change removes the Xen support which was deprecared during
the previous cycle[1].

[1] fd0a561bea

Change-Id: If1675468095cbc1b9c065edb6b086e7f4afa2f3e
2021-05-05 09:18:31 +00:00
Takashi Kajinami fd0a561bea Deprecate support for Xen
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
2021-02-19 20:45:53 +09:00
Arnaud Morin cc8e109065 Implement some new meters for vnic delta
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>
2020-10-29 13:36:59 +00:00
jing.liuqing a3c5e9b7c1 Do not check iterable objects before for loop
get_VIFs, get_VBDs will return set

For more details see the XenAPI docs:
https://docs.citrix.com/content/dam/docs/en-us/xenserver/xenserver-62/xenenterpriseapi.pdf


Change-Id: Ic3f0e2eb18d5d6408c60979383465575e0a99d05
2018-01-02 15:22:29 +00:00
Huan Xie f2279a6222 XenAPI: use os-xenapi for XenAPI driver
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
2017-05-10 18:19:59 -07:00
Mehdi Abaakouk f21a4bcb26 compute: remove default duration value
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
2017-03-31 10:33:00 +02:00
Mehdi Abaakouk 1e473dd45d compute disks: use the generic compute pollster
The disks code is almost identical to the cpu/mem
code. So share it.

Change-Id: Ic7a272bd433577995bcd0db9be859ad6bd8e4ffa
2017-03-31 10:25:16 +02:00
Mehdi Abaakouk 3f9c1a5d43 compute vnics: use the generic compute pollster
The vnics code is almost identical to the cpu/mem
code. So share it.

Change-Id: I5f7b6d1dc6e0641ffee2c252750f3e742950a5af
2017-03-31 10:24:24 +02:00
Mehdi Abaakouk 3304cf2642 compute: create one pollster to rule them all
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
2017-03-21 13:45:29 +01:00
qin.jiang d0c23a51fd Trivial: remove white space of exception message
Change-Id: I8d3fa799a2a18f9f469d808bfb9497a6185a6ab2
2017-01-17 10:46:44 +08:00
Jenkins 5275ae1b3f Merge "XenAPI: Not support two key network meters" 2017-01-04 10:04:06 +00:00
Mehdi Abaakouk 1842e19487 register ceilometer options at runtime
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
2016-11-24 15:29:46 +01:00
Jianghua Wang 0c9a0cb430 XenAPI: Not support two key network meters
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
2016-11-18 18:47:35 +08:00
Mehdi Abaakouk 14925d8055 inspectors: stop using global conf
Change-Id: I9cb8b931f0ffba68f1115189c3b532298bfefabd
2016-11-07 11:41:19 +01:00
Jianghua Wang 37878f6084 XenAPI: polling meters are always 0
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
2016-09-22 13:18:23 +08:00
Jianghua Wang d38c580e0a XenAPI: correct polling on memory_usage
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
2016-09-07 10:36:03 +08:00
Jianghua Wang 1374cf7d22 XenAPI: failed to poll cpu_util
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
2016-08-25 23:05:31 +08:00
Qiaowei Ren f13b1accfb xenapi: support the session when xenserver is slave
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
2016-03-07 14:22:42 +08:00
Julien Danjou 867ad8d6ab Remove eventlet usage
This removes entirely our usage of eventlet and its ugly monkey-patching
in favor of a threaded approach.

Implements: remove-eventlet
Change-Id: Ib5f623e2d1ff9e9254601ad091bf5b53ab32000d
2015-11-24 13:44:58 +01:00
Qiaowei Ren 6ad9203d9b xenapi: support the session to "unix://local"
When url is "unix://local", xenapi inspector should use specific
api to create the session to xenapi.

Change-Id: I1531c4ab75be7e1d462093dff1ddf0ca4ae4808e
Closes-Bug: 1484764
2015-08-20 09:11:35 +08:00
Victor Stinner 46f4b8ae7e Python 3: replace long with int
* 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
2015-05-15 22:45:39 +02:00
Julien Danjou a5f8d66d6e Upgrade to hacking 0.10
Change-Id: Ia567c3aeb7f8516d0834dc8e4c3852e43a687043
2015-01-23 17:43:04 +01:00
Dina Belova fc7e781344 Use oslo_config instead of deprecated oslo.config
Change-Id: I85d5c8d3d9f00f86fd14500be0da1289f5672614
2015-01-15 12:51:18 +04:00
ZhiQiang Fan c7f12a4224 Use oslo_utils instead of deprecated oslo.utils
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
2015-01-10 21:04:23 +08:00
ZhiQiang Fan 2757977c33 Remove inspect_instances method from virt
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
2014-12-29 16:11:20 +08:00
ZhiQiang Fan 28a253104a Port to graduated library oslo.i18n
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
2014-12-09 01:11:24 +08:00
gordon chung b98a225449 switch to oslo-config-generator
the config generator has been moved to oslo.config. this patch
switches to use oslo.config and removes related deprecated code.

Change-Id: I9a22336142913d65da6299ea4092e170c9b2ff33
2014-10-12 16:05:10 -04:00
Jenkins 01d70a2c8b Merge "Fix help strings" 2014-10-07 04:26:33 +00:00
Andreas Jaeger fbf14a42bf Fix help strings
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
2014-09-02 19:59:16 +02:00
Qiaowei Ren edee5d4275 XenAPI support: Disk rates
Implemented inspect_disk_rates() to inspect the disk statistics as rates
for an instance.

Change-Id: I0220e612b156a967745ff281ce09329fa0d15a12
Implements: blueprint xenapi-support
2014-08-27 09:19:08 +00:00
Qiaowei Ren 83e216fe0d XenAPI support: Changes for networking metrics
Implemented inspect_vnic_rates() to inspect the vNIC rate statistics
for an instance.

Change-Id: Ic8fb59904f5ff8fc05819b9414b7730b8746bfad
Implements: blueprint xenapi-support
2014-08-27 09:18:53 +00:00
Qiaowei Ren cca1987ab2 XenAPI support: Memory Usage
Implemented inspect_memory_usage() to inspect the memory usage statistics
for an instance.

Change-Id: I0a8549e9e80ffeab18acc3b236c8fdc63d970783
Implements: blueprint xenapi-support
2014-08-27 17:14:47 +08:00
Qiaowei Ren 5d857a2cad XenAPI support: Changes for cpu_util
Implemented inspect_cpu_util() to inspect the CPU utilization (%)
for an instance.

Change-Id: I0cd1c926f074be632d9c5ce071dfd4d0d3ba78a7
Implements: blueprint xenapi-support
2014-08-27 05:39:56 +00:00
Qiaowei Ren 2fc9301e15 XenAPI support: List the instances
1) Added XenAPI inspector.
2) Implemented inspect_instances() to list the instances on the XenServer host.

Change-Id: I1f6e33696770ec2f4e5cbb2e54e29991978aed32
Implements: blueprint xenapi-support
2014-08-27 11:02:08 +08:00