21.2.2 Upgrade - Script Install-Tools/CUS/mibtools.cus has failed

book

Article ID: 224323

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Mibtools script failed during upgrade. 

********** Started: Tue Sep  7 19:47:38 2021 **********
running Custom Script Install-Tools/CUS/mibtools.cus
  mysqladmin: DROP DATABASE mibtools failed;
error: 'Error dropping database (can't rmdir './mibtools/', errno: 17)'
Error(s) occurred. Please see /opt/CA/spectrum/Install-Tools/LOGS/21.2.2.0.15_20210907/mibtools.log.

 

Cause

Files exist in the mibtools directory other than database files.

Environment

Release : 21.2

 

Resolution

Files are in the $SPECROOT/mysql/data/mibtools

If the steps to setup TrapInsight, its possible the YAML file is still there.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/21-2/administrating/spectroserver-performance-administration/self-health-monitoring/spectrum-trapInsight-dashboard-view.html

Either way, do a listing of the above directory and remove any files that should not be there.

rw-rw-r--  1 spectrum ca 1550569 Sep  1 09:29 TrapNameList.yaml
-rw-r-----  1 spectrum ca    8614 Sep  8 10:28 mibs.frm
-rw-r-----  1 spectrum ca    4096 Sep  8 10:28 mibs.MYI
-rw-r-----  1 spectrum ca       0 Sep  8 10:28 mibs.MYD
-rw-r-----  1 spectrum ca    8654 Sep  8 10:28 mibObjectDescr.frm
-rw-r-----  1 spectrum ca    4096 Sep  8 10:28 mibObjectDescr.MYI
-rw-r-----  1 spectrum ca       0 Sep  8 10:28 mibObjectDescr.MYD
-rw-r-----  1 spectrum ca    8680 Sep  8 10:28 mibTraps.frm
-rw-r-----  1 spectrum ca    4096 Sep  8 10:28 mibTraps.MYI
-rw-r-----  1 spectrum ca       0 Sep  8 10:28 mibTraps.MYD
drwxr-x---  2 spectrum ca    4096 Sep  8 10:28 .
drwxr-x--- 11 spectrum ca    4096 Sep 12 01:23 ..

In the above the yaml file should be removed.

Run the installation again and it should succeed.