Validating plumgrid service start
This commit is contained in:
parent
c1cd1cd500
commit
20882fbcc5
|
@ -99,7 +99,7 @@ def config_changed():
|
|||
load_iovisor()
|
||||
CONFIGS.write_all()
|
||||
# Starting the plumgrid service if it is stopped by
|
||||
# any of the config-parameters
|
||||
# any of the config-parameters or node reboot
|
||||
if not service_running('plumgrid'):
|
||||
restart_pg()
|
||||
|
||||
|
|
|
@ -151,7 +151,8 @@ def restart_pg():
|
|||
# wait for 3 secs so that libvirt-bin can be completely up and
|
||||
# start the plumgrid service
|
||||
time.sleep(3)
|
||||
service_start('plumgrid')
|
||||
if not service_start('plumgrid'):
|
||||
raise ValueError("plumgrid service couldn't be started")
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue