Azure / azure-linux-extensions

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

AMA installer wrongly assumes if config file exists then ARC is installed even though it isn't #1934

Open irusensei opened 3 months ago

irusensei commented 3 months ago

Agent assumes that if ArcSettingsFile exists then ARC is installed. Problem is that removing the ARC RPM doesn't remove ArcSettingsFile.

This caused a bit of confusion on some VMs where a while ago ARC was accidentally installed on Azure VMs but was later removed. AMA picked old proxy configurations from that file that prevented AMA from sending logs.

https://github.com/Azure/azure-linux-extensions/blob/master/AzureMonitorAgent/agent.py#L797-L800

Thanks.