Nova/Neutron: Enable rootwrap daemon mode#26
Nova/Neutron: Enable rootwrap daemon mode#26matelakat wants to merge 2 commits intosap-oc:stable/sap/3.0from matelakat:rootwrap-fix
Conversation
|
I still need to verify this. |
|
I'm testing this now. |
aspiers
left a comment
There was a problem hiding this comment.
I have tested this now and it speeds up each rootwrap command by roughly a factor of 10. Unfortunately this only seems to double router migration speed though.
|
Here's a sample of the speed difference. Individual rootwrap commands take roughly 10ms via the daemon: vs. 100ms without: Migration of 10 routers with the daemon takes ~43s: and ~84s without: So even though each rootwrap command is now roughly 10x faster, the router migration speed only doubled. It seems that the bottleneck now is waiting for the ports to become ACTIVE, although this seems to be mainly about waiting for rootwrap commands to complete, and to a lesser extent waiting for the neutron-server to notice the state changes. |
|
Patched oslo.rootwrap package is now in my OBS branch: https://build.opensuse.org/package/rdiff/home:aspiers:branches:Cloud:OpenStack:Liberty/python-oslo.rootwrap?opackage=python-oslo.rootwrap&oproject=Cloud%3AOpenStack%3ALiberty&rev=2 |
aspiers
left a comment
There was a problem hiding this comment.
Actually, @matelakat please can you cherry-pick 5c7204f into this PR?
|
@aspiers done |
|
I've now submitted the necessary changes to the nova and neutron packages: |
|
Changes LGTM - we should test all together |
This provides a speedup (benchmarks that do a lot of neutron operations go down from 24 minutes to 11 minutes, providing an almost twofold improvement). The improvement is actually like eightfold on ARM. (cherry picked from commit ef29f92)
Using the daemon mode fails for Xen (see lp#1643457). This is a workarround until the bug in oslo.rootwrap is fixed. https://bugzilla.suse.com/show_bug.cgi?id=1010553
Original commit message:
(cherry picked from commit ef29f92)
Fixes #1
openstack-neutronhttps://build.opensuse.org/request/show/481965openstack-novahttps://build.opensuse.org/request/show/481966Sudoers File for Neutron
Specfile
Contents
The
rootwrap-daemonline is new:Sudoers File for Nova
Specfile
Contents
The
rootwrap-daemonline is new: