A previous patch decoupled the RPC drivers from the nova.flags, breaking instance audit usage in the process.
This configures the instance audit usage to configure the RPC drivers properly with FLAGS so that the job can run. Change-Id: Ia189d18d7b25a839de67439ccd363103c5af2f8f
This commit is contained in:
@@ -55,6 +55,7 @@ from nova import db
|
|||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import log as logging
|
from nova import log as logging
|
||||||
|
from nova import rpc
|
||||||
from nova import utils
|
from nova import utils
|
||||||
import nova.compute.utils
|
import nova.compute.utils
|
||||||
|
|
||||||
@@ -62,6 +63,7 @@ import nova.compute.utils
|
|||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
rpc.register_opts(FLAGS)
|
||||||
admin_context = context.get_admin_context()
|
admin_context = context.get_admin_context()
|
||||||
utils.default_flagfile()
|
utils.default_flagfile()
|
||||||
flags.FLAGS(sys.argv)
|
flags.FLAGS(sys.argv)
|
||||||
|
Reference in New Issue
Block a user