-
Notifications
You must be signed in to change notification settings - Fork 282
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
Refactor firewalld #21124
Refactor firewalld #21124
Conversation
tests/console/firewall_enabled.pm
Outdated
record_soft_failure "boo#1144543 - Migration from SFW2 to firewalld: no firewall enabled"; | ||
return; | ||
} | ||
if (is_jeos && is_vmware && (is_sle('15-SP4+') || is_leap('15.4+'))) { |
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.
is_jeos && (is_vmware || $the_cloud_image)
as SP4 is EOL
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.
or version check for 15.6+
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.
So cloud image comes without pre-installed firewall, hence it can be only jeos && vmware
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.
I think we can actually remove this if
block after merging #21129 and instead not schedule the test module on vmware.
use Utils::Architectures; | ||
|
||
sub run { | ||
my ($self) = @_; | ||
if ($self->firewall eq 'firewalld') { | ||
my $timeout = 30; | ||
$timeout = 60 if is_ppc64le; | ||
my $ret = script_run('firewall-cmd --state', timeout => $timeout); |
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.
Has this hide the running
output before?
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.
AFAICS it was not being checked. Only the return code.
Simplify the code flow for firewalld and make test failures better visible by running a 'die' instead of just marking the module as failed.
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
Simplify the code flow for firewalld and make test failures better visible by running a 'die' instead of just marking the module as failed.
Verification runs