commit 9d5ef54e1b7edd4602a6831b3733cf4277b77c83
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Mar 23 18:36:38 2020 +0000
Force container deletion if namespace does not exist in service_kill
When a service is stopped using "service_kill" script and the
namespace where the container is running does not exist, the
container processi should be forced to stop from the root namespace.
A namespace where a process is running, can be deleted whitout
stopping the mentioned process. "ip netns identify <PID>" then
returns an empty string (root namespace).
This patch will prevent an endless loop in Neutron DHCP agent. As
reported in the related bug, when a DHCP agent is resync, the DHCP
helper (metadata proxy) is stopped. In case this process stop raises
an exception (for example if the namespace does not exist), schedules
again a resync, creating an endless loop.
Change-Id: I9bac918fcde80e6a2336bc3cf1e6972512298118
Closes-Bug: #1868607
(cherry picked from commit c516df9e519745eaea1d8699e8374dff47fb6d24)
Reviewed: https:/ /review. opendev. org/715019 /git.openstack. org/cgit/ openstack/ tripleo- ansible/ commit/ ?id=9d5ef54e1b7 edd4602a6831b37 33cf4277b77c83
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 9d5ef54e1b7edd4 602a6831b3733cf 4277b77c83
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Mar 23 18:36:38 2020 +0000
Force container deletion if namespace does not exist in service_kill
When a service is stopped using "service_kill" script and the
namespace where the container is running does not exist, the
container processi should be forced to stop from the root namespace.
A namespace where a process is running, can be deleted whitout
stopping the mentioned process. "ip netns identify <PID>" then
returns an empty string (root namespace).
This patch will prevent an endless loop in Neutron DHCP agent. As
reported in the related bug, when a DHCP agent is resync, the DHCP
helper (metadata proxy) is stopped. In case this process stop raises
an exception (for example if the namespace does not exist), schedules
again a resync, creating an endless loop.
Change-Id: I9bac918fcde80e 6a2336bc3cf1e69 72512298118 aea1d8699e8374d ff47fb6d24)
Closes-Bug: #1868607
(cherry picked from commit c516df9e519745e