Stale pid files exist after metadata namespace proxy is terminated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Darragh O'Reilly |
Bug Description
These pid files are not removed when shutdown sents SIGTERM.
$ ps -ef | grep metadata-proxy
root 17725 1 0 07:05 ? 00:00:00 /usr/bin/python /usr/local/
$ ls -l /opt/stack/
-rwxr-xr-x 1 root root 5 Sep 10 07:05 /opt/stack/
$ sudo kill 17725
$ ls -l /opt/stack/
-rwxr-xr-x 1 root root 5 Sep 10 07:05 /opt/stack/
In daemon.py delete_pid() is registerd with atexit.register() to remove the pid file when the process exits. https:/
But the atexit man page says: "Functions registered using atexit() (and on_exit(3)) are not called if a process terminates abnormally because of the delivery of a signal."
Changed in neutron: | |
assignee: | nobody → Darragh O'Reilly (darragh-oreilly) |
Changed in neutron: | |
importance: | Undecided → Medium |
milestone: | none → havana-rc1 |
tags: | added: metadata |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/45831
Review: https:/