ONTAP Deploy: Upgrade fails on license-manager setup
Applies to
Issue
- Deploy VM upgrade fails with the following message:
(ONTAPdeploy) deploy upgrade -package-path /home/admin/SELECTDEPLOY_9121P4.tar.gz Two-node clusters are being managed by this Deploy instance. An upgrade operation requires a reboot of Deploy, which will temporarily disconnect iSCSI connections from ONTAP Select nodes of two-node clusters (being managed and using the mediator service running on this Deploy). Takeover/Giveback will be disabled on all such two-node clusters for the short period until the Deploy reboot completes and iSCSI connections from ONTAP Select nodes are restored. Do you want to proceed with the upgrade ? [y/N] y A backup of the system will be taken prior to upgrade. Enter a password to encrypt the backup with: Retype new password: Starting upgrade. This may take a few minutes. The system will reboot to complete the upgrade. No other operations are permitted while the upgrade is in progress. Deploy upgrade failed.
- The Deploy upgrade fails regardless of target version.
- In the Deploy
upgrade.log
file, you see errors like the below:
upgrade.log.1:[2023-09-14 11:29:21] Setting up license-manager (0.0.1)
...
upgrade.log.1:[2023-09-14 11:29:21] rm: cannot remove '/usr/lib/license-manager-0.0.1/license_manager/license_manager/common/__init__.py': No such file or directory
upgrade.log.1:[2023-09-14 11:29:21] dpkg: error processing package license-manager (--configure):
upgrade.log.1:[2023-09-14 11:29:21] installed license-manager package post-installation script subprocess returned error exit status 1
upgrade.log.1-[2023-09-14 11:29:21] Errors were encountered while processing:
upgrade.log.1:[2023-09-14 11:29:21] license-manager
- In older
upgrade.log
files, you see evidence a previous upgrade attempted failed to complete license-manager setup:
upgrade.log.2:[2023-03-27 10:10:25] Unpacking license-manager (0.0.1) over (0.0.1)
...
upgrade.log.2:[2023-03-27 10:10:25] Setting up license-manager (0.0.1)
...
upgrade.log.2-[2023-03-27 10:10:26] Errors were encountered while processing:
upgrade.log.2:[2023-03-27 10:10:26] license-manager
upgrade.log.2-[2023-03-27 10:10:26] Deploy Upgrade Failed
upgrade.log.2-[2023-03-27 10:10:26] Upgrade script exit status: 1