Remove publishing jobs, this project is not under governance and cannot
publish to docs.openstack.org. Replace the publishing jobs by jobs that
just test but do not publish.
Import missing jobs and templates from central project-config so that
all jobs are here. This allows also to remove the non-voting
requirements-check job from the gate (note that gate jobs should never
be non-voting).
Rename in-tree defined jobs to follow the Zuul naming conventions [1],
they really need to start with monitorstack to not break other repos
since we have a global namespace.
[1]https://docs.openstack.org/infra/manual/drivers.html#consistent-naming-for-jobs-with-zuul-v3
Depends-On: https://review.opendev.org/661610
Change-Id: I150177f4192d9eec4aa15643bcc2939fc89694a5
With Sphinx 2.0.1 working only with python3, update the configuration:
* Use openstackdocstheme (oslosphinx does not work with python3)
* Update requirements
* Update tox.ini to use normal lines for doc building
Also, fix URL for repo after OpenDev rename.
Fix flake8 tests, don't test openstack-ansible-tests files.
Change-Id: I464d04738aab137ea8e938614b804e1ac50f6741
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>
This change adds the volume group check from the
maas plugins, and also adds a cli helper to run bash command.
Change-Id: I303a843b0abaea721758e182a9c8f3e2db33e85d
Signed-off-by: Michael Rice <michael.rice@rackspace.com>
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
From openstackdocstheme 1.18.0, valid Git URLs can be retrieved by
openstackdocstheme[1], we do not need giturl option anymore.
[1] https://review.openstack.org/532163
Change-Id: Idef3f2269f0cc838bd75c44525798f9edd467997
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.
Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.
Also, use openstackdocstheme for releasenotes.
Fix linter failure I202 with rearranging imports.
This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.
Change-Id: If3da3c9fe534fde2f04be7fa9602153126e9ac0d
openstackdocstheme is only for Official OpenStack projects, see
https://docs.openstack.org/openstackdocstheme/latest/
this repo is not an official project under governance.
This reverts commit 66d45fc53d.
Fix build problems:
* Fix wrong include path
* Disable sphinxmark
Change-Id: I83e91d12e82a8cf703f4b09c7d315edbb9878bd9
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.
[0]https://review.openstack.org/#/c/472275/
Change-Id: I7c001fa8f627dc991759e157a802588962af53d9
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
Currently, if a dependency of one of the os_ plugins is missing,
running monitorstack with no args returns (for example):
```
OpenStack plugins require access to the OpenStackSDK. \
Please install "python-openstacksdk". \
ERROR: No module named keystoneauth1.loading
```
This commit moves the os_utils import in the os_ plugins to within cli,
similar to what is being done in the kvm module. This allows the
monitorstack cli to operate normally even if a plugin cannot be loaded.
Change-Id: I2ff1ad8c6365f6592191f09ea9c0d543f81e16ba
The gating on python 3.3 is restricted to <= Mitaka.
This is due to the change from Ubuntu Trusty to Xenial,
where only python3.5 is available.
There is no need to continue to keep these settings.
Change-Id: Id04514d228a12eeb6725cd9a266eab9de01125e4
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
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
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
This patch sets a requirement of 99% test coverage or the CI job will
fail. This should force us to ensure we are testing as much of the
plugins and the core of monitorstack as possible.
Change-Id: I22aa19f0e0e4584c377e39f07c0aae2b0814d59a
The telegrad line format is using > [name,tags metrics timestamp]
as for the format. This change makes it so that we're now using the
correct lineformat when exporting data to telegraf.
Change-Id: I72d6eb45a2c734d92e2da08c5df1998e60266f75
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The gating on python 3.4 is restricted to <= Mitaka.
This is due to the change from Ubuntu Trusty to Xenial,
where only python3.5 is available.
There is no need to continue to keep these settings.
Change-Id: If33b923a5725c16eca06bdd970ceb8e66740dbd0
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.
Change-Id: Ieb99417a4522f803e15547a9c7f6d781b6142678
The Connection object requires the verify parameter to be set
to False when insecure is True. This is required for monitorstack
to work with self-signed cerificates.
Change-Id: I18604662a0935065676dfbe2f11cf97c5c5d85ff
The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases
Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.
Change-Id: Iff74a21c0f26704a079303ac8db141f34a6ef256
This changes the layout of the tests. Before both unit
and functional tests were in the same place. That made
it so development really needed to happen on linux because
of tests like uptime needing /proc/uptime This change
puts those kind of tests into the int testing dir
and adds a unit and integration test arg to tox.
Change-Id: I922079e4a556a171aadd801a8cc932e1e08f9b5d
Signed-off-by: Michael Rice <michael.rice@rackspace.com>
Per pep 3113 Python 3 does not support tuple parameter
unpacking. This change removes the tuple from the function
param in the memcache plugin test since nothing is done
with it anyway.
Change-Id: I08c84cab308bbb405e5864fb0417f00c5310e71a
Closes-Bug: 1689347
Signed-off-by: Michael Rice <michael@michaelrice.org>
This patch adds a memcache plugin along with tests and documentation.
Implements: blueprint monitorstack
Change-Id: Iefb0c0912078713c26387e02e135d70d7a96a7dc
This patch moves the base plugin docs into a directory to prepare
for different types of plugins which share a common set of
instructions.
Change-Id: Ie2f193b070469d159216bafa36620674c9f6662c
This patch ensures that monitorstack connects to the system URI for
libvirt. Without this, a regular user may connect to libvirt without
full access to the existing virtual machines.
It also adds the gathered variables to the output dictionatry so they
are returned when the plugin runs.
Tests have been adjusted to match the new changes, including a new
constructor that takes the system connection URI into consideration.
Closes-Bug: 1684235
Change-Id: Ieacc69ee495268b3b20974eb2f01ff1d2c9195c1
Something went sideways with flake8 recently with regards to pep257
(whitespace checks). This patch updates the flake8 requirement and
disables pep257 checks to unblock the gate.
Change-Id: I139c902a4d95a21a2dcac8dcf65a85455f7331ec
This patch adds a basic structure for plugin docs and provides
docs for the uptime and process plugins.
Change-Id: Id98e0ed8cd7ba29968ad16a0ce90ababe74498ea
This patch adds some initial docs for monitorstack. This is by no
means an exhaustive set of documentation, but it's a good place
to start.
Change-Id: Ia028bd51f145093c42eec91314a0a0e124170be0
This patch configures the monitorstack repository to work well with
the OSA gate jobs for docs, release notes, and functional tests.
Change-Id: Ibacea5cdfab609c3724b434189a6efad4b1c6c35
The PR adds the cinder block pool metrics so that we can now retrieve
insights into the environment on the capacity all active storage pools.
This PR also creates tests for the new plugins and reduces duplication
across plugins by centralizing the runner method into the init of the
tests module.
This should now bring total code coverage to 100%
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
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>