Azure / azure-linux-extensions

Linux Virtual Machine Extensions for Azure
Apache License 2.0
306 stars 253 forks source link

td-agent.conf not getting updated after a new DCR association #1974

Open AdityaLoth opened 3 weeks ago

AdityaLoth commented 3 weeks ago

I am interested in adding multiple DCRs to a single VM. Following steps are performed in order:

  1. Installation of AMA
  2. Creation of first DCR and association
  3. Creation of second DCR and association

But I am getting logs in LA workspace for only the log file paths present in first DCR. I tried removing association of second DCR and then associating it agian, and I observed that we are updating the fluent-bit config file td-agent.conf when removing DCR association but not updating when creating one. And I beleive that might be the cause I am not getting logs from second DCR.

Kindly assist me in resolving the issue. Thanks in advance.

AdityaLoth commented 3 weeks ago

Update: The td-agent.conf file is not getting updated even in case of dissassociation of DCR given that there exist atleast one DCR associated. If we remove all the DCR associations and then associate them again without much delay then the config gets update with all the log file paths. But if there is a time gap between the associations then it won't update.

This issue is not occuring for the AMA version 1.31.1. Disabling auto upgrades till this issue is fixed.