Commit Graph

120 Commits

Author SHA1 Message Date
Matthias Runge ca45bbdca0 Retire panko, the code is no longer maintained.
The contents of this repository are still available in the Git source
code management system. To see the contents of this repository before it
reached its end of life, please check out the previous commit with
"git checkout HEAD^1".

For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-telemetry on OFTC.

Change-Id: Ic8a7001e708d8da7cf8951eefd0a96762ea5fa46
2021-05-27 11:36:44 +02:00
wangzihao 152e6acc1e Update fixtures
Update fixtures to 3.0.0 test ci

Change-Id: Iaf38d2fa8c6db89384dde13f706a20eb07c7cd82
2021-01-15 09:32:17 +08:00
Andreas Jaeger 260ba07210 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from test-requirement, it's enough to have them
in doc/requirements.txt.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I8d4234212ecceb639e40eae423af72d2d08b010d
2020-05-21 16:20:05 +02:00
Sean McGinnis 36668ecfad
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I92f240b2b2fbb8a0a7ac188ff9bed8b0d11209b3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:57:05 -05: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
Vu Cong Tuan c1f4ad6184 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I3760aae7bb78fdffc34a492f150bc7df8a4a9bf2
2018-07-17 16:21:15 +07: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
Hanxi Liu b9945c2b1f Docs: switch to openstackdocstheme
Project documents are being reprocessed due to document migration[1].
Update the docs theme to openstackdocstheme instead of oslosphinx.

[1] https://review.openstack.org/#/c/472275/

Change-Id: I9353ba579b093d0ab91e2f60612b8cbc8ffbb733
Co-Authored-By: chenxing <chen.xing@99cloud.net>
2017-07-17 16:07:38 +08: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
xiaozhuangqing 7aaa77e06e Limit Happybase version < 1.0.0
The API changed and the Panko driver does not work anymore with it.

Change-Id: Ia3226581259448d81043184277fd19110011c866
Partial-Bug: #1613419
2016-08-19 14:06:42 +00:00
Julien Danjou 82803450d3 Do not limit elasticsearch to 2.0
Change-Id: Ic616ce51adccf8a05da623fe76cc61644ac50b44
2016-07-28 16:12:22 +02:00
Julien Danjou 1c998a2866 tests: enable functional Gabbi tests on all backends
Change-Id: I9d75e9af07d26c7e47588555e70b095261c62998
2016-06-27 17:03:38 +02:00
Julien Danjou 6b6e4afa8e Fix release notes build process and pep8 target
Change-Id: I7ce58baaba31f2be46d89bd3bde67d67bbc01344
2016-06-16 13:39:50 +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
Julien Danjou 15a424c2e9 tests: replace overtest by pifpaf
Change-Id: Ib26c9c674d438bcbabea9c09cfdab97516e0e227
2016-05-09 16:01:58 +02:00
Jenkins 14ecb3b2a7 Merge "Remove unused pylintrc" 2016-05-06 08:17:28 +00:00
Julien Danjou 72cc3185b0 tox: only install hacking in pep8 target
Change-Id: Ie8605df90652d04483e8184cd3bc1dabd24ceb63
2016-05-03 00:17:24 +02:00
Julien Danjou 25cd1d2385 Remove unused pylintrc
We never used that in the gate and it's unmaintained. Clean that.

Change-Id: I421c5b3084d7ff4d2bd6ab43a7a8a477d4a2c560
2016-05-03 00:05:46 +02:00
ZhiQiang Fan 394f4e2e4b Remove direct dependency on babel
The dependency on oslo.i18n already forces this requirement.

Change-Id: I45037ce829340e9128cadd23c65ad3f069312c89
ref: http://lists.openstack.org/pipermail/openstack-dev/2016-April/092510.html
2016-04-22 05:01:51 +08:00
OpenStack Proposal Bot 0b65c21337 Updated from global requirements
Change-Id: If1ea74d33bf9987c82ce7b263af1e4bef767fd9d
2016-04-19 12:22:24 +00:00
Jenkins 9bbb9f4589 Merge "Replace tempest-lib by os-testr" 2016-04-19 07:07:42 +00:00
OpenStack Proposal Bot 1ec0b61407 Updated from global requirements
Change-Id: If9cb3c0960fb996f3bcb524fabe17702bae32a59
2016-04-13 12:41:38 +00:00
Julien Danjou 6df47f7a98 Replace tempest-lib by os-testr
It seems it's only used for subunit-trace

Change-Id: Ibd196c9c6c19169c877d1a4dcf1c75f190fbb32e
2016-04-12 19:30:33 +02:00
OpenStack Proposal Bot 123fa26585 Updated from global requirements
Change-Id: Id18aaa8f0363723719bf7f2b3fb6b1ba651ea5c2
2016-04-08 15:43:59 +00:00
Mehdi Abaakouk 4a451fac0e gnocchi: batch measurements
This change leverages the Gnocchi Batch API by using it
in the Ceilometer dispatcher for measurements.

It introduces a small behavior change in the dispatcher.
The resource metadata update is now decorrelated from measures posting.
So, even if posting measurements fail, the resource metadata will
be updated.

Change-Id: I140e7301a31bbee50c2c8bc3ff2d78925680a573
2016-04-07 14:52:15 +02:00
Julien Danjou edff3fca0a tests: remove ceilometer-api bin test cases
This removes these tests because they:

1. Depends on httplib2 which is being deprecated
2. Test running of `ceilometer-api' which is anyhow tested in the
   devstack functional testing.

Closes-Bug: #1556985
Change-Id: Ic5fd445c651e28a37ee3ec72fbb0894486af6be6
2016-03-14 17:00:28 +01:00
OpenStack Proposal Bot 2a2223968e Updated from global requirements
Change-Id: I510ac0556b2b53846b24c6b39174efbec63cdfc1
2016-03-09 16:45:41 +00:00
Jenkins c8dd0947f1 Merge "Use overtest to setup functional backends" 2016-03-07 15:02:44 +00:00
OpenStack Proposal Bot 7a144db2cc Updated from global requirements
Change-Id: I7ccc6eec3a7845a9078c0caa6926cc87f989b58f
2016-03-05 15:30:54 +00:00
Claudiu Belu 235556a5b2 Hyper-V: replaces in-tree hyper-v utils usage with os_win
os-win is a library containing Windows / Hyper-V related code.
It contains utils modules that are used by nova, cinder,
networking_hyperv, os-brick. It also contains Hyper-V metrics
related utils, which can be used in ceilometer.

Adds os-win to requirements.txt.
Replaces the current usage of *Utils classes in the
Hyper-V Inspector with the equivalent *Utils classes
from os-win.

Adds decorators to the HyperVInspector methods that prevent
os-win specific exceptions to leak outside the inspector.

Depends-On: Ia937399c999d7293799a864a322323e3d2efc123
Depends-On: I1256b632be7aa90561338b595b9406c30f406c7c

Change-Id: Ic637e2a9c929cac88b1cb99f5b55dd70c4f84c47
2016-02-23 02:04:13 +02:00
OpenStack Proposal Bot d3c485c0ee Updated from global requirements
Change-Id: I4b0f3b8afe8a88626ed6be6f89b39757e40a7e74
2016-02-11 14:44:53 +00:00
Julien Danjou 36c5b87058 Use overtest to setup functional backends
This patches leverage overtest to setup the database environment needed.

Change-Id: I8198041b4a87bf187d8f6499f0c7c1a43d4dcac2
Depends-On: I29e480611e743ddc645fd067ca2c63b51b11b518
2016-02-10 13:12:34 +01:00
OpenStack Proposal Bot 8de1b78e73 Updated from global requirements
Change-Id: I595defd4531485f5cb4fa6ebf35abbf01b338970
2016-01-18 22:39:43 +00:00
OpenStack Proposal Bot 244b632581 Updated from global requirements
Change-Id: I7eb2209da999017ad170ee52cf79f59b746438c2
2016-01-09 04:53:23 +00:00
OpenStack Proposal Bot f6f1983041 Updated from global requirements
Change-Id: I069c8a6e66794b07444d5a728831a0a708859965
2016-01-05 10:25:14 +00:00
Jenkins 7fd1d93b14 Merge "gnocchi: use gnocchiclient instead of requests" 2015-12-14 12:50:09 +00:00
Mehdi Abaakouk 75d973f4e8 gnocchi: use gnocchiclient instead of requests
Depends-On: I63f8735e2841291f5b66aeeab5fbdf957a001f0c
Change-Id: Ib18cc0bd62156d953fcec68467d7e99ee9cc04f0
2015-12-11 08:33:01 +01:00
OpenStack Proposal Bot 23b628df32 Updated from global requirements
Change-Id: I703b9cd1c0af815ab51e5f6ac690f0c09eb90016
2015-12-09 21:54:59 +00:00
Matt Riedemann 304470cef3 Add WebTest to test-requirements.txt
WebTest is used in the functional tests, so it should be listed
in test-requirements.txt.

Change-Id: I801890bb614340962b28a7110c9f3b0f3a8b4752
2015-11-24 06:42:17 -08:00
OpenStack Proposal Bot 88e437c66d Updated from global requirements
Change-Id: I62e4e1a2139c17eca7bc859a5a55ca3b314edfcf
2015-11-19 15:54:50 +00:00
Jenkins a4aab33bda Merge "A dogpile cache of gnocchi resources" 2015-11-19 07:43:01 +00:00
Chris Dent 2511cfb6e4 A dogpile cache of gnocchi resources
What this does is store a key value pair in oslo_cache where the key
is the resource id and the value is a hash of the frozenset of
the attributes of the resource less the defined metrics[1]. When it
is time to create or update a resource we ask the cache:

  Are the resource attributes I'm about to store the same as the
  last ones stored for this id?

If the answer is yes we don't need to store the resource. That's all
it does and that is all it needs to do because if the cache fails
to have the correct information that's the same as the cache not
existing in the first place.

To get this to work in the face of eventlet's eager beavering we
need to lock around create_resource and update_resource so that
we have a chance to write the cache before another *_resource is
called in this process. Superficial investigation shows that this
works out pretty well because when, for example, you start a new
instance the collector will all of sudden try several
_create_resources, only one of which actually needs to happen.
The lock makes sure only that one happens when there is just
one collector. Where there are several collectors that won't be
the case but _some_ of them will be stopped. And that's the point
here: better not perfect.

The cache is implemented using oslo_cache which can be configured
via oslo_config with an entry such as:

    [cache]
    backend = dogpile.cache.redis
    backend_argument = url:redis://localhost:6379
    backend_argument = db:0
    backend_argument = distributed_lock:True
    backend_argument = redis_expiration_time:600

The cache is exercised most for resource updates (as you might
expect) but does still sometimes get engaged for resource creates
(as described above).

A cache_key_mangler is used to ensure that keys generated by the
gnocchi dispatcher are in their own namespace.

[1] Metrics are not included because they are represented as
sub-dicts which are not hashable and thus cannot go in the
frozenset. Since the metrics are fairly static (coming from a yaml
file near you, soon) this shouldn't be a problem. If it is then we
can come up with a way to create a hash that can deal with
sub-dicts.

Closes-Bug: #1483634
Change-Id: I1f2da145ca87712cd2ff5b8afecf1bca0ba53788
2015-11-17 13:40:24 +00:00
OpenStack Proposal Bot e5ded45e49 Updated from global requirements
Change-Id: I5f063261d83dc1ef438731e2a4f436b8980bc9a5
2015-11-17 02:25:00 +00:00
gordon chung 2d471862e7 add reno for release notes management
Change-Id: Id36eb9d88c6a8fba635779fc9a971f015908b5de
2015-11-11 10:35:22 -05:00
Jenkins 29ec96b3b3 Merge "Remove dependency on sphinxcontrib-docbookrestapi" 2015-10-16 04:00:48 +00:00
liusheng bbcfcbb1af Block oslo.messaging 2.6.1 release
The oslo.messaging-2.6.1 has broken Ceilometer Jenkins job two days, The
change[1] could hopefully fix the issue, but it is better to block the
oslo.messaging-2.6.1 to make Ceilometer Jenkins alive now.

[1] https://review.openstack.org/#/c/234372/

Related-Bug: #1505730
Change-Id: Ibb2a8c18651c601c844c3bc9d89f18ae032accf8
Depends-On: Id1e58a9db0d277de2f30de54db97040811f40ff2
2015-10-15 02:59:05 +00:00
Cyril Roelandt 9a5651c190 Remove dependency on sphinxcontrib-docbookrestapi
This Sphinx extension is no longer used nor maintained and can be safely
removed.

Change-Id: I98dc4fb5419f5af664ebfc86f0e7814d404b3b86
2015-10-14 19:18:00 +02:00
OpenStack Proposal Bot 8963f5fbc1 Updated from global requirements
Change-Id: Ic10f9b22fb3053ff8ad724179bd9b39a081543c9
2015-10-07 01:40:44 +00:00
OpenStack Proposal Bot 52b9574c0e Updated from global requirements
Change-Id: Ib9a287ad1700f59c553acac870a2ded026a2a3d7
2015-09-21 14:32:06 +00:00
OpenStack Proposal Bot f94a72ae2b Updated from global requirements
Change-Id: I10bdb31b204e1861a75a0d8935482688040158ce
2015-09-07 15:13:07 +00:00