mirror of https://github.com/apache/cloudstack.git
kvm: Check the return value of the cloudstack-setup-agent command
Bug-Url: https://issues.apache.org/jira/browse/CLOUDSTACK-8016 Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com> Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com> This closes #93
This commit is contained in:
parent
fdf47a221e
commit
312d531a7c
|
|
@ -205,7 +205,12 @@ public abstract class LibvirtServerDiscoverer extends DiscovererBase implements
|
|||
parameters += " --guestNic=" + kvmGuestNic;
|
||||
parameters += " --hypervisor=" + cluster.getHypervisorType().toString().toLowerCase();
|
||||
|
||||
SSHCmdHelper.sshExecuteCmd(sshConnection, "cloudstack-setup-agent " + parameters, 3);
|
||||
if (!SSHCmdHelper.sshExecuteCmd(sshConnection,
|
||||
"cloudstack-setup-agent " + parameters, 3)) {
|
||||
s_logger.info("cloudstack agent setup command failed: "
|
||||
+ "cloudstack-setup-agent " + parameters);
|
||||
return null;
|
||||
}
|
||||
|
||||
KvmDummyResourceBase kvmResource = new KvmDummyResourceBase();
|
||||
Map<String, Object> params = new HashMap<String, Object>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue