mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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
619f014255
commit
7c1590ffd6
@ -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…
x
Reference in New Issue
Block a user