Getting rhel working (continued).

This commit is contained in:
Joshua Harlow 2012-02-03 14:59:28 -08:00
parent d157a104f9
commit 5d3a3e3a20
2 changed files with 8 additions and 1 deletions
devstack
components
progs

@ -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] = []