Skip to content

Conversation

@abrychcy
Copy link
Contributor

With current versions of iptables there are suffixes (nf_tables) or (legacy) after the version string printed by iptables -V

The awk script does not remove those suffixes after the version string. ocf_version_cmp fails to compare this string. wait option will never be added if (nf_tables) or (legacy) is present after vX.Y.Z

In my lab ports listed in block/unblock primitives were never unblocked when a group was stated to be successfully started. DROP entries are accumulating with every restart.

With the corrected version detection this was fixed and worked as expected.

The awk script does not remove suffixes after the version string. ocf_version_cmp fails to compare this string. wait option will never be added if (nf_tables) or (legacy) is present after vX.Y.Z
@knet-jenkins
Copy link

knet-jenkins bot commented Feb 12, 2025

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/resource-agents/job/resource-agents-pipeline/job/PR-2022/1/input

@abrychcy abrychcy changed the title Update portblock: improve version detection of iptables portblock: improve version detection of iptables Feb 12, 2025
@knet-jenkins
Copy link

knet-jenkins bot commented Feb 13, 2025

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/resource-agents/job/resource-agents-pipeline/job/PR-2022/2/input

@oalbrigt oalbrigt changed the title portblock: improve version detection of iptables portblock: fix iptables version detection Feb 17, 2025
@oalbrigt oalbrigt merged commit 90f9f1c into ClusterLabs:main Feb 17, 2025
1 check passed
@oalbrigt
Copy link
Contributor

Thanks.

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.

2 participants