Revert "Revert "Make n-net refuse to start unless using CellsV1""
This reverts commit dbf0b2c8ae
.
Change-Id: I247289e35588d53741e4868bdcfb38cc32a55f6e
This commit is contained in:
parent
ade1cfc691
commit
cf72bb8f90
@ -25,7 +25,7 @@ from nova.cmd import common as cmd_common
|
||||
from nova.conductor import rpcapi as conductor_rpcapi
|
||||
import nova.conf
|
||||
from nova import config
|
||||
from nova.i18n import _LW
|
||||
from nova.i18n import _LE, _LW
|
||||
from nova import objects
|
||||
from nova.objects import base as objects_base
|
||||
from nova import service
|
||||
@ -39,6 +39,12 @@ LOG = logging.getLogger('nova.network')
|
||||
def main():
|
||||
config.parse_args(sys.argv)
|
||||
logging.setup(CONF, "nova")
|
||||
|
||||
if not CONF.cells.enable:
|
||||
LOG.error(_LE('Nova network is deprecated and not supported '
|
||||
'except as required for CellsV1 deployments.'))
|
||||
return 1
|
||||
|
||||
utils.monkey_patch()
|
||||
objects.register_all()
|
||||
|
||||
|
@ -51,6 +51,7 @@ class ComputeMainTest(test.NoDBTestCase):
|
||||
db.api.instance_get, 1, 2)
|
||||
|
||||
def test_network_main_blocks_db(self):
|
||||
self.flags(enable=True, group='cells')
|
||||
with restore_db():
|
||||
self._call_main(network)
|
||||
self.assertRaises(exception.DBNotAllowed,
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
deprecations:
|
||||
- Nova network was deprecated in Newton and is no longer
|
||||
supported for regular deployments in Ocata. The network
|
||||
service binary will now refuse to start, except in the special
|
||||
case of CellsV1 where it is still required to function.
|
Loading…
Reference in New Issue
Block a user