As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: Id2acb5c79be3ce14fa3ed5978a714e0c94f7e37e
This adds new functional tests, which are supposed to be run
on devstack with a running instance of prometheus.
It tests all of the cli commands as well as all the functions
exposed in the python client.
These tests could be included into the telemetry-dsvm-integration
jobs in the future to use the same devstack vm.
Change-Id: Ibd6deec559465bf3cb7480681b816f55bdf9010e
Something must have changed either with cliff or
with a different version of python. All of the
cli commands end with: "'Namespace' object is not subscriptable"
This is caused because of how the parsed_args fields
were accessed.
This patch addresses the issue. Now it accesses the fields
the same way as aodhclient does. The unit tests for cli
now use the arg parser to actually test this.
During this I also discovered incorrect mocking in the
configuration tests. I added another mock to the test cases
which were missing it.
Change-Id: Ib5dbbdb48bdfd3214ec76acc4c68649e25f695db
This patch removes openstack-tox-pep8 job dependencies
on flake8-*. The only dependency for that job right now
is hacking, which is the same as in other repositories like
ceilometer, python-aodhclient, python-glanceclient.
Change-Id: I08bd18171f00d023c6f3f3c64d18f03032a6af96
Adding comments for all ignores and extensions.
Adding extensions from OpenStack Hacking.
Fixing few breakages of those added extensions.
Change-Id: Idacee2ca555411e33b65817fb9245d130cf36574
This change fixes python 3.8 unit tests.
Unfortunately using grouping parentheses in with statements
is a python 3.9+ feature. I had to replace the parentheses
with a less elegant "\" to escape continuation lines.
I also included a .zuul.yaml, without which this couldn't
get merged and a .gitreview for convinience.
The telemetry-dsvm-* tests are non-voting for now.
There isn't any relevant test for this repositary
there as of right now,
those will get added in the next few weeks. And
unfortunately all the telemetry-dsvm-* tests fail
due to pyparsing version mismatch right now.
Once I or anyone else adds relevant tests to the
telemetry tempest plugin, we can make the tests
voting here.
Co-authored-by: Martin Magr <mmagr@redhat.com>
Co-authored-by: Erno Kuvaja <jokke@usr.fi>
Change-Id: Icc7b0229bca0664ee7fd60e3932df8f599beb500
* Add unit testing
* Fix code according to CI
This includes:
- formating changes
- rewording of some doc strings
- adding support to {label!~'value'} in rbac
* Add unit tests automation
* Fix CI automation
* Add requirements.txt
* Remove old observability client
* Add initial functionality for prometheus querying
* Fix a copy-paste error in get_client()
* Add additional functionality.
This commit adds:
- commands:
delete
clear-tombstones
snapshot
- Better rbac injection as well as a possibility
to disable rbac.
- Configuration of prometheus_client through
env variables and /etc/openstack/prometheus.yaml
* Make README up to date
* Implement Martin's PR comments
* Implement better support for label values in rbac
* PEP8
Basic set of docs to get an environment up and running. Sparse on
details, but wanted to capture the core elements. I wrote this in
markdown since that's what I know. Can convert to reStructuredText in a
separate commit if necessary.
For deploy.discovery command:
This patch allows inventory file destination fallback override and adds
additional fallback paths used by standalone deployment.
For deploy.setup command:
This patch allows to override usage of generated inventory file.
This patch adds basic functionality of the plugin. It successfully registers as openstackclient plugin and contains two basic observability commands:
- discover
- prepares ansible inventory file with overcloud and undercloud nodes and gather data for prometheus agent according to which nodes are scrapable
- setup
- starts proper ansible playbook based on component (currently only prometheus_agent is available)
Co-authored-by: Marihan Girgis mgirgisf@redhat.com
Partially-Implements: OSP-14664
Related: infrawatch/osp-observability-ansible#11