Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enhancement: Improve the error messages of add-rule #867

Open
haozturk opened this issue Nov 25, 2024 · 0 comments
Open

Enhancement: Improve the error messages of add-rule #867

haozturk opened this issue Nov 25, 2024 · 0 comments

Comments

@haozturk
Copy link
Contributor

Enhancement Description

Following error messages has to be improved:

$ rucio add-rule --asynchronous --comment "CMSTRANSF-1036" cms:/WZTo3LNu_mllmin01_NNPDF31_TuneCP5_13TeV_powheg_pythia8/RunIIFall17MiniAODv2-PU2017_12Apr2018_94X_mc2017_realistic_v14-v4/MINIAODSIM 1 "T1_US_FNAL_Tape"
2024-11-25 11:58:15,446    ERROR    Access to the requested resource denied.
Details: Account transfer_ops can not add replication rule

fails since --ask-approval is missing.

$ rucio add-rule --asynchronous --comment "CMSDM-234" --lifetime 604000 --activity Debug cms:/ParkingBPH2/Run2018C-UL2018_MiniAODv2-v1/MINIAOD 1 "T2_US_MIT_Tape"
2024-11-22 16:43:29,890    ERROR    Access to the requested resource denied.
Details: Account transfer_ops can not add replication rule

fails since tape rules cannot have lifetime

Use Case

These error messages are misleading and doesn't give a clue to the user what's actually wrong.

Possible Solution

I haven't looked into the technical side of it, yet

Related Issues

@amanrique1 fyi

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant