Friday, December 18, 2009

SCOM: Importing a Management Pack fails, Event ID 26319

In this post I'll explain a case in which an import of a Management Pack fails.
A failure can be caused my numerous things, like dependencies, but in this case the cause is in the MP itself.

Let say, you create a MP with some monitors, and groups in it. (in a Test Management Group or using the Authoring Console). This is MP version 1.0.0.0.
We call it MyAppMP. After finishing your MP, you import it in your SCOM Management Group.

Now you modify the MP file (Test MgmtGrp or Auth.Cons) and delete the groups because you don't need them anymore for some reason.
MP version is now 1.0.0.1.

You would think importing this updated MP wouldn't give any problems. Wrong! Importing this MP shows an error in the OpsMgr Console:

The requested management pack was invalid. See inner exception for details. Parameter name: managementPack

Because of this useless error message in the Console, I searched the Operations Manager Event Log on the RMS. There I found Event ID 26319. This Event ID is used more than once for logging numerous SDK to DB operations. (RMS to SQL db)

The event showed the following

Event Type:     Error
Event Source:   OpsMgr SDK Service
Event Category: None
Event ID:       26319
Date:           
Time:           
User:           N/A
Computer:       RMS Server
Description:
An exception was thrown while processing ImportManagementPack for session id uuid:46c14e53-8440-41c6-8979-77f0cce2b5b3;id=264.
Exception Message: The creator of this fault did not specify a Reason.
Full Exception: System.ServiceModel.FaultException`1[Microsoft.EnterpriseManagement.Common.ManagementPackException]: The creator of this fault did not specify a Reason. (Fault Detail is equal to : ManagementPack Version [1.0.0.1] is not upgrade compatible with older version [1.0.0.0]. Compatibility check failed with 6 errors:
-------------------------------------------------------
Error 1:
: ClassType: [UINameSpace328086d3480e4cf4a8859a3454410533.Group] is not upgrade compatible.
[ClassType]: [UINameSpace328086d3480e4cf4a8859a3454410533.Group] exists in current version [1.0.0.0] of ManagementPack but does not exist in the new version [1.0.0.1].
-------------------------------------------------------
Error 2:
: ClassType: [UINameSpace51b544ce66984f46bf9cd3733b4e07ef.Group] is not upgrade compatible.
[ClassType]: [UINameSpace51b544ce66984f46bf9cd3733b4e07ef.Group] exists in current version [1.0.0.0] of ManagementPack but does not exist in the new version [1.0.0.1].
-------------------------------------------------------
Error 3:
: ClassType: [UINameSpace6730031c44f34a1491ea6f608a3e674c.Group] is not upgrade compatible.
[ClassType]: [UINameSpace6730031c44f34a1491ea6f608a3e674c.Group] exis...).

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

This tells us that you cannot upgrade a Management Pack when have deleted groups which are in the current active version in your Management Group.

What should you do:
  • If you have an unsealed MP with overrides/customizations for MyAppMP
    • Export any customizations/overrides the unsealed MP
    • Delete the unsealed MP
  • Delete the old version of the MP, in this case MyAppMP, version 1.0.0.0.
  • Import the new version of the MP
  • Import the unsealed MP you backup in the steps before.
Other cases: