Skip to content

Commit 730d913

Browse files
Merge pull request #11386 from rabbitmq/mk-drop-support-status-from-cli-status
rabbitmq-diagnostics status: adjust the (date-based) support status field to match the current community support policy
2 parents b372c3d + 41e5d38 commit 730d913

File tree

3 files changed

+7
-37
lines changed

3 files changed

+7
-37
lines changed

deps/rabbit/src/rabbit.erl

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -710,15 +710,13 @@ maybe_print_boot_progress(true, IterationsLeft) ->
710710
status() ->
711711
Version = base_product_version(),
712712
[CryptoLibInfo] = crypto:info_lib(),
713-
SeriesSupportStatus = rabbit_release_series:readable_support_status(),
714713
S1 = [{pid, list_to_integer(os:getpid())},
715714
%% The timeout value used is twice that of gen_server:call/2.
716715
{running_applications, rabbit_misc:which_applications()},
717716
{os, os:type()},
718717
{rabbitmq_version, Version},
719718
{crypto_lib_info, CryptoLibInfo},
720719
{erlang_version, erlang:system_info(system_version)},
721-
{release_series_support_status, SeriesSupportStatus},
722720
{memory, rabbit_vm:memory()},
723721
{alarms, alarms()},
724722
{is_under_maintenance, rabbit_maintenance:is_being_drained_local_read(node())},
@@ -917,7 +915,6 @@ start(normal, []) ->
917915
?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE],
918916
#{domain => ?RMQLOG_DOMAIN_PRELAUNCH})
919917
end,
920-
maybe_warn_about_release_series_eol(),
921918
log_motd(),
922919
{ok, SupPid} = rabbit_sup:start_link(),
923920

@@ -1291,7 +1288,6 @@ print_banner() ->
12911288
%% padded list lines
12921289
{LogFmt, LogLocations} = LineListFormatter("~n ~ts", log_locations()),
12931290
{CfgFmt, CfgLocations} = LineListFormatter("~n ~ts", config_locations()),
1294-
SeriesSupportStatus = rabbit_release_series:readable_support_status(),
12951291
{MOTDFormat, MOTDArgs} = case motd() of
12961292
undefined ->
12971293
{"", []};
@@ -1309,7 +1305,7 @@ print_banner() ->
13091305
MOTDFormat ++
13101306
"~n Erlang: ~ts [~ts]"
13111307
"~n TLS Library: ~ts"
1312-
"~n Release series support status: ~ts"
1308+
"~n Release series support status: see https://www.rabbitmq.com/release-information"
13131309
"~n"
13141310
"~n Doc guides: https://www.rabbitmq.com/docs"
13151311
"~n Support: https://www.rabbitmq.com/docs/contact"
@@ -1321,23 +1317,11 @@ print_banner() ->
13211317
"~n Config file(s): ~ts" ++ CfgFmt ++ "~n"
13221318
"~n Starting broker...",
13231319
[Product, Version, ?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE] ++
1324-
[rabbit_misc:otp_release(), emu_flavor(), crypto_version(),
1325-
SeriesSupportStatus] ++
1320+
[rabbit_misc:otp_release(), emu_flavor(), crypto_version()] ++
13261321
MOTDArgs ++
13271322
LogLocations ++
13281323
CfgLocations).
13291324

1330-
maybe_warn_about_release_series_eol() ->
1331-
case rabbit_release_series:is_currently_supported() of
1332-
false ->
1333-
%% we intentionally log this as an error for increased visibiity
1334-
?LOG_ERROR("This release series has reached end of life "
1335-
"and is no longer supported. "
1336-
"Please visit https://www.rabbitmq.com/release-information "
1337-
"to learn more and upgrade");
1338-
_ -> ok
1339-
end.
1340-
13411325
emu_flavor() ->
13421326
%% emu_flavor was introduced in Erlang 24 so we need to catch the error on Erlang 23
13431327
case catch(erlang:system_info(emu_flavor)) of

deps/rabbit/src/rabbit_release_series.erl

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,16 @@
1010
-define(EOL_DATE_KEY, release_series_eol_date).
1111

1212
-export([
13-
eol_date/0,
1413
is_currently_supported/0,
1514
readable_support_status/0
1615
]).
1716

18-
-spec eol_date() -> rabbit_types:maybe(calendar:date()).
19-
eol_date() ->
20-
case application:get_env(rabbit, ?EOL_DATE_KEY) of
21-
undefined -> none;
22-
{ok, none} -> none;
23-
{ok, {_Y, _M, _D} = Date} -> Date;
24-
_ -> none
25-
end.
26-
17+
%% Retained for backwards compatibility with older CLI tools.
2718
-spec is_currently_supported() -> boolean().
2819
is_currently_supported() ->
29-
case eol_date() of
30-
none -> true;
31-
Date -> not rabbit_date_time:is_in_the_past(Date)
32-
end.
20+
true.
3321

22+
%% Retained for backwards compatibility with older CLI tools.
3423
-spec readable_support_status() -> binary().
3524
readable_support_status() ->
36-
case is_currently_supported() of
37-
false -> <<"out of support">>;
38-
_ -> <<"supported">>
39-
end.
25+
<<"supported">>.

deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/status_command.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.StatusCommand do
101101
product_version_section ++
102102
[
103103
"RabbitMQ version: #{m[:rabbitmq_version]}",
104-
"RabbitMQ release series support status: #{m[:release_series_support_status]}",
104+
"RabbitMQ release series support status: see https://www.rabbitmq.com/release-information",
105105
"Node name: #{node_name}",
106106
"Erlang configuration: #{m[:erlang_version]}",
107107
"Crypto library: #{m[:crypto_lib_version]}",

0 commit comments

Comments
 (0)