Commit Graph

422 Commits

Author SHA1 Message Date
Jean-Sébastien Pédron bf042f7a0c
Update rabbitmq-components.mk 2018-06-07 11:31:43 +02:00
Jean-Sébastien Pédron 9e7e96b9c9
Makefile: Move `--no-recursion` before `-T`
On tar(1) command line, `--recursion` and `--no-recursion` are
applicable to directories/files/files list following them, not before
them. Therefore we need to specify the files list (`-T`) after
`--no-recursion`.

Before this change, the default mode was used for everything in the
files list, which is `--recursion`. And because the files list was
listing all directories and files, files were stored multiple times in
the resulting tar archive: once for their entry in the files list and
once for each parent directories.

This fix greatly reduce the size of the source archive: it goes from 7.1
MiB to 2.4 MiB for the xz-compressed tar.
2018-04-20 10:35:57 +02:00
Jean-Sébastien Pédron 2abd907e42
Makefile: Pass `--only prod` to `mix deps.get`
mix(1) is usually using `$MIX_ENV` except in this case. The reasoning is
explained in elixir-lang/elixir#2730.

[#156916012]
2018-04-19 16:02:42 +02:00
Jean-Sébastien Pédron a26bfb44d5
Update erlang.mk 2018-04-11 10:54:14 +02:00
Jean-Sébastien Pédron c1aebc03ad
Update rabbitmq-components.mk 2018-04-11 10:51:29 +02:00
Jean-Sébastien Pédron 0599fdfa44
Update rabbitmq-components.mk 2018-04-11 10:10:11 +02:00
Michael Klishin 61a152d7c6
Merge pull request #78 from rabbitmq/require-elixir-1.6.0
Reflect the Elixir 1.6.0+ requirement in control file
2018-04-10 18:07:56 +08:00
Michael Klishin 8470d3808e
Reflect the Elixir 1.6.0+ requirement in control file
Per discussion with @dumbbell.
2018-04-10 13:05:05 +03:00
Jean-Sébastien Pédron a3f7665f07
Update erlang.mk 2018-03-02 19:09:19 +01:00
Jean-Sébastien Pédron 7f36946c85
Update rabbitmq-components.mk 2018-01-30 15:23:54 +01:00
Luke Bakken e22d674583
Update rabbitmq-components.mk 2018-01-29 16:22:23 -08:00
Jean-Sébastien Pédron 5a6d711263
Update rabbitmq-components.mk 2018-01-23 17:21:43 +01:00
Jean-Sébastien Pédron 9e44bc73d6
Update rabbitmq-components.mk 2018-01-23 15:31:31 +01:00
Diana Corbacho aea7945279 Update rabbitmq-components.mk 2018-01-22 22:13:30 +00:00
Michael Klishin 5623c57398
Merge pull request #76 from vuntz/ocf-clustered-with
OCF RA: Do not consider local failures as remote node problems
2017-12-20 18:34:36 +03:00
Vincent Untz 056f7ed2ec OCF RA: Do not consider local failures as remote node problems
In is_clustered_with(), commands that we run to check if the node is
clustered with us, or partitioned with us may fail. When they fail, it
actually doesn't tell us anything about the remote node.

Until now, we were considering such failures as hints that the remote
node is not in a sane state with us. But doing so has pretty negative
impact, as it can cause rabbitmq to get restarted on the remote node,
causing quite some disruption.

So instead of doing this, ignore the error (it's still logged).

There was a comment in the code wondering what is the best behavior;
based on experience, I think preferring stability is the slightly more
acceptable poison between the two options.
2017-12-20 10:24:21 +01:00
Michael Klishin b3925d446d
Merge pull request #72 from cloudamqp/readable-etc
Revert "Change to 2750"
2017-12-19 18:08:25 +03:00
Carl Hörberg 3e3255d063 Revert "Change to 2750"
This reverts commit 5df0873777.
2017-12-18 22:49:58 +01:00
Michael Klishin 86380d5285
Merge pull request #71 from rabbitmq/rabbitmq-server-release-153734997-master
Merge #70 to master
2017-12-18 22:22:46 +03:00
Luke Bakken 63cf8a6563
Merge branch 'rabbitmq-server-release-153734997' into rabbitmq-server-release-153734997-master 2017-12-18 10:14:21 -08:00
Luke Bakken d630709ae7
Ensure files created by RabbitMQ are not world-readable. Add gid bit to /var/log/rabbitmq to ensure sub-directories and files are group-id "adm" 2017-12-18 08:20:58 -08:00
Carl Hörberg ead58795ef
Make adm group owner of /var/log/rabbitmq
Adm should be group owner of everything in /var/log according to Debian/Ubuntu guidelines. Makes it possible for users in the adm group to read logs without sudo:ing.
2017-12-18 08:20:58 -08:00
Vincent Untz ea745e62c4
OCF RA: Fix syntax error
(cherry picked from commit a9b4a4ff97a96e798de51933fc44f61aa6bc88a3)
2017-12-14 07:07:02 +03:00
Vincent Untz 8ab892e519
OCF RA: Fix syntax error
(cherry picked from commit a9b4a4ff97a96e798de51933fc44f61aa6bc88a3)
2017-12-14 07:06:31 +03:00
Vincent Untz b7c0c5a5b5
OCF RA: Avoid promoting nodes with same start time as master
It may happen that two nodes have the same start time, and one of these
is the master. When this happens, the node actually gets the same score
as the master and can get promoted. There's no reason to avoid being
stable here, so let's keep the same master in that scenario.

(cherry picked from commit 62a4f75611)
(cherry picked from commit 861f2a57f916a9829e9a11092ada2bb52bdaf028)
2017-12-14 07:06:23 +03:00
RabbitMQ CI a8f5d9df44 Add package changelog entries for 3.7.1-beta.1 2017-12-13 18:07:55 +00:00
Michael Klishin ad2925d8b2
Merge pull request #59 from rabbitmq/lrb-specify-nofile
Add LimitNOFILE with comment about open files limit
2017-12-12 23:50:15 +03:00
Michael Klishin 7e93369f0c
Merge pull request #64 from vuntz/ocf-fix-notify-start
OCF RA: Fix various issues with start notification handler
2017-12-12 19:19:39 +03:00
Michael Klishin d59a016346
Merge pull request #63 from vuntz/ocf-no-promote-same-start-time
OCF RA: Avoid promoting nodes with same start time as master
2017-12-12 19:19:25 +03:00
Luke Bakken 1d81808174
Merge pull request #65 from rabbitmq/lrb-specify-nofile-master
Add LimitNOFILE with comment about open files limit
2017-12-12 07:42:29 -08:00
Luke Bakken eedeca1b5d
Explicitly set our recommended open files limit
Comment out the value
2017-12-12 07:39:22 -08:00
Luke Bakken 99d3f6607f
Explicitly set our recommended open files limit
Comment out the value
2017-12-12 07:37:32 -08:00
Jean-Sébastien Pédron 69eb25b2c5
Merge branch 'fix-offline-build' 2017-12-11 11:27:32 +01:00
Jean-Sébastien Pédron 57c89e61c6
Makefile: Force-install Hex before calling `mix deps.get`
This should resolve the issue where the build is stuck on the "Shall I
install Hex?" interactive prompt.

[#153358632]
2017-12-11 11:26:15 +01:00
Vincent Untz a6dc3f91b0 OCF RA: Fix logging in start notification handler
The "post-start end" log message was written too early (some things were
still done afterwards), and not in all cases (it was inside a if
statement).
2017-12-08 14:17:38 +01:00
Vincent Untz 2f284bf595 OCF RA: Do not start rabbitmq if notification of start is not about us
Right now, every time we get a start notification, all nodes will ensure
the rabbitmq app is started. This makes little sense, as nodes that are
already active don't need to do that.

On top of that, this had the sideeffect of updating the start time for
each of these nodes, which could result in the master moving to another
node.
2017-12-08 14:15:24 +01:00
Vincent Untz a8e7a62513 OCF RA: Fix test for no node in start notification handler
If there's nothing starting and nothing active, then we do a -z " ",
which doesn't have the same result as -z "". Instead, just test for
emptiness for each set of nodes.
2017-12-08 14:13:59 +01:00
Vincent Untz 62a4f75611 OCF RA: Avoid promoting nodes with same start time as master
It may happen that two nodes have the same start time, and one of these
is the master. When this happens, the node actually gets the same score
as the master and can get promoted. There's no reason to avoid being
stable here, so let's keep the same master in that scenario.
2017-12-08 13:32:45 +01:00
Daniil Fedotov 31b71cf7c2
Merge pull request #62 from rabbitmq/fix-offline-build
Bundle Elixir dependencies and fix offline build
2017-12-08 11:37:13 +00:00
Jean-Sébastien Pédron 2ea5d55e2c
Makefile: Bundle Elixir dependencies in the RabbitMQ source archive
mix(1) doesn't seem to provide a nice way to provide dependencies'
sources ourselves. The "solution" is to override HOME and set it to
$(DEPS_DIR), call mix `deps.get` and remove the fetched dependencies.
The goal is to populate the Hex cache and bundle it in the source
archive. No worries, you can thank me later.

Later, when we build the source archive, we override HOME again to point
mix(1) to the Hex cache: it is now happy to "fetch" dependencies. This
part is managed by `rabbitmq-mix.mk` which is copied `rabbitmq-mix.mk`
from rabbit_common to the Elixir components (e.g. rabbitmq_cli) in the
source archive.

References rabbitmq/rabbitmq-server-release#61.
[#153358632]
2017-12-07 12:23:24 +01:00
Jean-Sébastien Pédron ec6a6c78fa
Update rabbitmq-components.mk 2017-12-01 15:16:46 +01:00
Jean-Sébastien Pédron f2c1e48f08
Update rabbitmq-components.mk 2017-12-01 11:06:59 +01:00
RabbitMQ CI 000c83527e Add package changelog entries for 3.7.0 2017-11-29 16:52:39 +00:00
Daniil Fedotov d0d38ac449 Require Erlang 19.3 to install RabbitMQ on windows.
RabbitMQ will not start if erlang version is lower than 19.3.
Warn before installation starts.
2017-11-29 12:36:34 +00:00
Daniil Fedotov 58dd6e03ac Require Erlang 19.3 to install RabbitMQ on windows.
RabbitMQ will not start if erlang version is lower than 19.3.
Warn before installation starts.
2017-11-29 12:35:19 +00:00
Jean-Sébastien Pédron ea4e78e5d2
upgrade: Testsuite was moved to rabbitmq-ci
... under the server-release/scripts/upgrade subdirectory.

The testsuite will remain standalone, i.e. usable outside of CI. The
reason it is moved out of rabbitmq-server-release is that this
repository is dedicated to release building files only. Furthermore this
repository is tagged.
2017-11-29 11:24:47 +01:00
Jean-Sébastien Pédron fc560a973b
upgrade/upgrade-to-3.8-helpers.sh: Add v3.8.x helper 2017-11-29 09:45:47 +01:00
Jean-Sébastien Pédron 647b2e60c2
Update rabbitmq-components.mk 2017-11-28 14:01:13 +01:00
Jean-Sébastien Pédron 661ec919dc
packaging: Bump minmum Erlang version to 19.3 in Debian & RPM packages
[#153052754, #153171868]
2017-11-27 12:46:48 +01:00
RabbitMQ CI 2755a5a5d1 Add package changelog entries for 3.7.0-rc.2 2017-11-16 17:50:24 +00:00