td-agent not found in containers path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Confirmed
|
Undecided
|
Antony Messerli |
Bug Description
When testing out 2023.2 we ran into an issue during deployment that resulted in the following error:
The error message in your Docker logs, exec: td-agent: not found, indicates that the Fluentd executable td-agent is not found in the container's PATH. This problem typically arises when the Fluentd package (td-agent) is either not installed within the Docker image or if it's installed in a location that is not included in the container's PATH environment variable.
Upon investigation, it showed that the td-agent was being renamed to fluentd in newer containers. In order to handle this migrations, some labels were added in the newer containers to help Ansible determine which username. Because these values were added to the label block in the Dockerfile, our customized containers which we build did not set the fluentd_binary and fluentd_user labels.
In looking through the various other labels in all of the other Dockerfiles, this seems to be the one location where additional values are set in the labels block.
As they are specific to the fluentd container operation, the LABEL for those two values should probably be moved outside of the block in order to not break operators that are customizing their containers. In our case I was able to fix the issue in our containers by moving those values outside of the block, but I think we should probably get this corrected upstream as well.
Changed in kolla: | |
assignee: | nobody → Antony Messerli (antonym) |
status: | New → In Progress |
Fix proposed to branch: master /review. opendev. org/c/openstack /kolla/ +/911014
Review: https:/