snap does not remove br-ex on uninstall
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| MicroStack |
High
|
Pete Vander Giessen |
Bug Description
MicroStack leaves the bridge that ovs-ctl sets up (br-ex) in place on reinstall.
The bridge goes away after a reboot, but we should do a better job of cleaning up after ourselves.
(This can also cause bugs when performing several test cycles on a single machine.)
Changed in microstack: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Pete Vander Giessen (petevg) |
milestone: | none → microstack19.10 |
Pete Vander Giessen (petevg) wrote : | #1 |
Change abandoned by Pete Vander Giessen (<email address hidden>) on branch: master
Review: https:/
Reason: This needs more thought. Abandoning for now.
Fix proposed to branch: master
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit a89f5574c3d6dec
Author: Pete Vander Giessen <email address hidden>
Date: Wed Nov 27 21:47:52 2019 +0000
Added microstack.remove command
Running microstack.remove will remove the br-ex virtual bridge device,
then uninstall MicroStack.
We do this because we can't use ovs-ctl to remove the bridge as part
of a remove hook, as the Open vSwitch daemons are not running at that
point. The microstack.remove command gives operators a way to cleanly
uninstall the snap, without needing to reboot to get rid of br-ex.
Added test exercising the code to test_basic.py.
Rerranged entry points a bit (moved some things into main.py) to make
code sharing easier, and to prevent a proliferation of entry point
scripts in our root dir.
Change-Id: I9ff25864cd96ad
Closes-Bug: #1852147
Changed in microstack: | |
status: | In Progress → Fix Released |
This one is tricky. We'd like to use ovs tools to tear down the bridge when the snap uninstalls. But the openvswitch service is no longer running by the time we're running the teardown hooks.