-
Notifications
You must be signed in to change notification settings - Fork 107
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
WMAgent: Switch the new deployment model to less restrictive initialization mode #11990
WMAgent: Switch the new deployment model to less restrictive initialization mode #11990
Comments
And just as expected ... With the PR which is to fix the issue, here are the two builds of two sequential release candidates:
As one can see the FYI: @amaltaro |
@amaltaro @todor-ivanov I can test this once it is approved |
thanks @anpicci |
Reopening this issue in order to address the change of behavior mentioned in this comment: dmwm/CMSKubernetes#1466 (comment) |
hi @amaltaro,
I think this accomplishes the desired behavior. |
Impact of the new feature
Wmagent
Is your feature request related to a problem? Please describe.
In the current deployment model we have several levels of distinguishing which deployment we'd consider a fresh new one, meaning we are about to follow a full initialization process from scratch for the agent in question. At the current stage of development, such process induces a complete wipe out of all agent's data, especially the relational database. Here follows the explanation of those three different levels, together with the basic mechanism used for the implementation of this feature:
NOTE:
On every step of the initialization process we check the relevant
.init<step>
file content and we always compare the current$WMA_BUILD_ID
with the one previously initialized at the host.The
WMA_BUILD_ID
is a hash generated during the execution ofinstall.sh
at build time (for docker images) or deploy time for virtual env. There are three levels of comparison we can make:$WMA_BUILD_ID
should contain a sha256sum of a random variable$WMA_BUILD_ID
should contain a sha256sum of the whole$WMA_TAG
$WMA_TAG
in "relesae" and "patch/release candidate" part (or major minor if we want to call them) and the$WMA_BUILD_ID
should contain a sha256sum only of the main - version part, e.g.:The current implementation considers the first one - re-initialization on any WMAgent rebuild.
The current issue is to request a change of this behavior to shift from the most restrictive mechanism of initialization, to the last one - the least restrictive. So that we can identify a complete and fresh new deployment only on release change, and preserve the ability of the system push fixes in production by just release a patch version of the same agent and redeploying the container.
NOTE:
In addition to shifting the condition for triggering the initialization process based on the least restrictive criteria, we also have to think of two more aspects:
Describe the solution you'd like
Switch from most restrictive to the least restrictive mode of operation
Describe alternatives you've considered
None. It is a must.
Additional context
Part of the following meta issue: #11314
The text was updated successfully, but these errors were encountered: