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

Fix Ansible Molecule unit tests #53

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Fix Ansible Molecule unit tests #53

merged 2 commits into from
Aug 30, 2024

Conversation

sleighzy
Copy link
Owner

@sleighzy sleighzy commented Aug 29, 2024

Remove Rocky Linux and use RedHat 9 due to breaking Ansible core and Python changes

The ansible-core 2.17 release has dropped support for Python 3.6, which is the default in Rocky Linux (as it is an EL8 platform).
This leads to the "future feature annotations is not defined" error when gathering facts or installing packages.
Installing Python 3.9 also does not work as the issue lies in /usr/libexec/platform-python which is version 3.6,
and is the "system" python which is used for installing modules using dnf or yum.

To resolve this issue the testing containers have been updated to use RedHat 9.

The ansible-core 2.17 release has dropped support for Python 3.6, which is the default in Rocky Linux (as it is an EL8 platform).
This leads to the "future feature annotations is not defined" error when gathering facts or installing packages.
Installing Python 3.9 also does not work as the issue lies in /usr/libexec/platform-python which is version 3.6,
and is the "system" python which is used for installing modules using dnf or yum.

To resolve this issue the testing containers have been updated to use Redhat 9.
@sleighzy sleighzy changed the title Fix pipeline for Molecule tests Fix Ansible Molecule unit tests Aug 30, 2024
@@ -11,6 +11,7 @@ ExecStart={{ zookeeper_dir }}/bin/zkServer.sh start
ExecStop={{ zookeeper_dir }}/bin/zkServer.sh stop
SuccessExitStatus=143
Restart=on-failure
RestartSec=5
Copy link
Owner Author

Choose a reason for hiding this comment

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

Set a 5 second delay between restarts as if too many restarts occur within a specified time period then systemd will not attempt to start the process again and it needs to be reset.

@sleighzy sleighzy merged commit 92420cb into master Aug 30, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant