Don't pass None arg to neutron-keepalived-state-change
The original fix for bug 1818614 added two new cli args
when spawning neutron-keepalived-state-change but if
e.g. self.agent_conf.AGENT.root_helper_daemon is unset
then "None" string is passed which breaks the
neutron-keepalived-state-change daemon.
Change-Id: I4afcdbbf2f3d2dafcad241ba3fc0778b52b8fc85
Related-Bug: #1818614
Related-Bug: #1823038
(cherry picked from commit afbbec83a2
)
This commit is contained in:
parent
a22a2014fd
commit
36a1e193cb
|
@ -360,6 +360,7 @@ class HaRouter(router.RouterInfo):
|
|||
ha_cidr = self._get_primary_vip()
|
||||
|
||||
def callback(pid_file):
|
||||
root_helper_daemon = self.agent_conf.AGENT.root_helper_daemon or ''
|
||||
cmd = [
|
||||
'neutron-keepalived-state-change',
|
||||
'--router_id=%s' % self.router_id,
|
||||
|
@ -372,8 +373,7 @@ class HaRouter(router.RouterInfo):
|
|||
'--user=%s' % os.geteuid(),
|
||||
'--group=%s' % os.getegid(),
|
||||
'--AGENT-root_helper=%s' % self.agent_conf.AGENT.root_helper,
|
||||
'--AGENT-root_helper_daemon=%s' %
|
||||
self.agent_conf.AGENT.root_helper_daemon]
|
||||
'--AGENT-root_helper_daemon=%s' % root_helper_daemon]
|
||||
return cmd
|
||||
|
||||
return callback
|
||||
|
|
Loading…
Reference in New Issue