summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2014-10-29 12:01:16 -0400
committerJoe George <joe@zeroc.com>2014-10-29 12:01:16 -0400
commitf8b39c7bdd29ceaba451394cbd9033094b516dd8 (patch)
treeabfcf5fcd30a9a3251463b41bc108cdbf338057a
parentFixed (ICE-5794) - slice2java/slice2cs parallel build/concurrent crash (diff)
downloadice-f8b39c7bdd29ceaba451394cbd9033094b516dd8.tar.bz2
ice-f8b39c7bdd29ceaba451394cbd9033094b516dd8.tar.xz
ice-f8b39c7bdd29ceaba451394cbd9033094b516dd8.zip
ICE-5698 - Stop using IceBox ServiceManager OA in IceStormUtil script
-rw-r--r--scripts/IceStormUtil.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/IceStormUtil.py b/scripts/IceStormUtil.py
index a08f4c3bca2..b8c14919c26 100644
--- a/scripts/IceStormUtil.py
+++ b/scripts/IceStormUtil.py
@@ -15,9 +15,13 @@ import TestUtil
global testdir
global toplevel
-origIceBoxEndpoints = ' --IceBox.ServiceManager.Endpoints="default -p %d" --Ice.Default.Locator='
+origIceBoxService = ' --Ice.Admin.Endpoints="default -p {0}"' + \
+ ' --Ice.Admin.InstanceName=IceBox{0}' + \
+ ' --Ice.Default.Locator='
-# Turn off the dispatch and connection warnings -- they are expected
+origIceBoxEndpoints = ' --IceBoxAdmin.ServiceManager.Proxy="IceBox{0}/admin -f IceBox.ServiceManager: default -p {0}"'
+
+# Turn off the dispatch and cofnnection warnings -- they are expected
# when using a replicated IceStorm.
origIceStormService = ' --IceBox.Service.IceStorm=IceStormService,' + TestUtil.getIceSoVersion() + ':createIceStorm' + \
' --IceStorm.TopicManager.Endpoints="default -p %d"' + \
@@ -97,13 +101,15 @@ class Replicated(IceStormUtil):
replicaProperties = replicaProperties + \
' --IceStorm.ReplicatedPublishEndpoints="' + replicaPublishEndpoints + '"'
self.iceBoxEndpoints = []
+ self.iceBoxAdminEndpoints = []
self.iceStormEndpoints = []
self.replicaProperties = []
self.dbHome= []
self.iceStormDBEnv= []
self.procs = []
for replica in range(0, 3):
- self.iceBoxEndpoints.append(origIceBoxEndpoints % self.ibendpoints[replica])
+ self.iceBoxEndpoints.append(origIceBoxService.format(self.ibendpoints[replica]))
+ self.iceBoxAdminEndpoints.append(origIceBoxEndpoints.format(self.ibendpoints[replica]))
service = origIceStormService % self.isendpoints[replica]
service = service + ' --IceStorm.Publish.Endpoints="default -p %d:udp -p %d"' % (
self.ipendpoints[replica], self.ipendpoints[replica])
@@ -176,7 +182,7 @@ class Replicated(IceStormUtil):
def stopReplica(self, replica):
if self.procs[replica]:
- self.runIceBoxAdmin(self.iceBoxEndpoints[replica], "shutdown")
+ self.runIceBoxAdmin(self.iceBoxAdminEndpoints[replica], "shutdown")
self.procs[replica].waitTestSuccess()
self.procs[replica] = None
@@ -194,7 +200,8 @@ class NonReplicated(IceStormUtil):
iceBoxPort = port
iceStormPort = port + 1
publisherPort = port + 2
- self.iceBoxEndpoints = origIceBoxEndpoints % (iceBoxPort)
+ self.iceBoxService = origIceBoxService.format(iceBoxPort)
+ self.iceBoxEndpoints = origIceBoxEndpoints.format(iceBoxPort)
self.iceStormService = origIceStormService % (iceStormPort)
self.dbDir = dbDir
@@ -233,7 +240,7 @@ class NonReplicated(IceStormUtil):
sys.stdout.flush()
self.proc = TestUtil.startServer(self.iceBox,
- self.iceBoxEndpoints +
+ self.iceBoxService +
self.iceStormService +
self.iceStormDBEnv +
additionalOptions, adapter = "IceStorm",