27 Commits

Author SHA1 Message Date
wangqi
019de27390 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ice8aafef4e92763d137797cf3a12a8b3e50653ee
2018-08-06 07:37:39 +00:00
Zuul
a91a35b3f6 Merge "Remove the unnecessary =" 2018-07-27 11:56:45 +00:00
Zuul
8e2898fe32 Merge "Add the missing "#"" 2018-07-27 11:43:30 +00:00
Andy Smith
bb88051ec4 Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and are used to generate the messaging
transport_url for the service. The association of the messaging
backend server to the oslo.messaging services will then be transparent
to the masakari service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Update transport_url generation in conf
* Add oslo.messaging to tests inventory and update tests
* Install extra packages for optional drivers

Change-Id: I127ce216cfb7b4d5755b8f0a68406bbd251fbdd2
2018-07-26 10:42:42 +00:00
Dmitriy R
3d06e07f9c Added required defaults, env example, Manage LB hook
I've decided to add env and required secrets example for easier stratup.
Also added missing variables to defaults, as playbook was just failiing without them.
Variables regarding rabbitmq were missing.
Also, as masakari_venv_download_url is not defined by default,
masakari_venv_download had been set to false.

Handlers were missing Manage LB task and had wrong variable -
masakari-services instead of masakari_services

Functional test was missing USER system environment variable.
Also test inventory had mistakes.

test-masakari-functions.yml wasn't able to pass test due to error.
Functional tests moved to voting.

Change-Id: I6644d576177f441ca59e9221ce9a2e5b7cc0fc46
2018-07-19 06:42:32 +00:00
ZhijunWei
484c19c1b8 Remove the unnecessary =
Change-Id: I442bf62a1fe1ce1d52528656424a5a5ce4de6c4c
2018-07-18 00:59:49 -04:00
ZhijunWei
3abe406b50 Add the missing "#"
Change-Id: I6df2e039042efc66de6b84740d318f5a4101aa4d
2018-07-18 00:44:06 -04:00
Heba Naser
be50506cf4 Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: I7c164fed373e8211e05ff7708b4b3485a1341806
2018-07-13 18:17:05 +01:00
Jesse Pretorius
9eb6fb2a17 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

In order to pass the requirements check, a new lower bound is set for the
'pyasn1' and 'requests' packages.

Change-Id: I9635c7a83e98e951198e4fb79aea43762652acd9
2018-07-13 18:11:57 +01:00
Jean-Philippe Evrard
3cf1cf61aa Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Ia772b7534f28561535b14edb2117f21f988a1ada
2018-07-13 09:06:52 +02:00
Jesse Pretorius
faf5f262d5 Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. The masakari client is not used on the host, so
it serves no purpose. As there are no required packages left, the task to
install them is also removed.

Change-Id: I5f4339b322b967fcfd326c7442d634abf8b6cb05
2018-07-12 17:42:15 +01:00
jacky06
501cc10123 Update the project home to https
Change-Id: Ic7a4270b69b3571199854f91711179fdd318cab5
2018-07-05 21:36:28 -04:00
Jesse Pretorius
056208c580 Move database creation into role
There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement a new variable called 'masakari_db_setup_host'
which is used in the role to allow delegation of the database setup
task to any host, but defaults to the first member of the galera_all
host group. We also document the variable 'masakari_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: I6c1e4e32681cbb592f6daa805501031bb84e6e0c
2018-06-28 15:10:47 +01:00
ZhijunWei
183af3af95 Add the missing home-page
Change-Id: I08f391f8c969f1bd0caef400d631ffb222fffa62
2018-06-22 23:39:25 -04:00
Zuul
63bf49e662 Merge "Add packages required for osprofiler" 2018-06-22 15:00:45 +00:00
ShangXiao
be263c6b49 Update README.rst information
1) Add documentation url link.
2) Add release notes url link.

Change-Id: If8899a65ec34b679ee1bc42bdf116497452e105b
2018-06-15 00:21:02 -07:00
Mohammed Naser
946f0b95e4 Switch non-voting jobs to use Zuul stanza
The extra jobs that we have are not something that is needed, we simply can
set the jobs to non-voting in the project definition and avoid having non
voting jobs.

Change-Id: Iacf7ddc377f465bec5777270d2562987f25d53d9
2018-06-13 21:46:22 -04:00
Kevin Carter
4ad997de0a
Add packages required for osprofiler
The following packages are required in-order to run osprofiler.
these packages will provide deployers the ability to profile
a service on demand should they choose to enable the profile
functionality.

Change-Id: Ie9d2909c2e0d3b6951dea14013649a66ce93e7af
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-11 22:58:28 -05:00
OpenStack Proposal Bot
b95c3dc60f Updated from OpenStack Ansible Tests
Change-Id: I8c232dfc0d9462917d7beb634f1afb48610ce33e
2018-06-06 00:42:25 +00:00
OpenStack Proposal Bot
1a04c82cee Updated from OpenStack Ansible Tests
Change-Id: I24c8b2fee3d6823daf989fa52e50ff4079c7a04a
2018-06-01 22:06:20 +00:00
Vu Cong Tuan
fb020459ae Replace deprecated "auth_uri" by "www_authenticate_uri"
According to [1], "auth_uri" has been deprecated.
This patch replace it by using "www_authenticate_uri" instead.

[1] https://review.openstack.org/#/c/508522

Change-Id: Ie5b27ccaa5ce50e54858ab0ccb8b845e9589e150
2018-05-11 09:13:47 +07:00
OpenStack Proposal Bot
8692a15e28 Updated from OpenStack Ansible Tests
Change-Id: I96b48d7d1a086d8d8106300a75c01d5de1e74a42
2018-05-09 19:41:43 +00:00
Jean-Philippe Evrard
ab6cfd1ef1 Add Maskari base jobs
This introduces the most basic jobs for masakari.

Change-Id: Ie62ea7ec96b8963b5d3815a9241cce964e8fafc2
2018-05-08 15:39:48 +05:30
Jesse Pretorius
e86fe0c26b Only replace python when re-initializing the venv
We reinitialize the venv to ensure that the right version of
python is in the venv, but we do not want virtualenv to also
replace pip, setuptools and wheel so we tell it not to. If we
don't do this then virtualenv will install the latest available
version, which is not what we want.

Change-Id: Ic03405a6f07ca16201cc1e35aea2cde2f298d4cd
Partial-Bug: #1764470
2018-05-03 10:50:20 +01:00
Jesse Pretorius
487db02028 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: Ifd50c7b0175b6d53d5bb3e9175bc2b79d39d3721
2018-05-03 09:48:16 +00:00
OpenStack Proposal Bot
3a5eb5986b Updated from OpenStack Ansible Tests
Change-Id: I7674ffa3bd46180a544ff47370f22e9532c6d151
2018-05-03 09:38:40 +00:00
nirajsingh
130e4c0e29 First commit 2018-04-16 17:02:09 +05:30