22fb8e99e21535cdf533ffc74de63c38a5e62923
Commit Graph

168 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Markos Chandras
22fb8e99e2 tests: test.yml: Allow RabbitMQ version overrides
Make the old and new versions for RabbitMQ configurable to allow
distributions to test different upgrade paths.
Change-Id: I32f9348405f3b6bedd0529bf027536af56d024d7
2017年06月20日 21:19:36 +01:00
Markos Chandras
a5e5d7a614 Sync test files with the openstack-ansible-tests repository
In preparation for adding support for SUSE distributions, we sync the
test files from the openstack-ansible-tests repository so the upcoming
commits can be tested on all supported distributions.
Change-Id: I60520541bfe0fd7a3cb25e8c5b275c16ea136c95
2017年06月20日 21:19:34 +01:00
Markos Chandras
aec44599f8 rabbitmq_cluster_join: Retry if starting the RabbitMQ application fails
Sometimes starting the RabbitMQ application could fail with the
following error:
container2:~ # rabbitmqctl start_app
Starting node rabbit@container2 ...
BOOT FAILED
===========
Error description:
 enoent
Log files (may contain more information):
 /var/log/rabbitmq/rabbit@container2.log
 /var/log/rabbitmq/rabbit@container2-sasl.log
Stack trace:
 [{erlang,open_port,
 [{spawn_executable,false},
 [{args,["unix-sendto:/run/systemd/notify","STDIO"]},
 use_stdio,out]],
 []},
 {rabbit,sd_open_port,0,[{file,"src/rabbit.erl"},{line,345}]},
 {rabbit,sd_notify_socat,1,[{file,"src/rabbit.erl"},{line,351}]},
 {rabbit,maybe_sd_notify,0,[{file,"src/rabbit.erl"},{line,291}]},
 {rabbit,broker_start,0,[{file,"src/rabbit.erl"},{line,283}]},
 {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,403}]}]
Error: enoent
This seems to go away if we retry so it's probably a race condition
somewhere. As such, try a few more times before giving up.
Change-Id: I7b9a6f6cedd5e9a6494e4a2ca129601638cfafd5
2017年06月20日 15:35:02 +01:00
Markos Chandras
f57dbb1929 tasks: rabbitmq_started: Signal rabbitmq-server init failures
It is important to know that rabbitmq-server was started properly
otherwise subsequent rabbitmq commands will fail. As such, we drop
the 'failed_when' statements and let the service module signal
potential failures.
Change-Id: Ib02a538f33fc6d7b21edbcbfe6c2a5bd06a21045
2017年06月20日 15:35:02 +01:00
Markos Chandras
06a95841e2 tasks: rabbitmq_upgrade_check: Fix tag for rpm query
When querying using the 'rpm' tool, the tag needs to be
rabbitmq-yum-packages instead of rabbitmq-apt-packages
Change-Id: Ibcf72c8b0e1af04df941c0b9f38a1c799cb1850e
2017年06月20日 15:35:02 +01:00
Kevin Carter
83a95efda1 Install specific version of Erlang from ESL
The RabbitMQ community and project recommend erlang 19.3.x for the best,
most stable, results. This change downloads the recommended version of
erlang [ https://www.rabbitmq.com/which-erlang.html ] from ESL and moves
the erlang packages for distros into a specific list installed only when
the ``rabbitmq_install_method`` variable is not set to "file".
Change-Id: Ief57b1fdcb791f0f8ed20c1cbb54ea19d4373f81
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017年06月14日 12:47:04 -05:00
OpenStack Proposal Bot
a1fec14374 Updated from global requirements
Change-Id: Ie460506d0c00a3231e4963db2e2008f1f6c682df
2017年06月12日 13:00:14 +00:00
OpenStack Proposal Bot
b9213cf9fa Updated from global requirements
Change-Id: I1fab1a09d2ddb8be752cb2113dfd5a45d0052cc1
2017年06月10日 21:45:38 +00:00
Jimmy McCrory
c82d711fae Dynamically include install task file
Dynamically include the correct install task file based on the
ansible_pkg_mgr variable.
Change-Id: Id88687f7db96a49314ee4da0b259fbeaac0dda95
2017年06月08日 08:29:17 -07:00
Jesse Pretorius
7f79ea2c69 Ensure that role tests pin pip/setuptools/wheel
Currently the role tests use whatever versions of pip,
setuptools and wheel are already installed on the host.
When a version of these tools changes it often causes
problems for our testing.
This will ensure that we use a known good set of pins
which is maintained in the general SHA bumping process.
Change-Id: I8a14c63d82956406f63b6ae810f3dd4eb2fb1cd2
2017年06月04日 11:23:56 +01:00
OpenStack Proposal Bot
9cddb12067 Updated from global requirements
Change-Id: Ia5d52a773498c7ddbaabdb3426b0d859456c7ba2
2017年06月02日 22:04:03 +00:00
OpenStack Proposal Bot
abaca36618 Updated from global requirements
Change-Id: I017698f2d8184c1274ed796fb03efe5c8896064b
16.0.0.0b2
2017年05月17日 03:55:33 +00:00
Jesse Pretorius
8f54d6b9a5 Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
Depends-On: I5da7802d61d2ab6b03908138e3a3ed2db22e3d29
Change-Id: I469bef1a5aad2b1c31972ec8f8ac3d7c0cdf4cc7
2017年05月16日 13:38:33 +00:00
Jesse Pretorius
7e6fb6845c Fix role gate tests for Ansible 2.3
Add 'become' and root 'user' options to the playbook instead of using
'ansible_become' through an inventory variable.
Change-Id: Ic89c3786b51d6b3416e4d3903fde4d46dbe7ade2
2017年05月16日 14:37:42 +01:00
Jimmy McCrory
4dd83ccf6d Use Ansible blocks
Add blocks around tasks that add repo keys, create or join the cluster,
and set the Erlang cookie.
Change-Id: Iebae6f829013537c3eb25a3caf65d42a5a9e56b7
2017年04月12日 12:30:53 -07:00
Jimmy McCrory
3964388c50 Use checksum option when downloading RabbitMQ
The 'sha256sum' option for the get_url module has been deprecated and
replaced with 'checksum'. The download is skipped if an existing file
already has the expected checksum, making the task to remove an existing
RabbitMQ package file unnecessary.
Change-Id: Icd41e6a316f319bbdfae303592f0f8fde919a312
2017年04月11日 00:47:13 -07:00
Jimmy McCrory
b64d6bd168 Update RabbitMQ to v3.6.9-1
Change-Id: I921084fd063e2e4a10d0818b508d01e439c357a3
16.0.0.0b1
2017年04月04日 13:43:32 -07:00
Major Hayden
9b0ce64fe2 Remove EPEL installation on RabbitMQ
The RDO repository has all of the necessary packages for RabbitMQ
and EPEL should not be used.
Related-bug: 1670012
Change-Id: Ic964b3662218362b63708cdc54e49968fb346281
2017年03月06日 09:15:28 -06:00
Logan V
93160e01dd Install python2-pyOpenSSL package on CentOS
Package pyOpenSSL is obsoleted by python2-pyOpenSSL.
Change-Id: I7953a8eafb2d9595f7c3758cddeb3f513246bfc8
2017年03月03日 12:50:05 -06:00
OpenStack Proposal Bot
f02d890466 Updated from global requirements
Change-Id: Ifaf2bf7f38853e57d9a1bddc20adf979f22d514c
2017年03月02日 11:52:21 +00:00
OpenStack Proposal Bot
b6f360a5dd Updated from global requirements
Change-Id: Ic257c9ec02ff9e7508ea60acb10a31833336197c
2017年02月11日 17:49:29 +00:00
OpenStack Proposal Bot
da549dee7d Updated from global requirements
Change-Id: Ib308ed698b7c09ef3277fe74957f1ed91aa1b9da
2017年02月10日 05:56:37 +00:00
Jesse Pretorius
4f36ee4cae Update RabbitMQ to v3.6.6-1
Change-Id: I4847382d614f582944e8711ab7b5b37740f9b3ce
2017年02月08日 07:44:02 +00:00
Cuong Nguyen
0f155e22c1 Install python2 for Ubuntu 16.04 and CentOS 7 in Vagrant
- Install python2 for Ubuntu 16.04 and CentOS 7 before executing test
 script.
Change-Id: Ia7ee14f8464799e692c93e55be3f18fe4dda0fbc
2017年02月07日 10:16:36 +07:00
ji-xuepeng
bb6ab783c2 Use https instead of http for git.openstack.org
Trivialfix
Change-Id: I96d954332991745dcbaf6d5f0ec4ef50c41aba72
2017年02月06日 21:57:18 +08:00
0cf67be11e Update reno for stable/ocata
Change-Id: Idd9f0ace812af9c4a244b35c3d8cb2fe71e2bc52
2017年02月03日 18:58:58 +00:00
Jenkins
9c09b4a065 Merge "Allow configuration of listening on non-ssl port" 15.0.0.0rc1 15.0.0.0b3 2017年01月23日 20:20:54 +00:00
Andrey
84d75078cf Allow configuration of listening on non-ssl port
Deployers can override the `rabbitmq_disable_non_tls_listeners`
variable, setting a value of `True` if they wish to enable this feature.
Change-Id: I4fe39099dbe8973d2655845c19882c404d4f20b1
2017年01月19日 15:23:13 -05:00
Jean-Philippe Evrard
4dd1ca8a29 Allow definition of repo filename
If a deployer wants to co-locate his rabbitmq mirror with another
content in the same repo, (s)he probably also wants to define the same
repo filename, to avoid clashes.
This commit brings this feature optionally, and follows the same
pattern as other roles.
Change-Id: Id4d2198eebf05a8dc48949e4a129491c75037c79
2017年01月19日 10:22:47 +00:00
Jenkins
08614933c0 Merge "Bring consistency to tags" 2017年01月13日 16:01:14 +00:00
Jean-Philippe Evrard
bdf26ec72c Bring consistency to tags
Some tags were not applied on the highest level and forced duplication.
We apply here our practices to have role_name-(config|install) [1].
[1]: http://docs.openstack.org/developer/openstack-ansible/developer-docs/contribute.html#ansible-style-guide
Change-Id: I93c7b6854ea3a6b4e255c1405767c80abcbdee1d
2017年01月13日 14:17:40 +00:00
Jenkins
c9016f22a5 Merge "Add repo installation method" 2017年01月10日 10:22:22 +00:00
Major Hayden
a14ab1b8d5 Update and clean up run_tests.sh
The run_tests.sh script fails when it is run multiple times on CentOS.
The `bindep` run returns an empty list of packages and then `yum`
exits with an error since no packages were provided to install.
This patch checks the length of the `bindep` output and skips the `yum`
installation when the package list is empty.
The patch also cleans up some of the old cruft left over from previous
scripts and avoids repetition.
Change-Id: I34c8766bbfcf982310ae528663a3100908603801
Signed-off-by: Major Hayden <major@mhtx.net>
2017年01月06日 16:50:54 +00:00
Andy McCrae
3f050ab3da Update repository with reference to role git location
Change-Id: Ie3c4ac3a58d7b1157f56193a42ab4e5bddf599a3
2016年12月22日 14:26:23 +00:00
Andy McCrae
2e82ac9652 Remove Trusty support for rabbitmq_server role
Change-Id: I8fd756108188b887d343c67ad48c7aed1680c421
Implements: blueprint trusty-removal
2016年12月15日 16:02:12 +00:00
Jean-Philippe Evrard
84ede176b9 Add repo installation method
In some cases, deployers may want to use a repo instead of a deb
file (limited connectivity, repo mgmt tools already in place, ...)
This commit introduces this behavior in an optional manner: The
default behavior is still using a deb file. If using an external
repository, the repo used will be RabbitMQ recommended one hosted
on packagecloud.io.
Change-Id: If366d7411cffd59e4988ceba6fc47eac2b384ddf
2016年12月15日 10:26:42 +00:00
Jenkins
2ba0a74678 Merge "Delete deprecated Hacking in tox.ini" 15.0.0.0b2 2016年12月03日 02:54:52 +00:00
gecong1973
d032d1a361 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
 https://github.com/openstack-dev/hacking/blob/master/setup.cfg
Change-Id: Id822074fbde57c6a02ee5eb9e5acc288b95a947b
2016年12月02日 14:05:20 +08:00
OpenStack Proposal Bot
9fb07e9543 Updated from global requirements
Change-Id: I497ce2c20233a603ee95fc25d52ca333cc89f3e6
2016年12月02日 05:11:25 +00:00
Jean-Philippe Evrard
306a78b409 Point roles docs bugs to openstack-ansible LP
Currently when clicking on the small bug in the roles'
docs, we land on openstack-manuals launchpad.
This should solve it.
Change-Id: I01efc2e73ad333984a65ef09875ecb86fecf2e29
2016年12月01日 14:35:26 +00:00
Jenkins
88a77bc487 Merge "Remove container_name reference" 2016年11月30日 17:01:08 +00:00
Flavio Percoco
efea4c7029 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.
For more information about this effort, please read this email thread:
http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html
To see an example of how this would look like check:
https://gist.github.com/486358b2f778587c82d6dae6176670b4
Change-Id: I37f9b883c56fd70c6cad2a1541e3ef818eb5719d
2016年11月25日 16:22:16 +01:00
Matt Thompson
ab268645d9 Remove container_name reference
This commit removes the container_name var reference from
defaults/main.yml, and replaces it with ansible_hostname instead. This
helps when installing this role on a non-OpenStack-Ansible deployment
which does not have container_name set.
Change-Id: I7da72c45b50bff5722e1e5c1900c8aa56759eb7f
2016年11月24日 12:07:40 -05:00
Logan V
e78b80c931 Use ansible_service_mgr fact
This patch removes some extra tasks for detecting systemd and uses
the fact instead.
Partial-Bug: #1640125
Change-Id: I2482758a5ec4440db1ea0f4e36b96803bff14fe2
15.0.0.0b1
2016年11月10日 07:24:53 +00:00
Matt Thompson
f67defbc1d Enable CentOS functional upgrade test
This enables the CentOS functional upgrade test, which was originally
disabled due to a bug in Ansible 2.1.
Change-Id: I748889a1c74acf4f8d67fa9e5b250816d209611b
2016年11月07日 16:41:47 -05:00
Jean-Philippe Evrard
d2c05ca518 Remove ansible<2.2 apt cache hack
Now ansible apt module correctly behaves, so it's time
to deprecate these cruft tasks for apt.
Change-Id: Ic2257f101d4b93e86f5096a2596dc980e63691a5
2016年11月03日 23:41:30 +00:00
Jenkins
9dd9fac77a Merge "RabbitMQ Upgrade Testing" 2016年11月03日 20:15:24 +00:00
Jenkins
cf6f08b31b Merge "Fix linting issues for ansible-lint 3.4.1" 2016年11月03日 15:24:21 +00:00
Logan V
19802e10e0 Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump
Change-Id: I45f923ffcb26efd85cdde73d096993e08132706a
2016年11月02日 19:36:39 +00:00
OpenStack Proposal Bot
d2320fa032 Updated from global requirements
Change-Id: I850105dd2460056399e55cb5e45222a450c13eb9
2016年11月02日 15:38:17 +00:00