WMAgent: Implement adding of opportunistic resources with the new initialization model #11722
Labels
containerization
deployment
Issue related to deployment of the services
High Priority
New Feature
WMAgent
Impact of the new feature
WMAgent
Is your feature request related to a problem? Please describe.
While developing the main parts of the new WMAgent initialization model, we did not consider adding everything that was previously there at once. One of the leftovers (to be implemented once we have everything properly tested) is the step for adding new opportunistic resources.
So far a list of sites was hard coded in the
deploy-wmagent.sh
script at:WMCore/deploy/deploy-wmagent.sh
Lines 373 to 386 in de110cc
With the new docker container init procedures we can implement it as configurable and make the list to be refreshed at runtime. That way we can avoid hard coded values in the scripts and the need of additional PRs on every request to add a new opportunistic site.
Describe the solution you'd like
Fetch the list of opportunistic resources at runtime (possibly through WMAgent.secrets file or alternative) and check if new resource has showed up and if yes add it as usual. This would reduce the action of joining a new resource of the kind to just a WMAgent reboot.
Describe alternatives you've considered
None - It is a must do
Additional context
This issue is a followup on:
And is part of this meta issue:
The text was updated successfully, but these errors were encountered: