44 Commits

Author SHA1 Message Date
Ilya Shakhat
657abafbdd Fix Fuel key distribution script
Couple of things:
 * ssh-copy-id refuses to copy keys over the hop when the destination
   is already reachable via its own (different) key
 * accept Fuel host and user as parameters

Change-Id: I9557021c20dbfeeb97059179ccd1bd1879663076
2016-09-09 15:41:37 +03:00
Jenkins
261eb57216 Merge "Read configuration from file or standard location" 2016-09-07 14:06:20 +00:00
Jenkins
e220f9198c Merge "SIGSTOP/SIGCONT signals for RabbitMQ/MySQL/Keystone-API/Nova-API services" 2016-09-07 13:43:26 +00:00
Alexey Zaytsev
f4526d74db SIGSTOP/SIGCONT signals for RabbitMQ/MySQL/Keystone-API/Nova-API services
The following methods were added for services:
- method "freeze" - to service stopping
- method "unfreeze" - to continue service

Change-Id: If857ee49c88d51eabc96f840954719cf5d96698b
2016-09-07 11:51:24 +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
Yaroslav Lobankov
af9c6f1f40 Examples cleanup
1. The auth section and the region_name option are not used anywhere and
   they were removed from all examples.
2. Now all examples are up to date with the new code in the library.

Change-Id: I2b8594046cf217085e73caf7626ae0ab0ae74d97
2016-09-06 13:02:26 +03:00
Anton Studenov
6cf32e7896 Fuel driver code improvements
- make errors API specific, not driver specific
- remove redundant 'try' in iterate_hosts
- allow to pick specified number of nodes

Change-Id: If1007fb4aca81cace4d975ef9dac99b15d9942cb
2016-09-05 13:54:49 +03:00
Jenkins
7dd6c1a2e8 Merge "Rename os-failures into os-faults" 2016-09-04 13:12:19 +00:00
Ilya Shakhat
b5e0993e4f Rename os-failures into os-faults
New name "os-faults" better corresponds to the mission of the
library - providing a unified way for fault injection in OpenStack.

Change-Id: I4eff3936f303f35e3b67dec59a39682944bdae25
2016-09-04 15:59:16 +03:00
Elizabeth K. Joseph
dcb1081ab9 Update .gitreview post project rename
Change-Id: I780ae3e42b8cd59cb0b28f4b5b650ac07390c38b
2016-09-02 13:22:48 -07:00
Jenkins
5775ecd703 Merge "Adding threads to IPMI driver" 2016-09-02 11:48:41 +00:00
Yaroslav Lobankov
0b9824726a Adding threads to IPMI driver
This patch adds threads to poweroff/poweron/reset methods to increase
the velocity of IPMI nodes management. The common code with the libvirt
driver was moved to a separate module utils.py.

Change-Id: Ic6e65079636cef6f32b13876fe3fb56ee302c6e9
2016-09-02 10:27:30 +00:00
Jenkins
963b791628 Merge "Sigkill signal for RabbitMQ/MySQL/Keystone-API/Nova-API/Glance-API services" 2016-09-02 10:13:07 +00:00
Alexey Zaytsev
6cd9ffe8e3 Sigkill signal for RabbitMQ/MySQL/Keystone-API/Nova-API/Glance-API services
Method "kill" was added to services. It works for nodes in service.

Change-Id: Ic94e8af0bd3cb4c3f52c0334c85afb507a14c37c
2016-09-02 12:25:29 +03:00
Ilya Shakhat
5282ff4730 Require Ansible 2 or higher
Change-Id: I10bbed1befb839141da271534259e16123c66376
2016-08-31 18:03:31 +03:00
Jenkins
096744ac7d Merge "Service discovering" 2016-08-31 13:28:40 +00:00
Alexey Zaytsev
693844be7b Service discovering
Support for next services was added: mysql, rabbitmq, nova-api,
glance-api. Each service contains a list of nodes.

Change-Id: Ief402887a0a95b0397892ac72d52e884c475d0da
2016-08-31 15:53:39 +03:00
Yaroslav Lobankov
186424edfc Adding threds to libvirt driver
This patch adds threds to poweroff/poweron/reset methods
to increase the velocity of VMs management.

Change-Id: I03c821d44810cfa76468f1a371b8e46f0ba03311
2016-08-31 13:19:49 +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
f42209805a Fix project name in .gitreview
Change-Id: I11b8fe45124695ffe7f5dd81f6530840e68758ca
2016-08-24 16:23:16 +03:00
Ilya Shakhat
0c28d9d52c Docs cleanup 2016-08-15 16:12:53 +03:00
Ilya Shakhat
1fb258b065 Run DevStack driver with sudo 2016-08-15 13:57:34 +03:00
Ilya Shakhat
0b75c8308d Add sample DevStack driver 2016-08-15 13:28:01 +03:00
Ilya Shakhat
85e27b06a1 Fix formatting in readme 2016-08-15 13:37:56 +04:00
Ilya Shakhat
5e47aa4f02 Document use cases in readme file 2016-08-15 12:35:36 +03:00
Ilya Shakhat
b847c0c52d Add simple network management module 2016-08-15 11:54:09 +03:00
Ilya Shakhat
e62eec828a Cleanup code and more logging 2016-08-12 17:39:56 +03:00
Ilya Shakhat
ba5e3922d5 Remove unnecessary utils module 2016-08-12 16:01:18 +03:00
Ilya Shakhat
a84b555d85 Enable logging 2016-08-12 15:58:12 +03:00
Ilya Shakhat
12c3b6201f Add network failures API 2016-08-11 13:10:04 +03:00
Ilya Shakhat
219d11853e Added get_nodes by fqdn 2016-08-10 17:21:12 +03:00
Ilya Shakhat
1b113d4983 Document API 2016-08-10 16:32:19 +03:00
Ilya Shakhat
84fcd1c8e6 Added ky distribution script 2016-08-10 15:56:18 +03:00
Ilya Shakhat
8ba2dfa6b9 Fix PEP8 errors 2016-08-10 13:02:37 +03:00
Ilya Shakhat
dbf3187d2f Cleanup Ansible executor 2016-08-10 12:57:39 +03:00
Ilya Shakhat
87d0a2c708 Add connection verification 2016-08-09 23:01:15 +03:00
Ilya Shakhat
45acf32684 Flatten client configuration 2016-08-09 15:52:23 +03:00
Ilya Shakhat
bc2cbacd7d Added power management 2016-08-09 15:48:18 +03:00
Ilya Shakhat
e7e9bfc0da Add node operations 2016-08-09 15:00:07 +03:00
Ilya Shakhat
e89a1aefce Service API prototype 2016-08-09 11:04:09 +03:00
Ilya Shakhat
9724ce8af7 Added Ansible runner 2016-08-08 16:07:58 +03:00
Ilya Shakhat
5f9d7a0454 Tune tox.ini and update readme 2016-08-08 12:23:48 +03:00
Ilya Shakhat
036c51f855 Initial Cookiecutter Commit. 2016-08-08 12:06:17 +03:00