Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not honoring Version - always installs 3.6.8 #480

Closed
wjdavis5 opened this issue Feb 14, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@wjdavis5
Copy link
Contributor

commented Feb 14, 2018

Ubuntu 16.04 / vagrant / chef solo

node.default['rabbitmq']['use_distro_version'] = false
node.default['rabbitmq']['version'] = '3.7.3'

#other settings

include_recipe 'rabbitmq::default'
include_recipe 'rabbitmq::mgmt_console'

This always seems to install 3.6.8:

vagrant@ubuntu1604:~$ sudo rabbitmqctl status
Status of node rabbit@ubuntu1604 ...
[{pid,18419},
 {running_applications,
     [{rabbitmq_management_visualiser,"RabbitMQ Visualiser","3.6.8"},
      {rabbitmq_management,"RabbitMQ Management Console","3.6.8"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.8"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.8"},
      {rabbit,"RabbitMQ","3.6.8"},
      {cowboy,"Small, fast, modular HTTP server.","1.0.4"},
      {ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
      {os_mon,"CPO  CXC 138 46","2.4"},
      {amqp_client,"RabbitMQ AMQP Client","3.6.8"},
      {ssl,"Erlang/OTP SSL application","7.3"},
      {rabbit_common,
          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
          "3.6.8"},
      {syntax_tools,"Syntax tools","1.7"},
      {public_key,"Public key infrastructure","1.1.1"},
      {cowlib,"Support library for manipulating Web protocols.","1.0.2"},
      {crypto,"CRYPTO","3.6.3"},
      {asn1,"The Erlang ASN1 compiler version 4.0.2","4.0.2"},
      {compiler,"ERTS  CXC 138 10","6.0.3"},
      {mnesia,"MNESIA  CXC 138 12","4.13.3"},
      {xmerl,"XML parser","1.3.10"},
      {inets,"INETS  CXC 138 49","6.2"},
      {sasl,"SASL  CXC 138 11","2.7"},
      {stdlib,"ERTS  CXC 138 10","2.8"},
      {kernel,"ERTS  CXC 138 10","4.2"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:2:2] [async-threads:64] [kernel-poll:true]\n"},
 {memory,
     [{total,59439072},
      {connection_readers,0},
      {connection_writers,0},
      {connection_channels,0},
      {connection_other,2712},
      {queue_procs,2712},
      {queue_slave_procs,0},
      {plugins,589464},
      {other_proc,21756048},
      {mnesia,76576},
      {metrics,194088},
      {mgmt_db,149832},
      {msg_index,77056},
      {other_ets,2510000},
      {binary,117608},
      {code,27537508},
      {atom,992409},
      {other_system,5624435}]},
 {alarms,[]},
 {listeners,
     [{clustering,25672,"::"},
      {amqp,5672,"::"},
      {'amqp/ssl',5671,"::"},
      {https,15671,"::"}]},
 {vm_memory_high_watermark,0.81},
 {vm_memory_limit,1684191191},
 {disk_free_limit,50000000},
 {disk_free,24790769664},
 {file_descriptors,
     [{total_limit,924},{total_used,2},{sockets_limit,829},{sockets_used,0}]},
 {processes,[{limit,1048576},{used,329}]},
 {run_queue,0},
 {uptime,26},
 {kernel,{net_ticktime,60}}]
vagrant@ubuntu1604:~$
@michaelklishin

This comment has been minimized.

Copy link
Member

commented Feb 14, 2018

We cannot help with the amount of information provided. The version attribute is used.

Use Chef client debug logging to find out more.

@michaelklishin

This comment has been minimized.

Copy link
Member

commented Feb 14, 2018

3.6.8 is not mentioned anywhere in the code and is not a default version in Ubuntu 16.04 (or any other version).

Very likely this is something environment-specific.

@michaelklishin

This comment has been minimized.

Copy link
Member

commented Feb 14, 2018

3.6.8 was provisioned by default in 5.2.x. There were 3 releases since then + changes in master. Please give 5.4.1 a try.

@michaelklishin

This comment has been minimized.

Copy link
Member

commented Feb 14, 2018

Another thing I'm not sure about is why you override node.default attributes instead of node/node.normal.

@wjdavis5

This comment has been minimized.

Copy link
Contributor Author

commented Feb 14, 2018

Thanks for the info - when I updated my cookbooks I do see that it updated to 3.6.14.
And also it is now honoring the version.
Regarding node / node.nor111mal - just me being a chef noob.

This was my fault, I thought our build was calling berks update so I just assumed I was working off the latest version.

However during this I discovered it is in fact failing to download and install 3.7.3 - I'll open a new issue to track that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.