Skip to content

Commit f2241bf

Browse files
Prasanna SanthanamPrasanna Santhanam
authored andcommitted
change to direct agent
1 parent 18f865f commit f2241bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

agent-simulator/src/com/cloud/agent/manager/MockAgentManagerImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.cloud.agent.api.PrepareForMigrationCommand;
3232
import com.cloud.agent.api.StartupCommand;
3333
import com.cloud.dc.dao.HostPodDao;
34+
import com.cloud.host.Host;
3435
import com.cloud.host.Host.Type;
3536
import com.cloud.resource.AgentResourceBase;
3637
import com.cloud.resource.AgentRoutingResource;
@@ -266,7 +267,8 @@ public void run() {
266267
storageResource.configure("secondaryStorage", params);
267268
storageResource.start();
268269
StartupCommand[] cmds = storageResource.initialize();
269-
_resourceMgr.createHostVOForConnectedAgent(cmds);
270+
//on the simulator the ssvm is as good as a direct agent
271+
_resourceMgr.addHost(mockHost.getDataCenterId(), storageResource, Host.Type.SecondaryStorageVM, null);
270272
_resources.put(this.guid, storageResource);
271273
} catch (ConfigurationException e) {
272274
s_logger.debug("Failed to load secondary storage resource: " + e.toString());

0 commit comments

Comments
 (0)