Trying to upgrade data collectors through the GUI and they fail. A 0 byte install.bin file is created. I see these errors in the data collector log
2022-01-06 21:56:43,600 | INFO | sitory-thread-44 | DCUpgradeHandler | llector.upgrade.DCUpgradeHandler 81 | 192 - com.ca.im.data-collection-manager.core.impl - 21.2.1.RELEASE-123 | | receive upgrade action on 162371,action=daHostName=localhost, daPort=8581, [email protected]547d06c
2022-01-06 21:56:43,600 | INFO | Thread-2072 | DCUpgradeHandler | llector.upgrade.DCUpgradeHandler 72 | 192 - com.ca.im.data-collection-manager.core.impl - 21.2.1.RELEASE-123 | | tenant item id of 162371 is 1
2022-01-06 21:56:43,648 | INFO | Thread-2072 | DCUpgradeHandler | llector.upgrade.DCUpgradeHandler 149 | 192 - com.ca.im.data-collection-manager.core.impl - 21.2.1.RELEASE-123 | | upgrade process [2/4]: going to upgrade dc
2022-01-06 21:56:43,694 | WARN | Thread-2072 | DCUpgradeHandler | llector.upgrade.DCUpgradeHandler 175 | 192 - com.ca.im.data-collection-manager.core.impl - 21.2.1.RELEASE-123 | | Connection refused (Connection refused)
2022-01-06 21:56:43,695 | WARN | Thread-2072 | DCUpgradeHandler | llector.upgrade.DCUpgradeHandler 180 | 192 - com.ca.im.data-collection-manager.core.impl - 21.2.1.RELEASE-123 | | dcinstaller [http] download is not available, using [activemq] instead:
From the karaf log on the DC.
Dx NetOps Performance Management 21.2
There was a problem with the hosts file and hostname -f was returning "localhost" and not the hostname of the system.
hostname -f needs to return the FQDN of the host
The issue is that the DA should be sending its hostname to the data collector to connect and get the install.bin but the DA is sending "localhost" instead. Corrected the /etc/hosts file so that hostname -f was returning the correct FQDN and now the data collectors are able to upgrade.