Repository: rucio/rucio

Issue:
Rename "Data rebalancing" activity to "Data Rebalancing"
Motivation
----------

Currently, except for "Data rebalancing", all the activities are spelled in "Start Case", e.g., with the first letter of each word being capitalized. see for example [generic.py#L37-L44](https://github.com/rucio/rucio/blob/master/lib/rucio/common/schema/generic.py#L37-L44) .

Modification
------------
For the sake of coherence, we shall capitalize the 'r' in "Data rebalancing".

To preserve compatibility,  the change should be introduced in steps:
1. a new activity "Data Rebalancing" is defined, coexisting with the old "Data rebalancing"
2. new instantiated rules will use the new activity, while the old rules' activity field is edited/updated
3. the old activity "Data rebalancing" is removed

Note: the implication of such changes have to be discussed with monit.


Discussion:
More on this before a PR is forwarded. We currently have:

```
# grep -irn "Data rebalancing" ./rucio
./lib/rucio/common/schema/atlas.py:39:            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing",
./lib/rucio/common/schema/belleii.py:39:            "enum": ["Data Consolidation", "Data Rebalancing",
./lib/rucio/common/schema/cms.py:39:            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing",
./lib/rucio/common/schema/escape.py:39:            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing",
./lib/rucio/common/schema/generic.py:39:            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing",
./lib/rucio/common/schema/generic_multi_vo.py:40:            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing",
./lib/rucio/common/schema/icecube.py:39:            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing",
./lib/rucio/common/schema/lsst.py:39:            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing",
./lib/rucio/daemons/bb8/common.py:668:                        activity="Data rebalancing",
```
It shall be decided whether the change should target the schemas for atlas only, atlas and/or generic*, and/or any other combination. 

Resolving patch:
diff --git a/lib/rucio/common/schema/atlas.py b/lib/rucio/common/schema/atlas.py
--- a/lib/rucio/common/schema/atlas.py
+++ b/lib/rucio/common/schema/atlas.py
@@ -36,7 +36,7 @@
 
 ACTIVITY = {"description": "Activity name",
             "type": "string",
-            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing", "Data Rebalancing",
+            "enum": ["Data Brokering", "Data Consolidation", "Data Rebalancing",
                      "Debug", "Express", "Functional Test", "Functional Test XrootD",
                      "Functional Test WebDAV", "Group Subscriptions",
                      "Production Input", "Production Output",
diff --git a/lib/rucio/common/schema/generic.py b/lib/rucio/common/schema/generic.py
--- a/lib/rucio/common/schema/generic.py
+++ b/lib/rucio/common/schema/generic.py
@@ -36,7 +36,7 @@
 
 ACTIVITY = {"description": "Activity name",
             "type": "string",
-            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing", "Data Rebalancing",
+            "enum": ["Data Brokering", "Data Consolidation", "Data Rebalancing",
                      "Debug", "Express", "Functional Test", "Group Subscriptions",
                      "Production Input", "Production Output",
                      "Analysis Input", "Analysis Output", "Staging",
diff --git a/lib/rucio/common/schema/generic_multi_vo.py b/lib/rucio/common/schema/generic_multi_vo.py
--- a/lib/rucio/common/schema/generic_multi_vo.py
+++ b/lib/rucio/common/schema/generic_multi_vo.py
@@ -37,7 +37,7 @@
 
 ACTIVITY = {"description": "Activity name",
             "type": "string",
-            "enum": ["Data Brokering", "Data Consolidation", "Data rebalancing", "Data Rebalancing",
+            "enum": ["Data Brokering", "Data Consolidation", "Data Rebalancing",
                      "Debug", "Express", "Functional Test", "Group Subscriptions",
                      "Production Input", "Production Output",
                      "Analysis Input", "Analysis Output", "Staging",


Test patch: