Exit code 7 when upgrading ITCM agent on Redhat 7.x server

Document ID : KB000106812
Last Modified Date : 15/08/2018
Show Technical Document Details
Issue:
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.
Environment:
Client Automation (ITCM) -- any version
 glibc-2.17-222.el7.i686 or newer installed
Cause:
This upgrade issue is due to the same problem reported on this KB article:

KB000093558: Installation error (lsm/glibc error) when installing the ITCM Agent on Redhat Enterprise Linux 7.x
https://comm.support.ca.com/kb/lsm-glibc-error-install-itcm-redhat-linux/kb000093558

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.
Resolution:
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.
File Attachments:
ca-sm-installer.zip