Skip to content

Commit 828405d

Browse files
committed
Merge branch '4.13'
2 parents f30b5ce + 07d64cb commit 828405d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

engine/orchestration/src/main/java/com/cloud/agent/manager/AgentAttache.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
import com.cloud.agent.api.ModifySshKeysCommand;
3535
import com.cloud.agent.api.ModifyStoragePoolCommand;
36+
import org.apache.cloudstack.agent.lb.SetupMSListCommand;
3637
import org.apache.cloudstack.managed.context.ManagedContextRunnable;
3738
import org.apache.log4j.Logger;
3839

@@ -116,7 +117,7 @@ public int compare(final Object o1, final Object o2) {
116117
StopCommand.class.toString(), CheckVirtualMachineCommand.class.toString(), PingTestCommand.class.toString(), CheckHealthCommand.class.toString(),
117118
ReadyCommand.class.toString(), ShutdownCommand.class.toString(), SetupCommand.class.toString(),
118119
CleanupNetworkRulesCmd.class.toString(), CheckNetworkCommand.class.toString(), PvlanSetupCommand.class.toString(), CheckOnHostCommand.class.toString(),
119-
ModifyTargetsCommand.class.toString(), ModifySshKeysCommand.class.toString(), ModifyStoragePoolCommand.class.toString()};
120+
ModifyTargetsCommand.class.toString(), ModifySshKeysCommand.class.toString(), ModifyStoragePoolCommand.class.toString(), SetupMSListCommand.class.toString()};
120121
protected final static String[] s_commandsNotAllowedInConnectingMode = new String[] { StartCommand.class.toString(), CreateCommand.class.toString() };
121122
static {
122123
Arrays.sort(s_commandsAllowedInMaintenanceMode);

server/src/main/java/org/apache/cloudstack/agent/lb/IndirectAgentLBServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private List<Host> getAllAgentBasedHosts() {
136136
}
137137
final List <Host> agentBasedHosts = new ArrayList<>();
138138
for (final Host host : allHosts) {
139-
if (host == null || host.getResourceState() != ResourceState.Enabled) {
139+
if (host == null || host.getResourceState() == ResourceState.Creating || host.getResourceState() == ResourceState.Error) {
140140
continue;
141141
}
142142
if (host.getType() == Host.Type.Routing || host.getType() == Host.Type.ConsoleProxy || host.getType() == Host.Type.SecondaryStorage || host.getType() == Host.Type.SecondaryStorageVM) {

0 commit comments

Comments
 (0)