Symptoms:
When performing any operation utilizing "cmsso-util domain-repoint", including repointing a VCSA from an existing SSO Domain to another SSO Domain, or to a new SSO Domain, the operation will fail during the Autz data export phase, with a message like:
Starting License export ... Done
Starting Authz Data export ... Failed
Repoint failed. Restore from backup
In the
/var/log/vmware/cloudvm/domain_consolidator.log you see the following error:
2019-04-25T20:49:28.530Z INFO domain_consolidator Starting Authz Data export ...
2019-04-25T20:49:28.530Z INFO domain_consolidator Starting required services...
2019-04-25T20:49:28.531Z INFO domain_consolidator Executing command ['/bin/service-control', '--start', 'vmafdd', 'vmware-rhttpproxy', 'vmware-vpxd-svcs', 'vmware-vpostgres']
2019-04-25T20:49:29.215Z INFO domain_consolidator Started required services.
2019-04-25T20:49:29.659Z INFO domain_consolidator RC = 1
Stderr = Picked up JAVA_TOOL_OPTIONS: -Xms32M -Xmx128M
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/context/support/AbstractApplicationContext
at com.vmware.vim.vmomi.core.types.VmodlContext.initContext(VmodlContext.java:61)
at com.vmware.vim.vmomi.core.types.VmodlContext.initContext(VmodlContext.java:42)
at com.vmware.vim.lookup.client.LookupUtil.ensureVmodlContextInit(LookupUtil.java:49)
at com.vmware.vim.lookup.client.LookupUtil.createVmomiClient(LookupUtil.java:185)
at com.vmware.vim.lookup.client.LookupUtil.createVmomiClient(LookupUtil.java:156)
at com.vmware.vim.lookup.client.LookupUtil.createVmomiClient(LookupUtil.java:93)
at com.vmware.vim.dataservices.ExportImportUtils.getQueryClientFromLS(ExportImportUtils.java:802)
at com.vmware.vim.dataservices.ExportImportUtils.createClient(ExportImportUtils.java:266)
at com.vmware.vim.dataservices.ExportAuthzData.main(ExportAuthzData.java:218)
Caused by: java.lang.ClassNotFoundException: org.springframework.context.support.AbstractApplicationContext
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 9 more
The pre-check mode also fails with the following error on screen:
Starting License pre-check ... Done
Starting Authz Data export ... Failed
Conflict data, if any, can be found under /storage/domain-data/Conflict*.json
Pre-checks failed.
The mentioned .json file will not exist unless it was previously there. The end of the /var/log/vmware/cloudvm/domain_consolidator.log file will show the following error in pre-check mode:
2019-04-26T15:10:09.229Z INFO domain_consolidator Failed
2019-04-26T15:10:09.229Z INFO domain_consolidator Export of authz failed
2019-04-26T15:10:09.334Z INFO domain_consolidator Failed to execute script /usr/lib/repoint/authzservice_component_script.py
2019-04-26T15:10:09.334Z INFO domain_consolidator Conflict data, if any, can be found under /storage/domain-data/Conflict*.json
2019-04-26T15:10:09.335Z INFO domain_consolidator Failed executing <cis.component_data.DcComponentsPreCheck object at 0x7f7320ea05f8>
2019-04-26T15:10:09.335Z ERROR domain_consolidator Failed to run pre-checks for domain consolidation.
2019-04-26T15:10:09.335Z INFO domain_consolidator Cleaning up the temp directories
2019-04-26T15:10:09.336Z INFO domain_consolidator Successfully cleaned the storage directory
2019-04-26T15:10:09.337Z INFO domain_consolidator Pre-checks failed.
The log will still contain the previously mentioned Java error as well in pre-check mode.