Changeset 3543
- Timestamp:
- 10/15/2009 10:31:05 AM (1 month ago)
- Files:
-
- gip/trunk/gip/lib/python/gip/batch_systems (moved) (moved from gip/trunk/gip/lib/python/batch_systems)
- gip/trunk/gip/lib/python/gip/batch_systems/forwarding.py (modified) (1 diff)
- gip/trunk/gip/lib/python/gip/batch_systems/pbs.py (modified) (1 diff)
- gip/trunk/gip/lib/python/gip/providers/condor.py (modified) (3 diffs)
- gip/trunk/gip/lib/python/gip/providers/generic_batch_system.py (modified) (2 diffs)
- gip/trunk/gip/lib/python/gip/providers/lsf.py (modified) (2 diffs)
- gip/trunk/gip/lib/python/gip/providers/sge.py (modified) (2 diffs)
- gip/trunk/gip/lib/python/gip_cese_bind.py (modified) (2 diffs)
- gip/trunk/test/pbs_test.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gip/trunk/gip/lib/python/gip/batch_systems/forwarding.py
r2843 r3543 14 14 from gip_ldap import read_bdii, read_ldap 15 15 from gip_sections import forwarding 16 from batch_system import BatchSystem16 from gip.batch_systems.batch_system import BatchSystem 17 17 import gip_sets as sets 18 18 gip/trunk/gip/lib/python/gip/batch_systems/pbs.py
r3541 r3543 11 11 from gip_common import HMSToMin, getLogger, VoMapper, voList, parseRvf 12 12 from gip_testing import runCommand 13 from batch_system import BatchSystem13 from gip.batch_systems.batch_system import BatchSystem 14 14 15 15 log = getLogger("GIP.PBS") gip/trunk/gip/lib/python/gip/providers/condor.py
r3460 r3543 23 23 from gip_common import config, VoMapper, getLogger, addToPath, getTemplate, \ 24 24 voList, printTemplate, cp_get, cp_getBoolean, cp_getInt, responseTimes 25 from gip_cluster import getClusterID 25 from gip_cluster import getClusterID, getClusterName 26 26 from condor_common import parseNodes, getJobsInfo, getLrmsInfo, getGroupInfo 27 27 from gip_storage import getDefaultSE … … 66 66 "Production". 67 67 * ce.globus_version. The used Globus version. Defaults to 4.0.6 68 * ce. hosting_cluster. The attached cluster name. Defaults to ce.name68 * ce.cluster. The attached cluster name. Defaults to ce.name 69 69 * ce.host_name. The CE's host name. Default to ce.name 70 70 * condor.preemption. Whether or not condor allows preemption. Defaults … … 225 225 "ceImpl" : "Globus", 226 226 "ceImplVersion" : cp_get(cp, ce, 'globus_version', '4.0.6'), 227 "hostingCluster" : cp_get(cp, ce, 'hosting_cluster', ce_name),227 "hostingCluster" : getClusterName(cp), 228 228 "hostName" : cp_get(cp, ce, "host_name", ce_name), 229 229 "gramVersion" : '2.0', gip/trunk/gip/lib/python/gip/providers/generic_batch_system.py
r3541 r3543 9 9 from gip_common import config, getLogger, getTemplate, \ 10 10 printTemplate, cp_get, responseTimes 11 from gip_cluster import getClusterID 11 from gip_cluster import getClusterID, getClusterName 12 12 from gip_sections import ce 13 13 from gip_storage import getDefaultSE 14 14 15 from batch_systems.pbs import PbsBatchSystem16 from batch_systems.forwarding import Forwarding15 from gip.batch_systems.pbs import PbsBatchSystem 16 from gip.batch_systems.forwarding import Forwarding 17 17 18 18 log = getLogger("GIP.Batch") … … 65 65 info['ert'] = ert 66 66 info['wrt'] = wrt 67 info['hostingCluster'] = cp_get(cp, ce, 'hosting_cluster', ce_name)67 info['hostingCluster'] = getClusterName(cp) 68 68 info['hostName'] = cp_get(cp, ce, 'host_name', ce_name) 69 69 info['ceImpl'] = 'Globus' gip/trunk/gip/lib/python/gip/providers/lsf.py
r3452 r3543 12 12 from gip_common import config, VoMapper, getLogger, addToPath, getTemplate, \ 13 13 printTemplate, cp_get, cp_getInt, responseTimes 14 from gip_cluster import getClusterID 14 from gip_cluster import getClusterID, getClusterName 15 15 from lsf_common import parseNodes, getQueueInfo, getJobsInfo, getLrmsInfo, \ 16 16 getVoQueues … … 89 89 info['ert'] = ert 90 90 info['wrt'] = wrt 91 info['hostingCluster'] = cp_get(cp, ce, 'hosting_cluster', ce_name)91 info['hostingCluster'] = getClusterName(cp) 92 92 info['hostName'] = cp_get(cp, ce, 'host_name', ce_name) 93 93 info['ceImpl'] = 'Globus' gip/trunk/gip/lib/python/gip/providers/sge.py
r3462 r3543 10 10 11 11 from gip_common import config, VoMapper, getLogger, addToPath, getTemplate, printTemplate, cp_get 12 from gip_cluster import getClusterID 12 from gip_cluster import getClusterID, getClusterName 13 13 from gip_sections import ce 14 14 from gip_storage import getDefaultSE … … 66 66 "ert" : 3600, 67 67 "wrt" : 3600, 68 "hostingCluster" : cp_get(cp, ce, 'hosting_cluster', ce_name),68 "hostingCluster" : getClusterName(cp), 69 69 "hostName" : cp_get(cp, ce, 'host_name', ce_name), 70 70 "contact_string" : contact_string, gip/trunk/gip/lib/python/gip_cese_bind.py
r3314 r3543 29 29 hostnames += extraCEs 30 30 31 ce_names = ['%s:2119/jobmanager-%s-%%s' % (hostname, jobman) for hostname in hostnames] 31 ce_names = ['%s:2119/jobmanager-%s-%%s' % (hostname, jobman) for \ 32 hostname in hostnames] 32 33 33 34 ce_list = [] … … 45 46 for ce_name in ce_names: 46 47 ce_list.append(ce_name % queue) 47 return ce_list48 return list(Set(ce_list)) 48 49 49 50 def getClassicSEList(cp): gip/trunk/test/pbs_test.py
r3541 r3543 10 10 from gip_common import config, cp_get 11 11 #from pbs_common import getVoQueues, getQueueList 12 from batch_systems.pbs import PbsBatchSystem12 from gip.batch_systems.pbs import PbsBatchSystem 13 13 from gip_ldap import read_ldap 14 14 from gip_testing import runTest, streamHandler
