[BUG] - AzureLinux has invalid /etc/sysconfig/nftables.conf
file which result in failed systemd unit nftables.service
#4144
Labels
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
![image](https://private-user-images.githubusercontent.com/9568421/310541582-f8567e98-b508-4276-add2-d6ce4df385c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5NzY2MDMsIm5iZiI6MTcyNDk3NjMwMywicGF0aCI6Ii85NTY4NDIxLzMxMDU0MTU4Mi1mODU2N2U5OC1iNTA4LTQyNzYtYWRkMi1kNmNlNGRmMzg1YzMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MzBUMDAwNTAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzhkMjBlOWY1ZTc1N2M5ODhjMmJmODQyMjkyMTI0MjA4NzJmNjJmOGZmMmRjNmZhYTVlNmVhOTljZDE2ZmRkOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.gbsm0QLkzC0A5n71mTAVqBg3gWD-LSKsv_VgOA2i1Zc)
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
The text was updated successfully, but these errors were encountered: