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

Update core procedure enhancements #562

Merged
merged 6 commits into from
Jan 29, 2024
Merged

Update core procedure enhancements #562

merged 6 commits into from
Jan 29, 2024

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Jan 25, 2024

Change the update-core procedure to install the new core image before starting update of core modules. This is important to receive core updates that install fixes to Python libraries or execute Redis updates before any core module is updated.

For this purpose two new directories are defined and can be filled with helper scripts (commands):

  • update-core-pre-modules.d/
  • update-core-post-modules.d/

Failed scripts do not abort the update-core action. Such scripts are important because they are executed from the new core image, whilst action steps are executed from the old core image, at least until step 50update_core.

⚠️ Bear in mind that the list of action steps to run is generated by the cluster agent once, when the action is invoked: if the step list changes when the new core image is exploded, missing scripts and new scripts are ignored, whilst changed scripts after step 50update_core are executed from the new image.

The PR also implements a force flag in the update-core action, like the similar flag already implemented for update-module. The effect of passing force:true is propagated to update-module sub-tasks started to update core modules, too.

See also Updates in dev's manual page.

@DavidePrincipi DavidePrincipi self-assigned this Jan 25, 2024
@DavidePrincipi DavidePrincipi added the enhancement New feature or request label Jan 25, 2024
github-actions bot pushed a commit that referenced this pull request Jan 25, 2024
github-actions bot pushed a commit that referenced this pull request Jan 26, 2024
github-actions bot pushed a commit that referenced this pull request Jan 29, 2024
Refreshing granted actions on node is no longer required as the
api-server understands glob-patterns since beta 1 release at least.
Update core modules after successfully installing the new core image on
every node.
The last command has always exit code 0, because we are in a IF branch.
Correctly implement the cluster grant updates under the cluster
environment. The existing script under the node agent is retained to
avoid breaking upgrades from B2 and RC1 installations.
github-actions bot pushed a commit that referenced this pull request Jan 29, 2024
@DavidePrincipi DavidePrincipi marked this pull request as ready for review January 29, 2024 14:25
Copy link
Member

@gsanchietti gsanchietti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♂️

The flag introduced for update-module is implemented for update-core too
and has effect on the update-module sub-tasks started to update core
modules.
github-actions bot pushed a commit that referenced this pull request Jan 29, 2024
@DavidePrincipi DavidePrincipi merged commit 78b72ae into main Jan 29, 2024
3 checks passed
@DavidePrincipi DavidePrincipi deleted the feat-core-update branch January 29, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants