Skip to content

Commit 1ea136b

Browse files
Merge pull request #11387 from rabbitmq/mergify/bp/v3.13.x/pr-11386
rabbitmq-diagnostics status: adjust the (date-based) support status field to match the current community support policy (backport #11386)
2 parents c4b3daa + 53c67ce commit 1ea136b

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
@@ -705,15 +705,13 @@ maybe_print_boot_progress(true, IterationsLeft) ->
705705
status() ->
706706
Version = base_product_version(),
707707
[CryptoLibInfo] = crypto:info_lib(),
708-
SeriesSupportStatus = rabbit_release_series:readable_support_status(),
709708
S1 = [{pid, list_to_integer(os:getpid())},
710709
%% The timeout value used is twice that of gen_server:call/2.
711710
{running_applications, rabbit_misc:which_applications()},
712711
{os, os:type()},
713712
{rabbitmq_version, Version},
714713
{crypto_lib_info, CryptoLibInfo},
715714
{erlang_version, erlang:system_info(system_version)},
716-
{release_series_support_status, SeriesSupportStatus},
717715
{memory, rabbit_vm:memory()},
718716
{alarms, alarms()},
719717
{is_under_maintenance, rabbit_maintenance:is_being_drained_local_read(node())},
@@ -912,7 +910,6 @@ start(normal, []) ->
912910
?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE],
913911
#{domain => ?RMQLOG_DOMAIN_PRELAUNCH})
914912
end,
915-
maybe_warn_about_release_series_eol(),
916913
log_motd(),
917914
{ok, SupPid} = rabbit_sup:start_link(),
918915

@@ -1269,7 +1266,6 @@ print_banner() ->
12691266
%% padded list lines
12701267
{LogFmt, LogLocations} = LineListFormatter("~n ~ts", log_locations()),
12711268
{CfgFmt, CfgLocations} = LineListFormatter("~n ~ts", config_locations()),
1272-
SeriesSupportStatus = rabbit_release_series:readable_support_status(),
12731269
{MOTDFormat, MOTDArgs} = case motd() of
12741270
undefined ->
12751271
{"", []};
@@ -1287,7 +1283,7 @@ print_banner() ->
12871283
MOTDFormat ++
12881284
"~n Erlang: ~ts [~ts]"
12891285
"~n TLS Library: ~ts"
1290-
"~n Release series support status: ~ts"
1286+
"~n Release series support status: see https://www.rabbitmq.com/release-information"
12911287
"~n"
12921288
"~n Doc guides: https://www.rabbitmq.com/docs"
12931289
"~n Support: https://www.rabbitmq.com/docs/contact"
@@ -1299,23 +1295,11 @@ print_banner() ->
12991295
"~n Config file(s): ~ts" ++ CfgFmt ++ "~n"
13001296
"~n Starting broker...",
13011297
[Product, Version, ?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE] ++
1302-
[rabbit_misc:otp_release(), emu_flavor(), crypto_version(),
1303-
SeriesSupportStatus] ++
1298+
[rabbit_misc:otp_release(), emu_flavor(), crypto_version()] ++
13041299
MOTDArgs ++
13051300
LogLocations ++
13061301
CfgLocations).
13071302

1308-
maybe_warn_about_release_series_eol() ->
1309-
case rabbit_release_series:is_currently_supported() of
1310-
false ->
1311-
%% we intentionally log this as an error for increased visibiity
1312-
?LOG_ERROR("This release series has reached end of life "
1313-
"and is no longer supported. "
1314-
"Please visit https://www.rabbitmq.com/release-information "
1315-
"to learn more and upgrade");
1316-
_ -> ok
1317-
end.
1318-
13191303
emu_flavor() ->
13201304
%% emu_flavor was introduced in Erlang 24 so we need to catch the error on Erlang 23
13211305
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)