Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg:
* Wheel is not needed for python 3 only repo
* Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
Change-Id: I93294c42a967ca19b9b04ead9cd636b52f1cc038
Resolve the failure of nova_notifier unit test due to the gettext
changes in nova.
This is part of the blueprint gettext-i18n-issue.
Change-Id: Ie3fcbbe9f3c902c2c40c0d3c22bb2f999bb04006
Make all the source and tests HACKING compliant and
enable tox -e hacking on by default.
Relative directory checks not enabled (yet)
Change-Id: I8803f67c49b4d16caebe76ae690092ae5c9a6dd3
This is a new storage driver that supports storing of Ceilometer
data in an HBase backend. This version does not have metaquery
support yet.
Implements: blueprint hbase-storage-backend
Change-Id: Id3e7ec01434b1be30cce4f91b39461fc389a000f
Dont include the tests directory when installing
ceilometer as they might conflict with other
poorly installed packages on the users systems.
Fixes LP: #1102110
Signed-off-by Chuck Short <chuck.short@canonical.com>
Change-Id: Ia8b0477af72b30dcf54b4751a51bbb460a7a90f4
The move to oslo.config introduced a conflict in the nova notifier
because both nova and ceilometer have copies of the
openstack.common.rpc library and define an option for the AMQP
exchange name for the project. This changeset decouples the notifier
plugin in ceilometer from most of the ceilometer code, to remove that
conflict.
The nova notifier is rewritten to emit a new notification message with
event type `compute.instance.delete.samples` instead of making the old
RPC calls directly to the ceilometer collector, and a notification
listener plugin is provided to convert those messages to sample data.
The notifier implementations are split between the one that worked
in folsom and the one that works in grizzly to maintain backwards
compatibility.
get_hypervisor_inspector() is moved to a location where it can be
imported both by the compute agent manager and the notifier
plugin. The definition of `disabled_compute_pollsters` option is also
moved for the same reason.
The tox configuration is changed to run the nova notifier tests
separately from the other tests, since nose cannot import nova and
ceilometer code in the same process.
bug 1130952
Change-Id: I39ba4564c9c14f09dbdd768d7a83f6940e3942ad
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This adds a transformer accumulating counters until a threshold, and then
flushing them out.
This implements a solution to blueprint swift-batched-requests
Change-Id: Ic1f36138d8ee1e5705f2285987763fbff9de0184
Signed-off-by: Julien Danjou <julien@danjou.info>
With multiple publisher support, change meter publish
to utilize this framework.
for bp multi-publisher
Change-Id: I6c2cba15ebadd3dabfb99296fab060cae23d3cf7
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
This is a mistake for the case where someone is using setup.py from a tarball.
We need it installed for sdist making only, which is why it's in test-requires.
Change-Id: Ib79cbe3e638c0772325872d4bb30be26c7b91391
We can use generator to achieve this purpose simply.
Change-Id: Id05c33fb2aa89fd02035c717417d0181e975c3ec
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Given that my blueprint is not publicly available, I summarize it here.
Kwapi (kilowatt API) contains the following modules:
- Drivers: receive values from wattmeters and forward them on a bus (ZeroMQ).
Wattmeter drivers are specific to each wattmeters (Wattsup, OmegaWatt, etc).
- Plugins: listen the bus and process received data.
Currently, there is two plugins: the ceilometer plugin (REST API) and a visualization plugin (build graphs with RRDtool).
Kwapi is part of the XLcloud project (HPC cloud).
http://www.xlcloud.org
Repository:
https://github.com/stackforge/kwapi
Change-Id: Ieaaa1db9c8c569b6ee9f0815e03879f8b3f3e282
This adds a middleware for Swift that meters incoming and outgoing bytes.
This is part of blueprint pollster-swift.
Change-Id: I94f330ee4cf5df8a743c77fcfae9efd505568060
Signed-off-by: Julien Danjou <julien@danjou.info>
Addresses BP nova-independent-virt
Add the concept of a pluggable virt inspector that allows
polling of the hypervisor layer without relying on any
nova internals.
Note that the test-requires dependency on the nova master
tarball remains in place for the moment, as it's required
by the nova notifier tests.
Also we must leave the dependency on the libvirt-python
RPM or python-libvirt Debian package to the distros which
end up packaging ceilometer.
Change-Id: I20700320dd7e3196507173c780ab598b479e4021
Ceilometer uses mongodb as the default storage.
This is one of the patches to support sql db option in devstack for
ceilometer, so users can easily choose and set up sql db environment
for ceilometer with 'stack.sh' by explicitly specifying the following
statement in localrc:
use_database mysql
where mysql is taken as an example.
If users remove the above statement, mongodb is used and set up
by default.
This patch is for devstack to call dbsync to create ceilometer tables.
Change-Id: Idc9bffd0f389fa9760946b412c39210f60042d90
Signed-off-by: Shane Wang <shane.wang@intel.com>
Create a "test" storage driver to be used by the
API test code.
blueprint api-server-pecan-wsme
Change-Id: I99c7c82afa17ec5a9f36fd20d47b16011e64ffa9
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Implements these pollsters for swift :
- storage.objects (per-tenant number of objects)
- storage.objects.size (per-tenant total size of stored objects)
- storage.objects.containers (per-tenant number of containers)
Implements: blueprint pollster-swift
Fixes: bug #1004450
Change-Id: Ie27abd0b5803043f06899f14b394f2a7ab691bca
1. Add the version module from openstack.common.
2. Create a ceilometer/version.py to set up the
version info.
3. Update setup.py from openstack.common.
4. Update documentation build to use the version module
directly instead of running setup.py to get the version.
5. Update setup.py to use the new version module.
Change-Id: I9d8be62b8ece75090bf335d27adb59a46e3d6263
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Add trove classifiers and a download URL to setup.py
to complete the data needed to register the project
on PyPI.
Change-Id: I3cbe50dfd2002e5946022507a18d6e36e34b46e0
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This adds handling of image.update events and create 2 counters for it:
Image, counting images, and ImageSize, counting images size.
This fixes bug #1056981.
This also fixes ImageServe owner which was set wrongly to user rather than
project, and fixes counter type for ImageServe and ImageDownload to delta.
Change-Id: I2512cdfc37f17c425f49a5e5d6d2e25ccb59a3ca
Signed-off-by: Julien Danjou <julien@danjou.info>
Update the version number in setup.py to the first release number
in preparation for the release.
Change-Id: Ic16da1041ed92fb2a7ed5b30f5f5f80adc28bd78
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
There's no need to emit a counter in a specific pollster doing something
else like CPU polling.
Change-Id: If2adc861be4fec3b414d9688cf36219f6a7b04e8
Signed-off-by: Julien Danjou <julien@danjou.info>
The pip requirements file does not have an extension.
Change-Id: Id4efcbd24eb057c2811dd4c2390dd65f1bd8a1c9
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
- Update the openstack.common.setup module
- Update our openstack-common.conf to include setup.py
in future updates
- Use the common setup command class so the sdist command
generates an AUTHORS file and ChangeLog
Change-Id: I4469f0feaea5bb67022c6077bbea43110384f31b
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>