Comments (6)
spiga: Please Review
from crabserver.
metson: * I think if the config doesn't have an agentDN it would be better to die in the init than set it to None (probably the same for SandBoxCache_* variables, too)
- args=[''] is probably not necessary in the addMethod calls (looks like a typo - you've changed another addMethod call to args=[] in the patch)
- what difference is there between getServerInfo and getServerStatus? I'd see these as the same thing
- naming of variables is quite inconsistent - e.g in the getServerInfo:
{{{
result['AgentDN'] = self.agentDN
result['my_proxy'] = 'myproxy.cern.ch'
result['sandboxCacheType'] = 'gridFtp'
# the following will change as soon as we follow up on #1305
# at the moment is gridFTP specific.
result['SandBoxCacheEndpoint'] = self.SandBoxCache_endpoint
result['port'] = self.SandBoxCache_port
result['basepath'] = self.SandBoxCache_basepath
}}}
could that become:
{{{
result['server_dn'] = self.agentDN
result['my_proxy'] = 'myproxy.cern.ch'
result['sandbox_type'] = 'gridFtp'
# the following will change as soon as we follow up on #1305
# at the moment is gridFTP specific.
result['sandbox_endpoint'] = self.SandBoxCache_endpoint
result['sandbox_port'] = self.SandBoxCache_port
result['sandbox_basepath'] = self.SandBoxCache_basepath
}}}
or even better:
{{{
result['server_dn'] = self.agentDN
result['my_proxy'] = 'myproxy.cern.ch'
result['sandbox'] = {}
result['sandbox']['type'] = 'gridFtp'
# the following will change as soon as we follow up on #1305
# at the moment is gridFTP specific.
result['sandbox']['endpoint'] = self.SandBoxCache_endpoint
result['sandbox']['port'] = self.SandBoxCache_port
result['sandbox']['basepath'] = self.SandBoxCache_basepath
}}} - there are no unit tests for this...
- there's some trailing whitespace which I'll clean up
If you like I can make those changes and submit a patch to this ticket while you work on the unit tests?
from crabserver.
spiga: as you wish.
I'm realizing that I didn't submitted the last version.
info and status were supposed to be different.. info should return informations for the server operations.. status should give the status of the agent.. but since we are going through the rest for reqmgr... this should be not more needed.. probably we should discuss this based on the final model we'll propose/deploy
from crabserver.
spiga: Please Review
from crabserver.
metson: Unit tests are being tracked on #1329
from crabserver.
metson: closed with c62ee1b
from crabserver.
Related Issues (20)
- #813: Test dev CRABClient using test2 REST instance and CMSSW_13_0_2 CMSSW release HOT 8
- checktaperecall - sometimes fails without clear cause HOT 4
- Improve PyPI images building process HOT 2
- #814: Test dev CRABClient using test2 REST instance and CMSSW_13_0_2 CMSSW release HOT 7
- RUCIO_Transfers should store also scope in filetransfersdb HOT 2
- rationalize configurations and common functions
- adapt Publisher_rucio to have rucio scope:name in tm_dbs_blockname HOT 2
- fix /opt/rucio/etc/rucio.cfg in pypi contaiiners
- [PyPI] Use local timezone for all images HOT 2
- avoid exiting container on command error HOT 4
- Change entrypoint of TW process to simple binary script
- keep tmp directory in TW only for 6 hours
- #815: Test prod CRABClient using test12 REST instance and CMSSW_13_0_2 CMSSW release HOT 7
- make text select via mouse for copy/paste work in pypi container
- stop extending TapeRecall rule when data is on disk HOT 3
- new DN for cmscrab service account
- FTS_Transfer does not handle external connection and bookkeeping properly, caused some files to be stale in the state "SUBMITTED" HOT 7
- incorrect handling of partial dataset
- Change entrypoint of Publisher process to simple binary script
- #816: Test prod CRABClient using preprod REST instance and CMSSW_13_0_2 CMSSW release HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crabserver.