Importing bundles exported with older ZCM version can fail

  • 7009628
  • 25-Oct-2011
  • 27-Apr-2012


Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1
Novell ZENworks 11 Configuration Management
Novell ZENworks 10 Configuration Management
Novell ZENworks 10 Configuration Management with Support Pack 3 - 10.3


Importing bundle exported from older ZCM version into newer ZCM version zone
Bundle exports from ZCM 10.3.x and 11.0 can fail to import to ZCM 11.1 zone

zman bundle-create(bc) command displays error:
Error: An internal error occurred. Please see the zman log for full stack trace


Since bundle meta-data can drastically change between ZCM versions, it is not guaranteed that exports from older ZCM versions can always import to the latest ZCM version (or vice-versa).

Additional Information

Trying to import a ZCM 10.3.x bundle with Install Directory actions into ZCM 11.1 fails since the zman bundle-create command expects a new feature to be configured in the bundle.xml called CreateAsSingleContent.

There related error message in zman.log is:
[DEBUG] [10/25/11 2:01:29 PM] [] [ZMan] [] [Command: bc Install Files install_files.xml --actioninfo install_files_ActionContentInfo.xml --TerminalDevice=/dev/pts/0 --ScreenDimension=55207 ] [] []
[DEBUG] [10/25/11 2:02:04 PM] [] [CommandRunner] [] [java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at com.novell.zenworks.zman.CommandRunner.execute(
        at com.novell.zenworks.zman.ZMan.executeRunner(
        at com.novell.zenworks.zman.ZMan.main(
Caused by: java.lang.NullPointerException
        at com.novell.zenworks.zman.commands.BundleHandler.isSingleContentAction(
        at com.novell.zenworks.zman.commands.BundleHandler.isInstallDirSingleContentAction(
        at com.novell.zenworks.zman.commands.BundleHandler.processContentInformation(
        at com.novell.zenworks.zman.commands.BundleHandler.createBundle(
        ... 7 more
] [] []
[DEBUG] [10/25/11 2:02:04 PM] [] [ZMan] [] [Error:An internal error occurred. Please see the zman log for full stack trace.] [] []
[DEBUG] [10/25/11 2:02:04 PM] [] [ZMan] [] [Command failed (partially or totally)] []

Here a sample from an bundle with an Install Directory action exported from a ZCM 10.3.3 zone, prepared for being imported into a ZCM 11.1 zone.
           <Name>Install Directory</Name>
           <Type>Install Directory Action</Type>
               <ns1:InstallFilesData xmlns:ns1="">
                   <File xmlns="">
                           <FileAttribute Name="Hidden" default="false">false</FileAttribute>
                           <FileAttribute Name="ReadOnly" default="false">false</FileAttribute>
                   <ImpersonateCopy xmlns="">SYSTEM</ImpersonateCopy>
                   <CreateAsSingleContent xmlns="">false</CreateAsSingleContent>
           <Properties />

Adding the line
<CreateAsSingleContent xmlns="">false</CreateAsSingleContent>
fixes the issue that the bundle did not import into the ZCM 11.1 zone.