opensearch-build
opensearch-build copied to clipboard
[Bug]: Docker instances yield two deprecation warnings related to cgroup
Describe the bug
On startup, Docker instances of OpenSearch Dashboards will throw deprecation warnings about cpu.cgroup.path.override
and cpuacct.cgroup.path.override
, unless the user has overridden the default entrypoint scripts.
To reproduce
Launch a vanilla Docker image of OpenSearch Dashboards with the following:
docker pull opensearchproject/opensearch-dashboards:latest
docker run -it -p 5601:5601 --name opensearch-dashboard opensearchproject/opensearch-dashboards:latest
The dashboard will fail to connect to the cluster, but the deprecation warning gets thrown before this. Even when properly configured with docker-compose.yml
and connected to a cluster, the dashboard will throw the deprecation warnings because the deprecated settings are set in the Docker entrypoint script (e.g. docker/release/config/opensearch-dashboards/opensearch-dashboards-docker-entrypoint-default.x.sh
).
Expected behavior
No deprecation warning expected.
Screenshots
No response
Host / Environment
Latest Docker image located at https://hub.docker.com/r/opensearchproject/opensearch-dashboards (build date 2024-08-15T20:09:22Z)
Additional context
No response
Relevant log output
opensearch-dashboards | {"type":"log","@timestamp":"2024-09-06T02:17:39Z","tags":["warning","config","deprecation"],"pid":1,"message":"\"cpu.cgroup.path.override\" is deprecated and has been replaced by \"ops.cGroupOverrides.cpuPath\""}
opensearch-dashboards | {"type":"log","@timestamp":"2024-09-06T02:17:39Z","tags":["warning","config","deprecation"],"pid":1,"message":"\"cpuacct.cgroup.path.override\" is deprecated and has been replaced by \"ops.cGroupOverrides.cpuAcctPath\""}