← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1590576] [NEW] Killing parent glance api process doesn't cleanup child workers

 

Public bug reported:

The glance-api process doesn't handle SIGKILL well as the workers
spawned by the parent api process are left running and never cleaned up.
Looks like the glance service needs to use the oslo.service model as
used by other openstack components since Liberty release. Killing the
parent process should clean up any workers spawned.

pooja [~] # ps -ef | grep glance-api
root     17575 14543 40 12:40 pts/0    00:00:01 /opt/pf9/glance/bin/python /usr/bin/glance-api
root     17584 17575  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api
root     17585 17575  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api

pooja [~] # kill -9 17575
pooja [~] # ps -ef | grep glance-api
root     17584     1  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api
root     17585     1  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1590576

Title:
  Killing parent glance api process doesn't cleanup child workers

Status in Glance:
  New

Bug description:
  The glance-api process doesn't handle SIGKILL well as the workers
  spawned by the parent api process are left running and never cleaned
  up. Looks like the glance service needs to use the oslo.service model
  as used by other openstack components since Liberty release. Killing
  the parent process should clean up any workers spawned.

  pooja [~] # ps -ef | grep glance-api
  root     17575 14543 40 12:40 pts/0    00:00:01 /opt/pf9/glance/bin/python /usr/bin/glance-api
  root     17584 17575  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api
  root     17585 17575  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api

  pooja [~] # kill -9 17575
  pooja [~] # ps -ef | grep glance-api
  root     17584     1  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api
  root     17585     1  0 12:40 pts/0    00:00:00 /opt/pf9/glance/bin/python /usr/bin/glance-api

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1590576/+subscriptions


Follow ups