Commit Graph

8 Commits

Author SHA1 Message Date
Kevin Carter 034228e754
Update monitorstack to use updated openstacksdk and es
This change updates the functions so that they work with the most up to date
OpenStack SDK, and adds an elasticsearch output format.

Tests have been udpated to pass newer versions of flake8 and py3

Zuul project config has been added

Change-Id: If46d3fb8e2b2e4aa5e21bf7da470945b05d216cf
Signed-off-by: cloudnull <kevin@cloudnull.com>
2019-02-17 09:27:36 -06:00
Matt Thompson d99b674500 Default insecure to false in sample config
In PR [1] the default for insecure was set to False.  This commit
updates the sample configuration file to match that default.

NOTE: We also mock out test_insecure as is done in test_secure so that
      the test doesn't actually rely on what is set in openstack.ini to
      pass.

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

Change-Id: I5257be8cfb9483ac7dd02b893e4a22a2ee46bbf7
2017-06-23 12:24:11 -04:00
Miguel Alex Cantu f655761212 Remove project_name = nova from sample config
OSA deployments do not come with a 'nova' project by default,
which means that if a user haves this in their configuration while
testing monitorstack on a OSA deployment, it will fail trying to
authenticate. This commit removes the reference.

Change-Id: Ia15759f116ff733d2a2fb62ce0c9fc28c1731786
2017-06-19 18:48:18 +00:00
Jenkins aaf593a193 Merge "Verify https connections by default" 2017-06-15 12:34:33 +00:00
Jimmy McCrory c16472bbc1 Remove inline comments from example config
Inline comments are not automatically removed when config options are
parsed. This can lead to difficult to debug errors if the example config
is used directly.

Change-Id: I23ecd32a0f14a7d8ba36a7cf17c47ac3814e7f19
2017-06-14 16:57:16 -07:00
Jimmy McCrory dc4251a766 Verify https connections by default
The 'insecure' option was being read in as a string without being
converted to a boolean, preventing it from ever being able to be set to
False. The default value has also been changed to False, so that
verification of certificates must be explicitly disabled.

Change-Id: Ic68b870ea8d5e2e3451ea7915407fabb918efe72
2017-06-14 16:07:56 -07:00
Kevin Carter 775f034a78 More complete testing of the os plugins/utils (#24)
The change implements several fixes so that monitor stack can be run in
OpenStack environments supporting both V2 and V3 authentication.

All of the plugins now have a proper name lookup and will pull from a local
cache instead of hammering the API on every request.

The Local caching functionlaity used to be tied to the python shelve
module. Due to issues with Python 3.5 and shelves the library was
replaced with the diskcache lib which implements a caching interface
supporting both py2.7+.

Tests have been added in support of all additions.

Tests have been added for the os_utils module which should bring it
within ~98% of completeness.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-03-14 11:34:10 -05:00
Kevin Carter 37a9950ab2 Added VM instances used and quotas (#6)
The following plugins add a basic OpenStack API framework which is used
to pull metrics for nova vm quotas and usage for RAM, vCPUs, disk, and
instance count.

added codecov.yml

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-03-09 09:48:17 -06:00