Exit code 7 when upgrading ITCM agent on Redhat 7.x server
Article ID: 106812
CA Automation Suite for Data Centers - Configuration AutomationCA Client Automation - Asset ManagementCA Client Automation - IT Client ManagerCA Client AutomationCA Client Automation - Remote ControlCA Client Automation - Asset IntelligenceCA Client Automation - Desktop Migration ManagerCA Client Automation - Patch Manager
When upgrading an ITCM agent on Redhat 7.x, software delivery returns "Exit code 7 indicates possible error".
A review of the installation log on the agent shows the following error: You are performing a new CA ITCM installation, but the configuration file /opt/CA/DSM/scripts/comstore_config already exists. This may result in incorrect data configuration of the installation. If you are certain that this is a new installation, please remove the file /opt/CA/DSM/scripts/comstore_config and try again. /tmp/LSMEXMLlstr/ca-dsm.d//opt/CA/DSM/scripts/install/postinterview failed with return code = 126
When upgrading ITCM via the interactive installer, rather than being prompted for "Upgrade/Repair", the interactive installer will display an "Install ITCM" option, indicating the installer is running the wrong mode, and was unable to detect the existing ITCM. The same error as above will be encountered and displayed in the log files.
This upgrade issue is due to the same problem reported on this KB article:
The root cause is that the ITCM installer references LSM on the system, in order to determine whether or not to run in Upgrade/Repair mode, versus New Installation mode.
With LSM not working properly, the ITCM installer starts in the incorrect mode, and arrives at the error in question: You are performing a new CA ITCM installation, but the configuration file /opt/CA/DSM/scripts/comstore_config already exists. This may result in incorrect data configuration of the installation. If you are certain that this is a new installation, please remove the file /opt/CA/DSM/scripts/comstore_config and try again.
Client Automation (ITCM) -- any version glibc-2.17-222.el7.i686 or newer installed
In order to successfully upgrade ITCM, LSM (ca-sm-installer) must be upgraded on the system first, in order to be compatible with the latest glibc changes. Attached to this KB article is the same updated ca-sm-installer as KB000093558.
Using Software Delivery or via command line, copy the new ca-sm-installer to the affected system and execute ./ca-sm-installer. Afterwards, you will be able to invoke the ./installdsm script or push the agent upgrade via Software Delivery, and the installer will run in the correct mode.