Event Manager failed to upgrade
Alarm Console Dashboard shows No Data to Display post upgrade
Performance Management Alarms console no longer getting alarms from Spectrum
No Spectrum alarm in PC/Portal web page
MySql errors after upgrading from 21.2.10 or earlier releases to 21.2.11 or later releases.
Error found in the EM/logs/wrapper-<DATE>.log file:
INFO | jvm 1 | 2023/05/05 00:43:35 | ERROR | AlarmService/SpectrumAlarmTask-1 | 2023-05-05 00:43:35,907 | com.ca.im.portal.em.spectrum.subscription.AlarmProcessingTask
INFO | jvm 1 | 2023/05/05 00:43:35 | | Handled unexpected Exception during new alarm processing - Exception:
INFO | jvm 1 | 2023/05/05 00:43:35 | org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [INSERT IGNORE INTO alarms ( SourceID,LocalAlarmID,LocalID,CreatedOn,OIRuleName,SyslogHost,ModifiedOn,LastOccurredOn,Description,Severity,Acknowledged,UserClearable,Impact,CombinedImpact,SymptomCount,OriginatingEvent,Occurrences,CauseCode,CauseCount,TroubleTicketId,Troubleshooter,PeriodStartTime,PeriodEndTime,SyslogHitCount,DiscriminatorValues,UpdatedOn ) VALUES ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) ON DUPLICATE KEY UPDATE ModifiedOn=VALUES(ModifiedOn),LastOccurredOn=VALUES(LastOccurredOn),Description=VALUES(Description),Severity=VALUES(Severity),Acknowledged=VALUES(Acknowledged),UserClearable=VALUES(UserClearable),Impact=VALUES(Impact),CombinedImpact=VALUES(CombinedImpact),SymptomCount=VALUES(SymptomCount),OriginatingEvent=VALUES(OriginatingEvent),Occurrences=VALUES(Occurrences),CauseCode=VALUES(CauseCode),CauseCount=VALUES(CauseCount),TroubleTicketId=VALUES(TroubleTicketId),Troubleshooter=VALUES(Troubleshooter),PeriodStartTime=VALUES(PeriodStartTime),PeriodEndTime=VALUES(PeriodEndTime),SyslogHitCount=VALUES(SyslogHitCount),DiscriminatorValues=VALUES(DiscriminatorValues),UpdatedOn=VALUES(UpdatedOn)]; nested exception is java.sql.BatchUpdateException: Unknown column 'DiscriminatorValues' in 'field list'
The em.alarms table is missing the DescriminatorValues field.
In the /opt/CA/PerformanceCenter/InstallLogs/emmigrate.log.<DATE> log file we may see one of these errors.
Mar 24, 2023 9:57:29 AM com.ca.im.installanywhere.util.DbMigrateApp mainSEVERE: com.ca.im.installanywhere.util.DbMigrateException: com.ca.im.installanywhere.util.DbMigrateException: An exception occurred on step 0 (upgrade/21.2.11.0/merge_old_event_partitions.sql) of loading /opt/CA/PerformanceCenter/Tools/bin/../../EM/SQL/upgrade/21.2.11.0/_upgrade.21.2.11.0.xmljava.sql.SQLException: Error executing command: CALL em.rotate_event_partitions() on line 65 in script /opt/CA/PerformanceCenter/Tools/bin/../../EM/SQL/upgrade/21.2.11.0/merge_old_event_partitions.sql VALUES value for partition 'p20230324' must have type INT
Jun 30, 2023 7:37:54 AM com.ca.im.installanywhere.util.DbMigrateApp main SEVERE: com.ca.im.installanywhere.util.DbMigrateException: com.ca.im.installanywhere.util.DbMigrateException: An exception occurred on step 0 (upgrade/21.2.11.0/merge_old_event_partitions.sql) of loading /opt/CA/PerformanceCenter/Tools/bin/../../EM/SQL/upgrade/21.2.11.0/_upgrade.21.2.11.0.xml java.sql.SQLException: Error executing command: CALL em.rotate_event_partitions() on line 65 in script /opt/CA/PerformanceCenter/Tools/bin/../../EM/SQL/upgrade/21.2.11.0/merge_old_event_partitions.sql Illegal mix of collations (utf8mb3_general_ci,IMPLICIT) and (utf8mb3_tolower_ci,IMPLICIT) for operation '='
The em DB is not updated with new release details (still in 3.7.8.0) while the netqosportal DB is (22.2.6.0).
mysql> select * from netqosportal.revision_info;
+---------------+-------------+---------------------+-----------------+------------------------------+-------------+-------------+----+
| NetOPsVersion | Version | InstallDate | DbSchemaVersion | BuildDate | BuildNumber | Description | ID |
+---------------+-------------+---------------------+-----------------+------------------------------+-------------+-------------+----+
| | 2.8.0.171 | 2016-07-20 18:29:26 | 2.8.0.0 | Wed Jun 01 00:59:46 EDT 2016 | 171 | CAPC | 1 |
| | 3.1.0.257 | 2017-06-20 15:00:18 | 3.1.0.0 | Tue Mar 21 23:02:50 EDT 2017 | 257 | CAPC | 2 |
| | 3.5.0.212 | 2018-07-12 09:58:21 | 3.5.0.0 | Wed Dec 13 13:53:05 EST 2017 | 212 | CAPC | 3 |
| 19.2 | 3.7.3.665 | 2019-08-29 15:43:55 | 3.7.3.0 | 13 | 665 | CAPC | 4 |
| 19.2 | 3.7.8.796 | 2020-01-29 19:19:24 | 3.7.8.0 | 176 | 796 | CAPC | 5 |
| 20.2.7 | 20.2.7.540 | 2021-05-15 16:15:51 | 20.2.7.0 | 420 | 540 | CAPC | 6 |
| 22.2.6 | 22.2.6.1114 | 2023-03-24 12:55:36 | 22.2.6.0 | 1607 | 1114 | CAPC | 7 |
+---------------+-------------+---------------------+-----------------+------------------------------+-------------+-------------+----+
7 rows in set (0.00 sec)
mysql> select * from em.revision_info;
+---------+---------------------+-----------------+
| Version | InstallDate | DbSchemaVersion |
+---------+---------------------+-----------------+
| 2.0.0.2 | 2016-07-20 18:30:46 | 2.5.0.0 |
| 2.0.0.2 | 2017-06-20 15:04:06 | 3.1.0.0 |
| 2.0.0.2 | 2018-07-12 10:03:06 | 3.5.0.0 |
| 2.0.0.2 | 2019-08-29 15:49:29 | 3.7.3.0 |
| 2.0.0.2 | 2020-01-29 19:23:18 | 3.7.8.0 |
+---------+---------------------+-----------------+
5 rows in set (0.01 sec)