Commit Graph

76 Commits

Author SHA1 Message Date
zhurong bc9ef4a2a4 Cleanup py27 support
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
2020-04-11 00:57:21 -07:00
OpenStack Proposal Bot 0e5391510b Updated from global requirements
Change-Id: I9ca5562907b34d9b78fd4c0ab72bcbdadf610f4b
2015-09-17 16:37:39 +00:00
OpenStack Proposal Bot 08237a7699 Updated from global requirements
Change-Id: I697330940cd49bba859c193c2ebdff9261c61fe8
2015-07-18 16:03:42 +00:00
Robert Collins a1e28bd54a Remove test-requirements-py3.txt.
This will unblock requirements merges.

Change-Id: I318750ec9fe471d3df57ad2f5785026dae451242
2015-06-30 23:30:16 +12:00
OpenStack Proposal Bot bb4571adf2 Updated from global requirements
Change-Id: I6245d61f56195abfa14e88dad4a2dac9897ce2ae
2015-06-16 19:14:41 +00:00
OpenStack Proposal Bot f9af92a654 Updated from global requirements
Change-Id: I7edbbb540599bbf51e07cffab1ebb058d88449ff
2014-05-20 12:59:42 -04:00
Julien Danjou 184e576efa Update requirements
Change-Id: If103fa3d8479956878258be6b7d32f1f63cdfd8a
2013-09-19 11:42:10 +02:00
Julien Danjou d079e8ec6f Updated from global requirements
Change-Id: I2ce6d9920f25ce41cb0ef569534a25beb9f363aa
2013-08-12 10:23:04 +02:00
Monty Taylor b8bbe8c187 Switch to pbr.
Use pbr instead of openstack.common.setup|version per Havana Summit.

Fixes bug 1179007

Change-Id: Ife7194cfd3f4444d7006fdf90b79be77737abd0a
2013-05-11 12:44:54 -04:00
Julien Danjou 43d728c631 Move meter signature computing into meter_publish
Blueprint: oslo-multi-publisher

Change-Id: I7e758dfb56604fb5a92690ac9719b129837159cf
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-05-06 14:02:15 +02:00
Lianhao Lu 4cea39a7a4 Adpated to nova's gettext changes.
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
2013-04-02 13:43:50 +08:00
Julien Danjou a284960c37 Remove impl_test
Change-Id: If939bbaebf35a326076b6263f70248ff13975b45
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-03-27 15:13:31 +01:00
Thierry Carrez 8ad88983fc Open havana development, bump to 2013.2
Bump version to 2013.2 to start the havana development branch.

Change-Id: Ia31ddd338f144c858679cf46dbde01d36ef1cdc2
2013-03-26 15:50:42 +01:00
Sandy Walsh 6a7633c62a Make HACKING compliant
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
2013-03-07 19:02:01 -04:00
Jenkins b912653a5d Merge "Exclude tests directory from installation." 2013-03-06 03:42:14 +00:00
Jenkins 37bc0a7915 Merge "HBase storage driver, initial version." 2013-03-05 10:38:38 +00:00
Stas Maksimov 6f7525755f HBase storage driver, initial version.
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
2013-03-05 10:10:35 +00:00
Lianhao Lu b9d9539a48 Exclude tests directory from installation.
This fixed bug #1146340 by excluding tests packages.

Change-Id: Id892c0a2e521a199a9ac42ed8d3729e17fffb5bd
2013-03-05 16:54:47 +08:00
Chuck Short 34cb09d9b2 Exclude tests when installing ceilometer
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
2013-03-04 11:40:42 -06:00
Doug Hellmann 7d8bd50d08 Decouple the nova notifier from ceilometer code
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>
2013-02-26 14:22:27 -05:00
Jenkins e276209c95 Merge "transformer: add acculumator transformer" 2013-02-18 13:41:24 +00:00
Monty Taylor f6ae203c98 Update to latest oslo-version
In support of tag-based versioning, update to latest oslo-version code.

Change-Id: I11e85bbfb67e42628cbb13ba5294047960600eae
2013-02-16 23:46:00 -08:00
Julien Danjou b4e6fa07d1 transformer: add acculumator transformer
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>
2013-02-12 13:12:18 +01:00
Yunhong, Jiang 3340461656 Update meter publish with pipeline framework
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>
2013-02-07 13:05:11 +08:00
Julien Danjou c4cb46a4bc setup: fix typo in package data
Change-Id: Ib0ffd6062e422eaf3685682fe69fbcbe382ec440
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-02-04 16:25:10 +01:00
Monty Taylor f85bbcedfa Remove setuptools_git from setup_requires.
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
2013-02-04 11:26:35 +11:00
Julien Danjou 4c5fc2204a Update openstack.common
Change-Id: I952bc668ce10d05944eb0d2b06c8eff917c22af8
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-22 11:09:24 +01:00
Jenkins b09255cb6b Merge "Remove the ImageSizePollster" 2013-01-18 13:24:44 +00:00
Yunhong, Jiang a801bdfb17 Remove the ImageSizePollster
We can use generator to achieve this purpose simply.

Change-Id: Id05c33fb2aa89fd02035c717417d0181e975c3ec
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
2013-01-16 22:46:55 +08:00
François Rossigneux 49c4fb39f8 Add Kwapi pollster (energy monitoring).
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
2013-01-16 10:33:28 +00:00
Julien Danjou 51c8a8e55c Update pep8 to 1.3.3
This is needed to update openstack.common

Change-Id: I8410f978f38b3893b71239f97f785086ca5faffe
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-15 14:39:29 +01:00
Julien Danjou 6200b9d1ed Add support for Swift incoming/outgoing trafic metering
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>
2013-01-02 22:10:16 +01:00
Eoghan Glynn 40a3874c38 Virt inspector directly layered over hypervisor API
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
2012-12-06 12:30:03 +00:00
Shane Wang 0b8abf6891 Add sql db option to devstack for ceilometer
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>
2012-12-05 13:45:26 +08:00
Doug Hellmann 1767d89687 Add test storage driver
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>
2012-12-03 13:59:41 -05:00
guillaume pernot 6e38fbfa3f Implement object store metering
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
2012-11-30 11:07:30 +01:00
Doug Hellmann 12184dc5c5 Use openstack versioning
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>
2012-11-08 16:13:44 -05:00
Julien Danjou 22cf0dd36e Add basic text/html renderer
Change-Id: I929d3fe0aed37bd3722f6a7dc96210a03668c87f
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-10-30 16:54:47 +01:00
Julien Danjou 55d52bab01 network: floating IP account in Quantum
Change-Id: I0e4a8245bd524dd2073f52f7a808e9456816c4df
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-10-30 10:41:44 +01:00
Julien Danjou 52eed63c65 network: emit router meter
This fixes bug #1070009

Change-Id: Ica5611d00984c8ca25e382bb8b54fbe9c87f5282
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-10-25 12:15:45 +02:00
Doug Hellmann 4d648d7380 Add OpenStack trove classifier for PyPI
Add "Environment :: OpenStack" classifier for the PyPI
catalog.

Change-Id: I1ebbc684853203abba72ef72d63999be58870f3e
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-18 06:13:51 -07:00
Doug Hellmann 6bc3a13d93 bump version number to 0.2
Change-Id: I9b812e4b150bacc05d354e16e3089f70eae152d6
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-12 10:11:55 -04:00
Doug Hellmann 3557ac32d5 Update metadata for PyPI registration
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>
2012-10-12 06:49:16 -04:00
Nicolas Barcet (nijaba) ac23afa939 Counter renaming
Add naming rules to doc

Rename root_disk_size -> disk.root.size

Rename ephemeral_disk_size -> disk.ephemeral.size

Rename floating_ip -> ip.floating

Rename volume_size -> volume.size

Change-Id: I4f99dd12efeea3acffbb79b551246b9e506d82a4
2012-10-11 19:10:00 +02:00
Julien Danjou 7873fd8bfd image: add update event, fix ImageServe owner
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>
2012-10-09 16:51:32 +02:00
Doug Hellmann e8c4cc2712 Set version 0.1
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>
2012-10-07 16:55:45 -04:00
Julien Danjou 8ae8584f99 Move instance counter into its own pollster
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>
2012-10-05 13:46:42 +02:00
Doug Hellmann a84edc22be Correct requirements filename
The pip requirements file does not have an extension.

Change-Id: Id4efcbd24eb057c2811dd4c2390dd65f1bd8a1c9
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-02 06:37:45 -04:00
Julien Danjou 7c722937c1 network: listen for Quantum notifications
This fixes #1021775

Change-Id: I62d6ea6522afe15ffde731b0e8d8a37e4596fd70
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-10-01 16:01:05 +02:00
Doug Hellmann cafeb43f28 Update packaging files
- 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>
2012-09-28 17:43:21 -04:00