AdminUtils: Skip housekeeping on admin utils calls

The NSX-V housekeeping jobs should not run via the admin utilities.

Change-Id: Id8564d7514b2ca2d59804d95ad3912ecb833f54b
This commit is contained in:
Adit Sarfaty 2018-02-15 13:28:35 +02:00
parent 6b8c66140d
commit de0081629e
1 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,8 @@
import time
import mock
from oslo_config import cfg
from oslo_log import log as logging
@ -59,8 +61,11 @@ class NsxVPluginWrapper(plugin.NsxVPlugin):
super(NsxVPluginWrapper, self).__init__()
# Make this the core plugin
directory.add_plugin('CORE', self)
# finish the plugin initialization (md-proxy)
self.init_complete(0, 0, 0)
# finish the plugin initialization
# (with md-proxy config, but without housekeeping)
with mock.patch("vmware_nsx.plugins.common.housekeeper."
"housekeeper.NsxvHousekeeper"):
self.init_complete(0, 0, 0)
def _start_rpc_listeners(self):
pass