Azure Linux 3.0 (CBL-Mariner)

How to fix AKS Azure Linux node NotReady after image upgrade

By Sai Kiran Pandrala · Last verified: 2026-05-31 · Source: community Q&A, official OS documentation, distro forums (Ubuntu Discourse, Fedora Discussion, Arch BBS, Reddit r/linux, ServerFault, Unix StackExchange)

At a glance
OS / DistroAzure Linux 3.0 (CBL-Mariner)
CategoryOperating Systems
Guide typeProcedure
Skill levelIntermediate to advanced
Time15 - 60 minutes including verification

Engineers running Azure Linux 3.0 (CBL-Mariner) hit How to fix AKS Azure Linux node NotReady after image upgrade often enough that there is a stable fix pattern. This page captures it in the order a Linux on-call would run it during a real incident.

What how to fix aks azure linux node notready after image upgrade actually involves on Azure Linux 3.0 (CBL-Mariner)

This task on Azure Linux is one of the more searched operational topics across distro forums and Unix StackExchange in the last 12 months. The procedure below is the path that works on a current Azure Linux install with default config.

The rest of this page is the structured fix path. Start with diagnose, then remediation, then the automation options so you do not have to do this by hand the next time it surfaces. Verify and safety sections at the end are the discipline that keeps the fix from regressing in production.

Diagnose first, fix second

Check service journal for the calling unit. journalctl -u <service> --since today --no-pager shows the full unit timeline. Add -p err to filter to errors only. Use journalctl -u <service> -f in another terminal while you reproduce; the bug usually surfaces in the live log within seconds.

Confirm identity and privilege. Run id, sudo -l, getent passwd $USER, and on systems with SSSD run sssctl user-checks $USER. About one in five 'why does this not work' tickets are actually 'I am in the wrong account', 'my Kerberos ticket expired', or 'I am hitting a sudoers rule I did not know about'.

Reproduce the failure with the relevant CLI in verbose or debug mode. apt -o Debug::pkgProblemResolver=true, dnf -v, zypper --verbose, pacman -dvv, systemctl status --no-pager -l, and strace -f -e trace=openat,read,write all expose what the high-level error message hides. Save the debug output to a file so you can grep it later instead of scrolling.

Solution-focused remediation path

When the failure happens in production but not in dev, do not just diff the application. Diff the kernel version, the libc version, the distro release, the SELinux/AppArmor profile, the cgroup tree, and the systemd unit. uname -a + ldd --version + cat /etc/os-release + getenforce + systemctl show <service> --no-pager | grep -E 'CPU|Memory|Tasks' covers the typical surface. One of those is almost always different between the two environments.

Most Azure Linux 3.0 (CBL-Mariner) failures fall into one of three buckets: configuration drift (a setting changed and nobody documented it), dependency gap (a package, kernel module, or library is missing or wrong version), or resource exhaustion (disk, memory, file handles, or inodes). Triage in that order. It covers around 80 percent of real-world cases. If the failure does not fit any of the three, it is likely an upstream regression worth tracking against the distro bug tracker.

If the issue points at packages, do not start by force-removing them. Run apt --fix-broken install on Debian family, dnf check + dnf distro-sync on RHEL family, zypper verify + zypper dup on openSUSE, pacman -Syu on Arch. Force-removing a held-back package is the fastest way to break apt or dnf so badly the next boot lands in single-user mode.

Automate this fix so you do not do it twice

Wire the fix into a systemd unit override or Ansible role for self-healing

If the underlying cause is a setting that drifts over time, do not script the fix repeatedly. Bake it into a configuration-management role that runs on every check-in. Ansible, Puppet, Chef, SaltStack, and tools like Cockpit, Foreman, and Spacewalk all support enforced state. The role reasserts itself, so even if an operator changes the setting locally, the next run brings it back to the codified state (typically every 30 minutes for Puppet, on cron or systemd-timer for Ansible).

# Ansible task that enforces the corrected setting on every run
- name: Enforce hardened sshd config ansible.builtin.lineinfile: path: /etc/ssh/sshd_config regexp: '^#?PermitRootLogin' line: 'PermitRootLogin no' backup: yes notify: restart sshd

Codify the fix as a systemd timer or cron job for unattended remediation

For workflows that need to run unattended (clear a stuck cache, rotate logs, fail over a service, rebuild an index) a systemd timer or a cron job is the right place. Timers can fire on boot, on schedule, or after a dependency unit reaches an active state. systemctl list-timers shows the next-fire time for every active timer. For interactive helper workflows, a wrapper shell script in /usr/local/bin/ documented in MOTD or the team wiki keeps the institutional knowledge accessible.

Automate the fix in shell with systemctl, journalctl, and the package manager

On most Linux and BSD systems the most reliable repair primitives are the built-in CLI tools. systemctl status reveals the current service state, journalctl -u exposes the structured log stream, and systemctl reload or restart applies config changes without a reboot. For package management use the distro tool: apt, dnf, zypper, pacman, pkg, opkg, apk. For hardware and inventory checks the canonical readers are lsblk, lspci, lscpu, dmidecode, and lsmod.

# Template - replace SERVICE with the failing unit name
systemctl status SERVICE --no-pager | head -40
journalctl -u SERVICE -n 100 --no-pager
ss -tlnp | grep -i SERVICE
ls -l /etc/SERVICE/ 2>/dev/null
cat /etc/os-release

Common pitfalls and what to watch for

The most common pitfall when fixing this on Azure Linux 3.0 (CBL-Mariner) is treating it as a one-off rather than as a recurring class of incident. The same misconfiguration tends to happen again after a kernel upgrade, a major distro version bump, or a fleet rollout unless the fix is codified. Add an Ansible role, a Puppet manifest, a SaltStack state, or a Cloud-init drop-in that prevents the same misconfig from being reintroduced. Documentation alone does not survive team turnover.

Another common trap: confirming the fix on a single host and assuming the fleet is healthy. Loop your check across every node, container, and VM that could exhibit the same symptom. If you cannot enumerate the affected scope without a script, you do not yet understand the scope.

Verify the fix worked

Safety, rollback, blast radius

FAQ

How long does how to fix aks azure linux node notready after image upgrade typically take on this OS?
For most Azure Linux 3.0 (CBL-Mariner) environments, 15 to 60 minutes including verification. Large fleet rollouts, anything touching kernel parameters or initramfs, or cross-data-centre replication can stretch to half a day because you have to wait for package mirrors, configuration management runs, and reboot windows to align.
Is there a rollback path?
Yes for most Azure Linux 3.0 (CBL-Mariner) changes. Back up the existing config to a versioned file first (etckeeper commit, cp file file.bak.$(date +%F), or a Btrfs/ZFS snapshot), then commit it before you change anything. A few operations are one-way (in-place filesystem conversion, partition table rewrite, kernel ABI bump). Check the distro release notes for the specific operation before you commit.
Will this affect dependent services?
Often yes. Azure Linux 3.0 (CBL-Mariner) services are usually consumed by other workloads (application servers, cron jobs, monitoring agents, container runtimes, log shippers). Use systemctl list-dependencies and lsof to enumerate consumers before changing a shared service or configuration file.
What if my distro version does not match these steps?
Distro defaults move between releases. The steps in this page reflect mainstream defaults as of 2026-05-31 but the underlying CLI calls do not change as fast. If a command differs on your version, fall back to man <command> on the host, or the upstream project documentation - those almost always still work.
Where do I get vendor support if I am still stuck?
If you have an Ubuntu Pro, Red Hat, SUSE, Oracle, or Canonical Support subscription, open a case with: the exact error string, the relevant journalctl excerpt, the output of sosreport (RHEL family) or supportconfig (SUSE), and your reproduction steps. The distro forum is the no-cost public alternative - search there first; 80 percent of common Azure Linux 3.0 (CBL-Mariner) issues already have a working answer marked as solved.

References

Related guides worth a look while you sort this one out: