group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #19959
[Bug 1728050] Re: fanatic enable-fan does not clean up config after failed bringup
This bug was fixed in the package ubuntu-fan - 0.12.8~17.04.1
---------------
ubuntu-fan (0.12.8~17.04.1) zesty; urgency=medium
* fanatic: Optionally provide DNS server for docker test (LP:
#1732717)
ubuntu-fan (0.12.7~17.04.1) zesty; urgency=medium
* fanctl: cmd_up needs to proparate scan_config errors (LP: #1719644)
* fanatic: Clean up config if bringup fails (LP: #1728050)
ubuntu-fan (0.12.6~17.04.1) zesty; urgency=medium
[ 0.12.5 ]
* DEP8: Fix LXD default interface detection (LP: #1732739)
* fanctl: return error on fail_up (LP: #1719644)
[ 0.12.6 ]
* fanatic: Add short success delay to nc_send (LP: #1721352)
* fanatic: Catch test preparation steps failing (LP: #1735183)
* fanatic: Add DNS checks to local-test preparation (LP: #1732747)
-- Stefan Bader <stefan.bader@xxxxxxxxxxxxx> Wed, 29 Nov 2017 15:08:26
+0100
** Changed in: ubuntu-fan (Ubuntu Zesty)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1728050
Title:
fanatic enable-fan does not clean up config after failed bringup
Status in ubuntu-fan package in Ubuntu:
Fix Released
Status in ubuntu-fan source package in Xenial:
Fix Committed
Status in ubuntu-fan source package in Zesty:
Fix Released
Status in ubuntu-fan source package in Artful:
Fix Released
Bug description:
SRU Justification (for Artful/Zesty/Xenial):
Impact:
"fanatic enable-fan" calls to fanctl to actually bring up the Fan bridge. However it is possible that this returns with an error and in that case fanatic must undo previously done configuration changes or otherwise any following attempt to run enable-fan will incorrectly believe the bridge is up and do nothing.
Fix:
Adding a remove config stage if the call to fanctl returns with an error.
Testcase:
[fan is installed but not enabled]
- sudo flock -x /run/xtables.lock sleep 300
- fanatic enable-fan -u 192.168.0.0/16 -o 250.0.0.0/8; echo $?
Note: It seems in Artful, the default for iptables is to wait until
the lock is released (without -w) so the test here won't work without
adding -w to all iptables calls in fanctl. :/
Regression potential:
Cleanup called only on failure and the used function is also used in fanatic disable-fan. -> Low
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-fan/+bug/1728050/+subscriptions