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

ipsecbase.pm: check firewall status before stop firewall #20825

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coolgw
Copy link
Contributor

@coolgw coolgw commented Dec 17, 2024

ipsecbase.pm: check firewall status before stop firewall

15sp7 regression VR
https://openqa.suse.de/tests/16425051

sle-16.0 VR
https://openqa.suse.de/tests/16212667

NOTE:
sle-16.0 repo has no tcpdump lead following error:
https://openqa.suse.de/tests/16212665#step/ipsec3hosts/97

Copy link

Great PR! Please pay attention to the following items before merging:

Files matching lib/**.pm:

  • Consider adding or extending unit tests in t/

This is an automatically generated QA checklist based on modified files.

@coolgw coolgw requested a review from czerw December 17, 2024 12:50
lib/ipsecbase.pm Outdated
unless (systemctl "is-active apparmor", ignore_failure => 1) { # 0 if active, unless to revert
systemctl "disable --now apparmor";
record_info "apparmor", "disabled";
sub ensure_service_disabled {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like generic function. It would make sense to put it in some utils. @dzedro could you please recommend some place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dzedro Could you help give some feedback? Thanks.

Copy link
Contributor

@dzedro dzedro Jan 9, 2025

Choose a reason for hiding this comment

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

I guess lib/service_check.pm, but this functions are all over place, maybe also common_service_action could go into lib/service_check.pm or whatever destination is choosen.

PS: sorry I didn't notice the message.

@czerw
Copy link
Contributor

czerw commented Dec 17, 2024

NOTE: sle-16.0 repo has no tcpdump lead following error: https://openqa.suse.de/tests/16212665#step/ipsec3hosts/97

That's fine for now.

@coolgw coolgw force-pushed the ipsec3host_firewall branch from 43ecb70 to 6602e0d Compare January 13, 2025 06:56
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.

3 participants