Bug 2048488

Summary: RHOSP17 Standalone deployment failing to start rabbitmq_wait_bundle container, RabbitMQ version cannot run on Erlang 23.0.4: minimum required version is 23.2 (erts 11.1)
Product: Red Hat OpenStack Reporter: Sandeep Yadav <sandyada>
Component: rabbitmq-serverAssignee: Peter Lemenkov <plemenko>
Status: CLOSED ERRATA QA Contact: pkomarov
Severity: urgent Docs Contact:
Priority: urgent    
Version: 17.0 (Wallaby)CC: apevec, jeckersb, jschluet, lhh, lmiccini
Target Milestone: AlphaKeywords: Triaged
Target Release: 17.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rabbitmq-server-3.9.10-2.el9ost erlang-24.2.1-1.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:18:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandeep Yadav 2022-01-31 11:12:02 UTC
Description of problem:

We are trying RHOSP17 on RHEL9,  Standalone deployment failing to start rabbitmq_wait_bundle container,  RabbitMQ version cannot run on Erlang 23.0.4: minimum required version is 23.2 (erts 11.1)



Version-Release number of selected component (if applicable):

RHOSP17 (on RHEL9)


How reproducible:
Everytime


Steps to Reproduce:
1. Deploy standalone 


Actual results:

Deployment failing with below error:-

standalone_deploy.log:-
~~~
Error: 'rabbitmqctl eval "lists:keymember(rabbit, 1, application:which_applications())." | grep -q true' returned 1 instead of one of [0]
Error: /Stage[main]/Tripleo::Profile::Pacemaker::Rabbitmq_bundle/Exec[rabbitmq-ready]/returns: change from 'notrun' to ['0'] failed: 'rabbitmqctl eval "lists:keymember(rabbit, 1, application:which_applications())." | grep -q true' returned 1 instead of one of [0]
Warning: /Stage[main]/Tripleo::Profile::Pacemaker::Rabbitmq_bundle/Rabbitmq_policy[ha-all@/]: Skipping because of failed dependencies
+ rc=6
+ set -e
+ set +ux
2022-01-31 05:51:42.833478 | fa163e96-237a-cb00-0a8a-000000001944 |      FATAL | Create containers managed by Podman for /var/lib/tripleo-config/container-startup-config/step_2 | standalone | error={"changed": false, "msg": "Failed containers: rabbitmq_wait_bundle"}
2022-01-31 05:51:42.834868 | fa163e96-237a-cb00-0a8a-000000001944 |     TIMING | tripleo_container_manage : Create containers managed by Podman for /var/lib/tripleo-config/container-startup-config/step_2 | standalone | 0:46:59.461952 | 1950.02s
~~~

cat /var/log/containers/rabbitmq/startup_log
~~~
[root@standalone rabbitmq]# cat /var/log/containers/rabbitmq/startup_log
2022-01-31 10:18:34.500297+00:00 [erro] <0.126.0> This RabbitMQ version cannot run on Erlang 23.0.4 (erts 11.0.4): minimum required version is 23.2 (erts 11.1)
2022-01-31 10:18:34.510960+00:00 [erro] <0.126.0> 
2022-01-31 10:18:34.510960+00:00 [erro] <0.126.0> BOOT FAILED
2022-01-31 10:18:34.510960+00:00 [erro] <0.126.0> ===========
2022-01-31 10:18:34.510960+00:00 [erro] <0.126.0> Error during startup: {error,
2022-01-31 10:18:34.510960+00:00 [erro] <0.126.0>                           {erlang_version_too_old,
2022-01-31 10:18:34.510960+00:00 [erro] <0.126.0>                               "Erlang 23.2 or later is required, started on 23.0.4"}}
2022-01-31 10:18:34.510960+00:00 [erro] <0.126.0> 
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>     supervisor: {local,rabbit_prelaunch_sup}
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>     errorContext: start_error
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>     reason: {erlang_version_too_old,"Erlang 23.2 or later is required, started on 23.0.4"}
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>     offender: [{pid,undefined},
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>                {id,prelaunch},
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>                {mfargs,{rabbit_prelaunch,run_prelaunch_first_phase,[]}},
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>                {restart_type,transient},
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>                {shutdown,5000},
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0>                {child_type,worker}]
2022-01-31 10:18:35.515047+00:00 [erro] <0.126.0> 
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>   crasher:
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     initial call: application_master:init/4
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     pid: <0.124.0>
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     registered_name: []
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     exception exit: {{shutdown,
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>                          {failed_to_start_child,prelaunch,
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>                              {erlang_version_too_old,
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>                                  "Erlang 23.2 or later is required, started on 23.0.4"}}},
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>                      {rabbit_prelaunch_app,start,[normal,[]]}}
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>       in function  application_master:init/4 (application_master.erl, line 138)
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     ancestors: [<0.123.0>]
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     message_queue_len: 1
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     messages: [{'EXIT',<0.125.0>,normal}]
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     links: [<0.123.0>,<0.44.0>]
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     dictionary: []
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     trap_exit: true
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     status: running
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     heap_size: 610
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     stack_size: 28
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>     reductions: 212
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0>   neighbours:
2022-01-31 10:18:35.515677+00:00 [erro] <0.124.0> 
2022-01-31 10:18:35.524051+00:00 [noti] <0.44.0> Application rabbitmq_prelaunch exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{erlang_version_too_old,"Erlang 23.2 or later is required, started on 23.0.4"}}},{rabbit_prelaunch_app,start,[normal,[]]}}
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{erlang_version_too_old,\"Erlang 23.2 or later is required, started on 23.0.4\"}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
~~~


Expected results:

Deployment should work


Additional info:

rabbitmq version:-

~~~
# podman exec -it rabbitmq-bundle-podman-0 bash
# rabbitmqctl --version
3.9.10
~~~

Comment 10 errata-xmlrpc 2022-09-21 12:18:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543