When attempting to upgrade Broadcom Aria Automation from version 8.18.0 to 8.18.1, the upgrade process fails during the initial startup phase with a "Timeout expired Deployment failed" error. This failure is specifically linked to the vami-sfcb service failing to start.
Symptoms
You will observe the following symptoms during the upgrade attempt:
++ source /opt/scripts/retry_utils.sh+ vracli status first-boot -w 300 failed check /usr/bin/systemctl is-active vami-sfcb: exit code: [3], stdout: [failed ], stderr: []+ die 'Timeout expired'+ local 'msg=Timeout expired'+ local exit_code=+ '[' 1 -lt 2 ']'+ exit_code=1+ set +x^[[H^[[2J^[[3JTimeout expiredDeployment failed. Collecting log bundle ...
systemctl status vami-sfcb.serviceAria Automation 8.18.x
The root cause of this issue is the presence of outdated VAMI Python library files in the /opt/vmware/share/vami directory on the Aria Automation appliance. Specifically, files such as vami_login_textgen, vami_invoke_method, vami_sfcb_test, and vami_sfcb_initialize still contain shebangs pointing to #!/usr/bin/env python2.
Aria Automation versions 8.16.1 and later require these scripts to use #!/usr/bin/env python, which resolves to Python 3. The vami-sfcb service relies on these scripts for its proper operation. When the upgrade process attempts to start the vami-sfcb service, these outdated scripts fail to execute correctly due to Python 2 deprecation or absence in the updated environment. This failure causes the vami-sfcb service to time out, blocking the upgrade.
To resolve this issue and allow the Aria Automation upgrade to complete, you need to manually update the VAMI RPM packages to ensure the correct Python 3 compatible scripts are in place.
Steps:
vmware-studio-vami-cimom_3.0.0.7-24345548.x86_64.rpmvmware-studio-vami-login_3.0.0.7-24345548.x86_64.rpmvmware-studio-vami-tools_3.0.0.7-24345548.x86_64.rpmrpm -Uvh --nodigest --nofiledigest --force /tmp/vmware-studio-vami-cimom_3.0.0.7-24345548.x86_64.rpmrpm -Uvh --nodigest --nofiledigest --force /tmp/vmware-studio-vami-login_3.0.0.7-24345548.x86_64.rpmrpm -Uvh --nodigest --nofiledigest --force /tmp/vmware-studio-vami-tools_3.0.0.7-24345548.x86_64.rpmsystemctl status vami-sfcb.service