Getting rhel working (continued).
This commit is contained in:
parent
d157a104f9
commit
5d3a3e3a20
@ -175,6 +175,9 @@ QUANTUM_OPENSWITCH_OPS = {
|
||||
'quantum_use_dhcp': None,
|
||||
}
|
||||
|
||||
#ensure libvirt restarted (seems to only be on rhel)
|
||||
LIBVIRTD_RESTART = ['service', 'libvirtd', 'restart']
|
||||
|
||||
#pip files that nova requires
|
||||
REQ_PIPS = ['nova.json']
|
||||
|
||||
@ -402,6 +405,11 @@ class NovaRuntime(comp.PythonRuntime):
|
||||
})
|
||||
return result
|
||||
|
||||
def pre_start(self):
|
||||
#ensure libvirt started
|
||||
if self.distro == settings.RHEL6:
|
||||
sh.execute(*LIBVIRTD_RESTART, run_as_root=True)
|
||||
|
||||
def _get_param_map(self, app_name):
|
||||
params = comp.PythonRuntime._get_param_map(self, app_name)
|
||||
params['CFGFILE'] = sh.joinpths(self.cfgdir, API_CONF)
|
||||
|
@ -120,7 +120,6 @@ def get_default_components():
|
||||
nova.NNET,
|
||||
nova.NOBJ,
|
||||
nova.NSCHED,
|
||||
nova.NVOL,
|
||||
]
|
||||
def_components[settings.NOVNC] = []
|
||||
def_components[settings.HORIZON] = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user