Comment 5 for bug 1334651

Revision history for this message
Rajesh Tailor (rajesh-tailor) wrote :

Hi Tiantian,

You need to run the nova-api service as daemon.

Steps to reproduce:
1. Run nova-api service as daemon.
2. Send SIGHUP signal to nova-api service
   kill -1 <parent_process_id_of_nova_api>

Just for testing in your environment, you can use below work around to fulfill step 1.

diff --git a/nova/openstack/common/service.py b/nova/openstack/common/servic
index f682b2b..12127d6 100644
--- a/nova/openstack/common/service.py
+++ b/nova/openstack/common/service.py
@@ -77,7 +77,7 @@ def _is_sighup_and_daemon(signo):
         # Avoid checking if we are a daemon, because the signal isn't
         # SIGHUP.
         return False
- return _is_daemon()
+ return True

 def _signo_to_signame(signo):