Ansible is distributed under GPL-3.0 license and certain restrictions
are applied when its code is imported as Python library. The only safe
way to call GPL code is via general interface, e.g. CLI.
This patch removes all direct linking of Ansible code and executes
all actions via command line. It is now user responsibility to install
Ansible executable on the system.
Change-Id: If879e4ce59bcdac84bc51ea0ac9277783777c80b
The Ansible version was capped to < 2.4.0 in [1], since 2.4.0 refactored
the Inventory and VariableManager modules.
This patch aims at adding support for Ansible >= 2.4.0, while keeping
compatibility with earlier versions.
Change-Id: I5722fc8531671e69abe90d64a4bfd988321850b5
Closes-Bug: #1724227
Use proper loggers in os-faults modules.
Added NullHandler to avoid "No handler found" warnings.
Removed oslo_log from requirements.txt.
Change-Id: I5f17179078389c9415ab325549de8782ed5bb8d2
The library can also read configuration from the file specified in
`OS_FAULTS_CONFIG` environment variable or read it from one of default
locations:
* current directory
* ~/.config/os-faults
* /etc/openstack
Change-Id: Iced9b55bb0992cd23eb689103d62183e200ba76b
This patch adds a simple libvirt driver that provides an interface
with three simple actions: power off, power on and reset VM.
Change-Id: I5fae0f6791a16a23da1585f65b14cfc63e047949