We are running into lots of issues with the automated snap update process on our Ubuntu 18.10 servers. Over the past few days, all of our container servers were auto-upgraded from 3.14 to 3.15 which has caused loads of problems.
The snap refresh command hangs due to an NFS mount point from our backup servers. As a result, the refresh command fails and the “lxc” command gets removed. The fix is to forcefully unmount the NFS drive which clears up the refresh command. Problem is, all our backups fail.
A second, and more serious issue, is the “snap refresh” command seems to have unmounted the /proc filesystem on our containers, and we have to restart them. When this issue occurs, the “free -m” command fails.
Furthermore, it seems there is NO WAY to disable the snap update process. You can read the 2yr long thread here: https://forum.snapcraft.io/t/disabling-automatic-refresh-for-snap-from-store/707/243). The only way around this is to run a couple of firewall rules to drop all connections to the snap store: "sudo iptables -A OUTPUT -d search.apps.ubuntu.com -j DROP” and “sudo iptables -A OUTPUT -d api.snapcraft.io -j DROP”
Given this are production servers, we take any outage very seriously, and the snap tool has totally destroyed our uptime numbers for our clients. I cannot believe there is no way to disable the snap update command. This is totally unacceptable.
Is there a non-snap version of LXD we can install via separate repository? Any other work arounds we can use to keep the snap update from automatically occuring?