[Bug 1429140] [NEW] lxc-net upstart script fails on nonexistent iptables rules

Daniel Dehennin 1429140 at bugs.launchpad.net
Fri Mar 6 13:53:28 UTC 2015


Public bug reported:

Hello,

On Trusty, the stop of lxc-net fails if the iptables rules are not
present.

I added “exec >> /tmp/lxc-net.log 2>&1” at the beginning of pre-start
and post-stop and get:

    iptables: Bad rule (does a matching rule exist in that chain?).

On Precise, a “|| true” was added to avoid errors.

I attach a patch to disable exit on failing iptables call.

Regards.

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: trusty

** Patch added: "Do not crash when removing iptables rules"
   https://bugs.launchpad.net/bugs/1429140/+attachment/4336120/+files/lxc-net.conf.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1429140

Title:
  lxc-net upstart script fails on nonexistent iptables rules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1429140/+subscriptions



More information about the Ubuntu-server-bugs mailing list