Commit Graph

86 Commits

Author SHA1 Message Date
Sean McGinnis 1d5cf49317
Retire repo and note new content in openstack/osops
Change-Id: I56f2e8ef904d9d844a65c2982b3b5f4fae38850e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-09-10 20:05:01 -05:00
Lance Albertson bafe3f0d2f Drop support for tenant_name & tenant_id for cinderclient
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>
2019-10-16 08:09:39 -07:00
OpenDev Sysadmins b797e26e01 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:10 +00:00
qingszhao 7427ee7392 fix tox python3 overrides
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
2019-01-23 03:30:20 +00:00
qingszhao 2aba4b17f8 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Ifa664130bc8e2e767be67cfa83db1ec2674b2a65
2018-12-04 16:35:23 +00:00
Zuul 2d4ee298a3 Merge "Fixes for Some oschecks" 2018-11-28 12:20:46 +00:00
qingszhao 87420327bc Removed older version of python3.4
Change-Id: I9ab0d22510ed55afc1e4ee0410c15f9d5cd8018f
Closes-Bug:  #1801855
2018-11-20 06:01:56 +00:00
Nagasai Vinaykumar Kapalavai a2ff2ebf02 Fixes for Some oschecks
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
2018-10-18 17:04:26 +00:00
Nagasai Vinaykumar Kapalavai 4130916b79 Rework on glance oscheck
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
2018-07-31 11:15:34 -04:00
Zuul 965579723c Merge "Add support for Pacemaker managed Docker container resources" 2018-07-02 18:00:11 +00:00
Matt Wisch f7fb864ea1 Add support for Pacemaker managed Docker container resources
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
2018-06-13 12:00:53 -06:00
Martin Mágr bd5fafd74b Compatibility patch with python-cinder-12.0.2
Fixes "AttributeError: 'Namespace' object has no attribute 'os_tenant_id'"
for both Cinder checks.

Change-Id: I0f583d67a4f6e53ddc6763aae29600fabb93f249
2018-04-27 16:19:55 +02:00
Zuul 1a3ca01844 Merge "Fix for check_neutron_floating_ip" 2017-11-15 16:54:20 +00:00
Zuul 97b4f97140 Merge "Fixed check_nova_instance" 2017-11-15 16:53:23 +00:00
Martin Mágr 93c57603c1 Fix for check_neutron_floating_ip
- applied DRY principle on authentication
 - fixed confusing naming
 - removed conflicting parameters
 - compatibility with python-neutronclient-6.5.0

Change-Id: I0ca4655592232e6f754506d293374ba0c51b6d03
2017-11-15 14:26:33 +01:00
Martin Mágr 3b131c626b Fix for check_cinder_volume
- applied DRY principle on authentication
 - fixed confusing naming
 - removed conflicting parameters
 - switched to Cinder API V2+
 - compatibility with python-cinder-11.0.0

Change-Id: If8e7f5a39ddaa9c15e1acc9f4f1c2a695954bde4
2017-11-13 14:42:21 +01:00
Martin Mágr 84c639e430 Fixed check_nova_instance
- applied DRY principle on authentication
 - removed conflicting parameters
 - compatibility with python-novaclient-9.1.1

Change-Id: I08f0362f47a7322e8555ac9a2f426050ae2f8df9
2017-10-31 16:34:53 +01:00
Zuul d63e150e8a Merge "Fix name error exception" 2017-10-27 22:56:54 +00:00
Zuul 126b3f132e Merge "Revert "Removes unnecessary utf-8 encoding"" 2017-10-27 22:56:23 +00:00
Zuul e9dd7267fc Merge "Fix glance_upload check" 2017-10-27 22:51:13 +00:00
Martin Mágr a42876c34c Fix glance_upload check
This patch makes oschecks-check_glance_upload compatible with python-glanceclient-2.8.0+

Change-Id: Ifd41e48b0709e72773de18f571cfad58ea44b37a
2017-10-27 16:22:39 +02:00
Martin Mágr 01e2d34a58 python-psutil compatibility patch
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
2017-10-26 12:28:47 +02:00
Martin Mágr 4645597ef6 Revert "Removes unnecessary utf-8 encoding"
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
2017-10-26 11:39:56 +02:00
Martin Mágr b95298f62b Fix name error exception
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
2017-10-25 11:58:57 +02:00
Jenkins 62160d1068 Merge "python-ceilometerclient-2.8.1+ compatibility patch" 2017-08-30 15:28:26 +00:00
Jenkins ccf475196b Merge "python-novaclient-7.1.2+ compatibility patch" 2017-08-30 15:28:09 +00:00
Martin Mágr e17960ddba python-ceilometerclient-2.8.1+ compatibility patch
Change-Id: I286137d41573b2b28af63cd34dd67768df1df686
2017-08-16 15:40:55 +02:00
Martin Mágr e950254285 python-novaclient-7.1.2+ compatibility patch
- enabled to override api version from CLI
- stopped using positional parameters
- moved from tenant to project terminology

Change-Id: If68c95d36f7d073fba0072bfabf3c81d8746ca38
2017-08-15 14:57:46 +02:00
Martin Mágr c82aea0978 python-glanceclient-2.6.0+ compatibility patch
- fixed argument parser creation
- incremented default API version
- enabled default override from CLI

Change-Id: Ice2bc59ffd78271ec879578127ddc250e0aa10ab
2017-08-15 09:30:24 +02:00
shashi.kant 4076dce887 Removes unnecessary utf-8 encoding
Change-Id: Iedd41f08b17c619ecd4bff28a49518556e3e98dd
2017-01-13 07:15:55 +00:00
Martin Mágr 23ee1b5953 Catch more exceptions
This patch avoids traceback outputs during client Keystone authentication

Change-Id: I8a99178ad3469a366dd793691375b0105176714b
2016-11-23 11:19:25 +01:00
Martin Mágr 2156c64dcd State source code encoding
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
2016-11-23 11:08:17 +01:00
Juan Badia Payno 16aeaf8b11 Added ceph user to ceph commands
* oschecks-check_ceph_health
  example:
   oschecks-check_ceph_health client.monitoring_client

* oschecks-check_ceph_df
  example:
   oschecks-check_ceph_df 80 90 client.monitoring_size

Signed-off-by: Juan Badia Payno <jbadiapa@redhat.com>

Change-Id: Icb986bac88b52a123c2f99941fadab8c9e233b22
2016-11-21 15:12:40 +01:00
Martin Mágr 9f8354bbfe Don't throw traceback for connection problems
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
2016-11-10 13:26:09 +01:00
Martin Mágr a8f40fe2dc Ceilometer checks fixes
- 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
2016-11-10 09:51:27 +01:00
Jenkins 3a69560ef3 Merge "Neutron Plugin Arguments unified to meet the neutron API" 2016-11-05 01:13:00 +00:00
Juan Badia Payno e44aa3df1b Neutron Plugin Arguments unified to meet the neutron API
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
2016-10-30 08:23:01 +00:00
Christian Berendt 19a383062a Fix permissons for some files of monitoring-for-openstack
Change-Id: I3cf58d38828515b9098b657993adcf58bbc0b185
2016-10-05 09:34:41 +00:00
Jenkins 4d455249de Merge "Improve README file for monitoring-for-openstack" 2016-10-04 15:47:13 +00:00
Christian Berendt b69dff7e6d Remove "encoding: utf-8" from monitoring-for-openstack files
Change-Id: Idbf6b3a01c6a2b993a5a1257dd910c289e742d77
2016-09-27 14:05:29 +02:00
Christian Berendt 32ba6d4095 Improve README file for monitoring-for-openstack
* add install instructions
* fix description-file parameter in setup.cfg

Change-Id: Ie8d229ad6ec01c0714b23b46026ae941c8a42465
2016-09-27 13:59:22 +02:00
Jenkins dcbe1babbb Merge "Rename router to network" 2016-09-17 02:56:50 +00:00
Jenkins 1bcef6a78b Merge "flake8 everything" 2016-09-17 02:56:37 +00:00
Jenkins 512b05e2ea Merge "Cleanup setup.cfg/tox.ini file" 2016-09-17 02:56:23 +00:00
Juan Badia Payno 247e6771fb oscheck-pacemaker Improvements
- 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>
2016-09-01 15:06:55 +02:00
Matthias Runge aa7167ba14 flake8 everything
flake8 checks failed. In order to get checks for oschecks
running on the gate, we need to fix those here.

Change-Id: I6072b3c9ace340144a3803f9133e774f4cc18abc
2016-09-01 14:38:35 +02:00
Christian Berendt 6cb2904cda Cleanup setup.cfg/tox.ini file
* 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
2016-08-24 13:44:53 +02:00
Matthias Runge d2e636c94d Rename router to network
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
2016-08-17 09:29:21 +02:00
Jenkins 3986ef29c4 Merge "python-novaclient-3.1.0+ compatibility" 2016-08-02 14:55:20 +00:00
Jenkins 81e7b4fa52 Merge "Fixed oschecks-check_keystone_api" 2016-08-02 14:52:50 +00:00