Open grzesuav opened 7 months ago
Small notice, when running nft list ruleset >/etc/sysconfig/nftables.conf
it complains that operations is not permitted, but it clears out the content anyway:
and after restart it works:
actually found https://github.com/microsoft/azurelinux/issues/7301
Thanks for the tag Aritra and @grzesuav for tagging the corresponding fix for this. This should get pushed out with an upcoming update.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
systemctl status nftables.service
- it will be in failed statesystemctl restart nftables.service
you will seeseems like there is no newline at the end of the file which is main reason for the problem
Expected behavior It works our of the box Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Linux aks-xxxx 5.15.145.2-1.cm2 #1 SMP Wed Jan 17 15:39:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Additional context To fix the issue, you need to clear out the content of the file, i.e. by running the command as in
nftables.service
unit -nft list ruleset >/etc/sysconfig/nftables.conf
which clears out the content of the file.
After this, when service is restarted with systemctl, is is green