ReqMgr2 - CouchDB request docs null fields

* some fields removed from CouchDB (useless)
* majority of other CouchDB fields is not properly set and updated (e.g.
  Status or Priority as changed on the request)
* reqmgr.py --allTests checks Oracle, CouchDB consistency, at least partly now

Fixes #4380
handle when couch has problem. keep accountant going and retry logcollect accounting
Restore the T2_XX_SiteA/B/C sites, SEs and CEs

This is needed for WorkQueue unit tests to work
Merge pull request #4485 from dballesteros7/FixUnitTests

Restore the T2_XX_SiteA/B/C sites, SEs and CEs
Merge pull request #4466 from zdenekmaxa/reqmgr2-couchdb-request-fields-updated

ReqMgr2 - CouchDB request docs null fields
Fix most unit tests

Several unit tests were broken because of broken logic, not infrastructure
issues or edge cases. Fixed those to have a cleaner testing environment.

Removed most test from the allowed_failing_tests. The only survivors
are the ReqMgr tests which I can't figure out why they are broken in Jenkins only
and the REST tests which are broken locally too. Someone with more knowledge
of the REST stuff can fix those. Here is the breakdown of changes an explanations:

WMCore_t_ResourceControl_t_ResourceControl_t_ResourceControlTest_testInsertAllSE : New SiteDB emulator had a broken function.
WMComponent_t_RetryManager_t_RetryManager_t_RetryManagerTest_testA_Create : Create cooloff transitions to created instead of new
WMComponent_t_RetryManager_t_RetryManager_t_RetryManagerTest_testY_MultipleIterations : Create cooloff transitions to created instead of new
WMBS_t_WorkQueueTest_testWorkQueueService : Unit test was missing the creation of the BossAir schema
WMCore_t.WorkQueue_t.Policy_t.Start_t.Block_t.BlockTestCase.WMCore_t.WorkQueue_t.Policy_t.Start_t.Block_t.BlockTestCase.testWhiteBlackLists  : Unit test was broken after latest fixes
WMCore_t.WorkQueue_t.Policy_t.Start_t.ResubmitBlock_t.ResubmitBlockTest.WMCore_t.WorkQueue_t.Policy_t.Start_t.ResubmitBlock_t : All tests broken after SiteDB emulator change
WMCore_t.WorkQueue_t.Policy_t.Start_t.Dataset_t.DatasetTestCase.WMCore_t.WorkQueue_t.Policy_t.Start_t.Dataset_t.DatasetTestCase.testWhiteBlackLists : Tests were not properly resetting the defaults after every test.
WMCore_t.BossAir_t.GLiteLIParser_t.LoggingInfoParserTest.WMCore_t.BossAir_t.GLiteLIParser_t : Needed test files in a big commit with no apparent reason, restored them.
WMComponent_t.AlertGenerator_t.Pollers_t.Agent_t.AgentTest.WMComponent_t.AlertGenerator_t.Pollers_t.Agent_t.AgentTest.testComponentsPollerBasic : Can't assure no children condition in Jenkins
UserFileCache_t.UserFileCacheTest.UserFileCache_t.UserFileCacheTest.testChecksum : Needed test files in a big commit with no apparent reason, restored them.
WMCore_t.Services_t.WMStats_t.WMStats_t.WMStatsTest.WMCore_t.Services_t.WMStats_t.WMStats_t.WMStatsTest.testWMStatsWriter  : Change in response message broke unit test
WMCore_t.Storage_t.Plugins_t.DCCPFNALImpl_t.py : Test module and module-under-test are broken. Fixed imports only and added test to blacklist
WMCore_t.Storage_t.Plugins_t.SRMV2Impl_t.py : Test module and module-under-test are broken. Fixed imports only and added test to blacklist
WMCore_t.Services_t.pycurlFileUpload_t.py : Fixed updated imports and test functionality
WMCore_t.Services_t.DBS_t.DBSReader_t.DBSReaderTest.WMCore_t.Services_t.DBS_t.DBSReader_t.DBSReaderTest.testGetDBSSummaryInfo : Test was not marked properly as integration
WMCore_t.WMBS_t.JobSplitting_t.ParentlessMergeBySize_t.ParentlessMergeBySizeTest.WMCore_t.WMBS_t.JobSplitting_t.ParentlessMergeBySize_t.ParentlessMergeBySizeTest.testLocationMerging : Test was outdated compared to the setup method.
Merge pull request #4487 from dballesteros7/Clean-Up-UnitTests

Fix most unit tests
Add TransientOutputModules to TaskChain

Same functionality as in ReReco, some modules can be kept unmerged if
necessary in order to reduce the output but allow subsequent processing.

The parameter per task is TransientOutputModules, also KeepOutput is still
valid and can be used to wipe all the output in the task to unmerged. If
KeepOutput is False then TransientOutputModules doesn't have any effect.

Fixes #4474
Fixes automatic testing of TaskChain requests

TaskChain requests JSON template files had CouchURL argument defined. Which
overrides ConfigCacheUrl. This could have possibly worked only on the defined
host which was testbed, but failed with CouchInternalError otherwise.
Merge pull request #4489 from zdenekmaxa/reqmgr2-couchdb-database-consistency-fix

Fixes automatic testing of TaskChain requests
fix missing input files
0.9.51

Signed-off-by: Zdenek Maxa <zdenek.maxa@cern.ch>
Add support for the splitting page in reqmgr.py

Add basic support for changing the splitting
with the reqmgr.py script, it is available
through another section in the JSON files.

Also incorporate splitting change in the
allTests procedure.
Merge pull request #4470 from dballesteros7/extendReqMgrScript

Add support for the splitting page in reqmgr.py
Fix wrong ScramArch info on view details page

-Fix wrong ScramArch info on view details page: set of values was nicely
hardcoded in the page definition regardless of the actual values in the
request, shows it correctly now

-CMSSWVersion, ScrachArch and GlobalTag were made immutable on this page.
ScramArch could not have possibly worked anyway.

-links from view/details page to Original Config and TweakFile would yield
Server Error 500 if a request was created with ConfigCache document coming
from a host different from where ReqMgr runs (using ConfigCacheUrl argument).
This was fixed too.

Fixes #4249
Merge pull request #4492 from zdenekmaxa/reqmgr-fix-wrong-scramarch-in-view-page

Fix wrong ScramArch info on view details page
Removed User, Group, Base request priorities

Removes handling of
    ReqMgrGroupBasePriority
    ReqMgrRequestBasePriority
    ReqMgrRequestorBasePriority

Oracle tables values are still there and Oracle database wasn't and won't be
altered, but above values are not used anymore in the code. Only a single
inject and request parameter 'RequestPriority' is now used. It's value is
updated absolutely, not by offset as it probably was the previous intention
(as agreed via IM by @efajardo).

Value of reqmgr_assignment:priority_modifier from database definition - also
ignored, as well as a bunch of priority related database table columns, as
said above, except for reqmgr_request:request_priority value. This always
agrees with CouchDB "RequestPriority" document field.

unittests and reqmgr.py --allTests OK

Fixes #4465
Merge pull request #4494 from zdenekmaxa/reqmgr-fix-priority-issue-4465

Removed User, Group, Base request priorities
Fixed ReqMgr links, user/group priorities removed

- some links to reqmgr/view broken (Template not found) - fixed, offers
  default ReqMgr Browser page
- DAOs, APIs and all related code to user and group priorities completely
  removed, as confirmed by @efajardo, Ops have never used it (and it would
  have hardly worked if they had)
- yuiserver link removed

Someone (@efajardo) should comment if links to GlobalMonitor or broken
"monitorSvc" should be kept on the ReqMgr page.
Merge pull request #4495 from zdenekmaxa/reqmgr-fix-broken-links-user-group-priority-further-removal

Fixed ReqMgr links, user/group priorities removed