Philip Kuryloski
44b77e8b1e
Monorepo GitHub Actions
...
Add GitHub Actions workflows for Erlang/OTP 22.3 & 23.0.
The workflows run tests for each component that is now part of this
repo, with test suite parallelization specifically for the rabbit
erlang application.
2020-11-13 14:41:22 +01:00
Arnaud Cogoluègnes
6c24522651
Update rabbitmq-components.mk
2020-11-03 14:27:36 +01:00
Michael Klishin
4f7db32452
Provide an extra hint in 'rabbitmqctl add_user' output
...
to give the user an idea that she would have to
grant permissions to the newly added user.
2020-10-25 16:43:37 +03:00
Arnaud Cogoluègnes
82e7cb95a1
Merge pull request #460 from rabbitmq/queue-type-info-keys
...
Add relevant info keys for stream and quorum queues
2020-10-22 13:52:47 +02:00
Michael Klishin
57a013e2b3
Update rabbitmq-components.mk
2020-10-21 12:55:33 +03:00
Michael Klishin
864bc3ab26
Avoid Elixir compiler warnings about unknown modules
...
Note that JSON and CSV are listed under deps/0 but the compiler
seemingly fails to discover them.
2020-10-20 13:48:01 +03:00
Michael Klishin
d7824289f4
List Elixir 1.11 as supported
2020-10-20 13:28:58 +03:00
Michael Klishin
053104258c
Simplify node ID generation to just a random number [0, 1024]
2020-10-20 09:18:49 +03:00
Luke Bakken
1a7df254c3
mix format
2020-10-19 17:31:03 -07:00
Luke Bakken
02e234c2de
Use the current epoch seconds to generate CLI name
...
This will limit the number of CLI node names to 1024 by taking the
current epoch seconds modulo a random number between 1 and 1024.
Follow-up to the following:
rabbitmq/rabbitmq-server#552
https://groups.google.com/d/msg/rabbitmq-users/aSnlC5hSvMk/sIWtv5fxCgAJ
2020-10-19 17:27:43 -07:00
dcorbacho
d7aaf7bccb
Add relevant info keys for stream and quorum queues
2020-10-19 15:57:08 +01:00
Michael Klishin
b5bdfe701b
Don't consider nodes in maintenance mode to be quorum critical
...
they should have transferred their QQ replicas to its peers
and won't be considered for new replica placement
or Raft leader elections.
Closes #2469 .
2020-10-19 17:29:12 +03:00
Michael Klishin
5a95b3b847
Merge pull request #450 from rabbitmq/auth-attempt-metrics
...
Add enable/disable and list auth attempt metrics
2020-10-14 23:56:47 +03:00
Michael Klishin
c43db9d4d9
Auth attempt command naming, add JSON --formatter support
2020-10-14 23:32:16 +03:00
Luke Bakken
6232f18eed
mix format
2020-10-12 10:07:04 -07:00
Jean-Sébastien Pédron
fcd487f93f
Travis CI: Update config from rabbitmq-common
2020-10-12 18:10:32 +02:00
Jean-Sébastien Pédron
d8dd6c190a
Travis CI: Update config from rabbitmq-common
2020-10-12 17:42:54 +02:00
Jean-Sébastien Pédron
15eef0b52a
test: Remove assertions around `mnesia_dir_not_found`
...
... when no Mnesia directory is specified. The reason is that the
default behavior changed: if the node is unavailable and no Mnesia
directory is configured, we use the default directory.
2020-10-12 17:42:50 +02:00
Luke Bakken
69a51a9c89
mix format
2020-10-12 07:29:00 -07:00
Luke Bakken
a9a2164026
Handle offline remote node in rename_cluster_node
...
If the remote node is unavailable, we use the default values of
`mnesia_dir` and `feature_flags_file`
2020-10-12 07:27:53 -07:00
Michael Klishin
12ec3716e6
Squash a compiler warning
2020-10-05 17:48:55 +03:00
Jean-Sébastien Pédron
1925e2970f
mix.exs: Bump requirement to 1.10.4
...
We only test against 1.10.4, so there is no way we can claim
compatibility with older versions.
2020-10-05 15:43:35 +02:00
Luke Bakken
95170e037f
Update minimum required Elixir version
...
See https://github.com/rabbitmq/rabbitmq-ci/pull/33
Part of an effort to use Elixir 1.9 as the minimum.
cc @dumbbell
2020-10-01 08:34:01 -07:00
dcorbacho
a40f08fbc4
Fix stream commands
2020-09-30 16:34:53 +01:00
dcorbacho
eaacd594f5
Move set stream retention policy to rabbitm-streams
...
Add forgotten tests
2020-09-30 16:34:53 +01:00
dcorbacho
fb8610ff44
Add/delete stream replica commands
...
New ctl utility for stream queues
[#171207068 ]
2020-09-30 16:34:50 +01:00
dcorbacho
b2698901d3
Set stream retention policy command
...
[#171207092 ]
2020-09-30 16:34:13 +01:00
dcorbacho
ece0aa7609
Shrink quorum queues on forget cluster node command
...
When the node is offline we can only offer a warning - operator
must use the shrink command once the node is restarted
2020-09-25 15:06:39 +01:00
dcorbacho
49616a709a
Add --by-source option to list auth attempts command
2020-09-24 12:29:52 +01:00
dcorbacho
156df91ae2
Rename auth attempt commands
2020-09-23 11:49:13 +01:00
Michael Klishin
c691658476
Squash a couple of compiler warnings
2020-09-22 05:55:56 +03:00
Michael Klishin
664db6c28f
Handle cases when there's no message to peek at
2020-09-21 12:33:45 +03:00
Michael Klishin
446e164f27
'rabbitmq-queues peek': tighter position validation, basic JSON formatter support
2020-09-21 12:00:45 +03:00
Michael Klishin
09f60618db
'rabbitmq-queues peek': use MergesDefaultVirtualHost
2020-09-20 20:14:49 +03:00
Michael Klishin
e9919a9651
peek command: limit to rabbitmq-queues
2020-09-20 20:13:31 +03:00
Michael Klishin
aa2b985461
Merge branch 'master' into qq-peek-command
2020-09-20 20:02:53 +03:00
Michael Klishin
28a5f4fc45
Improve error handling, including with --formatter=json
2020-09-18 11:58:15 +03:00
Michael Klishin
f16166d29b
rabbitmq-queues reclaim_quorum_memory: restore --vhost mention in usage
...
apparently quite a few commands have it, even though it's
documented in the general/global parameters section.
2020-09-18 10:18:11 +03:00
Michael Klishin
a6e17863fb
Introduce RabbitMQ.CLI.Core.MergesDefaultVirtualHost
...
Despite being the implicit default, the "/" virtual host
may be required in function assertions, so an explicit
merge can still be necessary.
Lets introduce a reusable macro module for this.
2020-09-18 10:00:52 +03:00
Michael Klishin
9ba1f594f7
Wording
2020-09-18 08:15:42 +03:00
dcorbacho
dd5bed6308
Reclaim quorum memory command
2020-09-16 12:38:55 +01:00
kjnilsson
53a5839ae7
Quorum queue peek command
2020-09-14 12:05:46 +01:00
dcorbacho
bb005b1ce6
Add enable/disable and list auth attempt metrics
2020-08-28 15:22:19 +01:00
Michael Klishin
bf12dc98fa
set_user_limits: mention <username> in parameter docs
2020-08-25 20:24:18 +03:00
Michael Klishin
9b8b7436e8
Wording
2020-08-25 19:09:00 +03:00
Michael Klishin
185b6d5352
Avoid double spacing between command lines
...
when no arguments are provided. This makes the output
consistent with that of `help' and `--help'.
2020-08-20 14:27:31 +03:00
Luke Bakken
b3a139fbfe
Update rabbitmq-components.mk
2020-08-20 14:27:31 +03:00
Michael Klishin
3d621a5984
Include total amount of memory used into 'rabbitmq-diagnostics status' output
...
--formatter=json already reports that value.
Spotted by Jon P on rabbitmq-users and @lukebakken.
2020-08-20 14:27:31 +03:00
Jean-Sébastien Pédron
c7dc8a2958
Update rabbitmq-components.mk
2020-08-20 14:27:31 +03:00
Luke Bakken
3fb7a9f689
Update rabbitmq-components.mk
2020-08-20 14:27:31 +03:00
dcorbacho
8ae539f3f8
Update erlang.mk
2020-08-20 14:27:30 +03:00
Michael Klishin
812e6dee38
Update rabbitmq-components.mk
2020-08-20 14:27:30 +03:00
Michael Klishin
d0972006b2
Update rabbitmq-components.mk
2020-08-20 14:27:30 +03:00
Michael Klishin
6f17c6cbd0
More reliable drain and revive command assertions
2020-08-20 14:27:30 +03:00
dcorbacho
7e9d0b87df
Revert drop of Exhibit B on MPL 2.0
2020-08-20 14:27:30 +03:00
dcorbacho
fb051224b1
Update LICENSE
2020-08-20 14:27:30 +03:00
Michael Klishin
15ea3d3de0
Avoid double spacing between command lines
...
when no arguments are provided. This makes the output
consistent with that of `help' and `--help'.
2020-08-05 19:36:32 +03:00
Luke Bakken
b483db91c3
Update rabbitmq-components.mk
2020-08-04 08:41:46 -07:00
Michael Klishin
4445a3267e
Include total amount of memory used into 'rabbitmq-diagnostics status' output
...
--formatter=json already reports that value.
Spotted by Jon P on rabbitmq-users and @lukebakken.
2020-07-31 03:29:15 +03:00
Jean-Sébastien Pédron
e644c5241a
Update rabbitmq-components.mk
2020-07-30 12:06:51 +02:00
Luke Bakken
389586bc5a
Update rabbitmq-components.mk
2020-07-29 10:02:02 -07:00
dcorbacho
d2c5d02cfd
Update erlang.mk
2020-07-21 14:32:06 +01:00
Michael Klishin
a20aff9de5
Update rabbitmq-components.mk
2020-07-21 13:12:45 +03:00
Michael Klishin
c69f24d4df
Update rabbitmq-components.mk
2020-07-21 03:42:48 +03:00
Michael Klishin
51b60e3ac3
More reliable drain and revive command assertions
2020-07-21 03:42:48 +03:00
dcorbacho
5b6bbc039b
Revert drop of Exhibit B on MPL 2.0
2020-07-20 16:57:52 +01:00
dcorbacho
a806216533
Update LICENSE
2020-07-20 10:51:27 +01:00
Ayanda-D
74c183e69e
Update list_user_limits command defaults
2020-07-17 15:59:20 +01:00
Ayanda-D
30160430b2
Update license, ref: #447
2020-07-17 15:59:20 +01:00
Ayanda-D
afcae06cd9
Include acting-user in user-limit operations & doc-guides
2020-07-17 15:59:20 +01:00
Anupama Singh
128201baa6
New command added to list user limits
2020-07-17 15:59:20 +01:00
Ayanda-D
dbbe62e8a4
Test case added for command to set both max-connections and max-channels
...
Clearing all user limits
Testcase to test clearing all limits for user
2020-07-17 15:59:20 +01:00
Anupama Singh
d1301e5ce5
Test cases for setting and clearing user connection/channel limits
2020-07-17 15:59:20 +01:00
Anupama Singh
57b95856d8
Clearing user connection/channel limits
2020-07-17 15:56:48 +01:00
Anupama Singh
e02fdb63c8
Setting user connection/channel limits
2020-07-17 15:56:48 +01:00
Michael Klishin
f05a7c5f09
Update MPL2 license file, drop Exhibit B
...
and add a VMware copyright notice.
We did not mean to make this code Incompatible with Secondary Licenses
as defined in [1].
1. https://www.mozilla.org/en-US/MPL/2.0/FAQ/
2020-07-17 14:53:10 +03:00
Michael Klishin
5553a24545
Sync license headers with MPL2 in master
2020-07-14 03:54:19 +03:00
Michael Klishin
21abbe1fc8
rabbitmq-upgrade {drain,revive}: produce a sensible error when target node does not support maintenance mode
2020-07-14 03:52:02 +03:00
Michael Klishin
c9d984eb4c
Report node maintenance status in 'rabbitmq-diagnostics cluster_status'
...
Part of rabbitmq/rabbitmq-server#2321
2020-07-14 03:52:02 +03:00
Michael Klishin
c9ed8be1bc
Report node maintenance status in 'rabbitmq-diagnostics status'
...
Part of rabbitmq/rabbitmq-server#2321
2020-07-14 03:52:02 +03:00
Michael Klishin
998701eb05
Introduce 'rabbitmq-upgrade drain' and 'rabbitmq-upgrade revive'
...
A part of rabbitmq/rabbitmq-server#2321
2020-07-14 03:52:02 +03:00
Michael Klishin
30ee526b2a
Add doc guide links to {suspend,resume}_listeners
2020-07-14 03:52:02 +03:00
Michael Klishin
a8b5408992
Follow our standard file naming convention for commands
2020-07-14 03:52:02 +03:00
Michael Klishin
35103fe7da
Introduce 'rabbitmqctl {suspend,resume}_listeners'
...
Not directly related to rabbitmq/rabbitmq-server#2321
but useful on its own. We've had requests for and discussions
about such commands in the past and now that Ranch supports
listener suspension, there aren't many reasons not to do it.
2020-07-14 03:52:01 +03:00
dcorbacho
679ca254f3
Switch to Mozilla Public License 2.0 (MPL 2.0)
2020-07-11 19:23:07 +01:00
Michael Klishin
db662cfa59
Re-categorize some rabbitmq-diagnostics commands
...
For a couple of reasons:
* The Observability, Monitoring and Health Checks group has grown too large
* Some commands in it clearly have to do with exploring effective node
or CLI tool configuration, not its dynamically changing operational state
2020-07-05 15:35:32 +07:00
Michael Klishin
9ac54057f2
Wording
2020-07-05 03:50:48 +07:00
Michael Klishin
7bf2f6b4ef
erlang_cookie_sources: support Windows-specific HOMEDRIVE and HOMEPATH
2020-07-05 03:49:48 +07:00
Michael Klishin
db299967e0
Introduce 'rabbitmq-diagnostics erlang_cookie_sources'
...
to help troubleshoot authentication issues.
Inspired by an idea from @gerhard.
2020-07-05 03:19:50 +07:00
Michael Klishin
31550672da
Squash a compiler warning
2020-07-03 10:57:23 +07:00
Michael Klishin
4f80dd1369
Make RABBITMQ_ERLANG_COOKIE deprecation message pop [as in colors]
2020-07-03 09:05:35 +07:00
Michael Klishin
d7ca0e9446
Deprecate RABBITMQ_ERLANG_COOKIE env variable support
...
It's not worth the confusion it causes in practice since
the server does not support it.
Per discussion with @gerhard @dumbbell.
Closes #443 .
2020-07-02 08:25:49 +03:00
Michael Klishin
f8c9b3db33
More end-to-end integration tests for #439
2020-07-02 07:32:26 +03:00
Michael Klishin
2101043257
Introduce a first class autocomplete command
...
Currently we have a --auto-complete magic argument which
does not show up in `help` and requires its argument to be
explcitly -- separated from the actual flag, which is
counter-intuitive.
This introduces a new autocomplete command which is delegated
to by --auto-complete, much like --help is simply a special
way of invoking the `help` command.
Closes #439
2020-07-02 07:29:40 +03:00
Michael Klishin
9f031d3f0b
Special case single node clusters for 'rabbitmq-queues check_if_node_is_quorum_critical'
...
References rabbitmq/rabbitmq-cli#432
2020-07-01 18:25:06 +03:00
Michael Klishin
18a3daf9be
rabbitmqctl eval: consume multiple lines from standard input
...
Part of #438
2020-07-01 16:55:33 +03:00
Michael Klishin
a98e38dd80
Introduce 'rabbitmqctl eval_file [file path]'
...
for evaluation of scripts in environments where standard input
redirection is not an option or problematic, e.g.
certain Windows environments.
Closes #438
2020-07-01 03:11:13 +03:00
Michael Klishin
0f1f6d2be7
'rabbitmqctl eval': accept expression to evaluate from stdin
...
References #438
2020-07-01 02:29:22 +03:00
Michael Klishin
24947666b9
if a node is the only cluster member, pass on the mirror sync critical check
...
Per discussion with @harshac, @ansd
Closes rabbitmq/rabbitmq-cli#432
2020-07-01 01:46:31 +03:00
Michael Klishin
921d349e37
Make --help, help usage help messages consistent
...
* `help` printed an "Error:" at the top for no reason
* `help [command]` with a non-existent command did not offer a suggestion
like an attempt to invoke a non-existent command would
* Exit codes were not consistent
* `help --list-commands` had line break issues
With this change,
* `help` is consistent with --help
* `help [command]` is consistent with `[command] --help`
* If a command is not found, either during the execution flow
or `help [commnad]`, we consistently attempt a Jaro distance suggestion
* Successful or effectively successful exits from the `help`
command do not produce any error messages at the top
2020-06-29 03:57:52 +03:00