Azure / Azure/WALinuxAgent

[BUG] /var/lib/waagent keep growing in size

Open
#2,424 2 comments 0 reactions 1 assignee Claimed by @narrieta View on GitHub
triaged
Dominant language
Python
Stars
581
Forks
397
Avg merge
2d 15h
Merged PRs (30d)
9

Description

Hi Everyone,

I know there were some fixes for similar issues in the past:
#1730
#2031 , added comment https://github.com/Azure/WALinuxAgent/issues/2031#issuecomment-978083118

We still see cases where there's lot of old zip files and folder under /var/lib/waagent and recently I noticed that specifically the WALinuxAgent install files are still there?

In our case we have very limited space of /var mountpoint and waagent drives it to the limits disrupting services.

Running version:
```
WALinuxAgent-2.2.45 running on ubuntu 18.04
Python: 3.6.9
Goal state agent: 2.5.0.2
```

related files and folders under `/var/lib/waagent` :

```
drwxr-xr-x 5 root root 4.0K Oct 6 02:20 Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9187.0
-rw-r--r-- 1 root root 1.6M Oct 6 02:20 Microsoft.Azure.RecoveryServices.VMSnapshotLinux__1.0.9187.0.zip
drwxr-xr-x 8 root root 4.0K Nov 24 02:19 Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.13.40
-rw-r--r-- 1 root root 137M Sep 21 18:35 Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux__1.13.40.zip
drwxr-xr-x 3 root root 4.0K Jun 26 14:12 WALinuxAgent-2.2.52
-rw-r--r-- 1 root root 541K Jun 26 14:12 WALinuxAgent-2.2.52.zip
drwxr-xr-x 3 root root 4.0K Jun 26 14:12 WALinuxAgent-2.2.53.1
-rw-r--r-- 1 root root 585K Jun 26 14:12 WALinuxAgent-2.2.53.1.zip
drwxr-xr-x 3 root root 4.0K Jun 26 14:12 WALinuxAgent-2.2.54.2
-rw-r--r-- 1 root root 617K Jun 26 14:12 WALinuxAgent-2.2.54.2.zip
drwxr-xr-x 3 root root 4.0K Jun 26 14:12 WALinuxAgent-2.3.0.2
-rw-r--r-- 1 root root 629K Jun 26 14:12 WALinuxAgent-2.3.0.2.zip
drwxr-xr-x 3 root root 4.0K Jul 1 18:09 WALinuxAgent-2.3.1.1
-rw-r--r-- 1 root root 629K Jul 1 18:09 WALinuxAgent-2.3.1.1.zip
drwxr-xr-x 3 root root 4.0K Aug 18 00:57 WALinuxAgent-2.4.0.2
-rw-r--r-- 1 root root 643K Aug 18 00:57 WALinuxAgent-2.4.0.2.zip
drwxr-xr-x 3 root root 4.0K Oct 13 20:26 WALinuxAgent-2.5.0.2
-rw-r--r-- 1 root root 653K Oct 13 20:26 WALinuxAgent-2.5.0.2.zip
```

Deleting manually most of them if not all were recreated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.