template installer configuration is not taken into account

Description

In org.cloudifysource.esc.driver.provisioning.ElasticMachineProvisioningCloudifyAdapter.startMachine(ExactZonesConfig, GSAReservationId, long, TimeUnit)

appears the following check:

Line: 273

// Auto populate installer configuration with values set in template if they were not previously set.
if (machineDetails != null && machineDetails.getInstallerConfigutation() == null) {
machineDetails.setInstallerConfigutation(template.getInstaller());
}

But, if you look at MachineDetails, its installer configuration is never null.
MachineDetails {...

private CloudTemplateInstallerConfiguration installerConfigutation = new CloudTemplateInstallerConfiguration();
...}

This means that any configuration that I apply in the template is never taken into account. Only if I hardcode it inside the MachineDetails response.

*******************
also - please use spell checking
machineDetails.getInstallerConfigutation()
should be
Configuration and not Configutation
******************

Activity

Show:
Meron Avigdor
March 12, 2013, 9:41 AM

No sure why but even after placing the code in the MachineDetails response, I got the following when I bootstrapped.
I will add the settings both at the template and the MachineDetails. This happened only once till now.

2013-03-12 08:58:46,172 INFO [org.cloudifysource.driver.cloudband.tier-[management]] - Request: machine/createMachine status: IN_PROGRESS progress: 25% response-code: SUCCESS response-message: request-id: 1968443764887156062
2013-03-12 08:58:56,326 INFO [org.cloudifysource.driver.cloudband.tier-[management]] - Request: machine/createMachine status: SUCCESS progress: 100% response-code: SUCCESS response-message: request-id: 1968443764887156062
2013-03-12 08:58:56,894 INFO [org.cloudifysource.driver.cloudband.tier-[management]] - Private IP address: 10.1.1.52 public IP address: 11.1.1.48
2013-03-12 08:58:56,967 INFO [org.cloudifysource.esc.shell.listener.CliAgentlessInstallerListener] - Attempting to access Management VM 11.1.1.48.
2013-03-12 08:59:42,978 INFO [org.cloudifysource.esc.shell.listener.CliAgentlessInstallerListener] - Uploading files to 11.1.1.48.
2013-03-12 08:59:43,049 INFO [org.apache.commons.vfs2.impl.StandardFileSystemManager] - Using "/tmp/vfs_cache" as temporary files store.
2013-03-12 08:59:43,275 WARNING [com.jcraft.jsch] - Permanently added '11.1.1.48' (RSA) to the list of known hosts.
2013-03-12 08:59:50,307 WARNING [com.jcraft.jsch] - an exception during authentication
java.io.IOException: End of IO Stream Read
2013-03-12 09:02:17,367 INFO [org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper] - Failed accessing management VM 11.1.1.48 Reason: Failed to set up file transfer: Could not connect to SFTP server at "sftp://root:***@11.1.1.48/".; Caused by: org.cloudifysource.esc.installer.InstallerException: Failed to set up file transfer: Could not connect to SFTP server at "sftp://root:***@11.1.1.48/".
2013-03-12 09:02:17,521 SEVERE [org.cloudifysource.shell.commands.AbstractGSCommand] - ; Caused by: org.cloudifysource.esc.installer.InstallerException: Failed to set up file transfer: Could not connect to SFTP server at "sftp://root:***@11.1.1.48/".
at org.cloudifysource.esc.installer.filetransfer.VfsFileTransfer.initialize(VfsFileTransfer.java:206)
at org.cloudifysource.esc.installer.AgentlessInstaller.uploadFilesToServer(AgentlessInstaller.java:404)
at org.cloudifysource.esc.installer.AgentlessInstaller.installOnMachineWithIP(AgentlessInstaller.java:223)
at org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper$1.call(CloudGridAgentBootstrapper.java:659)
at org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper$1.call(CloudGridAgentBootstrapper.java:654)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://root:***@11.1.1.48/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:107)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:65)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:693)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621)
at org.cloudifysource.esc.installer.filetransfer.VfsFileTransfer.resolveTargetDirectory(VfsFileTransfer.java:218)
at org.cloudifysource.esc.installer.filetransfer.VfsFileTransfer.initialize(VfsFileTransfer.java:203)
... 9 more
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "11.1.1.48".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:230)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:96)
... 16 more
Caused by: com.jcraft.jsch.JSchException: java.net.NoRouteToHostException: No route to host
at com.jcraft.jsch.Util.createSocket(Util.java:389)
at com.jcraft.jsch.Session.connect(Session.java:194)
at com.jcraft.jsch.Session.connect(Session.java:162)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:226)
... 17 more

Barak Merimovich
March 12, 2013, 10:01 AM

It's even stranger - by this point, the connection test has already passed! That means a socket was successfully created to the host. The error you got indicated that some time after the connection test, the network connectivity broke again.

Fixed

Assignee

Barak Merimovich

Reporter

Meron Avigdor

Labels

Priority

Critical
Configure