Commit Graph

267 Commits

Author SHA1 Message Date
Matthias Runge 92be85c4ca Remove leftovers of retirement
Change-Id: I5acab95813ac3d0604f73c377bf111f423a008bc
2021-07-09 15:21:47 +02:00
Zuul 053b147b48 Merge "[goal] Deprecate the JSON formatted policy file" 2021-05-17 11:10:59 +00:00
likui 4b03b9cdb7 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of
dash-separated options in 'setup.cfg' will not be supported
in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages
like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I446f303e37007f0d3f2ee73a6f87e3a7766b8e56
2021-05-13 10:01:26 +08:00
likui 6fb3d4cfe1 Remove babel.cfg
Remove babel.cfg and the translation bits from setup.cfg, those are not
needed anymore.

Change-Id: I85472dd910e36a4b765e95c59702c30f1965cf2a
2021-05-11 16:26:19 +08:00
Ghanshyam Mann 6da394a59a [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ie6e22b0b47c5148290f7b76c95967cd9a343343c
2021-02-11 12:40:40 -06:00
Sean McGinnis 8583d1a698
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: Ied79c449a8bd0c53a7392afb1dee18b5e7e5d619
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:15 -05:00
Andreas Jaeger 679e39587d Cleanup doc support
Cleanup docs building:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version, use apidoc for
  API docs
- Fix doc problems found

Change-Id: I1f92444a145030e7715a8d357870d712c5d3cfb1
2020-04-13 17:59:13 +02:00
zhurong e73f13e3ed 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: I551d8eada6764516dd0612037d9e9e9e5a677347
2020-04-11 01:00:06 -07:00
Ghanshyam Mann b787e1dc4d [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Panko is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/

Change-Id: I61488fc092ac11eb9f606d54c8e1a6e57851c4a0
2019-12-13 00:17:59 +00:00
Corey Bryant 07f2d20b16 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Iee7573feae9d7b2ec7b21eeff6c0435a56e4c74a
Story: #2005924
Task: #34251
2019-07-05 16:28:56 -04:00
Ghanshyam Mann 7fe341001c Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ib06c3699266c53ca5d1ca5b5da8e6d25e3190bad
2019-04-15 01:49:01 +00:00
Chandan Kumar e8b1378c0f Removed dummy intree panko tempest plugin
* Intree panko tempest plugin does not contains any tempest tests
  and has just dummy tempest plugin skeletion, so it is better to
  remove from the project. If in future new panko tempest tests
  will be written, will go to a new repo where all the telemetry
  tests will resides.

Change-Id: I4f56bdac3ddd7b55ae791c9e6aafb78bc5f6e14b
2017-12-04 14:01:39 +00:00
Zuul 48b3c63cb5 Merge "Move default policies into code" 2017-11-28 20:19:08 +00:00
Lance Bragstad 52417d4ab8 Move default policies into code
This is part of a community effort to provide better user experience
for those having to maintain RBAC policy. More information on this
effort can be found below:

  https://governance.openstack.org/tc/goals/queens/policy-in-code.html

bp policy-and-docs-in-code
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I9bad70abcf5543c3e5e5da25c56c408ee3ff0346
2017-11-08 04:35:54 +00:00
Julien Danjou 2170159d2e Remove deprecated Panko dispatcher
Change-Id: Ibc6e6b31de87e61ff815499f226538db710d45d3
2017-09-27 09:53:28 +02:00
Hangdong Zhang 16d122a5e8 Update the documentation link for doc migration
Change-Id: Iac3e6c11480ca0a0dccfd90d722d905f2e4911e5
BTW: Do some optimization as well (http -> https)
2017-07-24 11:04:31 +08:00
Jenkins d785015552 Merge "add ceilometer publisher" 2017-02-22 04:28:44 +00:00
gord chung 49e74f61e5 add ceilometer publisher
ceilometer is deprecating collector. this adds support to push
straight from publishers instead of using direct:// publisher
hack. dispatchers also have an extra serialize/deserialize step
which can be avoided.

Change-Id: I5fa8b862cf19c524f90d34681980cbd062ad9bf1
2017-02-21 12:51:31 +00:00
Hanxi Liu d70233e3b7 Trivial: remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: I3e6e8152ef941ef884507caf50d1a80c0a8e83bd
2017-02-10 00:11:36 +08:00
Jenkins 5a60c80925 Merge "remove event redundancy" 2017-01-23 12:49:30 +00:00
gord chung 06a3652001 add tempest plugin base
- drop clients, exception as they don't relate to anything

Change-Id: I455419bd215c45ece19b27317bf10282b48b7a96
2017-01-13 19:29:59 +00:00
gord chung 41f345f552 remove event redundancy
- we don't need to prefix 'event/storage' because that's all panko
does. cleanup inline with aodh.
- test_hbase_table_utils is not used anywhere and last reference
was from icehouse.
- drop a few places that use 'event_*' prefix since it wastes line
space

Change-Id: I348f5a3dfb59682589b4912eaed4e4b8abb15ebb
2017-01-13 09:03:48 -05:00
Julien Danjou 671f533eff Use pbr to build WSGI script `panko-api'
Change-Id: Ic3ac49bd8143461ec4011c34ea97283431fb3939
2016-07-22 12:23:34 +02:00
Julien Danjou 958c9b7ffd Add support for Python 3.5
Change-Id: I7599f3e5d156834138a84be0fac768a2e3767a0d
2016-07-20 12:32:33 +02:00
Julien Danjou c30cac00ab Rename database event dispatcher to panko
Change-Id: Ib493b7075bd9f903327c65fac6e838396ae790ab
2016-06-14 17:00:22 +02:00
Julien Danjou 3009be7ee7 Rename to Panko
Change-Id: I50b5f6c7b74a4431ccb7af271c11fe9c027f83ab
Signed-off-by: Julien Danjou <julien@danjou.info>
2016-06-14 17:00:22 +02:00
Julien Danjou ba4f572fd3 Remove code that is not related to events storage and API
Change-Id: I63128835613eb5959244c2fd34bc266ddcf4251c
2016-06-14 17:00:22 +02:00
ZhiQiang Fan 372d70ce08 remove deprecated auth type password-ceilometer-legacy
Change-Id: I7822964503439886ae08192c8edfb64c6201d438
2016-04-28 03:26:03 +08:00
Pradeep Kilambi c262389819 Refactor floatingip pollster to use discovery
Change-Id: I47cd14fb6c06ea2c83adab987a0442ef9bd3f404
2016-04-20 16:00:22 -04:00
Julien Danjou 9ad61b1801 Remove the deprecated DB2 driver
Change-Id: I0718da0d8cd3a63708117d770b1bf21f9ce3bfe1
2016-04-06 15:48:06 +02:00
OpenStack Proposal Bot 78fac6e0f3 Updated from global requirements
Change-Id: I7d83459b8e2eaf47f48e8695ad28214b0d683b47
2016-03-28 19:25:58 +00:00
Tong Li c634b5f0d1 Add http publisher
This patch adds a http publisher so that notification agent can be
configured to send samples or events directly to a http endpoint.

Change-Id: Ic1b2cabb49bcdbb229a3ae65982e3b3e263407f3
2016-03-21 23:18:42 +00:00
gordon chung bc720bf9c4 remove dns and trove from entry_points
we converted them to declarative format so the entry_points don't
exist anymore

Change-Id: I46837133ff9c400e8a5dd52434993d7a94463d3d
2016-03-21 15:22:07 -04:00
Doug Hellmann bce3d8b542 register the config generator default hook with the right name
No config generator hooks should ever be registered with a name that
belongs to another project. In this case, using oslo.middleware.cors
means that *every other project* that loads the middleware gets this
application's defaults when the generator is run on a system with
everything installed (such as a dev box with devstack). Use the name
of the app instead, to ensure that the defaults are only set when this
app's sample config and documentation are being generated.

Change-Id: I6a8c7d44b9db9325003ff2fdb667b0ced7739e96
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-11 15:27:04 -05:00
Jenkins 8bcc7bddaf Merge "Moved CORS middleware configuration into oslo-config-generator" 2016-03-07 15:48:49 +00:00
Igor Degtiarov 98de1315bb timedelta plugin for meter definition process
with timedelta plugin we could create new metric for latency time of
nstance booting without using events and its transformation.
we could define new meter in meters.yaml with volume as in example::
   volume:
      fields: [$.payload.created_at, $.payload.launched_at]
      plugin: ‘timedelta’

as a result we get volume value equal to difference between two mentioned
timestamp fields in seconds.

Change-Id: If5084cc23212a0a6bd9dac8438d5d286f3415730
2016-03-04 14:21:02 +02:00
Michael Krotscheck 309345268b Moved CORS middleware configuration into oslo-config-generator
The default values needed for ceilometer's implementation of cors
middleware have been moved from paste.ini into the configuration
hooks provided by oslo.config. Furthermore, these values have been
added to ceilometer's default configuration parsing. This ensures
that if a value remains unset in ceilometer.conf, it will be set
to use sane defaults, and that an operator modifying the
configuration file will be presented with a default set of
necessary sane headers.

Closes-Bug: 1551836
Change-Id: Iaab90bfa1811bf6d56696648a000f02ee3306285
2016-03-02 04:48:34 -08:00
Zi Lian Ji e7a3d62fc3 Enable the Load Balancer v2 for the Ceilometer(Part Two)
In this change set, add the new methods to collect the new meters
in the LBaaS v2[1].

list_listener: list all the listeners
list_loadbalancer: list all the loadbalancers
get_loadbalancer_stats : get the statistics of the specified
loadbalancer.

[1]https://wiki.openstack.org/wiki/Neutron/LBaaS/API_2.0

Co-Authored-By: Xia Linjuan <ljxiash@cn.ibm.com>
DocImpact: new metrics are introduced
Change-Id: I982f28917d1f8fd3d4352037f8832de9ef869942
Implements: blueprint lbaas-v2-enablement
2016-02-15 08:10:33 -05:00
jinxingfang c59973b106 Update the home page
http://www.openstack.org ---> http://docs.openstack.org/developer/ceilometer/

Change-Id: I5ceba329a1337d4fd6c04b97c5f7c67c5e967f08
2016-02-05 18:03:25 +08:00
Ryota MIBU 1176282c1f tempest: add ceilometer tempest plugin
Change-Id: If2363770090bb04d0bf5079f2925ae926fea1423
Implements: blueprint tempest-plugin
2016-01-21 22:51:29 +09:00
Julien Danjou 38af0f6b64 collector: remove deprecated RPC code
Change-Id: I995398ee239754a4d333460112700caeec516eb5
2015-12-16 15:01:07 +01:00
Mehdi Abaakouk 51a6096a85 Use keystoneauth1 instead of manual setup
This change moves our code to the new keystoneauth1 library.

This allows to wipe out all authentification code from Ceilometer.
Ceilometer become compatible with all keystone API version and
all keystone auth plugin for authentification.

This also moves the keystone project discovery to v3 API,
to fully removes the keystone v2 client from Ceilometer.

Implements blueprint support-keystone-v3
Depends-On: Ia5e924eb58aac7fd53e9fe4a3dbdee102ece3ad7
Depends-On: Ic7bbf9c98eb3f5a5d31da6f313458c4c4d62f59f
Change-Id: Id2938c2b323e935b3da35768f1f75ea3ae65bad5
2015-12-08 15:45:08 +01:00
gordon chung c7384f71b9 Remove version from setup.cfg
Per [1] we now want to use the git repository for knowing the version
instead of just trying to modify the setup.cfg file.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/080692.html

Change-Id: I857b50f6b4284b44ff7a10315437b31ae2b0c8a8
Depends-On: I7860e230da5b5ee517c1568aed2127bdb9c6ee7e
2015-12-03 00:25:41 -05: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
Julien Danjou 6bc86f75ea Remove alarming code
Since we moved all the alarming code and subsystem to the Aodh project,
remove it from Ceilometer.

Depends-On: I3983128d2d964b0f1f3326948b27f5d94df65a04
Depends-On: I99c9f2be0bbc70f289da5c2ba22698b8b7dc4495
Change-Id: Id169a914c1d1f2f5ad03ebb515d3d052204d5c5c
2015-11-24 13:44:58 +01:00
Lianhao Lu adaa57f062 Configure collector to only record meter or event
Added the configuration options to allow the administrator to configure
the collector to only record meter or event by setting the
meter_dispatchers and event_dispatchers configuration.

Separated dispatcher managers load the dispatchers from different
namespaces for meter/event respectively.

Doc-Impact: separated meter/event dispatchers

Change-Id: I161318f4503ce79205b54a93f2ae9b4e052f7971
Closes-Bug: #1480333
2015-09-30 09:58:45 +08:00
Thierry Carrez b4a704af0d Open Mitaka development
Bump preversion to mark the start of the Mitaka development branch.
The liberty release branch will be cut from the previous commit.

Change-Id: Ic1c5492eff43dc8488d2da40f54436db00795e24
2015-09-24 11:21:41 -04:00
Jenkins bf3e38085d Merge "add delta transfomer support" 2015-09-22 14:09:43 +00:00
Rohit Jaiswal 4e8e3c0feb pollster/api now publish to sample queue
Pollsters and Post Sample implementation
will publish to the notifications.sample
queue with this change.

Change-Id: Iccb9261ee805d41ed057bd0ac72306cd6a2ddaff
Closes-Bug: #1484695
Closes-Bug: #1489341
2015-09-17 13:19:13 +00:00
gordon chung 6ef079953e add delta transfomer support
this patch adds support for a delta transformer. the transformer's
only functionality is to calculate the delta between current sample
and previous sample.

conditions:
- it will disregard any out of order samples
- a growth_only param is available to capture only positive deltas
- supports renaming to a new meter name using same schema as other
  transformers.

using this transformer, we also create a cpu.delta meter which will
enable another view of cpu meter. this delta meter will allow for
(relatively) accurate cputime calculations and will cope with cputime
resets.

DocImpact

Change-Id: Iabcad20d500e3157e4d19f8b2ebffd770218165b
Closes-Bug: #1417949
2015-09-16 19:42:15 +00:00