Skip to content
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

Deploy and run WMAgent with Docker container #11314

Open
30 of 36 tasks
amaltaro opened this issue Oct 3, 2022 · 9 comments
Open
30 of 36 tasks

Deploy and run WMAgent with Docker container #11314

amaltaro opened this issue Oct 3, 2022 · 9 comments
Labels
containerization deployment Issue related to deployment of the services Low Priority WMAgent
Milestone

Comments

@amaltaro
Copy link
Contributor

amaltaro commented Oct 3, 2022

Impact of the new feature
WMAgent

Is your feature request related to a problem? Please describe.
Once we have all the WMAgent dependencies sorted out, we should start looking into running WMAgent from a Docker image, making the process of updating our baseline code easier by just stopping the container and pulling a new one.

Describe the solution you'd like
With WMAgent package in PyPi, and a WMAgent docker image uploaded to Gitlab registry, we should complete the cycle such that we are able to run WMAgent using a Docker image, completing the deprecation and dependency on RPM packages.

This is a meta-issue for commissioning a Docker-based WMAgent environment for central production. It depends on the following sub-tasks:

These are now planned for Q1/2024 (updated on Feb/8/2024):

And the following shall be finished in the beginning of Q2/2024:

while the following tickets will be addressed in a later stage, as they are not critical for the functionality of the containerized solution:

Describe alternatives you've considered
None

Additional context
Related to:

Dependent on:
#11312
and
#11313

@amaltaro amaltaro added WMAgent deployment Issue related to deployment of the services containerization labels Oct 3, 2022
@vkuznet vkuznet self-assigned this Jan 9, 2023
@vkuznet
Copy link
Contributor

vkuznet commented Jan 9, 2023

@amaltaro we do already have wmagent Dockerfile and image but we do not have wmagent configuration. If you'll provide its configuration in services_config gitlab repo then I can test it in dev cluster.

@amaltaro
Copy link
Contributor Author

amaltaro commented Jan 9, 2023

Valentin, I am afraid we don't have budget to work on it this quarter, hence it has not been even considered for Q1/2023.
We will get back to this in one of the next quarters.

@amaltaro
Copy link
Contributor Author

amaltaro commented May 9, 2023

Meta-issue updated with other relevant tickets created in the last week or two. Please let me know if anything is still missing in here. @vkuznet @todor-ivanov @khurtado

@vkuznet
Copy link
Contributor

vkuznet commented May 9, 2023

@amaltaro , I think we are missing the part of deployment on a specific infrastructure. For example, if we'll deploy WMA using docker compose, then we'll need specific manifest file(s), etc. On top of that we should make a decision which orchestration to use. For details between different solution I suggest to google it, e.g. here is nice comparison. Therefore, I would suggest to create a dedicated issue related to that.

@amaltaro
Copy link
Contributor Author

amaltaro commented May 9, 2023

@vkuznet Valentin, that is a good point! We will need to have a final manifest/template integrating all the objects/containers required for running WMAgent in a containerized mode. If you feel like creating it, please go ahead. Otherwise I will get to it tomorrow.

@amaltaro
Copy link
Contributor Author

@todor-ivanov thank you for updating this meta issue with the new tickets resulted from:
dmwm/CMSKubernetes#1410

@todor-ivanov
Copy link
Contributor

todor-ivanov commented Feb 6, 2024

As we discussed yesterday during the WMCore meeting, based on my previous experience with this containerization effort, I can point which are the most crucial and with highest priority issues to be resolved in order for WMCore Team to deliver this new functionality in the shortest possible timeline. I'll also add my high level view/feedback on the rest of the issues, but this will need to be confirmed during the dedicated effort on resolving them.

The 3 most important issues with absolutely no alternative for a workaround solution are:

Here follows the set of issues with feedback, which can be resolved with lower than maximum priority (as I said earlier, what ever I state here needs to be confirmed with a dedicated investigation/checks on the topic):

FYI @klannon @amaltaro

@amaltaro
Copy link
Contributor Author

amaltaro commented Feb 6, 2024

Thank you for sharing these insights, Todor.

I will soon start moving a few of these items under the Q1 quarter then, following your suggestion of: #11720, #11313, #11312. In addition, I inclined to say that the CI/Jenkins pipeline (issue #11568) should be updated accordingly and before we actually implement this new model in production, otherwise I fear it will be easier to insert issues into production.
We also need to pay closer attention to the Tier0 agent model and make sure that whenever central production is ready to migrate to the latest OS, that Tier0 agent can come along as well. For that, I created this new (meta-)issue: #11890

#11635 - The short answer to this issue is: Yes ,for the time being, we need to use the --network=host option for the WMAgent container at runtime, and NO it is not needed at container build time. At least until we decide to completely move to a fully distributed solution and deploy WMAgents in kuberenetes clusters. But from what I see, there is a long way until we reach to that point.

This is an important information and we better update the GH issue itself with this. Can you please update it?

@todor-ivanov
Copy link
Contributor

hi @amaltaro

I inclined to say that the CI/Jenkins pipeline (issue #11568) should be updated accordingly and before we actually implement this new model in production, otherwise I fear it will be easier to insert issues into production.

Well then, it makes it 4 of them to get in as high priority. I am still positive about the outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containerization deployment Issue related to deployment of the services Low Priority WMAgent
Projects
Status: ToDo
Development

No branches or pull requests

3 participants