← Back to team overview

touch-packages team mailing list archive

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

 

Hello,

* Distribution Trusty Thar
* lxc version 1.0.7-0ubuntu0.1

Steps to reproduce:

1) fresh boot, bridge is up and running
2) sudo iptables -F INPUT
3) sudo stop lxc-net
    stop: Job failed while stopping
4) ip link show lxcbr0
3: lxcbr0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default 
    link/ether ca:ca:b6:d1:d4:26 brd ff:ff:ff:ff:ff:ff

So the bridge is not stopped correctly and recovering is difficult.

Regards.

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

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

Status in lxc package in Ubuntu:
  Incomplete

Bug description:
  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.

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


References