From cc6cd96850e2e60e7b2ee3baadb612a61c406050 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Tue, 6 Sep 2011 18:36:44 +0530 Subject: [PATCH] Adding primary storage in the cluster and ipranges to the zone --- agent-simulator/scripts/guava/setup.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/agent-simulator/scripts/guava/setup.py b/agent-simulator/scripts/guava/setup.py index 9766b055f04..e8daf82cede 100644 --- a/agent-simulator/scripts/guava/setup.py +++ b/agent-simulator/scripts/guava/setup.py @@ -40,7 +40,7 @@ def describeGuavaResources(dbnode='localhost', mshost='localhost'): numberofpods = 1 clustersPerPod = 100 - hostsPerCluster = 5 + hostsPerCluster = 10 z = zone() z.dns1 = '4.2.2.2' @@ -80,11 +80,19 @@ def describeGuavaResources(dbnode='localhost', mshost='localhost'): h.url = 'http://sim/test-%d'%(curhost) c.hosts.append(h) curhost = curhost + 1 + + ps = primaryStorage() + ps.name = 'spool'+str(i) + ps.url = 'nfs://172.16.24.32/export/path/'+str(i) + c.primaryStorages.append(ps) p.clusters.append(c) - z.pods.append(p) + secondary = secondaryStorage() secondary.url = 'nfs://172.16.25.32/secondary/path' + + z.pods.append(p) + z.ipranges.append(v) z.secondaryStorages.append(secondary) zs.zones.append(z)