reqmon 2.3.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. Utils/CPMetrics.py +270 -0
  2. Utils/CertTools.py +62 -0
  3. Utils/EmailAlert.py +50 -0
  4. Utils/ExtendedUnitTestCase.py +62 -0
  5. Utils/FileTools.py +182 -0
  6. Utils/IteratorTools.py +80 -0
  7. Utils/MathUtils.py +31 -0
  8. Utils/MemoryCache.py +119 -0
  9. Utils/Patterns.py +24 -0
  10. Utils/Pipeline.py +137 -0
  11. Utils/PortForward.py +97 -0
  12. Utils/ProcessStats.py +103 -0
  13. Utils/PythonVersion.py +17 -0
  14. Utils/Signals.py +36 -0
  15. Utils/TemporaryEnvironment.py +27 -0
  16. Utils/Throttled.py +227 -0
  17. Utils/Timers.py +130 -0
  18. Utils/Timestamps.py +86 -0
  19. Utils/TokenManager.py +143 -0
  20. Utils/Tracing.py +60 -0
  21. Utils/TwPrint.py +98 -0
  22. Utils/Utilities.py +308 -0
  23. Utils/__init__.py +11 -0
  24. WMCore/Algorithms/Permissions.py +27 -0
  25. WMCore/Algorithms/__init__.py +7 -0
  26. WMCore/Cache/GenericDataCache.py +98 -0
  27. WMCore/Cache/WMConfigCache.py +572 -0
  28. WMCore/Cache/__init__.py +0 -0
  29. WMCore/Configuration.py +651 -0
  30. WMCore/DataStructs/File.py +177 -0
  31. WMCore/DataStructs/Fileset.py +140 -0
  32. WMCore/DataStructs/Job.py +182 -0
  33. WMCore/DataStructs/JobGroup.py +142 -0
  34. WMCore/DataStructs/JobPackage.py +49 -0
  35. WMCore/DataStructs/LumiList.py +734 -0
  36. WMCore/DataStructs/Mask.py +219 -0
  37. WMCore/DataStructs/Pickleable.py +24 -0
  38. WMCore/DataStructs/Run.py +256 -0
  39. WMCore/DataStructs/Subscription.py +175 -0
  40. WMCore/DataStructs/WMObject.py +47 -0
  41. WMCore/DataStructs/WorkUnit.py +112 -0
  42. WMCore/DataStructs/Workflow.py +60 -0
  43. WMCore/DataStructs/__init__.py +8 -0
  44. WMCore/Database/CMSCouch.py +1349 -0
  45. WMCore/Database/CouchUtils.py +118 -0
  46. WMCore/Database/__init__.py +9 -0
  47. WMCore/Lexicon.py +836 -0
  48. WMCore/REST/Auth.py +202 -0
  49. WMCore/REST/CherryPyPeriodicTask.py +166 -0
  50. WMCore/REST/Error.py +333 -0
  51. WMCore/REST/Format.py +642 -0
  52. WMCore/REST/HeartbeatMonitorBase.py +90 -0
  53. WMCore/REST/Main.py +623 -0
  54. WMCore/REST/Server.py +2435 -0
  55. WMCore/REST/Services.py +24 -0
  56. WMCore/REST/Test.py +120 -0
  57. WMCore/REST/Tools.py +38 -0
  58. WMCore/REST/Validation.py +250 -0
  59. WMCore/REST/__init__.py +1 -0
  60. WMCore/ReqMgr/DataStructs/AuthzByStatus.py +113 -0
  61. WMCore/ReqMgr/DataStructs/DefaultConfig/CAMPAIGN_CONFIG.py +116 -0
  62. WMCore/ReqMgr/DataStructs/DefaultConfig/DAS_RESULT_FILTER.py +3 -0
  63. WMCore/ReqMgr/DataStructs/DefaultConfig/EDITABLE_SPLITTING_PARAM_CONFIG.py +42 -0
  64. WMCore/ReqMgr/DataStructs/DefaultConfig/UNIFIED_CONFIG.py +240 -0
  65. WMCore/ReqMgr/DataStructs/DefaultConfig/__init__.py +0 -0
  66. WMCore/ReqMgr/DataStructs/ReqMgrConfigDataCache.py +65 -0
  67. WMCore/ReqMgr/DataStructs/Request.py +293 -0
  68. WMCore/ReqMgr/DataStructs/RequestError.py +21 -0
  69. WMCore/ReqMgr/DataStructs/RequestStatus.py +209 -0
  70. WMCore/ReqMgr/DataStructs/RequestType.py +13 -0
  71. WMCore/ReqMgr/DataStructs/__init__.py +0 -0
  72. WMCore/ReqMgr/__init__.py +1 -0
  73. WMCore/Services/AlertManager/AlertManagerAPI.py +111 -0
  74. WMCore/Services/AlertManager/__init__.py +0 -0
  75. WMCore/Services/CRIC/CRIC.py +238 -0
  76. WMCore/Services/CRIC/__init__.py +0 -0
  77. WMCore/Services/DBS/DBS3Reader.py +1044 -0
  78. WMCore/Services/DBS/DBSConcurrency.py +44 -0
  79. WMCore/Services/DBS/DBSErrors.py +113 -0
  80. WMCore/Services/DBS/DBSReader.py +23 -0
  81. WMCore/Services/DBS/DBSUtils.py +139 -0
  82. WMCore/Services/DBS/DBSWriterObjects.py +381 -0
  83. WMCore/Services/DBS/ProdException.py +133 -0
  84. WMCore/Services/DBS/__init__.py +8 -0
  85. WMCore/Services/FWJRDB/FWJRDBAPI.py +118 -0
  86. WMCore/Services/FWJRDB/__init__.py +0 -0
  87. WMCore/Services/HTTPS/HTTPSAuthHandler.py +66 -0
  88. WMCore/Services/HTTPS/__init__.py +0 -0
  89. WMCore/Services/LogDB/LogDB.py +201 -0
  90. WMCore/Services/LogDB/LogDBBackend.py +191 -0
  91. WMCore/Services/LogDB/LogDBExceptions.py +11 -0
  92. WMCore/Services/LogDB/LogDBReport.py +85 -0
  93. WMCore/Services/LogDB/__init__.py +0 -0
  94. WMCore/Services/MSPileup/__init__.py +0 -0
  95. WMCore/Services/MSUtils/MSUtils.py +54 -0
  96. WMCore/Services/MSUtils/__init__.py +0 -0
  97. WMCore/Services/McM/McM.py +173 -0
  98. WMCore/Services/McM/__init__.py +8 -0
  99. WMCore/Services/MonIT/Grafana.py +133 -0
  100. WMCore/Services/MonIT/__init__.py +0 -0
  101. WMCore/Services/PyCondor/PyCondorAPI.py +154 -0
  102. WMCore/Services/PyCondor/PyCondorUtils.py +105 -0
  103. WMCore/Services/PyCondor/__init__.py +0 -0
  104. WMCore/Services/ReqMgr/ReqMgr.py +261 -0
  105. WMCore/Services/ReqMgr/__init__.py +0 -0
  106. WMCore/Services/ReqMgrAux/ReqMgrAux.py +419 -0
  107. WMCore/Services/ReqMgrAux/__init__.py +0 -0
  108. WMCore/Services/RequestDB/RequestDBReader.py +267 -0
  109. WMCore/Services/RequestDB/RequestDBWriter.py +39 -0
  110. WMCore/Services/RequestDB/__init__.py +0 -0
  111. WMCore/Services/Requests.py +624 -0
  112. WMCore/Services/Rucio/Rucio.py +1287 -0
  113. WMCore/Services/Rucio/RucioUtils.py +74 -0
  114. WMCore/Services/Rucio/__init__.py +0 -0
  115. WMCore/Services/RucioConMon/RucioConMon.py +128 -0
  116. WMCore/Services/RucioConMon/__init__.py +0 -0
  117. WMCore/Services/Service.py +400 -0
  118. WMCore/Services/StompAMQ/__init__.py +0 -0
  119. WMCore/Services/TagCollector/TagCollector.py +155 -0
  120. WMCore/Services/TagCollector/XMLUtils.py +98 -0
  121. WMCore/Services/TagCollector/__init__.py +0 -0
  122. WMCore/Services/UUIDLib.py +13 -0
  123. WMCore/Services/UserFileCache/UserFileCache.py +160 -0
  124. WMCore/Services/UserFileCache/__init__.py +8 -0
  125. WMCore/Services/WMAgent/WMAgent.py +63 -0
  126. WMCore/Services/WMAgent/__init__.py +0 -0
  127. WMCore/Services/WMArchive/CMSSWMetrics.py +526 -0
  128. WMCore/Services/WMArchive/DataMap.py +463 -0
  129. WMCore/Services/WMArchive/WMArchive.py +33 -0
  130. WMCore/Services/WMArchive/__init__.py +0 -0
  131. WMCore/Services/WMBS/WMBS.py +97 -0
  132. WMCore/Services/WMBS/__init__.py +0 -0
  133. WMCore/Services/WMStats/DataStruct/RequestInfoCollection.py +300 -0
  134. WMCore/Services/WMStats/DataStruct/__init__.py +0 -0
  135. WMCore/Services/WMStats/WMStatsPycurl.py +145 -0
  136. WMCore/Services/WMStats/WMStatsReader.py +445 -0
  137. WMCore/Services/WMStats/WMStatsWriter.py +273 -0
  138. WMCore/Services/WMStats/__init__.py +0 -0
  139. WMCore/Services/WMStatsServer/WMStatsServer.py +134 -0
  140. WMCore/Services/WMStatsServer/__init__.py +0 -0
  141. WMCore/Services/WorkQueue/WorkQueue.py +492 -0
  142. WMCore/Services/WorkQueue/__init__.py +0 -0
  143. WMCore/Services/__init__.py +8 -0
  144. WMCore/Services/pycurl_manager.py +574 -0
  145. WMCore/WMBase.py +50 -0
  146. WMCore/WMException.py +183 -0
  147. WMCore/WMExceptions.py +269 -0
  148. WMCore/WMFactory.py +76 -0
  149. WMCore/WMLogging.py +108 -0
  150. WMCore/WMStats/CherryPyThreads/CleanUpTask.py +46 -0
  151. WMCore/WMStats/CherryPyThreads/DataCacheUpdate.py +45 -0
  152. WMCore/WMStats/CherryPyThreads/HeartbeatMonitor.py +6 -0
  153. WMCore/WMStats/CherryPyThreads/LogDBTasks.py +29 -0
  154. WMCore/WMStats/CherryPyThreads/__init__.py +0 -0
  155. WMCore/WMStats/DataStructs/DataCache.py +92 -0
  156. WMCore/WMStats/DataStructs/__init__.py +0 -0
  157. WMCore/WMStats/Service/ActiveRequestJobInfo.py +123 -0
  158. WMCore/WMStats/Service/MetaDataInfo.py +26 -0
  159. WMCore/WMStats/Service/RequestInfo.py +127 -0
  160. WMCore/WMStats/Service/RestApiHub.py +51 -0
  161. WMCore/WMStats/Service/__init__.py +0 -0
  162. WMCore/WMStats/T0/CherryPyThreads/T0DataCacheUpdate.py +35 -0
  163. WMCore/WMStats/T0/CherryPyThreads/__init__.py +0 -0
  164. WMCore/WMStats/T0/Service/T0RestApiHub.py +37 -0
  165. WMCore/WMStats/T0/Service/__init__.py +0 -0
  166. WMCore/WMStats/T0/__init__.py +0 -0
  167. WMCore/WMStats/WebGui/FrontPage.py +59 -0
  168. WMCore/WMStats/WebGui/__init__.py +0 -0
  169. WMCore/WMStats/__init__.py +1 -0
  170. WMCore/Wrappers/JsonWrapper/JSONThunker.py +342 -0
  171. WMCore/Wrappers/JsonWrapper/__init__.py +7 -0
  172. WMCore/Wrappers/__init__.py +6 -0
  173. WMCore/__init__.py +10 -0
  174. reqmon-2.3.10.data/data/bin/wmc-dist-patch +15 -0
  175. reqmon-2.3.10.data/data/bin/wmc-dist-unpatch +8 -0
  176. reqmon-2.3.10.data/data/bin/wmc-httpd +3 -0
  177. reqmon-2.3.10.data/data/data/couchapps/LogDB/_id +1 -0
  178. reqmon-2.3.10.data/data/data/couchapps/LogDB/couchapp.json +5 -0
  179. reqmon-2.3.10.data/data/data/couchapps/LogDB/filters/filterDeletedDocs.js +3 -0
  180. reqmon-2.3.10.data/data/data/couchapps/LogDB/language +1 -0
  181. reqmon-2.3.10.data/data/data/couchapps/LogDB/validate_doc_update.js +6 -0
  182. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/logByRequest/map.js +9 -0
  183. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/logByRequestAndThread/map.js +3 -0
  184. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/requests/map.js +5 -0
  185. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/requests/reduce.js +1 -0
  186. reqmon-2.3.10.data/data/data/couchapps/LogDB/views/tstamp/map.js +7 -0
  187. reqmon-2.3.10.data/data/data/couchapps/T0Request/_id +1 -0
  188. reqmon-2.3.10.data/data/data/couchapps/T0Request/couchapp.json +5 -0
  189. reqmon-2.3.10.data/data/data/couchapps/T0Request/filters/repfilter.js +3 -0
  190. reqmon-2.3.10.data/data/data/couchapps/T0Request/language +1 -0
  191. reqmon-2.3.10.data/data/data/couchapps/T0Request/updates/updaterequest.js +79 -0
  192. reqmon-2.3.10.data/data/data/couchapps/T0Request/validate_doc_update.js +6 -0
  193. reqmon-2.3.10.data/data/data/couchapps/T0Request/views/byrequest/map.js +3 -0
  194. reqmon-2.3.10.data/data/data/couchapps/T0Request/views/bystatus/map.js +7 -0
  195. reqmon-2.3.10.data/data/data/couchapps/T0Request/views/bystatusandtime/map.js +7 -0
  196. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/ColVis.css +76 -0
  197. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/font-awesome.min.css +4 -0
  198. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-check-16.png +0 -0
  199. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-cross-16.png +0 -0
  200. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-plus-16.png +0 -0
  201. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-square-check-16.png +0 -0
  202. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.gif +0 -0
  203. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.jpeg +0 -0
  204. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  205. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  206. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  207. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  208. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  209. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  210. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  211. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_highlight-hard_55_5c9ccc_1x100.png +0 -0
  212. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  213. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-soft_100_fcfdfd_1x100.png +0 -0
  214. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_217bc0_256x240.png +0 -0
  215. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2694e8_256x240.png +0 -0
  216. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2e83ff_256x240.png +0 -0
  217. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_469bdd_256x240.png +0 -0
  218. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_6da8d5_256x240.png +0 -0
  219. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_cd0a0a_256x240.png +0 -0
  220. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_d8e7f3_256x240.png +0 -0
  221. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_f9bd01_256x240.png +0 -0
  222. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/warning-16.png +0 -0
  223. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery-ui-1.12.0.css +1312 -0
  224. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery.dataTables.css +241 -0
  225. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/logdb.css +60 -0
  226. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/main_layout.css +565 -0
  227. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/FontAwesome.otf +0 -0
  228. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.eot +0 -0
  229. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.svg +565 -0
  230. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.ttf +0 -0
  231. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff +0 -0
  232. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff2 +0 -0
  233. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/Sorting icons.psd +0 -0
  234. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_disabled.jpg +0 -0
  235. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_enabled.jpg +0 -0
  236. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/error.png +0 -0
  237. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/favicon.ico +0 -0
  238. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_disabled.jpg +0 -0
  239. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_enabled.jpg +0 -0
  240. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/loader-1.gif +0 -0
  241. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.png +0 -0
  242. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.rolledup.png +0 -0
  243. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/rollup.gif +0 -0
  244. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc.png +0 -0
  245. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc_disabled.png +0 -0
  246. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_both.png +0 -0
  247. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc.png +0 -0
  248. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc_disabled.png +0 -0
  249. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/stable.png +0 -0
  250. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/warning.png +0 -0
  251. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html +105 -0
  252. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.min +106 -0
  253. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.org +125 -0
  254. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.ActiveRequestController.js +61 -0
  255. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.GenericController.js +38 -0
  256. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.WorkloadSummaryController.js +12 -0
  257. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/import.js +6 -0
  258. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RequestSummary.js +71 -0
  259. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RunSummary.js +70 -0
  260. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.AgentRequestSummary.js +28 -0
  261. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CMSSWSummary.js +28 -0
  262. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CampaignSummary.js +28 -0
  263. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.ReqMgrRequest.js +10 -0
  264. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.RequestSummary.js +190 -0
  265. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Agents.js +98 -0
  266. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Alerts.js +21 -0
  267. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Campaigns.js +25 -0
  268. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.GenericRequests.js +728 -0
  269. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.History.js +78 -0
  270. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobDetails.js +19 -0
  271. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobSummary.js +32 -0
  272. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogDBData.js +93 -0
  273. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogMessage.js +38 -0
  274. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.SiteSummary.js +24 -0
  275. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Sites.js +25 -0
  276. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Tasks.js +107 -0
  277. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.WorkloadSummary.js +20 -0
  278. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats._StructBase.js +37 -0
  279. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/import.js +29 -0
  280. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.ActiveRequestModel.js +9 -0
  281. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogDetailModel.js +17 -0
  282. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogModel.js +14 -0
  283. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestModel.js +3 -0
  284. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestSearchModel.js +8 -0
  285. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ActiveRequestModel.js +9 -0
  286. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ReqMgrRequestModel.js +8 -0
  287. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogDetailModel.js +18 -0
  288. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogModel.js +14 -0
  289. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestSearchModel.js +8 -0
  290. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AgentModel.js +3 -0
  291. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AlertModel.js +6 -0
  292. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.HistoryModel.js +14 -0
  293. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobDetailModel.js +22 -0
  294. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobSummaryModel.js +18 -0
  295. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.WorkloadSummaryModel.js +8 -0
  296. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._AjaxModelBase.js +55 -0
  297. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._ModelBase.js +77 -0
  298. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._RequestModelBase.js +127 -0
  299. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/import.js +26 -0
  300. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/WMStats.ViewModel.js +511 -0
  301. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/import.js +2 -0
  302. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T0/WMStats.Controls.js +117 -0
  303. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T1/WMStats.Controls.js +158 -0
  304. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/WMStats.CommonControls.js +100 -0
  305. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/import.js +10 -0
  306. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/WMStats.SiteHistoryGraph.js +8 -0
  307. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/import.js +3 -0
  308. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.CategoryDetailList.js +38 -0
  309. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestAlertGUI.js +128 -0
  310. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDataList.js +25 -0
  311. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDetailList.js +68 -0
  312. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestSummaryList.js +31 -0
  313. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.CategoryDetailList.js +54 -0
  314. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestAlertGUI.js +81 -0
  315. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDataList.js +26 -0
  316. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDetailList.js +122 -0
  317. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestSummaryList.js +35 -0
  318. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.ResubmissionList.js +64 -0
  319. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.AgentDetailList.js +137 -0
  320. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.CategoryTitle.js +20 -0
  321. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.HTMLList.js +12 -0
  322. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.JobDetailList.js +178 -0
  323. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestLogList.js +88 -0
  324. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestTitle.js +33 -0
  325. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/import.js +25 -0
  326. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.ActiveRequestTable.js +142 -0
  327. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.RunSummaryTable.js +77 -0
  328. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.TaskSummaryTable.js +127 -0
  329. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/addCategoryMap.js +10 -0
  330. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTable.js +132 -0
  331. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTableWithJob.js +164 -0
  332. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.AgentRequestSummaryTable.js +78 -0
  333. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CMSSWSummaryTable.js +76 -0
  334. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CampaignSummaryTable.js +76 -0
  335. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.SiteSummaryTable.js +63 -0
  336. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.TaskSummaryTable.js +124 -0
  337. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/addCategoryMap.js +17 -0
  338. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.JobSummaryTable.js +71 -0
  339. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.Table.js +70 -0
  340. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.TableController.js +130 -0
  341. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.WorkloadSummaryTable.js +62 -0
  342. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/import.js +26 -0
  343. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.CategoryMap.js +45 -0
  344. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.View.IndexHTML.js +137 -0
  345. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/import.js +3 -0
  346. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Ajax.js +74 -0
  347. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Couch.js +83 -0
  348. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Globals.js +200 -0
  349. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Utils.js +283 -0
  350. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/import-all.min.js +7 -0
  351. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/loader.js +27 -0
  352. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/global.min.js +639 -0
  353. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t0.min.js +4317 -0
  354. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t1.min.js +4972 -0
  355. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/jquery.dataTables.columnFilter.js +732 -0
  356. reqmon-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/namespace.js +23 -0
  357. reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/deleteFatDocFilter.js +3 -0
  358. reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/filterDeletedDocs.js +3 -0
  359. reqmon-2.3.10.data/data/data/couchapps/WMStats/filters/repfilter.js +7 -0
  360. reqmon-2.3.10.data/data/data/couchapps/WMStats/rewrites.json +110 -0
  361. reqmon-2.3.10.data/data/data/couchapps/WMStats/shows/redirect.js +23 -0
  362. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/agentInfo.js +17 -0
  363. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/generalFields.js +11 -0
  364. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/insertRequest.js +13 -0
  365. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobLogArchiveLocation.js +10 -0
  366. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobStateTransition.js +17 -0
  367. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/jobSummaryState.js +5 -0
  368. reqmon-2.3.10.data/data/data/couchapps/WMStats/updates/totalStats.js +39 -0
  369. reqmon-2.3.10.data/data/data/couchapps/WMStats/validate_doc_update.js +10 -0
  370. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/language +1 -0
  371. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/views/requestAgentUrl/map.erl +11 -0
  372. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl/views/requestAgentUrl/reduce.erl +1 -0
  373. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl1/language +1 -0
  374. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl1/views/byAgentURL/map.erl +11 -0
  375. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/language +1 -0
  376. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/views/allWorkflows/map.erl +10 -0
  377. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl2/views/allWorkflows/reduce.erl +1 -0
  378. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/language +1 -0
  379. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/views/jobsByStatusWorkflow/map.erl +32 -0
  380. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl3/views/jobsByStatusWorkflow/reduce.erl +1 -0
  381. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/language +1 -0
  382. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/views/cooledoffRequests/map.erl +16 -0
  383. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl4/views/cooledoffRequests/reduce.erl +1 -0
  384. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl5/language +1 -0
  385. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl5/views/time/map.erl +11 -0
  386. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/language +1 -0
  387. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/views/requestHistory/map.erl +11 -0
  388. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl6/views/requestHistory/reduce.erl +1 -0
  389. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/language +1 -0
  390. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/views/agentInfo/map.erl +10 -0
  391. reqmon-2.3.10.data/data/data/couchapps/WMStatsErl7/views/latestRequest/map.erl +11 -0
  392. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/index.html +44 -0
  393. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/container/histogram.js +141 -0
  394. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/container/tree.js +67 -0
  395. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/dataMap/errorData.js +69 -0
  396. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/htmlFormatter/listFormatter.js +79 -0
  397. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/js/layout/gridLayout.js +77 -0
  398. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/performanceHistogram.html +46 -0
  399. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/_attachments/style/main.css +17 -0
  400. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/couchapp.json +4 -0
  401. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/filters/repfilter.js +3 -0
  402. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lib/mustache.js +333 -0
  403. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lib/validate.js +29 -0
  404. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lists/completedWorkflows.js +27 -0
  405. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/lists/performanceHistogram.js +15 -0
  406. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/rewrites.json +65 -0
  407. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/shows/histogramByWorkflow.js +75 -0
  408. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/shows/lumiMissingByWorkflow.js +97 -0
  409. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/templates/histogramByWorkflow.html +126 -0
  410. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/templates/performanceData.html +44 -0
  411. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/updates/updateacdc.js +6 -0
  412. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/updates/updatecollection.js +5 -0
  413. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/validate_doc_update.js +8 -0
  414. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/vendor/protovis/_attachments/protovis-r3.2.js +277 -0
  415. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/outputDataByPrimDs/map.js +21 -0
  416. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/performanceDataByCampaign/map.js +19 -0
  417. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/summaryByInputdataset/map.js +7 -0
  418. reqmon-2.3.10.data/data/data/couchapps/WorkloadSummary/views/summaryByOutputdataset/map.js +7 -0
  419. reqmon-2.3.10.dist-info/LICENSE +202 -0
  420. reqmon-2.3.10.dist-info/METADATA +24 -0
  421. reqmon-2.3.10.dist-info/NOTICE +16 -0
  422. reqmon-2.3.10.dist-info/RECORD +424 -0
  423. reqmon-2.3.10.dist-info/WHEEL +5 -0
  424. reqmon-2.3.10.dist-info/top_level.txt +2 -0
@@ -0,0 +1,42 @@
1
+ from __future__ import print_function, division
2
+
3
+ # TODO: need to get algorithm proper way
4
+ ALGO_DICT = {"FileBased": {"files_per_job": ''},
5
+ "TwoFileBased": {"two_files_per_job": ''},
6
+ "LumiBased": {"lumis_per_job": '',
7
+ "halt_job_on_file_boundaries": True},
8
+ "EventAwareLumiBased": {"events_per_job": '',
9
+ "job_time_limit": '',
10
+ "halt_job_on_file_boundaries": True},
11
+ "EventBased": {"events_per_job": '',
12
+ "events_per_lumi": ''},
13
+ "Harvest": {"periodic_harvest_interval": ''},
14
+ "ParentlessMergeBySize": {"min_merge_size": '',
15
+ "max_merge_size": '',
16
+ "max_merge_events": '',
17
+ "max_wait_time": ''},
18
+ "WMBSMergeBySize": {"min_merge_size": '',
19
+ "max_merge_size": '',
20
+ "max_merge_events": '',
21
+ "max_wait_time": ''},
22
+ "MergeBySize": {"min_merge_size": '',
23
+ "max_merge_size": '',
24
+ "max_merge_events": '',
25
+ "max_wait_time": ''}
26
+ }
27
+
28
+ ALGO_LIST_BY_TYPES = {"Processing": ["LumiBased", "EventAwareLumiBased",
29
+ "EventBased", "FileBased"],
30
+ "Production": ["EventBased"],
31
+ "Skim": ["FileBased", "TwoFileBased"],
32
+ "Harvesting": ["Harvest"],
33
+ "Merge": ["ParentlessMergeBySize",
34
+ "WMBSMergeBySize",
35
+ "MergeBySize"],
36
+ "Cleanup": ["FileBased"],
37
+ "LogCollect": ["FileBased"]
38
+ }
39
+
40
+ EDITABLE_SPLITTING_PARAM_CONFIG = {"algo_params": ALGO_DICT,
41
+ "algo_list_by_types": ALGO_LIST_BY_TYPES
42
+ }
@@ -0,0 +1,240 @@
1
+ from __future__ import print_function, division
2
+
3
+ UNIFIED_CONFIG = {
4
+ "site_for_overflow": {
5
+ "value": ["nono_T0_CH_CERN",
6
+ "T2_CH_CERN_HLT"],
7
+ "description": "The sites that we set to overflow and require a specific treatment"
8
+ },
9
+ "overflow_pressure": {
10
+ "value": 0.5,
11
+ "description": "The ratio pending/running over which to consider overflowing"
12
+ },
13
+ "DDM_buffer_level": {
14
+ "value": 0.8,
15
+ "description": "The fraction of the DDM quota we are allowed to use"
16
+ },
17
+ "sites_banned": {
18
+ "value": ["T2_CH_CERN_AI",
19
+ "NONO_T0_CH_CERN",
20
+ "T2_TH_CUNSTDA",
21
+ "NONO_T2_US_Vanderbilt",
22
+ "T2_EE_Estonia",
23
+ "T2_UA_KIPT"
24
+ ],
25
+ "description": "The sites that are banned from production"
26
+ },
27
+ "sites_auto_approve": {
28
+ "value": ["T0_CH_CERN_MSS", "T1_FR_CCIN2P3_MSS"],
29
+ "description": "The sites we can autoapprove tape request to"
30
+ },
31
+ "sites_space_override": {
32
+ "value": {
33
+ },
34
+ "description": "Over-ride the available space at a phedex end point"
35
+ },
36
+ "sites_with_goodIO": {
37
+ "value": ["T2_DE_DESY", "T2_DE_RWTH", "T2_ES_CIEMAT", "T2_FR_GRIF_LLR", "T2_FR_GRIF_IRFU", "T2_FR_IPHC",
38
+ "T2_FR_CCIN2P3", "T2_IT_Bari", "T2_IT_Legnaro", "T2_IT_Pisa", "T2_IT_Rome", "T2_UK_London_Brunel",
39
+ "T2_UK_London_IC", "T2_US_Caltech", "T2_US_MIT", "T2_US_Nebraska", "T2_US_Purdue", "T2_US_UCSD",
40
+ "T2_US_Wisconsin", "T2_US_Florida", "T2_BE_IIHE", "T2_EE_Estonia", "T2_PL_Swierk", "T2_CH_CERN",
41
+ "T2_CH_CERN_HLT"],
42
+ "description": "The sites identified as having good storage badnwidth"
43
+ },
44
+ "max_cpuh_block": {
45
+ "value": 40000000,
46
+ "description": "Value of CPUh above which a wf is blocked from assigning"
47
+ },
48
+ "block_repositionning": {
49
+ "value": True,
50
+ "description": "Whether or not to retransfer block from WQE without location"
51
+ },
52
+ "allowed_bypass": {
53
+ "description": "Who is allowed to bypass and force complete",
54
+ "value": [["vlimant", "vlimant@cern.ch"],
55
+ ["prozober", "paola.katherine.rozo.bernal@cern.ch"],
56
+ ["mcremone", "matteoc@fnal.gov"]]
57
+ },
58
+ "max_tail_priority": {
59
+ "value": 5,
60
+ "description": "Number of workflow to increase the priority of at a time"
61
+ },
62
+ "injection_delay_threshold": {
63
+ "value": 50,
64
+ "description": "Number of days after wich to increase the priority of a workflow"
65
+ },
66
+ "delay_priority_increase": {
67
+ "value": 10000,
68
+ "description": "Priority from original increase per week over the delay threshold"
69
+ },
70
+ "injection_delay_priority": {
71
+ "value": 75000,
72
+ "description": "Priority above which we can increase the priority of a workflow after running too long"
73
+ },
74
+
75
+ "max_force_complete": {
76
+ "value": 10,
77
+ "description": "Number of workflow that can be forced complete at a time"
78
+ },
79
+ "max_per_round": {
80
+ "description": "limitation on the number of wf to process per module",
81
+ "value": {
82
+ "transferor": None,
83
+ "assignor": None,
84
+ "closor": None,
85
+ "checkor": None,
86
+ "completor": None
87
+ }
88
+ },
89
+ "default_fraction_pass": {
90
+ "value": 1.0,
91
+ "description": "completion fraction above which to announce dataset"
92
+ },
93
+ "pattern_fraction_pass": {
94
+ "value": {},
95
+ "description": "overide of the completion fraction of dataset with keyword"
96
+ },
97
+ "tiers_with_no_custodial": {
98
+ "value": ["DQM", "DQMIO", "RECO", "RAWAODSIM"],
99
+ "description": "The data tiers that do not go to tape. Can be overidden by custodial overide at campaign level"
100
+ },
101
+ "use_parent_custodial": {
102
+ "value": False,
103
+ "description": "Use the location of the parent dataset for custodial copy"
104
+ },
105
+ "tape_size_limit": {
106
+ "value": 200,
107
+ "description": "Size over which to prevent transfer to tape automatically"
108
+ },
109
+ "tiers_with_no_check": {
110
+ "value": ["DQM", "DQMIO"],
111
+ "description": "The data tiers that do not pass closeout checks. Can be overidden by custodial overide at campaign level"
112
+ },
113
+ "tiers_no_DDM": {
114
+ "value": ["GEN-SIM", "LHE", "GEN", "DQM", "DQMIO", "GEN-SIM-DIGI-RAW", "RAW"],
115
+ "description": "The data tiers that do not go to AnaOps"
116
+ },
117
+ "tiers_to_DDM": {
118
+ "value": ["AODSIM", "MINIAODSIM", "GEN-SIM-RAW", "GEN-SIM-RECO", "GEN-SIM-RECODEBUG", "AOD", "RECO", "MINIAOD",
119
+ "ALCARECO", "USER", "RAW-RECO", "RAWAODSIM"],
120
+ "description": "The data tiers that go to AnaOps"
121
+ },
122
+ "tiers_keep_on_disk": {
123
+ "value": ["LHE"],
124
+ "description": "the data tier not unlocked until used again"
125
+ },
126
+ "check_fullcopy_to_announce": {
127
+ "value": False,
128
+ "description": "Whether to check for a full copy being present prior to announcing a dataset"
129
+ },
130
+ "stagor_sends_back": {
131
+ "value": True,
132
+ "description": "Whether the stagor module can send workflow back to considered"
133
+ },
134
+ "max_handled_workflows": {
135
+ "value": 4000,
136
+ "description": "The total number of workflows that we allow to handle at a time (transfer, running, assistance)"
137
+ },
138
+ "max_staging_workflows": {
139
+ "value": 700,
140
+ "description": "The total number of workflows that we allow to stage at a time"
141
+ },
142
+ "max_staging_workflows_per_site": {
143
+ "value": 700,
144
+ "description": "The total number of workflows that we allow to stage at a time per site"
145
+ },
146
+ "max_transfer_in_GB": {
147
+ "value": 800000,
148
+ "description": "The total size of the input datasets that can be transfered at a given time"
149
+ },
150
+ "transfer_timeout": {
151
+ "value": 7,
152
+ "description": "Time in days after which to consider a transfer to be stuck"
153
+ },
154
+ "transfer_lowrate": {
155
+ "value": 0.004,
156
+ "description": "Rate in GB/s under which to consider a transfer to be stuck, after transfer_timeout days"
157
+ },
158
+ "less_copies_than_requested": {
159
+ "value": 1,
160
+ "description": "Decrease the number of requested copies by that number, floored to 1"
161
+ },
162
+ "chopping_threshold_in_GB": {
163
+ "value": 4000,
164
+ "description": "The threshold before choping an input dataset in chunk of that size for spreading to sites"
165
+ },
166
+ "error_codes_to_recover": {
167
+ "value": {"50664": [{"legend": "time-out",
168
+ "solution": "split-2",
169
+ "details": None,
170
+ "rate": 20
171
+ }],
172
+ "50660": [{"legend": "memory excess",
173
+ "solution": "mem-1000",
174
+ "details": None,
175
+ "rate": 20
176
+ }],
177
+ "61104": [{"legend": "failed submit",
178
+ "solution": "recover",
179
+ "details": None,
180
+ "rate": 20
181
+ }],
182
+ "8028": [{"legend": "read error",
183
+ "solution": "recover",
184
+ "details": None,
185
+ "rate": 20
186
+ }],
187
+ "8021": [{"legend": "cmssw failure",
188
+ "solution": "recover",
189
+ "details": "FileReadError",
190
+ "rate": 20
191
+ }],
192
+ "71305": [{"legend": "long pending",
193
+ "solution": "recover",
194
+ "details": None,
195
+ "rate": 20
196
+ }],
197
+ "8001": [{"legend": "lhe failure",
198
+ "solution": "split-4",
199
+ "details": "No lhe event found in ExternalLHEProducer::produce()",
200
+ "rate": 20
201
+ }]
202
+ },
203
+ "description": "The error code, threshold and rules for auto-recovery"
204
+ },
205
+ "error_codes_to_block": {
206
+ "value":
207
+ {
208
+ "99109": [{"legend": "stage-out",
209
+ "solution": "recover",
210
+ "details": None,
211
+ "rate": 20
212
+ }]
213
+ },
214
+ "description": "The error code, threshold and rules to prevent auto-recovery"
215
+ },
216
+ "error_codes_to_notify": {
217
+ "value": {
218
+ "8021": {"message": "Please take a look and come back to Ops."}
219
+ },
220
+ "description": "The error code, threshold and rules to notify the user of an error in production"
221
+ },
222
+ "user_rereco": {
223
+ "description": "The users from which we expect ReReco requests",
224
+ "value": ["cerminar", "fabozzi"]
225
+ },
226
+ "user_relval": {
227
+ "description": "The users from which we expect relval requests",
228
+ "value": ["fabozzi", "nwickram", "bsutar", "rverma", "prebello", "piperov", "sandhya"]
229
+ },
230
+ "relval_routing": {
231
+ "description": "Set of keywords and special settings for relvals",
232
+ "value": {"cc7": {"parameters": {"SiteWhitelist": ["T2_US_Nebraska"]}},
233
+ "highIOtobedecidedflag": {"parameters": {"SiteWhitelist": ["T2_US_Nebraska", "T2_US_Purdue"]}}
234
+ }
235
+ },
236
+ "batch_goodness": {
237
+ "description": "Level below which to include a note in the batch report",
238
+ "value": 90
239
+ }
240
+ }
File without changes
@@ -0,0 +1,65 @@
1
+ from __future__ import print_function, division
2
+
3
+ from builtins import object
4
+ from future.utils import viewitems
5
+
6
+ from WMCore.ReqMgr.DataStructs.DefaultConfig.EDITABLE_SPLITTING_PARAM_CONFIG import EDITABLE_SPLITTING_PARAM_CONFIG
7
+ from WMCore.ReqMgr.DataStructs.DefaultConfig.DAS_RESULT_FILTER import DAS_RESULT_FILTER
8
+
9
+ #TODO need to find the better way to import all the config from DefaultConfig area
10
+ DEFAULT_CONFIG = {'EDITABLE_SPLITTING_PARAM_CONFIG': EDITABLE_SPLITTING_PARAM_CONFIG,
11
+ 'DAS_RESULT_FILTER': DAS_RESULT_FILTER}
12
+
13
+ class ReqMgrConfigDataCache(object):
14
+ # this cache shouldn't be accessed directly
15
+ # Only through the reqmgr2 api
16
+ _req_aux_db = None
17
+ _req_config_data_cache = {}
18
+
19
+ @staticmethod
20
+ def set_aux_db(couchdb):
21
+ ReqMgrConfigDataCache._req_aux_db = couchdb
22
+ return
23
+
24
+ @staticmethod
25
+ def register_default(default_config):
26
+ ReqMgrConfigDataCache._req_config_data_cache.update(default_config)
27
+ return
28
+
29
+ @staticmethod
30
+ def getConfig(doc_name):
31
+
32
+ try:
33
+ config = ReqMgrConfigDataCache._req_aux_db.document(doc_name)
34
+ del config["_id"]
35
+ del config["_rev"]
36
+ # TODO only get the exception when server is not available.
37
+ except Exception as ex:
38
+ config = ReqMgrConfigDataCache._req_config_data_cache.get(doc_name, None)
39
+ print(f"Getting document '{doc_name}' from cache due to error: {str(ex)}")
40
+ return config
41
+
42
+ @staticmethod
43
+ def replaceConfig(doc_name, content):
44
+ if doc_name not in ReqMgrConfigDataCache._req_config_data_cache:
45
+ raise Exception("No config exists")
46
+
47
+ if ReqMgrConfigDataCache._req_aux_db.documentExists(doc_name):
48
+ ReqMgrConfigDataCache._req_aux_db.delete_doc(doc_name)
49
+ response = ReqMgrConfigDataCache._req_aux_db.putDocument(doc_name, content)
50
+ ReqMgrConfigDataCache._req_config_data_cache.update(doc_name = content)
51
+ return response
52
+
53
+ @staticmethod
54
+ def putDefaultConfig():
55
+ error = ""
56
+ for doc_name, content in viewitems(DEFAULT_CONFIG):
57
+ try:
58
+ ReqMgrConfigDataCache.replaceConfig(doc_name, content)
59
+ except Exception as ex:
60
+ error += str(ex)
61
+
62
+ return error
63
+
64
+ # register all default config
65
+ ReqMgrConfigDataCache.register_default(DEFAULT_CONFIG)
@@ -0,0 +1,293 @@
1
+ """
2
+ Unlike ReqMgr1 defining Request and RequestSchema classes,
3
+ define just 1 class. Derived from Python dict and implementing
4
+ necessary conversion and validation extra methods possibly needed.
5
+
6
+
7
+ since arguments validation #4705, arguments which are later
8
+ validated during spec instantiation and which are not
9
+ present in the request injection request, can't be defined
10
+ here because their None value is not allowed in the spec.
11
+ This is the case for e.g. DbsUrl, AcquisitionEra
12
+ This module should probably define only absolutely
13
+ necessary request parameters and not any optional ones.
14
+
15
+ """
16
+ from __future__ import print_function, division
17
+ from builtins import range, object
18
+ from future.utils import viewitems, viewvalues, listvalues
19
+
20
+ import re
21
+ import time
22
+ from copy import deepcopy
23
+ from WMCore.REST.Auth import get_user_info
24
+ from WMCore.ReqMgr.DataStructs.RequestStatus import REQUEST_START_STATE, ACTIVE_STATUS_FILTER
25
+
26
+
27
+ def initialize_request_args(request, config):
28
+ """
29
+ Request data class request is a dictionary representing
30
+ a being injected / created request. This method initializes
31
+ various request fields. This should be the ONLY method to
32
+ manipulate request arguments upon injection so that various
33
+ levels or arguments manipulation does not occur across several
34
+ modules and across about 7 various methods like in ReqMgr1.
35
+
36
+ request is changed here.
37
+ """
38
+
39
+ # user information for cert. (which is converted to cherry py log in)
40
+ user = get_user_info()
41
+ request["Requestor"] = user["login"]
42
+ request["RequestorDN"] = user.get("dn", "unknown")
43
+ # service certificates carry @hostname, remove it if it exists
44
+ request["Requestor"] = request["Requestor"].split('@')[0]
45
+
46
+ # assign first starting status, should be 'new'
47
+ request["RequestStatus"] = REQUEST_START_STATE
48
+ request["RequestTransition"] = [{"Status": request["RequestStatus"],
49
+ "UpdateTime": int(time.time()), "DN": request["RequestorDN"]}]
50
+ request["RequestDate"] = list(time.gmtime()[:6])
51
+
52
+ # set the original priority when request is create
53
+ request["PriorityTransition"] = [{"Priority": request["RequestPriority"],
54
+ "UpdateTime": int(time.time()), "DN": request["RequestorDN"]}]
55
+ # update the information from config
56
+ request["CouchURL"] = config.couch_host
57
+ request["CouchWorkloadDBName"] = config.couch_reqmgr_db
58
+ request["CouchDBName"] = config.couch_config_cache_db
59
+
60
+ generateRequestName(request)
61
+ replaceDbsProdUrl(request)
62
+
63
+
64
+ def _replace_cloned_args(clone_args, user_args):
65
+ """
66
+ replace original arguments with user argument.
67
+ If the value is dictionary format, overwrite only with specified arguments.
68
+ If the original argument has simple value and user passes dictionary, completely replace to dictionary
69
+ XXX this means LumiList won't remove other runs, only updates runs overwritten
70
+ """
71
+ for prop in user_args:
72
+ if isinstance(user_args[prop], dict) and isinstance(clone_args.get(prop), dict):
73
+ _replace_cloned_args(clone_args.get(prop, {}), user_args[prop])
74
+ else:
75
+ clone_args[prop] = user_args[prop]
76
+ return
77
+
78
+
79
+ def replaceDbsProdUrl(requestArgs):
80
+ """
81
+ Function to update the DBS URL from the standard cmsweb.cern.ch
82
+ to cmsweb-prod.cern.ch, running in the k8s infra
83
+ :param requestArgs: dictionary with the request arguments
84
+ :return: same dictionary object (with updated dbs url)
85
+ """
86
+ # TODO: this url conversion below can be removed in one year from now, thus March 2022
87
+ if requestArgs.get("DbsUrl"):
88
+ requestArgs["DbsUrl"] = requestArgs["DbsUrl"].replace("cmsweb.cern.ch", "cmsweb-prod.cern.ch")
89
+ requestArgs["DbsUrl"] = requestArgs["DbsUrl"].rstrip("/")
90
+
91
+
92
+ def initialize_clone(requestArgs, originalArgs, argsDefinition, chainDefinition=None):
93
+ """
94
+ Initialize arguments for a clone request by inheriting and overwriting argument
95
+ from OriginalRequest.
96
+
97
+ :param requestArgs: user-provided dictionary with override arguments
98
+ :param originalArgs: original arguments retrieved for the workflow being cloned
99
+ :param argsDefinition: arguments definition according to the workflow type being cloned
100
+ :param chainDefinition: a dictionary containing the chain argument definition, for
101
+ StepChain and TaskChain
102
+ :return: dictionary with original args filtered out, as per the spec definition. And on
103
+ top of that, user arguments added/replaced in the dictionary.
104
+ """
105
+ chainDefinition = chainDefinition or {}
106
+ chainPattern = r'(Task|Step)\d{1,2}'
107
+
108
+ if originalArgs == argsDefinition:
109
+ # then it's a clone/ACDC of another ACDC, nothing else to do
110
+ cloneArgs = originalArgs
111
+ else:
112
+ cloneArgs = {}
113
+ for topKey, topValue in viewitems(originalArgs):
114
+ # order of this if-else matters because Step1/Task1 is a known argument
115
+ if re.match(chainPattern, topKey):
116
+ cloneArgs.setdefault(topKey, {})
117
+ # remove unsupported keys from inner Step/Task dict
118
+ for innerKey in topValue:
119
+ if innerKey in chainDefinition:
120
+ cloneArgs[topKey][innerKey] = topValue[innerKey]
121
+ # accepts floating Skim args for ReReco
122
+ elif topKey in argsDefinition or topKey.startswith('Skim'):
123
+ cloneArgs[topKey] = topValue
124
+
125
+ # apply user override arguments at the end, such that it's validated at spec level
126
+ incrementProcVer(cloneArgs, requestArgs)
127
+ _replace_cloned_args(cloneArgs, requestArgs)
128
+ replaceDbsProdUrl(cloneArgs)
129
+
130
+ return cloneArgs
131
+
132
+
133
+ def incrementProcVer(cloneArgs, requestArgs):
134
+ """
135
+ Increment the ProcessingVersion value for any requests cloned via
136
+ clone API, except if it's a Resubmission request.
137
+ TODO: ProcVer can be a dict at top level, until this #6881 gets fixed
138
+ """
139
+ # if either the parent or the new workflow is a Resubmission, we shall not increment ProcVer
140
+ if cloneArgs['RequestType'] == 'Resubmission' or requestArgs.get('RequestType') == 'Resubmission':
141
+ return
142
+ for key in cloneArgs:
143
+ if key == 'ProcessingVersion':
144
+ if isinstance(cloneArgs[key], int):
145
+ cloneArgs[key] += 1
146
+ elif isinstance(cloneArgs[key], dict):
147
+ for taskname in cloneArgs[key]:
148
+ cloneArgs[key][taskname] += 1
149
+ elif isinstance(cloneArgs[key], dict) and 'ProcessingVersion' in cloneArgs[key]:
150
+ cloneArgs[key]['ProcessingVersion'] += 1
151
+ return
152
+
153
+
154
+ def generateRequestName(request):
155
+ currentTime = time.strftime('%y%m%d_%H%M%S', time.localtime(time.time()))
156
+ seconds = int(10000 * (time.time() % 1.0))
157
+
158
+ request["RequestName"] = "%s_%s" % (request["Requestor"], request.get("RequestString"))
159
+ request["RequestName"] += "_%s_%s" % (currentTime, seconds)
160
+
161
+
162
+ def protectedLFNs(requestInfo):
163
+ reqData = RequestInfo(requestInfo)
164
+ result = []
165
+ if reqData.andFilterCheck(ACTIVE_STATUS_FILTER):
166
+ outs = requestInfo.get('OutputDatasets', [])
167
+ base = requestInfo.get('UnmergedLFNBase', '/store/unmerged')
168
+ for out in outs:
169
+ dsn, ps, tier = out.split('/')[1:]
170
+ acq, rest = ps.split('-', 1)
171
+ dirPath = '/'.join([base, acq, dsn, tier, rest])
172
+ result.append(dirPath)
173
+ return result
174
+
175
+
176
+ class RequestInfo(object):
177
+ """
178
+ Wrapper class for Request data
179
+ """
180
+
181
+ def __init__(self, requestData):
182
+ self.data = requestData
183
+
184
+ def _maskTaskStepChain(self, prop, chain_name, default=None):
185
+
186
+ propExist = False
187
+ numLoop = self.data["%sChain" % chain_name]
188
+ for i in range(numLoop):
189
+ if prop in self.data["%s%s" % (chain_name, i + 1)]:
190
+ propExist = True
191
+ break
192
+
193
+ defaultValue = self.data.get(prop, default)
194
+
195
+ if propExist:
196
+ result = set()
197
+ for i in range(numLoop):
198
+ chain_key = "%s%s" % (chain_name, i + 1)
199
+ chain = self.data[chain_key]
200
+ if prop in chain:
201
+ foundValue = chain[prop]
202
+ else:
203
+ if isinstance(defaultValue, dict):
204
+ foundValue = defaultValue.get(chain_key, None)
205
+ else:
206
+ foundValue = deepcopy(defaultValue)
207
+
208
+ if foundValue not in [None, ""]:
209
+ if isinstance(foundValue, (list, set)):
210
+ result.update(foundValue)
211
+ else:
212
+ result.add(foundValue)
213
+ return list(result)
214
+ else:
215
+ # property which can't be task or stepchain property but in dictionary format
216
+ exculdePropWithDictFormat = ["LumiList", "AgentJobInfo"]
217
+ if prop not in exculdePropWithDictFormat and isinstance(defaultValue, dict):
218
+ return listvalues(defaultValue)
219
+ else:
220
+ return defaultValue
221
+
222
+ def get(self, prop, default=None):
223
+ """
224
+ gets the value when prop exist as one of the properties in the request document.
225
+ In case TaskChain, StepChain workflow it searches the property in Task/Step level
226
+ """
227
+
228
+ if "TaskChain" in self.data:
229
+ return self._maskTaskStepChain(prop, "Task", default)
230
+ elif "StepChain" in self.data:
231
+ return self._maskTaskStepChain(prop, "Step", default)
232
+ elif prop in self.data:
233
+ return self.data[prop]
234
+ else:
235
+ return default
236
+
237
+ def andFilterCheck(self, filterDict):
238
+ """
239
+ checks whether filterDict condition met.
240
+ filterDict is the dict of key and value(list) format)
241
+ i.e.
242
+ {"RequestStatus": ["running-closed", "completed"],}
243
+ If this request's RequestStatus is either "running-closed", "completed",
244
+ return True, otherwise False
245
+ """
246
+ for key, value in viewitems(filterDict):
247
+ # special case checks where key is not exist in Request's Doc.
248
+ # It is used whether AgentJobInfo is deleted or not for announced status
249
+ if value == "CLEANED" and key == "AgentJobInfo":
250
+ if self.isWorkflowCleaned():
251
+ continue
252
+ else:
253
+ return False
254
+
255
+ if isinstance(value, dict):
256
+ # TODO: need to handle dictionary comparison
257
+ # For now ignore
258
+ continue
259
+ elif value in ["false", "False", "FALSE"]:
260
+ value = False
261
+ elif value in ["true", "True", "TRUE"]:
262
+ value = True
263
+
264
+ # Now make value list if value is not in list form including bool value
265
+ if not isinstance(value, list):
266
+ value = [value]
267
+
268
+ reqValue = self.get(key)
269
+ if reqValue is not None:
270
+ if isinstance(reqValue, list):
271
+ if not set(reqValue).intersection(set(value)):
272
+ return False
273
+ elif reqValue not in value:
274
+ return False
275
+ else:
276
+ return False
277
+ return True
278
+
279
+ def isWorkflowCleaned(self):
280
+ """
281
+ check whether workflow data is cleaned up from agent only checks the couchdb
282
+ Since dbsbuffer data is not clean up we can't just check 'AgentJobInfo' key existence
283
+ This all is only meaningfull if request status is right before end status.
284
+ ["aborted-completed", "rejected", "announced"]
285
+ DO NOT check if workflow status isn't among those status
286
+ """
287
+ if 'AgentJobInfo' in self.data:
288
+ for agentRequestInfo in viewvalues(self.data['AgentJobInfo']):
289
+ if agentRequestInfo.get("status", {}):
290
+ return False
291
+ # cannot determine whether AgentJobInfo is cleaned or not when 'AgentJobInfo' key doesn't exist
292
+ # Maybe JobInformation is not included but since it requested by above status assumed it returns True
293
+ return True
@@ -0,0 +1,21 @@
1
+ from WMCore.REST.Error import RESTError
2
+
3
+ class InvalidStateTransition(RESTError):
4
+ "The specified object is invalid."
5
+ http_code = 400
6
+ app_code = 1101
7
+
8
+ def __init__(self, requestName, currentState, newState):
9
+ RESTError.__init__(self)
10
+ self.message = "Invalid status transition for request: %s, from '%s' to '%s'" % (requestName,
11
+ currentState,
12
+ newState)
13
+
14
+ class InvalidSpecParameterValue(RESTError):
15
+ "The specified object is invalid."
16
+ http_code = 400
17
+ app_code = 1102
18
+
19
+ def __init__(self, message):
20
+ RESTError.__init__(self)
21
+ self.message = "Invalid spec parameter value: %s" % message