Upstream has dropped support for tenant_name & tenant_id [1] and it needs to be
updated here. Replacing it with project_id and removing the other one seems to
fix the issue.
[1] https://review.opendev.org/653814
Change-Id: I2a9cc06fd96ddc9e5c762648ba6d05709bb0bc70
Signed-off-by: Lance Albertson <lance@osuosl.org>
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I085934b2ae2741e185b5dd9e0e0eb0eba4a67168
Closes-Bug: #1801657
Currently, (Ceilometer, cinder and nova) checks will throw an error if
result is empty (for ex: nova flavor list) even though the api is working.
With the proposed fix it will just look for the api response and
doesn't matter about the result indeed.
Change-Id: Ib27d2856fa0f0c794e9ebb348cb84d3d839adffe
Closes-Bug: #1784650
Currently the glance api check is giving tracebacks instead
of meaningful errors. Couple of changes are made to address the issue.
Change-Id: I6c71edb528677a4fde0c97eb3d465600b689d1bd
Closes-Bug: #1784651
Added ability to pass in the resource name of a docker bundle
and successfully filter the host list for systems where the
container is in a Master/Slave/Started state.
Also corrected the error handling for non 0 return codes on
the pcs status or crm_mon commands. Errors for pcs are returned
on stderr and were not being captured in the command output.
Change-Id: Id3a858a785d5062feda59362c1a7f69ab04b861e
Closes-Bug: 1776731
Fixes "AttributeError: 'Namespace' object has no attribute 'os_tenant_id'"
for both Cinder checks.
Change-Id: I0f583d67a4f6e53ddc6763aae29600fabb93f249
According to [1] there have been backwards incompatible changes in psutil module.
This patch makes amqp oscheck be compatible with all versions of the module.
[1] https://pyup.io/changelogs/psutil/
Change-Id: I7af6c25d58b327011013bdea990ccf7ea2f3002e
This reverts commit 4076dce887.
Commit above is the cause for UTF errors such as:
[root@undercloud-0 ~]# /usr/libexec/openstack-monitoring/checks/oschecks-check_amqp neutron-server
Traceback (most recent call last):
File "/usr/libexec/openstack-monitoring/checks/oschecks-check_amqp", line 6, in <module>
from oschecks.amqp import main
File "/usr/lib/python2.7/site-packages/oschecks/amqp.py", line 23, in <module>
from oschecks import utils
File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 5
SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/python2.7/site-packages/oschecks/utils.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Change-Id: I94faa925bb642621bc8688addca60168889e93d3
This patch fixes following exception when pacemaker resource
is not running on a tested node:
Change-Id: I8a3ca3343b75b453e05552dbffd22ba27812bcaf
NameError: global name 'resource' is not defined
- enabled to override api version from CLI
- stopped using positional parameters
- moved from tenant to project terminology
Change-Id: If68c95d36f7d073fba0072bfabf3c81d8746ca38
This patch adds explicit notation of encoding of source code to avoid
potential runtime encoding errors. More info in [1]
[1] https://www.python.org/dev/peps/pep-0263/
Change-Id: Ibe7bfc80eaae3ce68c3b4e9daf09b8156c58054c
Currently all API checks throw Python tracebacks in case of connection
problem. This patch makes that only last exception message is reported.
Change-Id: I6ac0ca5a0374eb569672c497f4c02d3480af9bea
- fixes printing help to console
- fixes Traceback "Gone: Gone (HTTP 410) (Request-ID: <snip/>)" because
of stack using Gnocchi instead
Change-Id: Ic71b774a87ffbfa4fd4dec0821f6a0cff0a166ef
Closes-bug: rhbz#1393328
Now the following arguments are also available:
--os-auth-url
--os-username
--os-password
--os-tenant-name
--os-enpdoint-type
--http-timeout
Change-Id: I28a1e4f4289be79440f2d4b972f31ed506dc4b3c
- Clone and Master/Slave Resources can be checked
- Add a flag (--crm) to use "crm_mon -1" instead of "pcs status"
- The option "-s Script" is optional so a default ok message will show up when there is no script
Change-Id: I3433dffe1cfd4606b9bfcd824ea96dbd7c96bcbb
Signed-off-by: Juan Badia Payno <jbadiapa@redhat.com>
flake8 checks failed. In order to get checks for oschecks
running on the gate, we need to fix those here.
Change-Id: I6072b3c9ace340144a3803f9133e774f4cc18abc
* change author to OpenStack
* change mail address to openstack-dev@lists.openstack.org
* change syntax of README file from MD to RST
* remove Python 2.6, Python 3.3
Change-Id: Ic172c67cd5791914157f01759f48b1a844eaef7c
Floating IPs will be created in the external
netork. Thus, you'll need to specify the name
of the network, not the name of the router.
Change-Id: Ia626832187015282e4f6dd3d3066a1612ccb62e8