Comment 5 for bug 1910691

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/train)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/776451
Committed: https://opendev.org/openstack/neutron/commit/d8d9c1c7e8f5bbf002542411478677d83113cd3d
Submitter: "Zuul (22348)"
Branch: stable/train

commit d8d9c1c7e8f5bbf002542411478677d83113cd3d
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Feb 2 17:25:03 2021 +0000

    Stop metadata proxy gracefully

    HAProxy supports hard stop [1] via SIGTERM signal. From the
    documentation:

      """
      ... when the SIGTERM signal is sent to the haproxy process,
      it immediately quits and all established connections are
      closed.
      """

    In case the process does not finish, the SIGKILL signal is sent.
    The PID file created by the process is deleted.

    [1]https://cbonte.github.io/haproxy-dconv/2.0/management.html#4

    Closes-Bug: #1910691

    Conflicts:
        neutron/agent/metadata/driver.py
        neutron/tests/unit/agent/dhcp/test_agent.py
        neutron/tests/unit/agent/metadata/test_driver.py

    Change-Id: Ifa3734e8eb4e52b1a132c3351ecc2e15463298bb
    (cherry picked from commit bf14c725bbb6ce710a45c55d1dd00eee2fb53f62)