243 Commits

Author SHA1 Message Date
OpenDev Sysadmins
764ccbd786 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:35 +00:00
Ilya Shakhat
5a65e20cd4 Declare support of python 3.7
Change-Id: I6ea0e4ee7b25b245e32336f925270420420c03a5
0.2.1
2019-02-19 10:41:00 +01:00
Corey Bryant
3d893e1e0c add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I87c7fd2e461c0a8384ed3b7dc4f7caa02d3fc24b
Story: #2004073
2019-02-19 09:00:02 +00:00
Ilya Shakhat
6e5f538d79 Unpin pytest and its plugins
Change-Id: Ie5b02e1e11b7a5c064fd417149cbbdd1c2997c65
2019-02-19 09:16:01 +01:00
Ilya Shakhat
c56709b6c1 Fix key management in devstack job
Change-Id: I4fa999b58d0bebb44fac17b30d93056da7bdb589
2019-01-14 09:56:56 +01:00
Ilya Shakhat
e1cc109486 Add DevStack plugin
The plugin configures DevStack to be used with os-faults
command-line tools.

Change-Id: I2febc154eb4d8a5aa038b9320d545c02b5f513ac
2019-01-10 10:54:14 +01:00
Zuul
cd747e50df Merge "Use bindep to specify binary dependencies" 0.2.0 2019-01-07 16:54:25 +00:00
Ilya Shakhat
956eb44277 Use bindep to specify binary dependencies
Change-Id: I16dcd0bbf891b05b3e252795edac7550fb57be77
2019-01-07 10:52:25 +01:00
ZhijunWei
3815e94721 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I379e5684ada1b0c961260f2017543479080f8c23
2019-01-06 19:04:51 +08:00
Ilya Shakhat
51de6802f1 Add integration test for devstack cloud management driver
Change-Id: Ia69a3e28d65289c561d240476514cf0536c39868
2019-01-02 16:50:13 +01:00
Ilya Shakhat
ff78b92048 Tests cleanup
* Remove dependency on ansible and libvirt libraries
* Bump python 3 version to 3.6
* Fix python warnings in the code

Change-Id: If7b495e9c3b2f5031d535954c3c3280e247871a6
2019-01-02 13:28:27 +01:00
Ilya Shakhat
87a80f6af5 Rename tcpcloud driver into saltcloud
TCPCloud was an internal name of a product owned by a company
acquired by Mirantis.

Change-Id: I6c5d6e7ee5c537c3b82f95abda63129594d3d9b4
2018-12-19 13:46:08 +00:00
Ilya Shakhat
601c49cca0 Unify auth parameters between drivers
Change-Id: I4b5f4f2920e1592459e8ffe6632c4c3cb007acc9
2018-12-19 12:50:43 +00:00
Ilya Shakhat
fedc060158 Specify auth parameters in devstack tests
Single-node devstack does not have SSH key for stack user.
In all tests we will use custom os-faults key and connect to localhost
as `stack` user. Tests are also executed as `stack` user explicitly
(by default they are run as zuul user, but we do not want to rely on this).

Change-Id: Ibcc9a406dc850363e651d4023874147db45214f7
2018-12-19 12:24:44 +01:00
Ilya Shakhat
8f7e490c75 Remove deprecated methods
Change-Id: Ie0361a0607d0467bc61eef4b5212c562883db43e
2018-12-17 17:54:46 +01:00
Ilya Shakhat
d544fae043 Simplify universal driver
Universal driver is a place-holder of cloud management.
Both services and nodes are configured separately.

Change-Id: Ie60ad757d07a0c96d8aec5516806fa0950748e3a
2018-12-17 14:18:14 +01:00
Zuul
542526086c Merge "Modify integration tests job to run on DevStack" 2018-12-17 12:57:49 +00:00
Ilya Shakhat
037a321506 Modify integration tests job to run on DevStack
Change-Id: I5ae22b3a02bd67534c8acb73c968b36f20008b31
2018-12-17 12:18:53 +01:00
qingszhao
964a40e3ae Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I546400ff21519ab9284546f4ee07d700f89bfa30
2018-12-04 17:13:35 +00:00
Zuul
62b96dd2a4 Merge "Remove old drivers" 2018-11-27 10:04:18 +00:00
Ilya Shakhat
1c29ed3182 Remove old drivers
Remove Fuel, screen-based DevStack, Pacemaker and Linux service drivers.
Rename devstack_systemd into devstack.
Use common schema for auth parameters.

Change-Id: I38b5f82282b72e969fc08e0948109939c95cf948
2018-11-26 20:44:53 +04:00
Zuul
1fbfd41519 Merge "Optimizing the safety of the http link site in HACKING.rst" 2018-11-26 15:11:22 +00:00
Zuul
c26860948e Merge "Do not link with Ansible code" 2018-11-26 14:14:04 +00: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
Ilya Shakhat
9ee36f7e62 Fix README markup
This is to avoid complains from test-release-openstack job.

Change-Id: I62c618efbbee3872ad1070bce2c1dcd6e75ece8c
2018-11-22 15:20:01 +01:00
zhouxinyong
7f69a07b73 Optimizing the safety of the http link site in HACKING.rst
Change-Id: I4feba9eef81ed3dda77f0e46b27735b9c51a7db6
2018-11-16 11:50:23 +08:00
Ilya Shakhat
7924e4ccf4 Move Zuul jobs from global project-config to the repo
The patch is similar to https://review.openstack.org/#/c/588715/

Change-Id: Ib990a13ec5b6fb4009488519586309963db183ac
2018-09-14 11:03:03 +02:00
Ilya Shakhat
fb4d46ced2 Specify webhook id for documentation build
This patch follows the guide [0] to leverage the Zuul template [1]
for correctly publishing RTD doc changes via openstackci.

[0] http://lists.openstack.org/pipermail/openstack-dev/2018-August/132836.html
[1] https://docs.openstack.org/infra/openstack-zuul-jobs/project-templates.html#project_template-docs-on-readthedocs

Change-Id: If6b0904f73fa744202e3765541ad97e72ecc6de5
0.1.18
2018-09-11 13:51:08 +02:00
Maxim Babushkin
bb40d621b0 Update containers documentation
Change-Id: Ibd5478793c353d0d0c89c6b4113a319c60cbb5fe
2018-08-19 10:55:21 +03:00
Zuul
99d20e9bab Merge "Add docker containers support" 2018-08-17 08:35:35 +00:00
Maxim Babushkin
d2514e6993 Add docker containers support
A support for the containers is required for the current releases of
OpenStack.
Add the ability to 'start', 'terminate' and 'restart' the containers.

Change-Id: Ib2beebcfa7017a9b2bb8f16dea49beef6db79d43
2018-08-06 13:31:38 +03:00
Maxim Babushkin
1c9d02cb9d Typo fix in universal driver documantation
Change-Id: I3a46d76fabb9c889aab3664757fb91273fdff208
2018-07-30 11:53:31 +03:00
huang.zhiping
11e2f8a7e2 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ie0fd5165d9b65ec1fc443ad08eaf7b708bfe73d4
2018-06-09 19:08:34 +08:00
Nguyen Hung Phuong
d47e3cdd8a Replaces yaml.load() with yaml.safe_load()
Yaml.load() return Python object may be dangerous if you receive a YAML
document from an untrusted source such as the Internet. The function
yaml.safe_load() limits this ability to simple Python objects like integers or
lists.

Reference:
https://security.openstack.org/guidelines/ dg_avoid-dangerous-input-parsing-libraries.html

Change-Id: I4f5379e1e17129222a211ac6e6d285c40a0b9bfd
2018-02-13 13:36:37 +07:00
James E. Blair
ac0ca66fbf Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: Ia969141a4dcb679a25548f760b83afcd8ad77b93
2018-02-01 07:18:39 -08:00
Ilya Shakhat
b829e19995 Add section describing OS-Faults and Rally integration
Change-Id: Ib0511064d29b2013a44691b30d4644042a508ca1
2017-11-03 13:45:39 +01:00
Ilya Shakhat
b8e4a30385 Update documentation and examples
Change-Id: Ia6943edb541ab80e8dc7c6f878179e36caeaf5dc
2017-11-03 11:40:32 +01:00
Zuul
622b43d040 Merge "Add integration job for Zuul" 0.1.17 2017-11-02 13:42:47 +00:00
Ilya Shakhat
9534077689 Add integration job for Zuul
Change-Id: I0f4d71322eef32dd9ff14ea14f3287d6c2559a09
2017-11-02 14:11:21 +01:00
Ilya Shakhat
276405ef1c Fix custom module support in Ansible 2.4
Before Ansible 2.4 the location of modules was a ':'-separated
string, but in Ansible 2.4 it is list of paths (and a list MUST
contain more than one item).

This patch adds correct handling for both Ansible versions.

Change-Id: Iab571f9e03e0f27a7720bcea801592d0ab3d3209
2017-11-02 11:17:48 +01:00
Alex_Kholkin
acdd04e4e0 Add glance-glare service to the tcpdriver
'glance-glare' service was missing in the tcpcloud.py

Change-Id: Ie09d820c858072d81ebdc345caae4c82af0077ac
2017-11-01 13:25:35 +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
0.1.16
2017-10-18 15:26:41 +02:00
Ilya Shakhat
7782a03a43 Add logging into human API call
Change-Id: Iafcfb0ad429c720088836a911f8e03a0bc35e8ed
2017-10-05 12:04:20 +02:00
Ilya Shakhat
cc582c38e2 Universal cloud management driver
A new driver is suitable for the most abstract case. It does not have any
built-in services, all services need to be specified explicitly in
a config file.

By default the Universal driver works with only one node. To specify
more nodes use `node_list` node discovery driver. Authentication
parameters are then overridden by corresponding parameters from node
discovery.

Change-Id: Id6ede38bcf82d121ccba2baaef928fe0e7071938
2017-10-04 11:30:45 +02:00
Ilya Shakhat
cd51cbae16 Universal driver for any system services (systemd, upstart, etc.)
This patch introduces `system_service` driver for services supported
by Ansible.

Change-Id: Ib22c7f2a83fb5acf3cb4b5e980ac798abdf54ae3
2017-10-04 10:50:13 +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
0.1.15
2017-09-20 00:31:31 +00:00
Ilya Shakhat
44b2593266 Move all service drivers under services/ package
Change-Id: I4e7d46b4a289508dbf35be4cef954bd73806efe7
2017-09-06 11:10:27 +02:00
Ilya Shakhat
4b49c49307 Refactor services module
Change-Id: Ib3ecebb3aa15124a179cb2d98c6dbbe6031fd6a1
2017-09-06 11:10:27 +02:00
Ilya Shakhat
da22323dfd Make privilege escalation password configurable
Add parameter `become_password` into node list discovery
and Ansible executor.

Change-Id: Ifa3dc7c84a08171792bb4a18794cf37c2c658d8d
2017-09-05 17:03:06 +02:00
Ilya Shakhat
8bdb893209 Group drivers modules by type
Change-Id: Id5fab5efa5dfbe155e559256faf465b7d0b76706
2017-09-05 11:06:38 +02:00