-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign the correct activity for Tape_Test RSEs #11067
Conversation
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for providing this patch, Jhonatan. Please see a couple of comments along the code.
@@ -465,7 +465,7 @@ def insertContainerRules(self): | |||
grouping="ALL", | |||
comment=ruleComment, | |||
meta=self.metaData) | |||
if not rseName.endswith("_Tape"): | |||
if "Tape" not in rseName: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a risky check, and given that we never produce data at a Tape
endpoint, I would suggest to revert this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, the way how this check has been implemented originally is better.
@@ -529,7 +529,7 @@ def _activityMap(self, rseName): | |||
""" | |||
if not self.isT0agent and not rseName.endswith("_Tape"): | |||
return "Production Output" | |||
elif self.isT0agent and rseName.endswith("_Tape"): | |||
elif self.isT0agent and "Tape" in rseName: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest a check like:
elif self.isT0agent and (rseName.endswith("_Tape") or rseName.endswith("_Tape_Test"):
People are very creative and I wouldn't be surprised to, one day, see a Disk endpoint with Tape
in its name :-D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can second Alan's suggestion here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Jhonatan
I have basically agreed with Alan's suggestions here too. Please take a look the comments inline.
@@ -529,7 +529,7 @@ def _activityMap(self, rseName): | |||
""" | |||
if not self.isT0agent and not rseName.endswith("_Tape"): | |||
return "Production Output" | |||
elif self.isT0agent and rseName.endswith("_Tape"): | |||
elif self.isT0agent and "Tape" in rseName: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can second Alan's suggestion here.
@@ -465,7 +465,7 @@ def insertContainerRules(self): | |||
grouping="ALL", | |||
comment=ruleComment, | |||
meta=self.metaData) | |||
if not rseName.endswith("_Tape"): | |||
if "Tape" not in rseName: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, the way how this check has been implemented originally is better.
c3aa6b6
to
45b5a89
Compare
Jenkins results:
|
45b5a89
to
60c9e7e
Compare
Jenkins results:
|
Add the proper activity for the T0-Agent when is subscribing data to Tape_Test rses.
60c9e7e
to
bb8cd78
Compare
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jhonatanamado
looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jhonatanamado this is even a better implementation than the one suggested. I wasn't aware we could check it against a tuple! Thanks
Fixes #11046
Status
Tested with a replay
Description
Add the proper activity for the T0-Agent when is subscribing data to Tape_Test rses. Small changes on how this code recognize a Tape_Test RSE. With this changes, the rule replica subscribed to T0_CH_CERN_Tape_Test gives the following:
Is it backward compatible (if not, which system it affects?)
Maybe
Related PRs
None
External dependencies / deployment changes
None