Skip to content

Commit 8c8713f

Browse files
committed
Update waagent to v2.15.0.1 and keep systemd config in sync
* upgrades waagent to the latest version * syncs the systemd config, which adds memory-accounting and a dependency to cloud-init.service, which ensures that the waagent.service does not start before cloud-init has finished. <https://github.com/Azure/WALinuxAgent/blob/v2.15.0.1/init/ubuntu/walinuxagent.service>
1 parent 74bc4c7 commit 8c8713f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

stemcell_builder/stages/system_azure_init/apply.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ packages="python3 python3-pyasn1 python3-setuptools python3-distro python-is-pyt
99
cloud-init azure-vm-utils linux-cloud-tools-common linux-cloud-tools-generic"
1010
pkg_mgr install $packages
1111

12-
wala_release=2.9.1.1
13-
wala_expected_sha1=b61bd57f3b2f7b048d6bab2739690bbf1d9c213b
12+
wala_release=2.15.0.1
13+
wala_expected_sha1=155fd6f326a2bf2ff97b4ea2e2c83dc16a9c1768
1414

1515
curl -L https://github.com/Azure/WALinuxAgent/archive/v${wala_release}.tar.gz > /tmp/wala.tar.gz
1616
sha1=$(cat /tmp/wala.tar.gz | openssl dgst -sha1 | awk 'BEGIN {FS="="}; {gsub(/ /,"",$2); print $2}')

stemcell_builder/stages/system_azure_init/assets/etc/waagent/walinuxagent.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ExecStart=/usr/bin/python3 -u /usr/sbin/waagent -daemon
2020
Restart=always
2121
Slice=azure.slice
2222
CPUAccounting=yes
23+
MemoryAccounting=yes
2324

2425
[Install]
2526
WantedBy=multi-user.target

0 commit comments

Comments
 (0)