From 99f355e145bddf86f6007a6799aebc60d078e943 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Thu, 8 Sep 2016 06:17:50 -0400 Subject: [PATCH] Use delorean rabbitmq For centos, we should be using the RDO repositories to provide rabbitmq-server. This version is updated with bug fixes and provides a more stable experience then using rabbitmq.com builds. Co-Authored-by: Jeffrey Zhang Co-Authored-by: Michal (inc0) Jastrzebski Closes-Bug: #1621460 Change-Id: Ib0eafc5da4397756fbdd837520b15543180ce229 --- ansible/group_vars/all.yml | 2 +- docker/rabbitmq/Dockerfile.j2 | 14 ++++++++++---- .../notes/rabbit-3.6.2-accdb2d3ecd493cc.yaml | 3 +++ 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 releasenotes/notes/rabbit-3.6.2-accdb2d3ecd493cc.yaml diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index f990737166..7d98e529d3 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -283,7 +283,7 @@ enable_kibana: "{{ 'yes' if enable_central_logging | bool else 'no' }}" # RabbitMQ options #################### rabbitmq_user: "openstack" -rabbitmq_version: "rabbitmq_server-3.5.7/plugins/rabbitmq_clusterer-3.5.x-189b3a81.ez/rabbitmq_clusterer-3.5.x-189b3a81/ebin" +rabbitmq_version: "rabbitmq_server-3.6.2/plugins/rabbitmq_clusterer-3.6.2.ez/rabbitmq_clusterer-3.6.x-667f92b0/ebin" #################### # HAProxy options diff --git a/docker/rabbitmq/Dockerfile.j2 b/docker/rabbitmq/Dockerfile.j2 index a0b1fe49db..d11041fb9c 100644 --- a/docker/rabbitmq/Dockerfile.j2 +++ b/docker/rabbitmq/Dockerfile.j2 @@ -6,14 +6,17 @@ MAINTAINER {{ maintainer }} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% set rabbitmq_packages = [ 'hostname', - 'https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_5_7/rabbitmq-server-3.5.7-1.noarch.rpm' + 'rabbitmq-server' ] %} {{ macros.install_packages(rabbitmq_packages | customizable("packages")) }} {% elif base_distro == 'ubuntu' %} {% set rabbitmq_packages = [ - 'rabbitmq-server' + 'erlang-nox', + 'socat', + 'logrotate', + 'http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.2/rabbitmq-server_3.6.2-1_all.deb' ] %} {{ macros.install_packages(rabbitmq_packages | customizable("packages")) }} @@ -21,7 +24,7 @@ MAINTAINER {{ maintainer }} {% elif base_distro == 'debian' %} {% set rabbitmq_packages = [ 'erlang-nox', - 'http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.7/rabbitmq-server_3.5.7-1_all.deb' + 'http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.2/rabbitmq-server_3.6.2-1_all.deb' ] %} {{ macros.install_packages(rabbitmq_packages | customizable("packages")) }} @@ -29,15 +32,18 @@ MAINTAINER {{ maintainer }} {% endif %} {% block rabbitmq_install_plugins %} + # NOTE(sdake): the /bin/true unblocks the rabbitmq-plugins tool. Not sure how # or why. My suspicion is it sends a signal to the parent # process. + RUN rm -rf /var/lib/rabbitmq/* \ - && curl -o /usr/lib/rabbitmq/lib/rabbitmq_server-3.5.7/plugins/rabbitmq_clusterer-3.5.x-189b3a81.ez http://www.rabbitmq.com/community-plugins/v3.5.x/rabbitmq_clusterer-3.5.x-189b3a81.ez \ + && curl -o /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.2/plugins/rabbitmq_clusterer-3.6.2.ez http://www.rabbitmq.com/community-plugins/v3.6.x/rabbitmq_clusterer-3.6.x-667f92b0.ez \ && /usr/lib/rabbitmq/bin/rabbitmq-plugins enable --offline \ rabbitmq_management \ rabbitmq_clusterer \ && /bin/true + {% endblock %} COPY extend_start.sh /usr/local/bin/kolla_extend_start diff --git a/releasenotes/notes/rabbit-3.6.2-accdb2d3ecd493cc.yaml b/releasenotes/notes/rabbit-3.6.2-accdb2d3ecd493cc.yaml new file mode 100644 index 0000000000..02c050d326 --- /dev/null +++ b/releasenotes/notes/rabbit-3.6.2-accdb2d3ecd493cc.yaml @@ -0,0 +1,3 @@ +--- +upgrade: + - RabbitMQ version was increased to 3.6.2