summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Remove six.moveswangzihao2020-09-271-2/+1
| | | | | | | | | | | Remove six.moves Replace the following items with Python 3 style code. - six.moves.urllib - six.moves.xrange - six.moves.range urlparse instead of url_parse Change-Id: I2a66e69d7c1401d0bbdb9d8e8b0a7b5400aee6d2
* Migrate to stestr for running testsWitold Bedyk2018-07-301-16/+0
| | | | | | | | | | | stestr is recommended by OpenStack Project Testing Interface for running tests [1]. This change migrates to stestr for running unit tests and coverage job. Modified `cover` env allows running it as Zuul job and visualising its results in Gerrit. [1] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running Change-Id: I9e8b79d7a18cd36946daff10abb1a2f43b1aa3a1
* Remove deprecated storage driversJulien Danjou2017-10-263-499/+0
| | | | Change-Id: I6b262dd440a72f25662b64d938ab9e5328709a97
* Replace the Gnocchi dispatcher by a publisherJulien Danjou2017-10-131-4/+4
| | | | | | | This removes the deprecated Gnocchi dispatcher and replaces it by its equivalent publisher. Change-Id: Ie44baf20ccb8de5794f5f0c3d4717f7e56afa63b
* Add tool for migrating metric data from ceilometer's storage to gnocchiliusheng2017-03-301-0/+193
| | | | Change-Id: I679c8a31864f88420f2e415ab032138c33a8bf56
* remove test_hbase_table_utilsgord chung2017-01-121-38/+0
| | | | | | not referenced since kilo Change-Id: Ie55e3a4b2b78df9239cc89b3c146145e01479ac6
* Remove events storage and APIJulien Danjou2017-01-063-202/+0
| | | | | | This now has been moved to Panko. Change-Id: I179eb0d436752e3bb8abaed714664cf74f5615e6
* tools: stop using global confMehdi Abaakouk2016-12-052-17/+17
| | | | Change-Id: I321a957fc28129c2147d5893bbeaa5afe63daa39
* Remove ceilometer tool show_data.py since it is not usablezhangshengping20122016-11-081-122/+0
| | | | | | | | It removed the ceilometer tool show_data.py since it is not usable. Change-Id: I8230c3b7f4c14ec406df713b4a0bbb329fe6d66f Closes-Bug: 1637056
* messaging: stop using global configMehdi Abaakouk2016-10-111-2/+2
| | | | Change-Id: I97840aa9d1249deeba91dcdb6a5d23eca2fecdf1
* Use "topics" instead of "topic" in Notifier initializationliusheng2016-06-131-1/+1
| | | | | | | | | The "topic" parameter of the __init__method of Notifier has been deprecated and will be removed. see change[1]. [1] Id89957411aa219cff92fafec2f448c81cb57b3ca Change-Id: If41b0aa4f9afc90d049063bf509723c3a8295db7
* remove log in tools/make_test_{event_}data.pyZhiQiang Fan2016-05-122-22/+0
| | | | | | They are never used, we directly use print instead. Change-Id: Ia0d94026e0e514ab5a56675e162f98b77c797010
* Remove unused pylintrcJulien Danjou2016-05-032-259/+0
| | | | | | We never used that in the gate and it's unmaintained. Clean that. Change-Id: I421c5b3084d7ff4d2bd6ab43a7a8a477d4a2c560
* switch to openstack cli instead of keystone cliZhiQiang Fan2016-04-191-3/+3
| | | | | | keystone cli is dead, let's use openstack cli instead Change-Id: I43219e4ab41c76e763096f0f87d8bb95ae6d2429
* collector: remove deprecated RPC codeJulien Danjou2015-12-161-25/+2
| | | | Change-Id: I995398ee239754a4d333460112700caeec516eb5
* Fix ceilometer-test-event.py scriptliusheng2015-12-011-3/+2
| | | | | | | The ceilometer/tools/ceilometer-test-event.py script has been broken by changes about yaml configuration loading. Change-Id: I15b6bb053cf93847886c35e6af5c3eccb2984dba
* tools: fix default resource metadata for instanceMehdi Abaakouk2015-11-251-1/+2
| | | | Change-Id: I788efa28ae041c7600cad60a03eb4f039c65e560
* tests: remove testscenario usage for storage driversJulien Danjou2015-11-241-2/+2
| | | | | | | We test only one driver at a time, so there is no need to leverage scenarios here. Change-Id: Ieff6e52d5efe46fc7ad5fa66b3fe199b1ac8c460
* Remove alarming codeJulien Danjou2015-11-241-3/+0
| | | | | | | | | 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
* Merge "Correct the timestamp type when make test samples data"Jenkins2015-10-222-1/+7
|\
| * Correct the timestamp type when make test samples dataliusheng2015-10-202-1/+7
| | | | | | | | | | | | | | | | | | When recording samples to database, the timestamp should be datetime.datetime type, but in make_test_data.py, the timestamp will be transformed to iso format with unicode type. Change-Id: Iffb09a293684fb8eab768c7370e8967349032ae5 Closes-Bug: #1504539
* | specify runtime environment for scriptsZhiQiang Fan2015-10-202-0/+4
|/ | | | | | | | | | | I68200a23c87ceca5a237da13d9549c0aa82f1b8f has changed two scripts to be executable, but unfortunately, it forgets to specify runtime environment for those scripts, which will cause error when trying to run those scripts directly. This patch adds python environment specification for them. Change-Id: Ibbcefb671de76146529b9a6e2debfee154a1aaa7
* make script under tools directory executableZhiQiang Fan2015-10-182-0/+0
| | | | | | | | tools/send_test_data.py and tools/test_hbase_table_utils.py can be run via python $COMMAND, they should be executable as well, just like other scripts, so developers can save some typing. Change-Id: I68200a23c87ceca5a237da13d9549c0aa82f1b8f
* fix tools/make_test_event_data.pyZhiQiang Fan2015-10-171-1/+2
| | | | | | | | | ceilometer.event.storage.models.Event requires 6 arguments to initialze, but tools/make_test_event_data.py only provides 5 arguments, so it is broken now. The missing field is 'raw', which can be safely set to {}. Change-Id: I4bec3ff66ab9fbec9306be2f1cb0095d148d80fb Closes-Bug: #1506976
* remove instance:FLAVOR related code and docsZhiQiang Fan2015-10-131-1/+1
| | | | | | | | We have already removed meter instance:FLAVOR, let's clean our code and docs to avoid unnecessary misleading. Change-Id: I0c03b93252a263840ff50da6beed6445cc122ac2 Closes-Bug: #1505566
* Fix make_test_data.shliusheng2015-10-102-6/+5
| | | | | | | For now, the make_test_data.sh cannot work, because of some parameter mistakes Change-Id: I9bb02790ad8995bcdd296f9b2412eb3515863a38
* Merge "Remove enable_notification.sh"Jenkins2015-09-291-43/+0
|\
| * Remove enable_notification.shJulien Danjou2015-09-281-43/+0
| | | | | | | | | | | | This script is not up to date and worthless nowadays. Change-Id: I62139b0bbcbe46d78d5b7893af082bcdccb80125
* | Ensure the test data sample has correct signatureLianhao Lu2015-09-252-1/+7
|/ | | | | | | | Set the timestamp to iso format and make sure the test data samples generated by scripts under tools directory have the correct signature. Change-Id: I1520450ae4e82459b73cc411a698a6faa91a40e0 Closes-Bug: #1499651
* Improves send_test_data toolsMehdi Abaakouk2015-07-272-8/+41
| | | | | | | Improves send_test_data.py tools so they can optionally send samples as notifications, not just rpc. Change-Id: Ib3cd809158029b0dbeca0b988e8d998bb2a313a7
* Merge "Switch to the oslo_utils.fileutils"Jenkins2015-07-201-3/+1
|\
| * Switch to the oslo_utils.fileutilsSergey Vilgelm2015-07-191-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | fileutils is graduated in the oslo.utils library. Remove the openstack.common package as well. Implements: blueprint graduate-fileutils[1] [1] https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-fileutils Depends-On: I51ba9076e1fbc16145ee2311f47b7768c16dcb20 (requirements) Depends-On: I661dd222da6386a7dbcf854958a63e59b13e9ba4 (oslo.utils) Change-Id: I6ba8f492a257096d27cbe83bfd06e53b7aabfa5d
* | Add necessary executable permissionQiaowei Ren2015-07-171-0/+0
|/ | | | Change-Id: I626ed411a1d476a2fa48a8cbea553e59bb8e5f05
* Add running functional scripts for defined backendIlya Tyaptin2015-06-041-0/+16
| | | | | | | | | | | | | | | | | | This CR allows running "functional" tox job for different backends. Short description about expected workflow: 1. Gate job run ceilometer/ceilometer/tests/functional/hooks/post_test_hook.py with <backend> parameter. 2. This script run "tox -efunctional" command with defined variable CEILOMETER_TEST_BACKEND 3. After in "run-functional-tests.sh" setup script for the backend and testr are runned. In this CR running testr with pretty_tox.sh script added because it allows to use subunit-trace output which developed in tempest-lib and improve useful of testr output. Partially implements: blueprint ceilometer-functional-tests Change-Id: Idb66aca0b46779516db2baec856df8223dbe5c13
* Merge "Stop importing print_function"Jenkins2015-05-263-6/+0
|\
| * Stop importing print_functionJulien Danjou2015-05-253-6/+0
| | | | | | | | | | | | We don't support Python 2.6 anymore so there is no use for that. Change-Id: Ic1f8aefc4946752b03b25cac7a900f70c68133a5
* | Remove useless release script in toolsJulien Danjou2015-05-251-79/+0
|/ | | | | | This is not used anymore and can be used from openstack-release-tools anyway. Change-Id: I4a7820bbef302fc6683b8aa3743f50383869d19f
* Python 3: generalize the usage of the six moduleVictor Stinner2015-05-151-1/+2
| | | | | | | | | | | | | | * Replace itertools.ifilter() with six.moves.filter() * Replace itertools.imap() with six.moves.map() * Replace map(_compare, statistics) with [_compare(statistic) for statistic in statistics] * Replace obj.iterkeys() with six.iterkeys(obj) * Replace obj.iteritems() with six.iteritems(obj) * Replace xrange() with six.moves.xrange(), or with range() for small ranges * Replace the repr module with six.moves.reprlib Change-Id: Iaaa328cc15355182bde444a1aeaa4385691c8f90
* add event listener to collectorgordon chung2015-02-021-2/+1
| | | | | | | | | enable a listener in collector that listens to events queue. this patch also renames 'metering_*' options which are now used by both events and samples. Change-Id: I6250c91e913864c3973e2d93022e38ad8bed8328 Implements: blueprint notification-pipelines
* Upgrade to hacking 0.10Julien Danjou2015-01-235-9/+7
| | | | Change-Id: Ia567c3aeb7f8516d0834dc8e4c3852e43a687043
* Remove the Nova notifierJulien Danjou2015-01-231-13/+0
| | | | | | | | This has not been tested for months and doesn't work anymore. There's no way people are using it, so let's drop it until someone starts fixing it again. Change-Id: I7d6472a1924320c890dec47c41bf22db07a36efc
* Use oslo_config instead of deprecated oslo.configDina Belova2015-01-155-5/+5
| | | | Change-Id: I85d5c8d3d9f00f86fd14500be0da1289f5672614
* Use oslo_utils instead of deprecated oslo.utilsZhiQiang Fan2015-01-102-2/+2
| | | | | | | | 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
* Add test data generator via oslo messagingIlya Tyaptin2014-12-252-31/+169
| | | | | | | | This script is helpful for emulate real workflow. Generate and send sample batches with different resources and configurable counter_name. Change-Id: I3ab6472c99abfe28e8c200ada2da91e97abed1d2
* Merge "Clean up bin directory"Jenkins2014-12-191-0/+86
|\
| * Clean up bin directoryLianhao Lu2014-12-181-0/+86
| | | | | | | | | | | | | | Move ceilometer-test-event.py from directory bin to directory tools, since it's for test purpose. Change-Id: I3485a27ae66e255fbc460d0548be9dbb5700fa42
* | Improve tools/make_test_data.sh correctnessLena Novokshonova2014-12-171-4/+24
|/ | | | | | | | | This change allows the script tools/make_test_data.sh and tools/make_test_data.py to work correctly by handing exceptions appropriately. Change-Id: Ib054c3e10d617686928bf03f94c5ff868905afde Closes-bug: 1389684
* Enable pep8 on ./tools directoryBalazs Gibizer2014-11-255-31/+30
| | | | | | | This patch fixes the pep8 issues of the tool scripts and configures tox to run pep8 on the tools directory. Change-Id: Ifed21e19dd2b382790a1e2a90d5153a8845c4b64
* Adapting pylint runner to the new message formatBalazs Gibizer2014-11-211-3/+4
| | | | | | | | | | | | Parseable output format and --include-ids parameter are deprecated and ignored in the pylint version used on the gate. These functions are replaced by the --msg-template parameter. This patch changes the runner to use the new parameter so that the job can run properly on the gate Closes-Bug: #1394606 Change-Id: Ia3e531923caa3f4e9a0dd03e0a4f5ef1a6d3dafb
* Add event storage for test_hbase_table_utilsZhiQiang Fan2014-10-311-2/+5
| | | | | | | event storage has been independent now, sync it to tools/test_hbase_table_utils.py. Change-Id: I38e467ab18c317ad12d66f641ad4419c0fe33bee