Commit Graph

18 Commits

Author SHA1 Message Date
Ilya Shakhat b53f04368c Split requirements for py27 and >py36
Pin requirements for py27 and keep them open for py36 and later.

Change-Id: Ia9d41eb94b3efe68556804dd35d81e67e73c0d92
2020-03-09 18:35:57 +04:00
Eyal c5738cf433 Update jsonschema according to requirements
Project rally depends on os-faults and fails in running
because of version conflicts.

Change-Id: I21eb5ccb7e0ea64f2d55143db1656562dc85f1a8
2019-09-09 10:49:26 +03:00
Ilya Shakhat b2ca946296 Do not link with Ansible code
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
2018-11-26 16:56:22 +04:00
Javier Pena a8be2c6e43 Fix for Ansible >= 2.4.0
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
2017-10-18 15:26:41 +02:00
Boris Pavlovic 9fa62bea7e Upper constraint ansible to fix library
Library got broken after recent release of ansible:
https://github.com/ansible/ansible/releases/tag/v2.4.0.0-1

Change-Id: I984a9b0ce7cf62528d197470bef0b81a428815c7
2017-09-20 00:31:31 +00:00
Anton Studenov 746fc45455 [CLI] Add os-faults discover command
`os-faults discover` discovers nodes and services
and then adds them to output config file.

* Added new CLI
* Added commands:
  os-faults --version
  os-faults verify
  os-faults discover
  os-faults nodes
  os-faults drivers

Change-Id: Id9f12c960fbba4d64ea181ca7245c89b3b4c655d
2017-04-25 11:08:27 +03:00
Georgy Dyuldin 65c6f928d8 Bump ansible version
Change-Id: Ib71e5dd80f6993ae78b716cd042f4dffc5be3745
2017-03-10 16:43:55 +03:00
Anton Studenov 34edf10456 Update requirements
* bump pbr>=2.0
* bump hacking to unblock pep8 gate
* removed workaround in tox.ini

Change-Id: I508a68b0351900ca1132441b88679d183e00af90
2017-03-02 11:47:36 +04:00
Anton Studenov 7bb995c1ec Improve logging
Use proper loggers in os-faults modules.
Added NullHandler to avoid "No handler found" warnings.
Removed oslo_log from requirements.txt.

Change-Id: I5f17179078389c9415ab325549de8782ed5bb8d2
2016-10-18 12:05:58 +03:00
Anton Studenov e2e0320e4f Make libvirt-python an extra requirement
This patch moves libvirt-python to extras.

Change-Id: Id129ab0a280b12e1bd0bfc1214c76a087c572a0d
2016-10-12 15:14:31 +03:00
Anton Studenov be1125cff0 Configuration validation
added jsonschema to requirements.txt
added schema for main config and for all drivers

Change-Id: I74590c7edcda0d2c9c50d3fc41ccef55157e1ff4
2016-10-11 10:03:58 +03:00
Ilya Shakhat ff621ad735 Read configuration from file or standard location
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
2016-09-06 16:23:45 +03:00
Ilya Shakhat 5282ff4730 Require Ansible 2 or higher
Change-Id: I10bbed1befb839141da271534259e16123c66376
2016-08-31 18:03:31 +03:00
Anton Studenov e1f57a21ce Add IPMI driver
Change-Id: I850974c707842683d660d9fd820c1cca98d4a21b
2016-08-25 16:19:43 +03:00
Yaroslav Lobankov 5941f0b117 Adding a simple libvirt driver
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
2016-08-24 14:39:15 +00:00
Ilya Shakhat e7e9bfc0da Add node operations 2016-08-09 15:00:07 +03:00
Ilya Shakhat 9724ce8af7 Added Ansible runner 2016-08-08 16:07:58 +03:00
Ilya Shakhat 036c51f855 Initial Cookiecutter Commit. 2016-08-08 12:06:17 +03:00