Commit Graph

1817 Commits

Author SHA1 Message Date
Luke Bakken 4fb9bab458 Handle case where import file does not exist or is zero-sized.
Fixup printing the real stacktrace when --print-stacktrace is used
2019-11-18 14:39:50 -08:00
Luke Bakken 75fa655c02 Add newline 2019-11-18 13:49:59 -08:00
Michael Klishin b49b639add ctl export_definitions: fail validation w/o positional args 2019-11-19 00:41:30 +03:00
Michael Klishin 7c5933052e Finish ctl import_definitions 2019-11-16 06:46:26 +03:00
Michael Klishin 19a7305306 DefaultOutput: propagate {:error, exit_code, message} tuples 2019-11-16 05:19:18 +03:00
Michael Klishin fa0db7ad22 Initial version of rabbitmqctl import_definitions 2019-11-16 05:18:52 +03:00
Michael Klishin 27212997c2 A typo 2019-11-15 03:54:01 +03:00
Michael Klishin 0927cdf24d Cosmetics 2019-11-15 03:53:13 +03:00
Michael Klishin c73d04c216 This invariant is impossible here 2019-11-15 03:05:46 +03:00
Michael Klishin 7c0718800f Introduce rabbitmqctl export_definitions [path] 2019-11-15 02:20:02 +03:00
Michael Klishin 53d85f4945 New command group section: definitions 2019-11-14 21:36:24 +03:00
Michael Klishin c85530dbf2 Cosmetics 2019-11-14 21:35:22 +03:00
Michael Klishin ceb3aff309 hipe_compile: deprecate
References rabbitmq/rabbitmq-website#884.
2019-11-01 02:50:38 +03:00
Michael Klishin 68c1211cba Whitespace 2019-10-23 15:59:31 +03:00
Gabriele Santomaggio 56ef537eb0 Add support for IPv6
Add the inet6 family test. When RabbitMQ is listening in ipv6 the test
fail. This commit tests both ipv4 and ipv6.
2019-10-23 11:50:28 +02:00
Luke Bakken cdbaee05ac Add erlang formatter function heads
Fixes #383
2019-10-21 17:49:08 -07:00
Arnaud Cogoluègnes c004ff4607 Improve unit label in check_certificate_expiration
This avoids output like "within 1 years".

And fix a typo.

References #304, #305
2019-10-09 10:16:43 +02:00
Michael Klishin b4de0cd321 Wording 2019-10-08 09:56:37 -05:00
Michael Klishin 593082e18d diagnostics check_certificate_expiration: wording, new default
Four weeks is when many CAs and operators send
out warnings. One day is too short a notice.
2019-10-08 09:42:30 -05:00
Michael Klishin 99e9b0b2b6 Simplify these assertions a bit 2019-10-08 09:41:31 -05:00
Michael Klishin 7b1bf6c734 Squash a warning 2019-10-08 09:41:17 -05:00
Arnaud Cogoluègnes f0bba26e8c Add test for certificate expiration verification
References #304, #305
2019-10-08 16:10:04 +02:00
Arnaud Cogoluègnes 260e797ee6 Remove unused variable
References #304, #305
2019-10-08 14:26:20 +02:00
Arnaud Cogoluègnes bede583bc6 Add flag usage in check_certificate_expiration 2019-10-08 13:41:03 +02:00
dcorbacho fe2bd8d95e Check certificates command
[#163597674]
2019-10-07 16:48:49 +01:00
dcorbacho 4f5706c174 Certificates command
[#163597674]
2019-10-01 10:59:26 +01:00
Michael Klishin c7e60774d0 Minor Prometheus listener description edits 2019-09-26 13:05:32 +03:00
Michael Klishin 254fe20453 Move quorum_status to rabbitmq-queues, add basic tests 2019-09-26 08:16:33 +03:00
Michael Klishin 801b52ac28 rabbitmq-queues [add, remove]: doc wording 2019-09-26 07:42:20 +03:00
Michael Klishin a14cf63a0e Expand rabbitmq-queues shrink argument docs 2019-09-26 07:17:10 +03:00
Michael Klishin 2fff042f8d Expand rabbitmq-queues grow argument docs 2019-09-26 06:39:04 +03:00
Michael Klishin a9881c5037 Add missing usage arguments for rabbitmq-queues rebalance 2019-09-25 19:52:19 +03:00
Arnaud Cogoluègnes 67a38fc2e9 Handle empty output in JSON stream
Some streaming commands with a duration argument can send the empty
string as the output (along with a finishing marker). This case was not
handled properly and would result in a stack trace when the command
returned once the duration has elapsed.
2019-09-25 16:56:47 +02:00
Jean-Sébastien Pédron 0cb95e7b55 log_tail_stream_command_test: Bump stream duration to 15 seconds
... from 5 seconds. Hopefully this will increase the chance of seeing
the messages logged by the testcase.
2019-09-24 11:48:47 +02:00
Michael Klishin d5ba3e32de Correct command_line_arguments delegation in report 2019-09-24 02:10:28 +03:00
Michael Klishin 5a137480b3 Merge pull request #378 from rabbitmq/consume-events-command
Consume event command
2019-09-24 01:55:57 +03:00
Michael Klishin 99f1790ac3 Update test expectations 2019-09-24 01:52:31 +03:00
Michael Klishin 2763ed823d diagnostics consume_event_stream: --quiet by default
We produce a stream of JSON objects which is meant
to be piped to jq or similar.
2019-09-24 01:49:27 +03:00
Michael Klishin 2360057712 Wording 2019-09-24 00:56:58 +03:00
Michael Klishin 4c33ce0961 Move command_line_arguments to rabbitmq-diagnostics 2019-09-24 00:54:11 +03:00
dcorbacho b5e5d0a274 Command line arguments command
* Reports the command line flags returned by `init:get_arguments()`

[#159699409]
2019-09-23 20:07:33 +01:00
dcorbacho 15d7eb2858 Diagnostics: test consume_event_stream_command
[#168224266]
2019-09-23 17:19:07 +01:00
Michael Klishin 6193023a18 Merge pull request #375 from rabbitmq/post-upgrade-command
Post upgrade command
2019-09-22 08:32:30 +03:00
Michael Klishin ccc7ebbafc rabbitmq-upgrade: basic tests for post_upgrade, polishing 2019-09-22 08:31:20 +03:00
Michael Klishin 06aa0afb06 diagnostics: consume_events_stream => consume_event_stream
Pair: @dcorbacho.
2019-09-20 20:01:27 +03:00
Michael Klishin eb6825ebbf Introduce a formatter for infinite streams of JSON objects
The input can be fed to 'jq'. There can be no JSON array
boundaries as the stream potentially never finishes.

Pairs: @dcorbacho @gerhard.
2019-09-20 19:59:32 +03:00
Luke Bakken 0ad420d293 Merge pull request #377 from Whitespirit0/patch-1
Fix set_parameter command output
2019-09-20 08:57:04 -07:00
Luke Bakken 526ddfed9c Restore rabbitmq-cli specific test directions 2019-09-20 08:41:29 -07:00
dcorbacho 9d7a873c97 Consume events stream command
[#168224266]
2019-09-20 13:52:51 +01:00
Whitespirit0 ea2ace438c Update set_parameter test to match new output 2019-09-20 11:41:33 +02:00
Whitespirit0 f26b755a8d Fix set_parameter command output
Invert parameter name and component name in output.
2019-09-20 11:38:59 +02:00
dcorbacho dc29e5546c Post upgrade command
[#166480167]
2019-09-18 11:37:18 +01:00
dcorbacho 8c77ba5078 Use pretty table formatter
[#166480197]
2019-09-16 11:18:42 +01:00
Karl Nilsson 2b430c0763 Merge pull request #373 from rabbitmq/rebalance-quorum-queue
Rebalance quorum queues command
2019-09-13 15:55:51 +01:00
kjnilsson 6534b029ec Update rabbitmq-components.mk 2019-09-13 10:24:16 +01:00
Diana Corbacho 5ebbd46989 Rebalance command
[#166551605]
2019-09-12 11:21:33 +01:00
kjnilsson 139975667b Update rabbitmq-components.mk 2019-09-04 10:30:54 +01:00
Jean-Sébastien Pédron ed9de9d591 rabbitmqctl.ex: Don't call System.stacktrace()
... now we depend on Elixir 1.7+. We can use the new syntax or, in this
case, simply call `Exception.format_stacktrace()` without any argument:
it will take care of querying the stacktrace.

This fixes a warning reported by elixirc.
2019-09-03 15:19:56 +02:00
Michael Klishin 32030ed581 Merge pull request #371 from rabbitmq/vhost-description
Use new 'description' and 'tag' items on list vhosts
2019-08-30 13:09:02 +03:00
Jean-Sébastien Pédron a716fb4bfe Update erlang.mk 2019-08-29 20:44:56 +02:00
Michael Klishin 8bd68a34f1 Typos 2019-08-29 02:03:12 +03:00
Michael Klishin 4e536ff45b rabbitmqctl add_vhost: parse tags
Per review feedback in rabbitmq/rabbitmq-server#2080.
2019-08-28 09:58:29 +03:00
Michael Klishin 74b271ae4d Merge branch 'master' into vhost-description 2019-08-27 16:28:29 +03:00
Luke Bakken 317610499b Add GitHub issue templates 2019-08-26 18:59:50 -07:00
Michael Klishin 4505b9a85f ctl add_vhost: suggest a comma-separated list of tags
For consistency with user tags.
2019-08-15 15:52:09 +10:00
Michael Klishin 2c6f5a1146 ctl add_vhost: make it possible to provide a description 2019-08-15 15:42:06 +10:00
Diana Corbacho 5e04dd41ab Use new 'description' and 'tag' items on list vhosts
[#166298298]
2019-08-13 16:06:53 +01:00
Michael Klishin 5b1086156e diagnostics log_tail_stream: remove a fragile test
It makes a lot of assumptions about Lager's log flush
timing and can be tripped by the peak rate protection
mechanism. This test module has a high rate of false
positives on Concourse.

There is another test that asserts over a "folded" stream, so
code coverage is kept about the same.
2019-08-11 13:20:19 +10:00
Michael Klishin f4be415e3b Update rabbitmq-components.mk 2019-08-11 01:47:50 +10:00
Jean-Sébastien Pédron 082f4e9189 Update erlang.mk 2019-08-02 09:53:39 +02:00
Michael Klishin 890b7c689d Update rabbitmq-components.mk 2019-08-01 17:13:11 +03:00
Diana Corbacho 8f5dba4963 List Prometheus port
[#166929073]
2019-08-01 11:45:56 +01:00
Gerhard Lazu 499f0db121 Merge pull request #369 from rabbitmq/rabbitmq-cli-367
diagnostics status: require rabbit app to be running on target node
2019-07-18 17:22:42 +01:00
Michael Klishin 83b92cac0b diagnostics status: require rabbit app to be running on target node
Closes #367.
2019-07-18 18:51:25 +03:00
Michael Klishin d84340959b Make sure the app is started in these tests 2019-07-18 18:50:43 +03:00
Gerhard Lazu 57fce6108c Do not require rabbit app for rabbitmq-diagnostics observer
It works perfectly fine without it. We are more likely to want to look
into the Erlang VM if the rabbit app is not running.
2019-07-18 16:50:36 +01:00
Michael Klishin 37450cc0dc Drop --[no-]interactive support
Per discussion with @lukebakken.

It serves no purpose and to make scripting with stream
redirection work we had to make validation changes that make
that flag irrelevant and even confusing.

The only downside of this behavior is that something like

rabbitmqctl add_user --silent "a-username"

(without a password or redirected stream, with suppressed output)
would "hang" waiting for stdin input. If --silent is omitted
there would be an input prompt, making it clearer what's going on.

Closes #365 with a different behavior from the originally suggested.
2019-07-10 19:08:19 -07:00
Michael Klishin b890fe787b Ditto for ctl change_password
Part of #365.
2019-07-11 00:21:11 +03:00
Michael Klishin 865af70a98 ctl add_user: make password optional, accept it via stdin
Part of #365.
2019-07-10 23:27:29 +03:00
Michael Klishin 358aec5840 ctl authenticate_user: make password optional, accept it via stdin
Part of #365.
2019-07-10 02:17:12 +03:00
Michael Klishin 43209567c2 Address an Elixir 1.9 warning 2019-07-10 00:54:05 +03:00
Arnaud Cogoluègnes 39baf2d80a Update rabbitmq-components.mk 2019-07-09 16:05:52 +02:00
Eugene Pirogov aa35ebb34d Fix typo in description for "stop" command 2019-07-08 17:53:37 +03:00
Michael Klishin 816bfbc50b Cosmetics
(cherry picked from commit 5e1c0841d78c8644eaea3b22837df40fd2ea1a24)

Conflicts:
	lib/rabbitmq/cli/formatters/pretty_table.ex
2019-07-08 16:18:52 +03:00
Michael Klishin 5589496678 Squash a few more compiler warnings 2019-07-08 15:55:37 +03:00
Michael Klishin 82f413c926 Require Elixir 1.7
We'd go to 1.8 if some CI environments did not use
OTP 19.3 which requires OTP 20.
2019-07-08 15:39:45 +03:00
Michael Klishin b8acce6a85 Squash a compile warning
(cherry picked from commit 2a8fd5c1b2eae73f936991b17dfaa6fbd0fdbf85)
2019-07-08 03:23:55 +03:00
Michael Klishin 462b480f16 Same as d3c01b3a1f1a65d1d935c3e6e0441388da44ba57 in more places
(cherry picked from commit 68c8d204c08eb9956925e0fb71608a0737f3e771)
2019-07-06 20:31:43 +03:00
Michael Klishin 535f00e08f Let Lager's log message rate lapse before logging in these tests
Otherwise some log messages we assert on might be dropped.

(cherry picked from commit d3c01b3a1f1a65d1d935c3e6e0441388da44ba57)
2019-07-06 18:47:11 +03:00
Michael Klishin 1f07517c96 Wording 2019-07-06 18:08:05 +03:00
Michael Klishin 4f179948ad Cosmetics 2019-07-06 18:07:28 +03:00
Michael Klishin 955f77e902 diagnostics log_location: support JSON formatter 2019-07-06 18:07:01 +03:00
Michael Klishin fe1e95a28c Wording 2019-07-06 17:59:49 +03:00
Michael Klishin 7de3958482 Await log update in this test 2019-07-06 17:57:54 +03:00
Michael Klishin ff051eec63 Test expectation update 2019-07-06 17:39:49 +03:00
Michael Klishin e50489eba7 Display 50 lines by default; cosmetics 2019-07-06 13:47:39 +03:00
Michael Klishin 435670c083 Update test expectations 2019-07-04 18:57:40 +02:00
Michael Klishin 7375e8b576 Wording 2019-07-04 11:48:56 +02:00
Michael Klishin 715cfd6efe Merge branch 'master' into rabbitmq_cli_log_commands 2019-07-04 11:06:14 +02:00
Michael Klishin 641fae4a96 Revert "rabbitmq-queues add-member: increase default timeout to 15s"
This reverts commit 0a68e5944a.

More QQ operations have default timeout of 5s. This has to be addressed
in a more fundamental way (or not at all unless we have evidence of
false positives).
2019-07-03 23:28:28 +02:00
Michael Klishin 0a68e5944a rabbitmq-queues add-member: increase default timeout to 15s
We've tried 5s values before and always bumped
them later because of false positives.
2019-07-03 23:26:56 +02:00
Diana Corbacho bb4e40df86 Provide timeout to add_member command
[#166670827]
2019-07-03 13:07:57 +01:00
Michael Klishin bd624ccbdd Merge branch 'master' into rabbitmq_cli_log_commands 2019-07-02 01:43:42 +02:00
Jean-Sébastien Pédron 3dcb593710 Update rabbitmq-components.mk 2019-06-28 16:05:27 +02:00
Jean-Sébastien Pédron 936468d468 Update erlang.mk 2019-06-28 16:01:49 +02:00
Daniil Fedotov 78cc33420e Log commands tests 2019-06-27 13:46:08 -04:00
Daniil Fedotov 27cd558ac9 Log streaming duration limit. 2019-06-27 13:45:28 -04:00
Daniil Fedotov 0496b7643f Fix switches and help section for log commands 2019-06-27 13:45:10 -04:00
Daniil Fedotov 915ee1f1c3 Command to stream new log entries from a remote node.
This command asks the remote server to create a file reader process
and receives the file data, which is transformed to Elixir stream.
The command uses std_io_raw formatter to write received data as is.
2019-06-26 17:34:48 -04:00
Daniil Fedotov 25b441ae53 Make it possible to specify a custom printer for commands. Add std_io_raw printer.
Log streaming should print data as received without adding new lines.
To do that std_io_printer just writes all output to the std_io.
2019-06-26 17:34:35 -04:00
Daniil Fedotov ff0372200a Command to print last N log messages from the default log. 2019-06-26 15:56:22 -04:00
Daniil Fedotov 536621ed1f Command to get log file locations. 2019-06-26 13:26:29 -04:00
Daniil Fedotov b42c7a62d5 Improve error stacktrace reporting. 2019-06-26 12:49:35 -04:00
Michael Klishin 2e14e090ad Allow for Elixir 1.9 2019-06-25 08:41:01 +02:00
Michael Klishin 2549a9ffcf Wording 2019-06-13 15:43:19 +03:00
Michael Klishin 0ab7e36893 These two annotations are not used 2019-06-13 15:40:49 +03:00
Diana Corbacho f9bf3154a9 Command to log schema information
Logs by default name, cookie, active_replicas and user_properties
Any other mnesia property can be requested as info key

[#164550205]
2019-06-13 13:08:29 +01:00
Gerhard Lazu a60fe2bde3 Update rabbitmq-components.mk 2019-06-03 02:23:33 +01:00
Michael Klishin ea8ec535f2 Merge pull request #356 from rabbitmq/rabbitmq-cli-302
Health check command for virtual hosts
2019-05-29 14:29:53 +01:00
Michael Klishin 54898185c5 Update test assertions 2019-05-29 14:03:08 +01:00
Michael Klishin 37800cd83b Allow check_failed errors provide additional context
Primarily for for --formatter=json use cases.
2019-05-29 13:59:59 +01:00
Michael Klishin dde11237e4 Basic tests for Diagnostics.CheckVirtualHostsCommand 2019-05-29 13:58:29 +01:00
Michael Klishin 79e535ce4f Diagnostics.CheckVirtualHosts should be Diagnostics.CheckVirtualHostsCommand
While at it, add JSON formatter handling to the
failed check case.
2019-05-29 13:58:16 +01:00
Michael Klishin cdd92f9da4 check_alarms: correct result value in case of an error 2019-05-29 13:19:08 +01:00
Diana Corbacho 6fd83eff93 Health check command for virtual hosts
[#163451547]
2019-05-28 23:44:59 +01:00
Michael Klishin 6bd6b8d2de Merge pull request #355 from rabbitmq/quorum-status
Switch to pretty table formatter
2019-05-23 16:38:19 +01:00
Daniil Fedotov 40194b7b8d Replace Keyword.keyword? with proplist? checks.
Keyword requires keys to be atoms, while data returned from rabbitmq
may have binary or string keys.
2019-05-23 15:48:02 +01:00
kjnilsson 4877111edc Switch to pretty table formatter 2019-05-23 14:55:55 +01:00
Jean-Sébastien Pédron ec4bc7ce96 Update rabbitmq-components.mk 2019-05-17 15:17:15 +02:00
Jean-Sébastien Pédron 7b43d4d3e3 mix.exs: Take `observer_cli` from Hex.pm
... not Git.

The reason, explained in a new comment, is that our Makefiles know how
to put dependencies from Hex.pm in the RabbitMQ source archive, but not
dependencies fetched using other methods.
2019-05-17 14:42:00 +02:00
Michael Klishin 38b56c198e Switch back to zhongwencool/observer_cli now that it is 1.5.0 2019-05-17 08:43:24 +03:00
Michael Klishin 0f06ca3d44 Update rabbitmq-components.mk 2019-05-17 08:36:28 +03:00
Jean-Sébastien Pédron 0ac8e646b8 mix.exs: Use `michaelklishin/observer_cli` fork
This fork depends on recon 2.5.0 which can be built with mix(1)
directly. This is a temporary change until there is a new release of
observer_cli with the updated version of recon.
2019-05-16 23:18:14 +02:00
Michael Klishin fc374f01f8 Update rabbitmq-components.mk 2019-05-16 23:22:45 +03:00
Jean-Sébastien Pédron 2273974232 mix.exs: Ensure we pull observer_cli 1.4.5
This is the one which can be built with mix(1).
2019-05-15 07:47:13 +02:00
Jean-Sébastien Pédron 5b6b9a7a69 test: Increase some timeouts so the testsuite passes on slow VMs 2019-05-14 17:51:42 +02:00
Jean-Sébastien Pédron eb994c07de Merge pull request #352 from rabbitmq/endian_insensitive
WIP Make rabbitmqctl work with any endianness.
2019-05-14 17:49:46 +02:00
Michael Klishin 3090f35f75 Update rabbitmq-components.mk 2019-05-14 11:50:42 +03:00
Michael Klishin 5be3ea3c2e mix.exs cosmetics 2019-05-13 17:46:04 +03:00
Michael Klishin 0c97154cd6 Merge branch 'master' into observer-cli 2019-05-13 16:48:45 +03:00
Michael Klishin 86063fca9f Add a dependency on observer_cli, references #353 2019-05-13 16:48:26 +03:00
Michael Klishin 7e08d6ce3e Update rabbitmq-components.mk 2019-05-13 16:40:27 +03:00
Gerhard Lazu d82be9bc31 Reference observer_cli from GitHub, not hexpm
It fails to install properly, as described in
https://github.com/rabbitmq/rabbitmq-cli/pull/353#issuecomment-491501066
2019-05-13 10:45:05 +01:00
Michael Klishin 9be30e3e51 Handle observer_cli return value when user quits (again) 2019-05-11 11:10:36 +03:00
Michael Klishin 8ddd777c84 Re-enable a Diagnostics.ObserverCommand test 2019-05-11 11:07:53 +03:00
Michael Klishin 1e875d3abc Bump observer_cli to 1.4.4 2019-05-11 10:56:24 +03:00
Michael Klishin d15b59be43 Adapt to latest zhongwencool/observer_cli#54 API changes 2019-05-11 00:54:27 +03:00
Michael Klishin e840b5a6a4 Basic tests for Diagnostics.ObserverCommand 2019-05-11 00:22:29 +03:00
Michael Klishin 5e66ae5d5b Handle Observer CLI return value when user quits 2019-05-10 20:15:08 +03:00
Michael Klishin aa3d9935be Depend on observer_cli 1.4.3 from hex.pm
Kudos to @zhongwencool for releasing it so quickly.
2019-05-10 18:45:24 +03:00
Michael Klishin be1d187041 rabbitmq-diagnostics: introduce a CLI observer command
Per recommendation from @gerhard.
2019-05-10 18:35:22 +03:00
Michael Klishin 1e2e45aeb7 Add a dependency on observer_cli
Currently patched to depend on latest Recon release.
2019-05-10 18:34:51 +03:00
Daniil Fedotov 992e6810d2 Recompile all regexes.
Compiled regexes are endianness-specific. To run on any endianness
systems we need to recompile them in runtime.
2019-05-07 11:29:40 -04:00
Jean-Sébastien Pédron 2c03dc56c2 test/ctl/*feature_flags*: Use arbitrary feature flags, not `quorum_queue`
This allows to backport the test to v3.7.x.
2019-05-06 15:37:40 +02:00
Jean-Sébastien Pédron d4282525e0 Makefile: Mark `test` target as phony
There is a `test` subdirectory and it has nothing to do with the target.
Marking the target as phony ensures that the recipe will be executed,
no matter the date of that directory.
2019-05-06 15:36:35 +02:00
Jean-Sébastien Pédron 528ce15e79 mix.exs: Require at least stdout_formatter 0.2.3
It's exactly the same as 0.2.2, except that mix(1) is advertised as a build
tool. It should solve the issue where mix(1) wants to download rebar3(1)
even though it's already available.
2019-05-02 14:41:20 +02:00
Gerhard Lazu c4d2772a63 Update rabbitmq-components.mk 2019-05-01 13:18:09 +01:00
Luke Bakken 60e7495918 Update rabbitmq-components.mk 2019-04-30 16:20:54 -07:00
Jean-Sébastien Pédron f9dc056d20 Update rabbitmq-components.mk 2019-04-30 14:47:27 +02:00
Jean-Sébastien Pédron a84853ae61 formatters/pretty_table: Adjust comment, we don't use `rabbit_pretty_stdout` anymore 2019-04-30 14:32:03 +02:00
Jean-Sébastien Pédron d0e7d15dcf formatters/pretty_table: Switch to use stdout_formatter library
... instead of the `rabbit_pretty_stdout` module.
2019-04-29 18:32:37 +02:00
Arnaud Cogoluègnes c0c419385e Use string instead of list of chars in clause
[#165316789]

References #342
2019-04-29 15:29:53 +02:00
Michael Klishin a61357b7e4 Cosmetics 2019-04-29 00:57:55 +03:00
Michael Klishin af32abbcd9 Merge pull request #351 from rabbitmq/rabbitmq-cli-345
Improve error reporting for invalid node names
2019-04-26 16:38:08 +03:00
Michael Klishin 8e7a02ff81 Naming 2019-04-25 20:13:39 +03:00
Michael Klishin 4cb2d05c9c Improve error reporting of invalid node names
While at it, format errors thrown in a few more risky
code paths.

Closes #345.
2019-04-25 17:15:25 +03:00
Gerhard Lazu d556a1ecef Clarify which Erlang/OTP version is being printed when --offline
re #350
2019-04-25 14:58:20 +01:00
Michael Klishin 27a4c3c2ab Drive by change: squash a few compiler warnings 2019-04-25 16:52:25 +03:00
Daniil Fedotov 6b14b858b0 Change cipher_suites command description
cipher_suites returns default suites by default and needs a flag to return all
2019-04-25 09:49:42 -04:00
Michael Klishin ab5143e7df diagnostics erlang_version: support --offline
Closes #315.
2019-04-25 15:01:18 +03:00
Michael Klishin f754cb9c42 Cosmetics, wording 2019-04-25 14:42:20 +03:00
Michael Klishin a5b2b261a6 Merge branch 'master' into rabbitmq-cli-346 2019-04-25 14:28:22 +03:00
Diana Corbacho da22d12477 Include feature flag status in cluster status
rabbitmq-cli #346
2019-04-25 11:47:36 +01:00
Michael Klishin 3d5281508b Merge pull request #347 from rabbitmq/rabbitmq-cli-342
Add a flag to cipher_suites command to get all ciphers. Add --format flag to select format. Remove openssl_format flag
2019-04-25 04:19:42 +03:00
Michael Klishin 50f4d42fac Wording 2019-04-25 04:17:06 +03:00
Daniil Fedotov a74f8b930e Replace multiple format flags with a single `--format` flag. 2019-04-24 17:22:54 -04:00
Michael Klishin 1de179b454 Use a stricter amqp version dependency (1.2.x) 2019-04-24 22:55:18 +03:00
Daniil Fedotov b53a16681a Add more flags to cipher_suites command to return all available suites and more formats.
Support new map format for cipher suites added in OTP-20.3
Support --all flag to get all available ciphers

Addresses #342
Depends on changes in rabbitmq-server
2019-04-24 15:37:28 -04:00
Michael Klishin d01b25574c Upgrade to amqp ~> 1.2, start amqp app before connecting 2019-04-24 22:37:05 +03:00
Michael Klishin 3bdfae0392 Give queue proceess and client some time to boot before consuming in slower CI environments 2019-04-24 22:09:44 +03:00
Michael Klishin 4b5b8f9475 Depend on amqp ~> 1.1 2019-04-24 22:01:00 +03:00
Michael Klishin 6c8719bca2 Merge pull request #344 from rabbitmq/rabbitmq-cli-343
Feature flag commands: handle missing rabbit_ff_extra modules on target node
2019-04-23 13:24:32 +03:00
Gerhard Lazu 52135ba352 Update rabbitmq-components.mk 2019-04-22 21:55:01 +01:00
Michael Klishin d926bc26b8 enable_feature_flag: handle cases where target node does not support the flag
or any flags.

[#163980302]
2019-04-20 02:44:22 +03:00
Michael Klishin 7efc4766d7 If target node does not support feature flag, consider that none are available
Per discussion with @dumbbell.

[#163980302]
2019-04-20 02:23:57 +03:00
Michael Klishin a1de733dae list_feature_flags: handle missing rabbit_ff_extra modules on target node
Part of #343.

[#163980302]
2019-04-20 02:20:23 +03:00
Michael Klishin d54408b768 Restore Elixir 1.6.6 compatibility
That's the version used when producing Debian
packages. Why? Because bintrary.com/rabbitmq-erlang
only provides that version :/
2019-04-19 06:23:28 +03:00
Michael Klishin 81b84244af One more JSON formatting test case 2019-04-19 05:19:46 +03:00
Michael Klishin 95a7d37f1a New integration suite: JSON formatter 2019-04-19 05:17:28 +03:00
Michael Klishin 11774a3ff1 cluster_status: list RabbitMQ and Erlang versions
Per suggestion from @gerhard.
2019-04-19 05:17:12 +03:00
Michael Klishin e87e83cc93 Don't print stack trace if no option is provided explicitly 2019-04-19 04:43:58 +03:00
Michael Klishin 82948eb19c Bump json to ~> 1.2 2019-04-19 04:43:25 +03:00
Michael Klishin 361d0e05d9 Squash a warning 2019-04-19 02:26:03 +03:00
Michael Klishin 16b8ffc75d Extract Core.Version 2019-04-18 21:12:23 +04:00
Michael Klishin 5f79b2a446 Naming 2019-04-18 20:46:48 +04:00
Michael Klishin 7615b2067c Print stack trace if command execution fails and --print-stacktrace was passed
Per discussion with @dumbbell.
2019-04-18 19:14:02 +04:00
Michael Klishin 11f0b45732 cluster_status: rework output format, support JSON formatter
[#165435068]
2019-04-18 04:00:05 +04:00
Michael Klishin 31be98b8ce Extract Core.ANSI from status and help commands 2019-04-16 19:19:45 +04:00
Michael Klishin 977587a7e6 Remove a stray IO.inspect/1 2019-04-16 17:36:31 +04:00
Michael Klishin 7115676f1b status: support absolute watermark values
While at it, improve watermark formatting.
2019-04-16 17:33:14 +04:00
Michael Klishin 1ba8d7ca7d status: include RabbitMQ server information 2019-04-14 03:11:53 +04:00
Michael Klishin 3c16459e39 status: include node's data directory path 2019-04-14 03:02:16 +04:00
Michael Klishin 7c57a92586 status command: add --unit support for memory and disk space metrics 2019-04-14 01:55:40 +04:00
Michael Klishin 162ef63024 ctl status: add a section on totals
Per suggestion from @gerhard.
2019-04-13 01:14:31 +04:00
Michael Klishin f2c32cdf41 status: add config file, log file and basic plugin information 2019-04-13 00:36:03 +04:00
Michael Klishin 59ec009819 MacOS => macOS
It's the official spelling starting with Sierra.
2019-04-13 00:14:23 +04:00
Michael Klishin 45a83ed65a Naming 2019-04-12 14:01:56 +04:00
Michael Klishin bef351ff1b Format alarms as maps when formatter is JSON 2019-04-12 13:57:45 +04:00
Michael Klishin 69b5784410 Reset an unintionally lowered timeout in this test 2019-04-12 04:12:50 +04:00
Michael Klishin 2304ff5b0d status: remove leading new line 2019-04-12 04:03:33 +04:00
Michael Klishin e47a53c3c8 New status command: add file descriptors usage section 2019-04-12 03:56:56 +04:00
Michael Klishin 3fa31cacf2 New status command: add memory watermark and usage section 2019-04-12 03:45:46 +04:00
Michael Klishin 5aa19dbd08 Core.Memory.compute_relative_values/1: support map breakdowns 2019-04-12 03:44:52 +04:00
Michael Klishin 30148eab17 Move compute_relative_values/1 to Core.Memory 2019-04-12 03:22:37 +04:00
Michael Klishin 54436642cf status: free disk space and listener sections 2019-04-12 02:59:15 +04:00
Michael Klishin 58ad4f4574 Core.Listeners.listener_map/1: assume that map inputs are preformatted 2019-04-12 02:58:07 +04:00
Michael Klishin 45b48f2f04 Merge branch 'master' into rabbitmq-cli-340 2019-04-12 02:30:39 +04:00
Michael Klishin 66d6cf1173 Update :badrpc test cases to be more resilient (part 2)
On some networks the response is a timeout, not a nodedown. That's
acceptable for this test.
2019-04-12 02:27:15 +04:00
Michael Klishin 60fc0ee25c Update helper tests
(cherry picked from commit dd022e3be2)
2019-04-12 01:45:09 +04:00
Michael Klishin 796c973a1c Extract Core.Memory from Core.Helpers
In preparation for #340.

(cherry picked from commit 990e38a245)
2019-04-12 01:44:58 +04:00
Michael Klishin 62008c5d54 Core.Alarms: support a simplified alarm format
(cherry picked from commit a6dd8c46dd)
2019-04-12 01:44:48 +04:00
Michael Klishin 001087d945 Update :badrpc test cases to be more resilient
On some networks the response is a timeout, not a nodedown. That's
acceptable for this test.
2019-04-12 01:43:54 +04:00
Michael Klishin dd022e3be2 Update helper tests 2019-04-12 01:43:36 +04:00
Michael Klishin 9e7031d2b6 New status command output WIP 2019-04-11 22:11:00 +04:00
Michael Klishin 990e38a245 Extract Core.Memory from Core.Helpers
In preparation for #340.
2019-04-11 22:09:16 +04:00
Michael Klishin a6dd8c46dd Core.Alarms: support a simplified alarm format 2019-04-11 21:43:26 +04:00
Michael Klishin e4aecbaa5d status command: convert raw data to a machine-friendly map 2019-04-11 19:58:22 +04:00
Michael Klishin 24c53b3acf New ctl status output WIP 2019-04-11 15:31:50 +04:00
Michael Klishin b7932ab6d4 Extract Core.Alarms and Core.Listeners from Diagnostics.Helpers 2019-04-11 01:38:20 +03:00
Michael Klishin 9cb776c98e Squash a warning 2019-04-10 15:22:38 +03:00
Michael Klishin d2549de22e Extract several modules from RabbitMQ.CLI.Core.Helpers
In preparation to changing status command output for 3.8
2019-04-10 13:31:38 +03:00
Michael Klishin d89feb4dec close_all_connections test: reduce duplication 2019-04-10 13:30:44 +03:00
Michael Klishin f49b77c205 ping command: rely on Core.AcceptsDefaultSwitchesAndTimeout 2019-04-09 17:28:42 +04:00
Michael Klishin 801df8cf46 ping: cosmetics, declare --timeout in switches 2019-04-09 16:43:58 +04:00
Michael Klishin 46712a2a70 Cosmetics 2019-04-09 16:43:38 +04:00
Michael Klishin d1863c71f7 DefaultOutput: handle error triplets 2019-04-09 16:43:31 +04:00
Michael Klishin ed4a1fe5f4 Squash a warning 2019-04-09 15:07:01 +04:00
Michael Klishin 61b504ca8e ctl delete_queue: help message improvements 2019-04-09 14:40:15 +04:00
Michael Klishin ab3d694d99 ctl delete_queue: fix a typo in alias definition
While at it, correct usage docs to use --kebab-case
for switches.

Closes #339.
2019-04-09 14:37:51 +04:00
Michael Klishin 7ec98d5924 Extra tests that helped narrow #339 down 2019-04-09 14:37:00 +04:00
Michael Klishin 914524f16d DefaultOutput: correct normalize_output/2 for #336 2019-04-08 22:18:13 +04:00
Michael Klishin ae4aca3364 One more test 2019-04-08 22:13:04 +04:00
Michael Klishin 03d2e921d9 Update assertions for #336 2019-04-08 21:33:45 +04:00
Michael Klishin 8eee5dca42 Merge branch 'master' into rabbitmq-cli-336 2019-04-08 19:04:25 +04:00
Michael Klishin 382c664f79 Clarify 2019-04-08 15:30:58 +04:00
Michael Klishin 94f47ee51c ctl close_all_connections command test suite improvements
Use more but shorter retries when asserting on connection lists.

Discovered when investigating rabbitmq/rabbitmq-server#1971.
2019-04-08 15:18:27 +04:00
Michael Klishin 5ab985d2e4 Explain, references rabbitmq/rabbitmq-server#1971 2019-04-08 15:08:01 +04:00
Michael Klishin e76e00aa06 ctl close_all_connections: don't fail when --vhost is missing in options 2019-04-08 15:07:46 +04:00
Michael Klishin a37cd534e0 Clarify that not every command supports every formatter 2019-04-05 14:28:58 +04:00
Michael Klishin 19880aac00 runtime_thread_stats: mention the new Runtime Tuning guide in help 2019-04-05 14:25:54 +04:00
Luke Bakken 6f4d9bf83d Ensure enumerable value is returned from RpcStream
Fixes #336
2019-04-04 17:56:05 -07:00
Michael Klishin 5685e4c7c9 rabbitmq-plugins formatter: don't print legend if --silent or --quiet is used 2019-04-01 14:56:40 +03:00
Michael Klishin d34b4b7ce0 Tweak argument names in rabbitmq-queues command help 2019-04-01 14:56:40 +03:00
Michael Klishin fc5c191c1f Update README.md 2019-04-01 13:54:04 +03:00
Michael Klishin 11adbf446b A typo 2019-04-01 03:28:30 +03:00
Michael Klishin fe23f38635 Expand help information for more commands (part 4) 2019-04-01 03:26:17 +03:00
Michael Klishin 0d57806e0f Expand help information for more commands (part 3) 2019-04-01 03:00:01 +03:00
Michael Klishin 654ec133b2 Expand help information for more commands
This removes command-specific --formatter option from the docs
per discussion with the team. --formatter will be covered in the
general section only.
2019-03-31 01:33:36 +03:00
Michael Klishin 9f6eb5a13a Rename function 2019-03-31 00:38:52 +03:00
Michael Klishin 171376f9c9 Document arguments/options and relevant guides for more commands 2019-03-30 09:30:26 +03:00
Michael Klishin 6cf71362d1 Correctly format blank command description
Don't print a trailing dot and a new line break,
that is confusing and doesn't look great.
2019-03-26 21:06:42 +03:00
Michael Klishin 2510b0baea A typo
<3 <3 <3 dogs
2019-03-26 20:54:09 +03:00
Michael Klishin fd151e4696 join_cluster: minor doc updates 2019-03-26 17:20:37 +03:00
Michael Klishin a27289af95 Recommend doc guides in --help for more commands 2019-03-26 17:07:18 +03:00
Michael Klishin f2b80a4116 A way for commands to provide a list of relevant doc guides
in the help message.
2019-03-26 15:51:06 +03:00
Michael Klishin fe0bb70420 Compile 2019-03-26 14:20:17 +03:00
Michael Klishin 3dc526c528 usage_additional/0 can return a list of pairs 2019-03-26 14:14:00 +03:00
Michael Klishin 93dbbf342e Rework how command-specific options are displayed in help
Per recommendation from @dumbbell.
usage_addition/0 return format per discussion
with @dcorbacho, @hairyhum, @lukebakken.
2019-03-26 01:21:22 +03:00
Michael Klishin 187d6cd79a Cosmetics 2019-03-21 19:06:27 +03:00
Michael Klishin 6219ba07b0 Remove a stray stack trace dump
Got accidentally committed in 8bae6cd929.
2019-03-21 19:06:26 +03:00
Spring Operator 0a2541afd3 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
   ([https](https://blog.listincomprehension.com/search/label/procket) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/TOML) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/subproc) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
   ([https](https://e2project.org) result AnnotatedConnectException).
* http://erlang.org/doc/reference_manual/distributed.html (200) with 1 occurrences could not be migrated:
   ([https](https://erlang.org/doc/reference_manual/distributed.html) result ConnectTimeoutException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
   ([https](https://nitrogenproject.com/) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
   ([https](https://proper.softlab.ntua.gr) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
   ([https](https://yaws.hyber.org) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
   ([https](https://choven.ca) result ConnectTimeoutException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
  https://fixtrading.org ([https](https://fixprotocol.org/) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
  https://erldb.org ([https](https://erldb.org) result UnknownHostException).
* http://elixir-lang.org/docs/stable/elixir/OptionParser.html (301) with 1 occurrences migrated to:
  https://elixir-lang.org/docs/stable/elixir/OptionParser.html ([https](https://elixir-lang.org/docs/stable/elixir/OptionParser.html) result 404).
* http://elixir-lang.org/docs/stable/elixir/Stream.html (301) with 1 occurrences migrated to:
  https://elixir-lang.org/docs/stable/elixir/Stream.html ([https](https://elixir-lang.org/docs/stable/elixir/Stream.html) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://cloudi.org/ with 27 occurrences migrated to:
  https://cloudi.org/ ([https](https://cloudi.org/) result 200).
* http://elixir-lang.org with 1 occurrences migrated to:
  https://elixir-lang.org ([https](https://elixir-lang.org) result 200).
* http://elixir-lang.org/ with 2 occurrences migrated to:
  https://elixir-lang.org/ ([https](https://elixir-lang.org/) result 200).
* http://elixir-lang.org/getting-started/typespecs-and-behaviours.html with 1 occurrences migrated to:
  https://elixir-lang.org/getting-started/typespecs-and-behaviours.html ([https](https://elixir-lang.org/getting-started/typespecs-and-behaviours.html) result 200).
* http://elixir-lang.org/install.html with 1 occurrences migrated to:
  https://elixir-lang.org/install.html ([https](https://elixir-lang.org/install.html) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
  https://erlware.org/ ([https](https://erlware.org/) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
  https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
  https://ninenines.eu ([https](https://ninenines.eu) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
  https://www.actordb.com/ ([https](https://www.actordb.com/) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
  https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
  https://www.rebar3.org ([https](https://www.rebar3.org) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
  https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
  https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
  https://lasp-lang.org/ ([https](https://lasp-lang.org/) result 301).
* http://rabbitmq.com/documentation.html with 1 occurrences migrated to:
  https://rabbitmq.com/documentation.html ([https](https://rabbitmq.com/documentation.html) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
  https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec) result 301).
* http://www.mozilla.org/MPL/ with 290 occurrences migrated to:
  https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
  https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli) result 301).
2019-03-20 03:13:07 -05:00
Michael Klishin 4c1b377330 Reduce generic options section per discussion in #333
The section on node names has been moved to https://www.rabbitmq.com/cli.html#node-names
(not yet live).
2019-03-19 22:23:42 +03:00
Michael Klishin c72b0928f7 Reduce general options section
* Only keep [--timeout <n>] but not a separate section for
   commands that support timeouts.
 * Replace a separate virtual host section with a general option.
   This option doesn't really need a detailed explanation.
 * Replace a separate --quiet/--silent section with a general option.
   This option doesn't really need a detailed explanation.

Per discussion with @gerhard and @acogoluegnes.
2019-03-18 14:36:22 +03:00
Michael Klishin 8c60489719 Replace [-p vhost] in help messages with [--vhost vhost] 2019-03-18 13:53:54 +03:00
Michael Klishin cb3fa1048e Rename <*infoitem> in help messages to <column>
Clearer, easier to read and uniform.
2019-03-18 13:47:46 +03:00
Michael Klishin 1e996b1128 Sort info items in command help
Per suggestion from @gerhard.
2019-03-18 13:42:06 +03:00
Michael Klishin 9bc4b148f1 Document more command-specific arguments and switches 2019-03-18 08:56:17 +03:00
Michael Klishin 7d2b5c4730 Document more command-specific arguments and switches 2019-03-18 07:47:46 +03:00
Michael Klishin f6bb9487ef Info item arg processing test: handle multi-line return values 2019-03-18 07:47:46 +03:00
Michael Klishin f73bca4c1d Move printer module name resolution to PrinterBehaviour
To match FormatterBehaviour.
2019-03-18 07:47:45 +03:00
Michael Klishin ddf09a9cd8 Normalize formatter name
So that json, JSON, Json all work the same way.
This is because we will use "JSON" in command docs
so eventually a user will try that value verbatim.
2019-03-18 07:47:45 +03:00
Michael Klishin 1ce3cb00f6 delete_queue: document switches in --help 2019-03-18 07:47:45 +03:00
Michael Klishin 97960bde37 Cosmetics 2019-03-18 07:47:45 +03:00
Michael Klishin af2b343784 list_channels: @info_keys are meant to be atoms
Even though the implementation now supports
string values as well.
2019-03-18 07:47:44 +03:00
Michael Klishin b47ec93f97 Merge pull request #331 from rabbitmq/list-queue-type
Add queue type to list queues command
2019-03-18 05:53:07 +03:00
Michael Klishin 50f702d63b Global options: mention --formatter=pretty_table 2019-03-17 14:18:33 +03:00
Michael Klishin e1df5c0a87 ctl close_all_connections: additional usage docs 2019-03-17 14:13:13 +03:00
Michael Klishin d54f979ed8 Do not indent lines in usage_additional
We eliminated indentation in other sections
because it is too painful to get aligned
for command author.
2019-03-17 14:12:50 +03:00
Michael Klishin 2f5472e03f Cosmetics 2019-03-17 14:05:42 +03:00
Michael Klishin b5d39b2a2f Handle info keys that are strings
Some commands define them as atoms, others
as strings.
2019-03-17 14:01:04 +03:00
Michael Klishin bea9cf4486 Rework command-specific help
* Display command-specific options first instead of
  generic at the top
* Include one line command synopsis from --list-commands
  in the command-specific message
* List timeout in a separate section. It doesn't
  integrate very well with either command-specific
  or general section
* Format section headings as H2s in Markdown, this makes them stand out
* Assorted small formatting changes
* Update tests to be less fragile to copywriting changes
2019-03-17 13:54:18 +03:00
Michael Klishin c5b5df1282 Help command descriptions, cosmetics 2019-03-17 06:55:22 +03:00
Michael Klishin c48a1fae65 Correctly format management_agent and other multi-segment plugin names
Without this management_agent failed to be formatted
causing an ugly looking exception in --help.
2019-03-16 21:18:22 +03:00
Michael Klishin 10be5d4dec Cosmetics
Rearrange functions to follow a more common
command interface order.
2019-03-16 21:17:12 +03:00
Michael Klishin 30b6069293 restart_vhost belongs to the Virtual Hosts section 2019-03-16 21:16:33 +03:00
Michael Klishin 11647632d5 Update rabbitmq-components.mk 2019-03-16 10:28:36 +03:00
Diana Corbacho b56b69f9fa Add queue type to list queues command
[#163984879]
2019-03-15 17:07:11 +00:00
Michael Klishin 7f6ef260da ctl shutdown: consider @localhost nodes to be local
Without this -n has to be used when it previously wasn't required.

Follow-up to #328, references #327, #309.

Per discussion with @lukebakken.
2019-03-07 01:29:23 +03:00
Michael Klishin c339b6a10c ctl shutdown: infer hostnames from node names
inet_db is not a very reliable source as it doesn't take
node name CLI arguments and ERL_INETRC file settings.
That can lead to false positives in environments where
inet_db returns the same value (e.g. `localhost`) for
every cluster member.

Per discussion with @gerhard.

Closes #327.
References #309.
2019-03-06 20:19:52 +03:00
Michael Klishin 89d5eb80bb Bump Elixir client dependency to ~> 1.0 2019-03-02 00:48:19 +03:00