BAC 9.1 upgrade failed at CMDB Upgrade phase (963 Views)
Reply
Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 1 of 15 (963 Views)
Accepted Solution

BAC 9.1 upgrade failed at CMDB Upgrade phase

Hi, the 9.1 upgrade has now failed at the CMDB Upgrade phase with the following java error:-

 

2011-10-09 21:01:29,812 [Thread-112] (CmdbUpgradePanel.java:252) ERROR - Run of CMDB upgrader validateClassModelAndUpgrade: FAILED

java.lang.NullPointerException

at com.mercury.topaz.cmdb.shared.classmodel.diff.tool.diff.impl.ClassDiffToolImpl.findPropertiesDiff(ClassDiffToolImpl.java:269)

at com.mercury.topaz.cmdb.shared.classmodel.diff.tool.diff.impl.ClassDiffToolImpl.findDiff(ClassDiffToolImpl.java:59)

at com.mercury.topaz.cmdb.shared.upgrade.comparison.ClassModelClassComparisonUtil.getChanges(ClassModelClassComparisonUtil.java:44)

at com.mercury.topaz.cmdb.shared.upgrade.comparison.ClassModelClassComparisonUtil.getChanges(ClassModelClassComparisonUtil.java:19)

at com.mercury.topaz.cmdb.shared.upgrade.comparison.ClassModelComponentComparisonUtil.compare(ClassModelComponentComparisonUtil.java:61)

at com.mercury.topaz.cmdb.shared.upgrade.comparison.ClassModelComponentComparisonUtil.compare(ClassModelComponentComparisonUtil.java:46)

at com.mercury.topaz.cmdb.shared.upgrade.ClassModelFindAndExecuteDiffs.findAndExecuteDiffs(ClassModelFindAndExecuteDiffs.java:47)

at com.mercury.topaz.cmdb.shared.upgrade.validation.ClassModelValidator.validate(ClassModelValidator.java:24)

at com.mercury.topaz.cmdb.shared.upgrade.validation.ClassModelValidationTool.validate(ClassModelValidationTool.java:107)

at com.hp.ucmdb.upgrade.upgraders.ClassModelUpgrader.upgrade(ClassModelUpgrader.java:31)

at com.hp.ucmdb.upgrade.UpgradeExecutor.upgrade(UpgradeExecutor.java:201)

at com.hp.ucmdb.management.impl.DatabaseManagementImpl.doUpgradeAction(DatabaseManagementImpl.java:212)

at com.hp.ucmdb.management.impl.DatabaseManagementImpl.doUpgradeAction(DatabaseManagementImpl.java:192)

at com.hp.ucmdb.management.impl.DatabaseManagementImpl.upgrade(DatabaseManagementImpl.java:184)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.hp.ucmdb.management.impl.CmdbManagementImpl$ContextClassLoaderInvocationHandler.invoke(CmdbManagementImpl.java:82)

at $Proxy24.upgrade(Unknown Source)

at com.mercury.topaz.upgrade.wizard.panels.CmdbUpgradePanel.performUpgrade(CmdbUpgradePanel.java:248)

at com.mercury.topaz.upgrade.wizard.panels.CmdbUpgradePanel.access$100(CmdbUpgradePanel.java:23)

at com.mercury.topaz.upgrade.wizard.panels.CmdbUpgradePanel$UpgradePerformer.run(CmdbUpgradePanel.java:267)

at java.lang.Thread.run(Thread.java:662)

 

 

In the HPBSM\odb\runtime\log\upgrade\upgrade.short.log I note the following message:-

 

2011-10-09 20:59:43,827 INFO - *******************************
2011-10-09 20:59:43,827 INFO - * Validating User Class Model *
2011-10-09 20:59:43,827 INFO - *******************************
2011-10-09 21:01:13,484 INFO - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bsm_bdm_changes.xml
2011-10-09 21:01:13,499 INFO - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bpi_changes.xml
2011-10-09 21:01:13,499 INFO - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/diag_changes.xml
2011-10-09 21:01:13,499 INFO - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/sis_changes.xml
2011-10-09 21:01:13,546 INFO - ---> OOTB class model changes has been found: jar:file:/D:/HPBSM/odb/lib/app-infra.jar!/upgrade/sp_bdm_changes.xml
2011-10-09 21:01:13,593 INFO - ---> Class model changes to be loaded from jar:file:/D:/HPBSM/odb/lib/app-infra.jar!/upgrade/sp_bdm_changes.xml
2011-10-09 21:01:14,859 INFO - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bsm_bdm_changes.xml
2011-10-09 21:01:14,874 INFO - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bpi_changes.xml
2011-10-09 21:01:14,937 INFO - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/diag_changes.xml
2011-10-09 21:01:14,984 INFO - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/sis_changes.xml
2011-10-09 21:01:14,999 INFO - ---> Content pack class model changes to be loaded from D:\HPBSM\odb\content\CP.zip

 

As I am doing this on a test system with a copy of the production database the content pack was installed into the production database, but not onto any of the application servers if this makes sense. I note on page 24 of the upgrade guide it says:-

 

"You must have DDM Content Pack 8 before continuing with the upgrade.

If you are working with an external HP Universal CMDB, this should be

done on the external HP Universal CMDB server. If not, this is done on

the BSM server. Download the content pack, along with instructions

about how to install it from https://h20090.www2.hp.com/."

 

As mentioned we had this installed on prod and therefore the information for the content pack must be in the database. We are using new/dev servers so this was not installed, and besides it would have been removed had we uninstalled BAC 8.x anyway.

 

Is this message related to content packs or am I misled?

 

 

 

HP Expert
Dmitry Shevchenko
Posts: 4,885
Registered: ‎01-30-2008
Message 2 of 15 (958 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

Do you perform a staging upgrade, i.e. BSM 9.10 on the new servers with copy of the prod DB from 8.x?

Or direct upgrade, i.e. BSM 8.07 on the new servers with copy of the prod DB from 8.x (in other words, restoration of 8.07 prod environment on new servers with subsequent upgrade)?

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 3 of 15 (956 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

Hi Dmitry, this was the latter, that is to say it was to say it was a direct upgrade onto new dev servers. However, I have just confirmed we actually didn't have the content pack 8 installed in production, therefore the database does not have the content pack inside, so unless you know of a way to put this in now, its a restore and back to the beginning of this upgrade for me....<sigh>

 

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 4 of 15 (953 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

oops actually it was a staging upgrade by your definition as I didn't have to install 8.07 DPS and GW, I just put 9.1 on, and connected to dev 8.x database. Either way the content pack was not installed so I will have to go back to beginning I think.

 

HP Expert
Dmitry Shevchenko
Posts: 4,885
Registered: ‎01-30-2008
Message 5 of 15 (950 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

Yes, you have no choice but to start over.

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 6 of 15 (924 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

So I installed the content pack 8.x and patch to our production system, then took a backup and restored this backup to our dev and attempted the upgrade again, after 2 days, the upgrade again failed at the same stage, with the same message in the d:\hpbsm\odb\runtime\log\upgrade\upgrade.short log:-

 

2011-10-15 18:17:38,165 INFO  - *******************************
2011-10-15 18:17:38,165 INFO  - * Validating User Class Model *
2011-10-15 18:17:38,181 INFO  - *******************************
2011-10-15 18:17:49,197 INFO  - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bsm_bdm_changes.xml
2011-10-15 18:17:49,197 INFO  - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bpi_changes.xml
2011-10-15 18:17:49,197 INFO  - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/diag_changes.xml
2011-10-15 18:17:49,197 INFO  - ---> Custom class model changes has been found: file:/D:/HPBSM/odb/conf/package_upgrade/class_model/sis_changes.xml
2011-10-15 18:17:49,213 INFO  - ---> OOTB class model changes has been found: jar:file:/D:/HPBSM/odb/lib/app-infra.jar!/upgrade/sp_bdm_changes.xml
2011-10-15 18:17:49,228 INFO  - ---> Class model changes to be loaded from jar:file:/D:/HPBSM/odb/lib/app-infra.jar!/upgrade/sp_bdm_changes.xml
2011-10-15 18:17:51,666 INFO  - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bsm_bdm_changes.xml
2011-10-15 18:17:51,713 INFO  - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/bpi_changes.xml
2011-10-15 18:17:51,760 INFO  - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/diag_changes.xml
2011-10-15 18:17:51,775 INFO  - ---> Class model changes to be loaded from file:/D:/HPBSM/odb/conf/package_upgrade/class_model/sis_changes.xml
2011-10-15 18:17:51,791 INFO  - ---> Content pack class model changes to be loaded from D:\HPBSM\odb\content\CP.zip

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 7 of 15 (923 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

Actually I notice in that directory it mentions (D:\HPBSM\odb\content) the content pack version file is 8.0.84. When I did the content pack install it was 8.0.84, but then I applied content pack 8 patch 1 which changed the reported version in BAC package manager to 8.01-SNAPSHOT. I wonder if 9.1 upgrade been tested with this CP patch?

 

HP Expert
Dmitry Shevchenko
Posts: 4,885
Registered: ‎01-30-2008
Message 8 of 15 (921 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase


Ben.Shirley wrote:

I wonder if 9.1 upgrade been tested with this CP patch?


I'm pretty sure the answer is NO. CP 8 Patch 1 was released in July - too late to test it and make changes in BSM 9.10. BSM 9.10 Upgrade guide also clearly says "Content Pack 8", not CP 8 Patch 1.

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 9 of 15 (919 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

**bleep** it just said CP 8, so I would assume that was the latest version of 8. Is there anyway to roll back this content pack?

 

HP Expert
Dmitry Shevchenko
Posts: 4,885
Registered: ‎01-30-2008
Message 10 of 15 (915 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase


Ben.Shirley wrote:

Is there anyway to roll back this content pack?


Nope. From CP 8 Patch 1 Readme:

Rolling back the installation is not supported as it can lead to system inconsistencies. If you are upgrading from earlier versions of the content pack, it is strongly recommended to ensure that you have backed up your database.

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 11 of 15 (910 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

for me, if HP do not provide a way to uninstall this content pack, which to me seems strange (but then the whole install process for content packs is not exactly user friendly) then HP support need to supply a patch for BAC 9.1 for the upgrade process to recognise the content pack 8 patch 1 during the upgrade process, as there will be customers that have moved to that patch level requiring the 9.1 upgrade path soon.

 

HP Expert
Dmitry Shevchenko
Posts: 4,885
Registered: ‎01-30-2008
Message 12 of 15 (908 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

This is not a specific problem of CP 8 Patch 1. Installation notes of all CPs contain this warning message about backing up DB prior to CP installation as there is no way to cleanly uninstall CP. Any CP.

 

Personally I don't believe that there will be a patch whatsoever to address this problem. BSM 9.10 itself comes with CP8 embedded.

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 13 of 15 (905 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

Hi thanks for that, as always I appreciate your help and guidence. I think the documentation should be clearer, as simply stating content pack 8, it is easy to assume the latest version of 8 which would include the patch, and people will do this. Also where does this leave the customers who need content pack patch 1 to fix something that patch addresses but then want to upgrade to 9.1...impossible??? It's an interesting stance.

 

HP Expert
Dmitry Shevchenko
Posts: 4,885
Registered: ‎01-30-2008
Message 14 of 15 (902 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase


Ben.Shirley wrote:

Hi thanks for that, as always I appreciate your help and guidence. I think the documentation should be clearer, as simply stating content pack 8, it is easy to assume the latest version of 8 which would include the patch, and people will do this.


I would recommend people coming to this forum and ask :)

 


Ben.Shirley wrote:

Also where does this leave the customers who need content pack patch 1 to fix something that patch addresses but then want to upgrade to 9.1...impossible??? It's an interesting stance.

 


No one with BSM 9.10 needs to install CP 8 Patch 1. As they can install CP 9 (but don't do it right now if you use OMi 9.10, R&D is currenly working on fixing an issue with compatibility between CP9 and OMi 9.10 Content Packs).

The only reason why CP8 Patch 1 was released at all is bug fixing for customers still sitting on UCMDB 8.x platform as CP8 Patch 1 is for 8.x platform only. There won't be any other CPs for 8.x platform (not sure about patches). Starting from CP9 only 9.x platform is supported.

 


 

Respected Contributor
Ben.Shirley
Posts: 495
Registered: ‎09-01-2009
Message 15 of 15 (900 Views)

Re: BAC 9.1 upgrade failed at CMDB Upgrade phase

 

 

"The only reason why CP8 Patch 1 was released at all is bug fixing for customers still sitting on UCMDB 8.x platform as CP8 Patch 1 is for 8.x platform only."

 

Which was my point there will be customers with embedded uCMDB 8.x which required this content pack 8 patch but then needed to upgrade to 9.1

 

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.