community.rabbitmq icon indicating copy to clipboard operation
community.rabbitmq copied to clipboard

rabbitmq_user can't determine the version of RabbitMQ server

Open EugenFo opened this issue 3 years ago • 16 comments

SUMMARY

I'm trying to create rabbitmq users with the rabbitmq_user module, but this keeps failing with the error message: Could not determine the version of the RabbitMQ server. I'm using the Ansible version 2.10.3 and the Rabbitmq Cluster has the version 3.7.13 and Erlang version 21.3.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

rabbitmq_user

ANSIBLE VERSION
ansible 2.10.3
  config file = /home/eugen/.ansible.cfg
  configured module search path = ['/home/eugen/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/eugen/virtualenvironments/ansible2.10/lib/python3.6/site-packages/ansible
  executable location = /home/eugen/virtualenvironments/ansible2.10/bin/ansible
  python version = 3.6.9 (default, Oct  8 2020, 12:12:24) [GCC 8.4.0]
CONFIGURATION
Default configuration
OS / ENVIRONMENT

Host: Mint 19.2 Target: Debian 9 (Docker container)

STEPS TO REPRODUCE

First install the Rabbitmq and Erlang version listed above. Try to create or delete users with the rabbitmq_user module. This will result in a Could not determine the version of the RabbitMQ server. error. However when you execute rabbitmqctl status on one node you will see the output which also contains the rabbitmq version.

rabbitmqctl status output:

[{pid,7497},
 {running_applications,
     [{rabbitmq_shovel_management,
          "Management extension for the Shovel plugin","3.7.13"},
      {rabbitmq_management,"RabbitMQ Management Console","3.7.13"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.13"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.13"},
      {rabbitmq_shovel,"Data Shovel for RabbitMQ","3.7.13"},
      {rabbit,"RabbitMQ","3.7.13"},
      {sysmon_handler,"Rate-limiting system_monitor event handler","1.1.0"},
      {cowboy,"Small, fast, modern HTTP server.","2.6.1"},
      {amqp_client,"RabbitMQ AMQP Client","3.7.13"},
      {rabbit_common,
          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
          "3.7.13"},
      {ranch,"Socket acceptor pool for TCP protocols.","1.7.1"},
      {amqp10_client,"AMQP 1.0 client from the RabbitMQ Project","3.7.13"},
      {ssl,"Erlang/OTP SSL application","9.2"},
      {public_key,"Public key infrastructure","1.6.5"},
      {asn1,"The Erlang ASN1 compiler version 5.0.8","5.0.8"},
      {recon,"Diagnostic tools for production use","2.3.6"},
      {cowlib,"Support library for manipulating Web protocols.","2.7.0"},
      {crypto,"CRYPTO","4.4.1"},
      {jsx,"a streaming, evented json parsing toolkit","2.9.0"},
      {os_mon,"CPO  CXC 138 46","2.4.7"},
      {inets,"INETS  CXC 138 49","7.0.6"},
      {amqp10_common,
          "Modules shared by rabbitmq-amqp1.0 and rabbitmq-amqp1.0-client",
          "3.7.13"},
      {mnesia,"MNESIA  CXC 138 12","4.15.6"},
      {xmerl,"XML parser","1.3.19"},
      {lager,"Erlang logging framework","3.6.5"},
      {goldrush,"Erlang event stream processor","0.1.9"},
      {compiler,"ERTS  CXC 138 10","7.3.2"},
      {syntax_tools,"Syntax tools","2.1.7"},
      {sasl,"SASL  CXC 138 11","3.3"},
      {stdlib,"ERTS  CXC 138 10","3.8"},
      {kernel,"ERTS  CXC 138 10","6.3"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang/OTP 21 [erts-10.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:128]\n"},
 {memory,
     [{connection_readers,0},
      {connection_writers,0},
      {connection_channels,0},
      {connection_other,2732},
      {queue_procs,0},
      {queue_slave_procs,0},
      {plugins,888476},
      {other_proc,31525764},
      {metrics,207268},
      {mgmt_db,160616},
      {mnesia,78608},
      {other_ets,2931976},
      {binary,136136},
      {msg_index,30080},
      {code,28049863},
      {atom,1172689},
      {other_system,13737952},
      {allocated_unused,15769168},
      {reserved_unallocated,0},
      {strategy,rss},
      {total,[{erlang,78922160},{rss,85061632},{allocated,94691328}]}]},
 {alarms,[]},
 {listeners,
     [{clustering,25672,"::"},{amqp,5672,"172.17.0.2"},{http,15672,"::"}]},
 {vm_memory_calculation_strategy,rss},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,6548978073},
 {disk_free_limit,50000000},
 {disk_free,182969389056},
 {file_descriptors,
     [{total_limit,32668},
      {total_used,2},
      {sockets_limit,29399},
      {sockets_used,0}]},
 {processes,[{limit,1048576},{used,401}]},
 {run_queue,1},
 {uptime,150},
 {kernel,{net_ticktime,60}}]
EXPECTED RESULTS

Users should be created or deleted.

ACTUAL RESULTS

See above.


EugenFo avatar Jan 05 '21 10:01 EugenFo