rabbitmqctl status
fails with traceback
#10308
-
Describe the bugThe commands
This happens in a rabbitmq 3.12.12 image deployed using helm from the rabbitmq bitnami chart. As far as I can see, the string The chart was deployed using:
where the values files summarize to: metrics:
enabled: true
auth:
username: admin
existingPasswordSecret: rabbitmq-admin
existingErlangSecret: rabbitmq-erlang-cookie
replicaCount: 2
memoryHighWatermark:
enabled: true
type: absolute
value: "768Mi"
resources:
requests:
memory: "1024Mi"
limits:
memory: "1024Mi" which result in the configuration file:
This is probably related to #5083, which didn't follow up with configuration info. Happy to provide more help, for instance by suggesting how to get the input that crashes the Reproduction stepsDescribed above. Expected behaviorcommand terminating successfully. Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I cannot reproduce. Something in this specific environment produces a value (an amount of memory available, an amount of free disk space available, this kind of thing) that cannot be converted to gigabytes. Without knowing what the value is, we cannot do anything. |
Beta Was this translation helpful? Give feedback.
-
I recall a few discussions and a change or two in this area, e.g. #5083. rabbitmqctl status --print-stacktrace can potentially display more details. The line in question formats the high VM watermark value which is a configurable value: readable_watermark_setting =
case m[:vm_memory_high_watermark_setting] do
%{:relative => val} -> "#{val} of available memory"
# absolute value
%{:absolute => val} -> "#{IU.convert(val, unit)} #{unit}"
end In your configuration file it is set to |
Beta Was this translation helpful? Give feedback.
-
vm_memory_high_watermark.absolute = 768Mi reproduces the issue because vm_memory_high_watermark.absolute = 768MB works perfectly fine. |
Beta Was this translation helpful? Give feedback.
-
I understand, thank you very much. The error comes directly from an example in the chart documentation. I guess I will raise the issue with the charts maintainers. Thank you very much for looking into it! |
Beta Was this translation helpful? Give feedback.
-
#10348 has introduced validation of information units in |
Beta Was this translation helpful? Give feedback.
vm_memory_high_watermark.absolute = 768Mi
reproduces the issue because
rabbitmq.conf
schema parser does not validate the unit but CLI tools must know how to format it and they don't have a suitable clause.vm_memory_high_watermark.absolute = 768MB
works perfectly fine.