The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3. This version is not support python 2 any more.
[1] https://docs.python.org/3/library/__future__.html
Change-Id: I94c61ba495283fc6e461bec156a7007ecbd6bb50
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build with warnings enabled, fix
warnings found with autodoc
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version, switch to using apidoc
- Remove install_command from tox.ini, the default is fine
- Change some imports to use python3 changed names
Change-Id: Ibb2e614c7db8a01e41caed8314c1d46479c78295
We don't support python2 anymore so we don't need this compatibility
library.
This patch remove six useage.
Change-Id: I5802ee67960ff8c53bc33213cc5aa8baee0d0dce
Right now, Freezer-DR notification engine only supports email.
This patch add support for sending notification to Slack channels.
Change-Id: Ie19f71e9922750fcb295b7c808d423b2c01a1fc5
Under python 3 dictionaries do not have an iteritems() method. Replace
the call with items(), which works for both python 2 and 3.
Change-Id: I088940350c88a9c02f53fb578b37d2b600a05448
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Use the __future__ module to ensure print is a function and then use
it that way.
Change-Id: Iccd0018434e044354e90b16ca67bdbeb312b6151
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Under python 3 the builtin 'file' no longer exists, so replace it with
'open' which works for both python 2 and 3.
Change-Id: Iaf438588e4bfab2833f92de0b31b0a9cfd14e597
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
monascaclient does not respect
`include_catalog` and `interface` arguments.
Also, `interface` is primarly used to query
Keystone catalog for an endpoint. That step
is not required as endpoint for monasca-api
is set manually.
Change-Id: Iceaa938dfe1a2aeece258def3336b8557d560a51
Update nodes allows the evacuators to initialize the fencers with
fake nodes then update it with correct one and fence.
Change-Id: I9fc54a99b6782138c6c9a76c9cec99e26b638777
Allow freezer-dr to load fencers more generically and give the drivers
space to implement their own fencing procedure
Change-Id: I5272ca90d806b8ce83055199724abdc14fe414bc
Allow the evacuators part to be able to do more and to freely evacuate
different types of the workloads(full compute, vms, ...)
Change-Id: I2e8b23a48504b8e4ea13f6b86cb9689d9bab5cf1
Depends-On: I5272ca90d806b8ce83055199724abdc14fe414bc
Compute nodes might be disabled or set to maintenance mode, so
freezer-dr needs to process only enabled nodes to avoid any
problems.
Change-Id: I7a367516008ff7653126621f0761506356d41f05
According to preferred word choice document [1] we should use only
"OpenStack" term in our guides, READme documents and so on.
This patch fix our docs and other files according to these requirements.
[1] http://docs.openstack.org/contributor-guide/writing-style/word-choice.html
Change-Id: Iff395ad887f733245da338ec707b862a8ec42d8b
Now Monitoring driver is getting notifier instance to be used
in case of failure get data for a certain metric or failed to find
the metric added on a certain host, the notifier will be used to
notify admins list (notify-list in config file) that something is
wrong with the metrics and need to look at it
Base notification driver changed to support the following methods:
1. notify_status: will be used to notify if node is failed and
evacuated
2. notify: will be used anywhere in monitoring drivers to notify
administrators if something is wrong.
Change-Id: I12eddf03d1921a04f5fa9a8101a471bea5f9c507
Use Monasca to monitor the compute nodes.
Change-Id: If1ac08d6bbafc065796e89836aa6175e57ef0a54
Implements: blueprint implement-monasca-monitoring-driver
Depends-On: Id330e5500f07ff19b7a2f82df236a4e0108668c9
Refactoring the base monitoring driver to load driver configuration
from a seperate section in the configuration file. This will allow
drivers to load their own configurations freely
Implements: blueprint dr-refactor-monitoring-drivers
Change-Id: Id330e5500f07ff19b7a2f82df236a4e0108668c9
Depends-On: I7fdf27e8f9263625e1fd1e2a34c015eaf4251792
As per OpenStack Docstrings guide lines [1]:
[H401] Docstrings should not start with a space.
[H403] Multi line docstrings should end on a new line.
[H404] Multi line docstrings should start without a leading new line.
[H405] Multi line docstrings should start with a one line summary
followed by an empty line.
[1] http://docs.openstack.org/developer/hacking/#docstrings
trivialfix
Change-Id: Ife5049b73c65b7dc3eecc18567343ed95fdfe05c
Boolean flag will be set to True in case of compute nodes are running
on a shared storage and will be False otherwise
Depends-On: Ie6f3f12efafbca530271d6771fac83480ee19000
Change-Id: I46e9eb2e1ace17959a02b3107e5ad3e85e2cd851
implements: blueprint dr-enable-shared-storage