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

make dsrtool handle iptables lock issues gracefully #19

Open
sushilkar opened this issue May 17, 2021 · 0 comments
Open

make dsrtool handle iptables lock issues gracefully #19

sushilkar opened this issue May 17, 2021 · 0 comments

Comments

@sushilkar
Copy link

Random times it is observed that dsrtools start script fails with the following error message.

TASK [services : restart dsrctl service] ***************************************
00:14:46 fatal: [host.example.com]: FAILED! => {"changed": false, "msg": "Unable to restart service dsr: Job for dsr.service failed because the control process exited with error code. See \"systemctl status dsr.service\" and \"journalctl -xe\" for details.\n"}

Couple of error message noted

systemctl status dsr.service
dsr.service - DSR control
   Loaded: loaded (/usr/lib/systemd/system/dsr.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2021-05-11 02:58:32 UTC; 6 days ago
     Docs: man:dsrctl(8)
  Process: 15427 ExecStop=/usr/sbin/dsrctl stop (code=exited, status=0/SUCCESS)
  Process: 15445 ExecStart=/usr/sbin/dsrctl start (code=exited, status=1/FAILURE)
 Main PID: 15445 (code=exited, status=1/FAILURE)

May 11 02:58:32 host.example.com systemd[1]: Starting DSR control...
May 11 02:58:32 host.example.com dsrctl[15445]: Failed to get iptables (iptables -L -t raw -n).
May 11 02:58:32 host.example.com systemd[1]: dsr.service: main process exited, code=exited, status=1/FAILURE
May 11 02:58:32 host.example.com systemd[1]: Failed to start DSR control.
May 11 02:58:32 host.example.com systemd[1]: Unit dsr.service entered failed state.
May 11 02:58:32 host.example.com systemd[1]: dsr.service failed.
STDERR: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?

Noticed on: 7.9.15-1.el7

$ rpm -q dsrtools
dsrtools-1.4.0-20210314.02.el7.noarch
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

No branches or pull requests

1 participant