Swift: a server process is terminated ungracefully when stopping its container

Bug #1936762 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Medium
Takashi Kajinami

Bug Description

Description
===========
Currently SIGTERM is widely used to stop processes inside containers.
However, sending SIGTERM to a swift-*-server process terminates the process ungracefully, and this can cause interruption of on-going API requests.
For swift*-server process, we should use SIGHUP so that the process stops gracefully after it completes all on-going API requests.

Steps to reproduce
==================
* Stop swift_proxy container
 $ sudo systemctl stop tripleo_swift_proxy

* Check swift.log

Expected result
===============
swift-proxy-server process receives SIGHUP and stops gracefully

Actual result
=============
swift-proxy-server process receives SIGTERM and stops immediately
Jul 18 23:39:25 controller-0 proxy-server[6828]: SIGTERM received
Jul 18 23:39:25 controller-0 proxy-server[6828]: Exited (7)

Environment
===========
The issue was initially found in stable/train deployment

Logs & Configs
==============
N/A

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)
Changed in tripleo:
status: New → In Progress
Changed in tripleo:
assignee: nobody → Takashi Kajinami (kajinamit)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/801197

Changed in tripleo:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/801228
Reason: Gerrit doesn't handle this change possibly because of duplicate commits. Let's use https://review.opendev.org/c/openstack/tripleo-heat-templates/+/810794 instead.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/810794
Reason: This hasn't attract much attention for long so I'll abandon this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.