Revert "PMM-9769 update all components" #2463
Merged
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.
Reverts #2446
Following the merge of (#2446), we’ve encountered some CI failures, such as in this example: https://github.com/percona/pmm/actions/runs/6084707881/job/16507204096
TASK [Update system packages] **************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failures": [], "msg": "Depsolve Error occurred: \n Problem: package ansible-5.4.0-2.el9.noarch requires (python3.9dist(ansible-core) >= 2.12.2 with python3.9dist(ansible-core) < 2.13), but none of the providers can be installed\n - cannot install both ansible-core-2.14.2-5.el9_2.x86_64 and ansible-core-2.12.2-2.el9_0.x86_64\n - cannot install both ansible-core-2.14.2-5.el9_2.x86_64 and ansible-core-2.12.2-1.el9.x86_64\n - cannot install the best update candidate for package ansible-core-2.12.2-2.el9_0.x86_64\n - cannot install the best update candidate for package ansible-5.4.0-2.el9.noarch", "rc": 1, "results": []}
Initially, this problem arose when the security: yes option was removed from the Ansible task to update everything in update/ansible/playbook/tasks/update.yml:
yum:
name: ""
state: latest
security: yes
exclude:
- nginx
To resolve this issue, we switched to installing the ansible-core instead of the ansible package.
However, a new challenge has surfaced with the older images, such as percona/pmm-server:2 or percona/pmm-server:dev-latest, which have already been released. These images contain the ansible package instead of ansible-core. Consequently, when attempting to update these images, we encounter failures.
We need to devise a strategy for handling these older images.