Commit Graph

898 Commits

Author SHA1 Message Date
Daniil Fedotov e8c73d9bea Merge branch 'master' into rabbitmq-cli-207 2017-08-09 14:36:07 +01:00
Daniil Fedotov de10e4f5a7 Different list of info items for unresponsive queues 2017-08-09 14:34:01 +01:00
Daniil Fedotov 035e7305ac Merge pull request #218 from rabbitmq/timeout_list_queues
Set a timeout on list_queues and a warning if unresponsive ones are found
2017-08-09 17:24:40 +04:00
Daniil Fedotov 3542b0d281 Add timeout message to list_queues command test 2017-08-09 14:24:12 +01:00
Diana Corbacho 738f667716 Override timeout 2017-08-08 10:01:32 +02:00
Diana Corbacho 9d6dfddb3e Set a timeout on list_queues and a warning if unresponsive ones are found
Related to rabbitmq-cli#207
2017-08-07 17:38:24 +02:00
Diana Corbacho 829a918c5a Use info items to list unresponsive queues
rabbitmq-cli#207
[#149059849]
2017-08-07 15:08:33 +02:00
Michael Klishin 4b6978f26d Squash a couple more warnings 2017-08-04 22:41:12 +03:00
Michael Klishin e9fa801d6f Update restart_vhost usage 2017-08-04 21:45:22 +03:00
Daniil Fedotov d66235a955 Cleanup test warnings 2017-08-04 12:19:56 +01:00
Daniil Fedotov 0676410019 Test that vhost is restarted after running restart_vhost 2017-08-04 11:32:40 +01:00
Daniil Fedotov 10bb587d61 The command to restart a vhost.
The command will attempt to restart a vhost.
If restarted successfully, return exit code 0
If the vhost is already started, return exit code 0 and notify that it's already started.
If there is an error restarting, return exit code 70 and the error
Part of rabbitmq/rabbitmq-server#1321
[#149484305]
2017-08-04 11:32:40 +01:00
Michael Klishin 5fb38eee06 Merge branch 'master' into rabbitmq-management-460 2017-08-03 16:16:14 +03:00
Michael Klishin bd5d3a9802 Allow for Elixir 1.5.x 2017-08-03 15:00:29 +03:00
Daniil Fedotov a7bd5811d0 Change state in vhost info to cluster_state 2017-08-01 14:56:21 +01:00
Daniil Fedotov 59c1a54cad Do not format errors using to_string. Let rabbitmqctl core do the formatting 2017-07-31 15:57:10 +01:00
Diana Corbacho 3c6a59079c Command to report unresponsive queues
rabbitmq-cli#207
[#149059849]
2017-07-27 17:50:52 +02:00
Michael Klishin b599617e31 Update rabbitmq-components.mk 2017-07-26 03:48:19 +03:00
Michael Klishin 9e1ef5efc6 Update rabbitmq-components.mk 2017-07-26 02:53:34 +03:00
Michael Klishin edfa6daeaa Update rabbitmq-components.mk 2017-07-26 02:29:36 +03:00
Michael Klishin e166fb49ea Support ~> Elixir 1.5.0, not just RCs 2017-07-25 22:39:29 +03:00
Karl Nilsson d4e701bb3d Merge pull request #211 from rabbitmq/rabbitmq-management-446
Report vhost status on list_vhosts command
2017-07-25 18:38:15 +01:00
Diana Corbacho 05469e4bad Report vhost status on list_vhosts command
rabbitmq-management#446
[#149398495]
2017-07-25 11:47:07 +01:00
Michael Klishin bd96454992 Merge pull request #210 from rabbitmq/rabbitmq-server-1296
Do not crash command loading if unable to read enabled plugins file.
2017-07-24 22:10:43 +03:00
Michael Klishin 540b5bd170 Copy 2017-07-24 22:07:46 +03:00
Daniil Fedotov 306b7574e4 Do not crash command loading if unable to read enabled plugins file.
Some distributions set no permissions to read the enabled plugins
file location. This can cause a crash when running not as root or
rabbitmq user.
It was decided that plugins commands can be skipped when printing
the help message if the user have no access to the enabled plugins
file.
The warning message will be displayed in that case.

Addresses https://github.com/rabbitmq/rabbitmq-server/issues/1296
[#149079123]
2017-07-24 17:28:12 +01:00
Jean-Sébastien Pédron 66090ae1ee test/close_all_connections_command_test.exs: Wait for one second for connections to close
... in the "close a limited number of connections in an existing vhost
closes a subset of connections" testcase. Hopefully this will fix
transient failures in CI because only one connection was closed.
2017-07-21 09:23:16 +02:00
Michael Klishin 6926a3a9a8 Recompile pid_regex at runtime, too 2017-07-20 17:51:30 +03:00
kjnilsson 54f417b93f Recompile regexes at runtime.
Because the regex engine may change between OTP versions it is necessary
to recompile any compiled regexes at runtime in case the engine is not
compatible.

[#149227527]
2017-07-20 14:08:43 +01:00
Michael Klishin a33b26105c Supress banners for machine readable format
Namely JSON and CSV.

Fixes #205.
2017-07-14 18:08:17 +03:00
Diana Corbacho 070ac897cc Use gb and bytes units 2017-07-14 10:14:25 +01:00
Michael Klishin 4383c3e280 Tests, refactoring 2017-07-14 03:33:46 +03:00
Michael Klishin 6e49d8f516 Cosmetics 2017-07-13 19:36:26 +03:00
Michael Klishin d4bf287a90 output formatter now can rely on command defaults 2017-07-13 15:53:18 +03:00
Michael Klishin 3f21e0fac1 Make sure that command-provided defaults are available to output formatting fns 2017-07-13 15:46:31 +03:00
Michael Klishin 2d758a9913 Whitespace 2017-07-13 05:43:24 +03:00
Michael Klishin f5ddac1f22 Merge branch 'master' into memory_breakdown_command 2017-07-13 03:50:03 +03:00
Michael Klishin 330d8a4eda rabbitmq-diagnostics memory_breakdown: WIP 2017-07-13 03:45:01 +03:00
Michael Klishin df726906a2 Make arguments in this fn head easier to identify 2017-07-12 13:08:20 +03:00
Michael Klishin 7361c7d54a Merge branch 'master' into rabbitmq-cli-202 2017-07-12 13:04:07 +03:00
Michael Klishin 8745bdf5df Squash a warning 2017-07-12 13:03:30 +03:00
Diana Corbacho 1be262d496 Avoid streaming if no nodes are available
rabbitmq-cli-202
[#148733373]
2017-07-12 10:35:32 +01:00
Michael Klishin a710114e1e Spam 2017-07-11 15:38:15 +03:00
Michael Klishin de41a1081a Introduce rabbitmq-diagnostics erlang_version 2017-07-11 15:28:12 +03:00
Michael Klishin c26a7a5909 Introduce rabbitmq-diagnostics server_version 2017-07-11 13:26:05 +03:00
Michael Klishin e61e5c9289 Cosmetics 2017-07-11 13:25:28 +03:00
Michael Klishin 310ffe159e Wording 2017-07-04 22:41:32 +03:00
Michael Klishin ca20f8a0d6 Make CLI tools diagnostics message more detailed
Our current message is informative enough but it ends with a "nodedown".
Emperical evidence suggests that once a user sees it, they stop reading.
Providing a hint that there will be diagnostics output below is step 1.

Step 2 is improving the diagnostics section. It now

  * Calls out three most common groups of issues explicitly
  * Suggests what documentation guides can contain helpful information

There are rabbitmq-server and rabbitmq-common commits that make
similar improvements to the server-supplied part of the diagnostics
message.

Per discussion with the team.
2017-07-04 22:34:39 +03:00
Michael Klishin 65346cde82 Use rabbit_nodes_common here 2017-07-04 22:24:19 +03:00
Michael Klishin a9bd603352 Squash a warning 2017-07-04 22:24:00 +03:00