Commit 0f7d252e authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Fixed selection of non-DISABLED hardware for the schedulers synchronization.

However, this is to be evolved to a more robust schema, where
DISABLED hardware for too long is deemed not to have any transfer any
longer and won't stop the synchronization from being executed on the
rest of the cluster.
parent 4d766ae1
......@@ -59,12 +59,13 @@ class DiskServerListCache:
try:
stcur = stconn.cursor()
stcur.arraysize = 50
# get all but DISABLED diskservers
stDiskServers = '''SELECT UNIQUE DiskServer.name, DiskPool.name
FROM FileSystem, DiskServer, DiskPool
WHERE FileSystem.diskServer = DiskServer.id
AND FileSystem.diskPool = DiskPool.id
AND DiskServer.status IN (0,1)
AND FileSystem.status IN (0,1)'''
AND DiskServer.status IN (0, 1, 3)
AND FileSystem.status IN (0, 1, 3)'''
stcur.execute(stDiskServers)
rows = stcur.fetchall()
# build up the list of new ones
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment