ARTESCA Upgrade Refuses to Start Without a Completed OS Update

Problem Description

The ARTESCA upgrade stops during its pre-checks, before it changes anything, and displays the following message:

Error: Failure while running 'os-update' upgrade pre-checks: The OS update
of ARTESCA 4.4.0 has not completed (not executed). Run 'sudo
./artesca-installer os-update' first, then run the upgrade again.

The cause, displayed in parentheses in the message (not executed in the example above), depends on the OS update state:

Cause

Description

not executed

No OS update ran with this version of the installer.

status: running

An OS update is still running, or it stopped before recording its result.

status: failed

The OS update failed, or it was stopped before it finished.

version mismatch: 4.3.0 != 4.4.0

The last OS update ran with another version of the installer.

Note

If the message names post-os-update instead of os-update, the OS update rebooted a node and the post-reboot steps failed. In this case, refer to ARTESCA Upgrade Fails.

Root Cause

The installer records each OS update in /var/lib/artesca/installer_state.json, with the installer version that ran it and its result. During its pre-checks, every upgrade command reads this record, including partial commands such as sudo ./artesca-installer upgrade data post. The upgrade starts only if the OS update of the target version succeeded.

The OS update records its success at the end of its run. If it reboots the bootstrap node, post-os-update records it after the reboot.

While post-os-update runs, upgrade commands that include the platform step, such as sudo ./artesca-installer upgrade, wait for it to complete. Other commands, such as sudo ./artesca-installer upgrade data post, do not wait and fail with the status: running reason.

The record exists only on the node the installer runs from. If the bootstrap node was reinstalled, or if /var/lib/artesca was restored from a backup, the record is missing. The upgrade then refuses to start, even though the cluster is up to date.

Problem Resolution

The resolution depends on the message:

  • If the message includes Its post-reboot steps failed, the OS update rebooted the bootstrap node and post-os-update failed. Do not run the OS update again as it does not finish the post-reboot steps. Refer to ARTESCA Upgrade Fails instead.

  • If the reason is status: running and post-os-update is still running, wait for it to complete. Follow its progress in /var/log/artesca/post-os-update.log, then run the upgrade command again.

For every other reason, run the OS update again to create a valid record, then restart the upgrade.

  1. On the bootstrap node, run the OS update.

    [artesca-os@bootstrap ~]$
    
    sudo ./artesca-installer os-update
    

    If the node where the installer runs restarts, you lose the connection to it. Wait for the reboot, then log back in.

    If the cluster is already up to date, the OS update installs nothing, restarts no node, and only creates the missing record.

  2. Resume the Upgrade.

Important

The --no-pre-check option skips this check along with every other pre-check. Use it only if you know that the OS update of this version completed on every node.