Fix nodemgr reporting process state info on 16.04 container
On 16.04 docker we are using systemd inside the docker
as an init system to launch the required processes. However
sd_notify call does not work in the docker and hence
nodemgr does not receive unit change notifications from
systemd system dbus. Fix is to instead do a poll of the
unit status when running inside the docker.
Reviewed: https:/ /review. opencontrail. org/33906 github. com/Juniper/ contrail- controller/ commit/ 9a0d9b207a423d2 bb197e120636a1a ecde044414
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R4.0
commit 9a0d9b207a423d2 bb197e120636a1a ecde044414
Author: Megh Bhatt <email address hidden>
Date: Thu Jul 13 15:04:50 2017 -0700
Fix nodemgr reporting process state info on 16.04 container
On 16.04 docker we are using systemd inside the docker
as an init system to launch the required processes. However
sd_notify call does not work in the docker and hence
nodemgr does not receive unit change notifications from
systemd system dbus. Fix is to instead do a poll of the
unit status when running inside the docker.
Change-Id: Ie5de608dff74de 5287bfa6b9f6e46 61f9c30250c 41085db56d6014b 9df2f93f04)
Closes-Bug: #1694617
Closes-Bug: #1694849
(cherry picked from commit 6bdb195abf9eaa6