Import of cloudera tempalte failed
We would like to automate the installation / configuration of the Cloudera Manager instead of using the GUI.
We are using ansible for the automation steps.
We have uploaded the license file with the REST API call in ansible. This works fine.
Now we try to import a cluster template that we took from another setup. We did some modification at that template and start to do the import via ansible.
The import failed with an error that the cluster host can't are not available.
The cluster hosts are available, they can be ping from the cloudera manager host.
The cloudera-scm-agent are installed at cluster host and up and running.
The /var/log/cloudera-scm-server log shows two java exceptions and the following message The following host(s) are not available: test-22.vmlocal,test-23.vmlocal,test-21.vmlocal,test-24.vmlocal.
2025-07-10 15:50:44,353 INFO scm-web-75:com.cloudera.api.ApiExceptionMapper: Exception caught in API invocation. Msg:The following host(s) are not available: test-22.vmlocal,test-23.vmlocal,test-21.vmlocal,test-24.vmlocal.
java.lang.IllegalArgumentException: The following host(s) are not available: test-22.vmlocal,test-23.vmlocal,test-21.vmlocal,test-24.vmlocal.
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)
at com.cloudera.api.dao.impl.ClouderaMasterServerDaoImpl.validateAndPrepareContext(ClouderaMasterServerDaoImpl.java:309)
at com.cloudera.api.dao.impl.ClouderaMasterServerDaoImpl.importClusterTemplate(ClouderaMasterServerDaoImpl.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) My question now is
- Do we need to add those cluster host to the cloudera manager first (via the rest api call), before we import the template ?
- how does the cloudera manager check are the hosts available (via the cloudera-scm-agent) ??

