open-contracting / deploy

Deployment configuration and scripts
https://ocdsdeploy.readthedocs.io/en/latest/
Apache License 2.0
2 stars 3 forks source link

RabbitMQ: "All stable feature flags must be enabled after completing an upgrade" #488

Closed jpmckinney closed 1 day ago

jpmckinney commented 2 months ago

This alert message appears after logging into the management plugin UI. It links to https://www.rabbitmq.com/docs/feature-flags

Not sure if any action is needed or if we need to add instructions for when upgrading RabbitMQ.

jpmckinney commented 1 month ago

In the log file (/var/log/rabbitmq/rabbit@ocp13.log):

[warning] Deprecated features: `management_metrics_collection`: Feature `management_metrics_collection` is deprecated.
[warning] By default, this feature can still be used for now.
[warning] Its use will not be permitted by default in a future minor RabbitMQ version and the feature will be removed from a future major RabbitMQ version; actual versions to be determined.
[warning] To continue using this feature when it is not permitted by default, set the following parameter in your configuration:
[warning]     "deprecated_features.permit.management_metrics_collection = true"
[warning] To test RabbitMQ as if the feature was removed, set this in your configuration:
[warning]     "deprecated_features.permit.management_metrics_collection = false"
jpmckinney commented 1 day ago

Aha, need to run rabbitmqctl enable_feature_flag all. I've added this to docs. https://ocdsdeploy.readthedocs.io/en/latest/develop/update/rabbitmq.html#post-upgrade-steps

I've also configured deprecated_features.permit.management_metrics_collection = true.

https://www.rabbitmq.com/docs/prometheus is recommended, but there seems to be no schedule to remove the deprecated management metrics.

Note that the above message appears even when deprecated_features.permit.management_metrics_collection = true is in the configuation file (setting it to false does indeed disable metrics).