-
Notifications
You must be signed in to change notification settings - Fork 16
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
MANOPD-81038 MANOPD-78302 Refactoring and fixes of OS/package versions #278
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63b58e1
to
ef2ad16
Compare
ilia1243
commented
Nov 11, 2022
ilia1243
commented
Nov 11, 2022
ea9baa9
to
968bf67
Compare
ilia1243
commented
Nov 15, 2022
87ce1fa
to
757135d
Compare
shmo1218
approved these changes
Nov 18, 2022
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.
The doc file is reviewed.
7b79cea
to
d477599
Compare
Imadzuma
approved these changes
Nov 22, 2022
Use explicit cache_versions=false for specific packages.
d477599
to
119178a
Compare
koryaga
approved these changes
Nov 30, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
improvement
New feature or request
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
cluster_finalized.yaml
no longer caches versions of custom packages fromservices.packages.install
section after [PSUPCLPL-9592] packages versions #168cache_versions
property are doubtful and should be reverted/reworked.Instead, turning the caching off should be done intentionally via the same
cache_versions=false
property for each necessary association.cache_versions=false
for all associations, we do not use our recommended package versions.We should do use recommended versions.
The user will still be able to not follow our recommendations by explicitly redefining of
package_name
section of each necessary association.Fixes #262
Solution
cluster_finalized.yaml
now caches package versions independently oncache_versions
property.If any package is installed with different versions on different nodes, warning is printed and the package is taken as-is from the inventory.
If multiple OS families or versions detected on nodes, packages detection is skipped.
add_node
or any other procedure.Customized packages are moved to OS family specific section and later used from there.
The customization should be moved to the corresponding OS specific section before OS migration.
cluster.context['os']
variable is removed. Now cluster global OS is detected usingcluster.get_os_family()
.It does not depend on the procedure with the only exception that global OS family is calculated based on final nodes only.
NodeGroup.get_nodes_os()
no longer accepts any flag.It returns OS family of really those group on which it is called and does not throw exceptions for unsupported or multiple OS families.
cluster_finalized.yaml
is rewritten to enrichment-like style.cluster_finalized.yaml
resolving if multiple OS families or versions detected on nodes or if some nodes are not sudoers.check_paas
procedure for clusters on multiple OS.Test Cases
TestCase 1
Test Configuration:
services.packages.install
section. Some of packages have equal version on all nodes and some of them do not.Steps:
Results:
cluster_finalized.yaml
does not contain versions forservices.packages.install
sectionRegression Tests
upgrade
andmigrate_cri
procedures with custompackages
sections.add_node
when initial nodes having different associations packages versions and ifcache_versions
option is specified.Checklist
Unit tests