The team has been made aware of an issue that may be affecting certain Anbox Cloud deployments due to the snapd 2.77.1 update.
AMS may experience the following AppArmor network denials preventing it from communicating with services like etcd.
apparmor="DENIED" operation="file_perm" class="net"
profile="snap.ams.ams"
comm="ams"
family="inet"
sock_type="stream"
protocol=6
requested="send"
denied="send"
What is causing the issue?
This is not caused by a change to the AMS AppArmor policy.
snapd 2.77.1 can expose a kernel-side AppArmor networking issue on systems running affected kernel versions. The problem is tracked in Launchpad bug #2169038.
This explains why an Anbox Cloud deployment may work normally with snapd 2.76.3 and begin showing AppArmor denials after snapd is updated.
You can check your current versions with:
snap version
Recommended action
We recommend updating the host to the latest supported Ubuntu kernel available for your Ubuntu release and rebooting the system.
sudo apt update
sudo apt upgrade
sudo reboot
We recommend updating the kernel if possible, rather than keeping an older version of snapd, as this addresses the underlying issue.
There is no need to modify the AMS AppArmor profiles or weaken their confinement.
If you cannot update the kernel immediately
Temporarily reverting snapd to 2.76.3 can be used as a workaround while the kernel update is planned.
If the previous revision is still available locally, you can check with:
snap list --all snapd
and revert it with:
sudo snap revert snapd
This should only be considered a temporary mitigation.
If the previous revision is no longer available, or if you are unsure which kernel or snapd revision applies to your environment, please get in touch with Canonical Support or the Anbox Cloud team and we will be happy to assist you.
When contacting us, please include:
snap version
snap list --all snapd
along with the relevant AppArmor messages from:
sudo journalctl -k | grep apparmor