acdcserver 2.2.6rc2__tar.gz → 2.2.6rc4__tar.gz
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.
- {acdcserver-2.2.6rc2/src/python/acdcserver.egg-info → acdcserver-2.2.6rc4}/PKG-INFO +1 -1
- acdcserver-2.2.6rc4/bin/adhoc-scripts/adjustMongoDocs.py +73 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/parseUnifiedCampaigns.py +5 -6
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmagent-mod-config +9 -2
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/__init__.py +1 -1
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4/src/python/acdcserver.egg-info}/PKG-INFO +1 -1
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/acdcserver.egg-info/SOURCES.txt +1 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/LICENSE +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/MANIFEST.in +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/NOTICE +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/README.md +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/HWMon/wmcore-SysStat +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/acdcserver-tools +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/ParseSpecCmsswdist.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/checkDsetFileCount.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/checkStuckLQE.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/createPileupObjects.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/drainAgent.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/fixWorkflowParentage.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/getWQStatusByWorkflow.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/injectUnified.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/mongoInit.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/setrequeststatus.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/summaryWMStatsFailures.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/updateTotalStats.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/adhoc-scripts/workflowCompletion.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/attempt-to-patch.sh +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/buildrelease.sh +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/check-ACDC-parentage +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/check-phedex-dbs-status +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/check-request-wq-status +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/clean-oracle +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/combineMinifyWMStats.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/couch-thrash.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/couch_archiver.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/create-iam-token.sh +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/createStoreResults.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/dbsbuffer-file-fix.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/deploy-rpm-to-jenkins.sh +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/fix-dbs-parentage +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/inject-to-config-cache +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/kill-workflow-in-agent +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/kill-workflow-in-global +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/make-local-clones.sh +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/outputmodules-from-config +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/patchComponent.sh +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/paused-jobs +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/purgeDeletedCouchDoc.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/reqmgr-put-default-config +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/reqmgr-sw-update +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/vaildateCMSSWMergeVersion +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmagent-couchapp-init +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmagent-delete-couchdb-workflow +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmagent-resource-control +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmagent-unregister-wmstats +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmagent-upload-config +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmagent-workqueue +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmc-dist-patch +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmc-dist-unpatch +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmc-httpd +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmcore-db-init +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmcore-new-config +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmcore-new-flow +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/bin/wmcoreD +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/requirements.txt +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/setup.cfg +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/setup.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/setup_build.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/setup_dependencies.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/CouchDBLogo.png +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/DMWMLogo.png +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/collections.html +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/displaycollection.html +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/index.html +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/style/main.css +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_id +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/couchapp.json +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/filters/filterDeletedDocs.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/rewrites.json +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/validate_doc_update.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/vendor/acdc/_attachments/acdc.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/byCollectionName/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/byCollectionName/reduce.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/byTimestamp/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_count/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_count/reduce.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_docs/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_docs/reduce.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/.couchappignore +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/.couchapprc +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/_attachments/index.html +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/_attachments/style/main.css +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/_id +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/couchapp.json +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/updates/newgroup.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/updates/newuser.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/updates/ownthis.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/README.md +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/_attachments/jquery.couchapp.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/couchapp.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/date.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/metadata.json +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/path.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/template.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/groupuser/_attachments/groupuser.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/views/group_members/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/views/groups/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/views/name_map/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/views/owner_group_user/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/views/users/map.js +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/Collection.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/CollectionTypes.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/CouchCollection.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/CouchFileset.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/CouchService.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/DataCollectionService.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/Fileset.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/ACDC/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Algorithms/ParseXMLFile.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Algorithms/Permissions.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Algorithms/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Configuration.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/File.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/Fileset.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/Job.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/JobGroup.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/JobPackage.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/LumiList.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/Mask.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/Pickleable.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/Run.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/Subscription.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/WMObject.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/WorkUnit.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/Workflow.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/DataStructs/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/CMSCouch.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/ConfigDBMap.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/CouchUtils.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/DBCore.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/DBCreator.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/DBExceptionHandler.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/DBFactory.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/DBFormatter.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/Dialects.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/ExecuteDAO.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/MongoDB.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/MySQLCore.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/ResultSet.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/Transaction.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/ipy_profile_couch.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/GroupUser/CouchObject.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/GroupUser/Decorators.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/GroupUser/Group.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/GroupUser/Interface.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/GroupUser/User.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/GroupUser/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Lexicon.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Services/Requests.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Services/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Services/pycurl_manager.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/WMException.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Wrappers/JsonWrapper/JSONThunker.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Wrappers/JsonWrapper/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Wrappers/__init__.py +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/acdcserver.egg-info/dependency_links.txt +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/acdcserver.egg-info/requires.txt +0 -0
- {acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/acdcserver.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
"""
|
|
3
|
+
File : adjustMongoDocs.py
|
|
4
|
+
Author : Valentin Kuznetsov <vkuznet AT gmail dot com>
|
|
5
|
+
Description: adjust documents in MongoDB with given schema
|
|
6
|
+
The script loops over given db documents (from given db name
|
|
7
|
+
and collection) and add to each document a new schema provided
|
|
8
|
+
via input file name, e.g.
|
|
9
|
+
|
|
10
|
+
# new schema addition:
|
|
11
|
+
cat > /tmp/schema.json << EOF
|
|
12
|
+
{"foo": 1}
|
|
13
|
+
EOF
|
|
14
|
+
|
|
15
|
+
# run script to update all documents in test.test database and add to them
|
|
16
|
+
# a json structure presented in /tmp/schema.json file
|
|
17
|
+
adjustMongoDocs.py --fin=/tmp/schema.json --dburi=localhost:8230 --dbname=test --dbcoll=test --verbose 1
|
|
18
|
+
|
|
19
|
+
NOTE: the script can run from any location assuming it has proper db uri with
|
|
20
|
+
credentials and availability of mongo db outside of its own cluster, but most
|
|
21
|
+
likely it will be run on mongo db k8s cluster
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
import argparse
|
|
25
|
+
import json
|
|
26
|
+
from pymongo import MongoClient
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class OptionParser(object):
|
|
30
|
+
"Helper class to handle script options"
|
|
31
|
+
|
|
32
|
+
def __init__(self):
|
|
33
|
+
"User based option parser"
|
|
34
|
+
self.parser = argparse.ArgumentParser(prog='PROG')
|
|
35
|
+
self.parser.add_argument("--fin", action="store",
|
|
36
|
+
dest="fin", default="", help="Input file with update fields")
|
|
37
|
+
self.parser.add_argument("--dburi", action="store",
|
|
38
|
+
dest="dburi", default="", help="MongoDB URI")
|
|
39
|
+
self.parser.add_argument("--dbname", action="store",
|
|
40
|
+
dest="dbname", default="", help="MongoDB database")
|
|
41
|
+
self.parser.add_argument("--dbcoll", action="store",
|
|
42
|
+
dest="dbcoll", default="", help="MongoDB collection")
|
|
43
|
+
self.parser.add_argument("--verbose", action="store",
|
|
44
|
+
dest="verbose", default=0, help="verbosity level")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def adjust():
|
|
48
|
+
"""
|
|
49
|
+
helper script to update documents in MongoDB with given db name/collection
|
|
50
|
+
and schema file (which should contain new addition, in form of JSON, to the
|
|
51
|
+
db documents)
|
|
52
|
+
"""
|
|
53
|
+
optmgr = OptionParser()
|
|
54
|
+
opts = optmgr.parser.parse_args()
|
|
55
|
+
conn = MongoClient(host=opts.dburi)
|
|
56
|
+
dbname = opts.dbname
|
|
57
|
+
dbcoll = opts.dbcoll
|
|
58
|
+
verbose = opts.verbose
|
|
59
|
+
schema = {}
|
|
60
|
+
with open(opts.fin, 'r', encoding='utf-8') as istream:
|
|
61
|
+
schema = json.load(istream)
|
|
62
|
+
if schema:
|
|
63
|
+
if verbose:
|
|
64
|
+
print("read data from '%s', %s/%s" % (opts.dburi, dbname, dbcoll))
|
|
65
|
+
records = [r for r in conn[dbname][dbcoll].find()]
|
|
66
|
+
for doc in records:
|
|
67
|
+
if verbose:
|
|
68
|
+
print("update doc=%s with schema=%s" % (doc, schema))
|
|
69
|
+
conn[dbname][dbcoll].update_one(doc, {'$set': schema}, upsert=True)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
if __name__ == '__main__':
|
|
73
|
+
adjust()
|
|
@@ -281,12 +281,11 @@ def insertTestCampaigns(mgr):
|
|
|
281
281
|
'SecondaryLocation': ["T1_US_FNAL_Disk", "T2_CH_CERN"],
|
|
282
282
|
'SiteBlackList': [], 'SiteWhiteList': ["T1_US_FNAL", "T2_CH_CERN"]}
|
|
283
283
|
|
|
284
|
-
testCamp = ("
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"HG2209_Val", "HG2210_Val", "HG2211_Val", "HG2212_Val", "HG2301_Val")
|
|
284
|
+
testCamp = ("CMSSW_7_3_2__test2inwf-1510737328", "CMSSW_11_2_0_pre6__fullsim_noPU_2021_14TeV-1599843628",
|
|
285
|
+
"RelVal_Generic_Campaign", "DMWM_Test", "Integ_Test",
|
|
286
|
+
"Agent227_Val", "Agent229_Val", "Agent2211_Val",
|
|
287
|
+
"Nov2023_Val", "Dec2023_Val", "Jan2024_Val", "Feb2024_Val", "Mar2024_Val"
|
|
288
|
+
"HG2312_Val", "HG2401_Val", "HG2402_Val", "HG2403_Val")
|
|
290
289
|
for campName in testCamp:
|
|
291
290
|
defaultCamp['CampaignName'] = campName
|
|
292
291
|
upload(mgr, defaultCamp)
|
|
@@ -288,6 +288,13 @@ def modifyConfiguration(config, **args):
|
|
|
288
288
|
if hasattr(config, "ArchiveDataReporter"):
|
|
289
289
|
config.ArchiveDataReporter.WMArchiveURL = args["wmarchive_url"]
|
|
290
290
|
|
|
291
|
+
# custom WMArchiveReporter
|
|
292
|
+
if hasattr(config, "WorkflowUpdater"):
|
|
293
|
+
config.WorkflowUpdater.rucioUrl = args["rucio_host"]
|
|
294
|
+
config.WorkflowUpdater.rucioAuthUrl = args["rucio_auth"]
|
|
295
|
+
if args.get("mspileup_url", None):
|
|
296
|
+
config.WorkflowUpdater.msPileupUrl = args["mspileup_url"]
|
|
297
|
+
|
|
291
298
|
return config
|
|
292
299
|
|
|
293
300
|
|
|
@@ -315,7 +322,7 @@ def main(argv=None):
|
|
|
315
322
|
"reqmgr2_url=", "acdc_url=", "amq_auth_file=", "dbs3_url=",
|
|
316
323
|
"dqm_url=", "grafana_token=", "requestcouch_url=", "central_logdb_url=",
|
|
317
324
|
"wmarchive_url=", "amq_credentials=",
|
|
318
|
-
"rucio_account=", "rucio_host=", "rucio_auth="])
|
|
325
|
+
"rucio_account=", "rucio_host=", "rucio_auth=", "mspileup_url="])
|
|
319
326
|
|
|
320
327
|
except getopt.error as msg:
|
|
321
328
|
raise Usage(msg)
|
|
@@ -339,7 +346,7 @@ def main(argv=None):
|
|
|
339
346
|
'--amq_auth_file', '--dbs3_url', '--dqm_url',
|
|
340
347
|
'--grafana_token', '--requestcouch_url', '--central_logdb_url',
|
|
341
348
|
'--wmarchive_url', '--amq_credentials',
|
|
342
|
-
'--rucio_account', '--rucio_host', '--rucio_auth'):
|
|
349
|
+
'--rucio_account', '--rucio_host', '--rucio_auth', '--mspileup_url'):
|
|
343
350
|
parameters[option[2:]] = value
|
|
344
351
|
|
|
345
352
|
|
|
@@ -49,6 +49,7 @@ bin/wmcore-new-flow
|
|
|
49
49
|
bin/wmcoreD
|
|
50
50
|
bin/HWMon/wmcore-SysStat
|
|
51
51
|
bin/adhoc-scripts/ParseSpecCmsswdist.py
|
|
52
|
+
bin/adhoc-scripts/adjustMongoDocs.py
|
|
52
53
|
bin/adhoc-scripts/checkDsetFileCount.py
|
|
53
54
|
bin/adhoc-scripts/checkStuckLQE.py
|
|
54
55
|
bin/adhoc-scripts/createPileupObjects.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/collections.html
RENAMED
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/_attachments/displaycollection.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/vendor/acdc/_attachments/acdc.js
RENAMED
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/byCollectionName/map.js
RENAMED
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/byCollectionName/reduce.js
RENAMED
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_count/map.js
RENAMED
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_count/reduce.js
RENAMED
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_docs/map.js
RENAMED
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/ACDC/views/coll_fileset_docs/reduce.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/_attachments/style/main.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/README.md
RENAMED
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/couchapp.js
RENAMED
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/metadata.json
RENAMED
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/vendor/couchapp/template.js
RENAMED
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/views/group_members/map.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/couchapps/GroupUser/views/owner_group_user/map.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Database/DBExceptionHandler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Wrappers/JsonWrapper/JSONThunker.py
RENAMED
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/WMCore/Wrappers/JsonWrapper/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{acdcserver-2.2.6rc2 → acdcserver-2.2.6rc4}/src/python/acdcserver.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|