Skip to content

Commit b58384c

Browse files
committed
fix: even more setup removals
1 parent 6997c75 commit b58384c

File tree

9 files changed

+7
-24
lines changed

9 files changed

+7
-24
lines changed

docs/source/AdministratorGuide/Configuration/ConfigurationStructure/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ in the order of preference of the option resolution:
5252
For all the DIRAC commands there is option '-o' defined which takes one configuration option
5353
setting. For example::
5454

55-
dirac-wms-job-submit job.jdl -o /DIRAC/Setup=Dirac-Production
55+
dirac-wms-job-submit job.jdl
5656

5757
*Command line argument specifying a CFG file*
5858
A config file can be passed to any dirac command with the ``--cfg`` flag::

docs/source/AdministratorGuide/Systems/WorkloadManagement/Pilots/index.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,6 @@ A simple example using the LHCbPilot extension follows::
215215
DIRAC_SITE="${i#*=}"
216216
shift
217217
;;
218-
--lhcb-setup=*)
219-
LHCBDIRAC_SETUP="${i#*=}"
220-
shift
221-
;;
222218
--ce-name=*)
223219
CE_NAME="${i#*=}"
224220
shift
@@ -237,8 +233,6 @@ A simple example using the LHCbPilot extension follows::
237233
esac
238234
done
239235

240-
# Default if not given explicitly
241-
LHCBDIRAC_SETUP=${LHCBDIRAC_SETUP:-LHCb-Production}
242236

243237
# JOB_ID is used by when reporting LocalJobID by DIRAC watchdog
244238
#export JOB_ID="$VMTYPE:$VM_UUID"
@@ -270,7 +264,6 @@ A simple example using the LHCbPilot extension follows::
270264

271265
#run the dirac-pilot script
272266
python dirac-pilot.py \
273-
--setup $LHCBDIRAC_SETUP \
274267
--project LHCb \
275268
--Name "$CE_NAME" \
276269
--name "$1" \

docs/source/DeveloperGuide/AddingNewComponents/CheckYourInstallation/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ We will now play with a **dirac.cfg** file. For these exercises you can use the
102102
Try this::
103103

104104
>>> from DIRAC import gConfig
105-
>>> gConfig.getValue('/DIRAC/Setup')
106-
'DeveloperSetup'
105+
>>> gConfig.getValue('/DIRAC/DefaultGroup')
106+
'dirac_user'
107107

108-
Where does 'DeveloperSetup' come from? Open that dirac.cfg and search for it. Got it? it's in::
108+
Where does 'dirac_user' come from? Open that dirac.cfg and search for it. Got it? it's in::
109109

110110
DIRAC
111111
{
112112
...
113-
Setup = DeveloperSetup
113+
DefaultGroup = dirac_user
114114
...
115115
}
116116

docs/source/DeveloperGuide/DevelopmentEnvironment/DeveloperInstallation/interactingWithProductionSetups.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ So, the only real thing that you need to have is:
1111

1212
- a DIRAC developer installation
1313
- a (real) certificate, that is recognized by your server installation
14-
- a dirac.cfg that include the (real) setup of the production environment that you want to connect to (in DIRAC/Setup section)
1514
- a dirac.cfg that include the (real) URL of the production Configuration server.
1615

1716
The last 2 bullets can be achieved with the following command::

docs/source/DeveloperGuide/Internals/Core/ClientServer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ Complete path of packages are not on the diagram for readability:
166166
- requestHandler: :py:class:`DIRAC.Core.DISET.RequestHandler`
167167

168168

169-
You can see that the client sends a proposalTuple, proposalTuple contain (service, setup, ClientVO) then (typeOfCall, method) and finaly extra-credentials.
169+
You can see that the client sends a proposalTuple, proposalTuple contain (service, ClientVO) then (typeOfCall, method) and finaly extra-credentials.
170170
e.g.::
171171

172-
(('Framework/serviceName', 'DeveloperSetup', 'unknown'), ('RPC', 'methodName'), '')
172+
(('Framework/serviceName', 'unknown'), ('RPC', 'methodName'), '')
173173

174174

175175

src/DIRAC/Core/scripts/dirac_configure.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,6 @@ def runDiracConfigure(params):
493493
else:
494494
DIRAC.gLogger.notice(f"Will update {DIRAC.gConfig.diracConfigFilePath}")
495495

496-
if params.setup:
497-
DIRAC.gLogger.verbose("/DIRAC/Setup =", params.setup)
498496
if params.vo:
499497
DIRAC.gLogger.verbose("/DIRAC/VirtualOrganization =", params.vo)
500498
if params.configurationServer:

src/DIRAC/MonitoringSystem/Service/MonitoringHandler.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ def initializeHandler(cls, serviceInfo):
7171
return S_ERROR(f"Data location is not writable: {repr(err)}")
7272
gDataCache.setGraphsLocation(dataPath)
7373

74-
cls.diracSetup = CSGlobals.getSetup().lower()
75-
7674
return S_OK()
7775

7876
types_listUniqueKeyValues = [str]
@@ -277,7 +275,6 @@ def export_addRecords(self, indexname, monitoringType, data):
277275
:param list data: data to insert
278276
:returns: S_OK or S_ERROR
279277
"""
280-
indexname = f"{self.diracSetup.lower()}_{indexname}"
281278
gLogger.debug("Bulk index:", indexname)
282279
mapping = self.__db.getMapping(monitoringType)
283280
gLogger.debug("Mapping:", mapping)
@@ -292,7 +289,6 @@ def export_deleteIndex(self, indexName):
292289
293290
:param str indexName: name of the index
294291
"""
295-
indexName = f"{self.diracSetup.lower()}_{indexName}"
296292
gLogger.debug("delete index:", indexName)
297293
return self.__db.deleteIndex(indexName)
298294

tests/CI/install_client.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ echo -e "*** $(date -u) **** Got the DIRAC tests ****\n"
5151

5252
source "${DIRAC_CI_SETUP_SCRIPT}"
5353
# shellcheck disable=SC2034
54-
DIRACSETUP=$(< "${INSTALL_CFG_FILE}" grep "Setup = " | cut -f5 -d " ")
5554

5655
echo -e "*** $(date -u) **** Client INSTALLATION START ****\n"
5756

tests/Integration/TornadoServices/Test_TornadoAndDISETmixed.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
```
5757
DIRAC
5858
{
59-
Setup = DeveloperSetup
6059
Configuration
6160
{
6261
Servers = dips://localhost:9135/Configuration/Server # Case 1
@@ -95,7 +94,6 @@
9594
```
9695
DIRAC
9796
{
98-
Setup = DeveloperSetup
9997
Configuration
10098
{
10199
Servers = dips://localhost:9135/Configuration/Server

0 commit comments

Comments
 (0)