stop glance-api service will raise exception

Bug #1470087 reported by YaoZheng_ZTE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
YaoZheng_ZTE

Bug Description

1. In redhat system, run systemctl stop openstack-glance-api.service will stop glance API service .
2. after step 1, the glance api log as follow:
2015-06-18 08:58:47.538 11453 CRITICAL glance [-] OSError: [Errno 38] Function not implemented
2015-06-18 08:58:47.538 11453 TRACE glance Traceback (most recent call last):
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/bin/glance-api", line 10, in <module>
2015-06-18 08:58:47.538 11453 TRACE glance sys.exit(main())
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/glance/cmd/api.py", line 90, in main
2015-06-18 08:58:47.538 11453 TRACE glance server.wait()
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 406, in wait
2015-06-18 08:58:47.538 11453 TRACE glance self.wait_on_children()
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 345, in wait_on_children
2015-06-18 08:58:47.538 11453 TRACE glance pid, status = os.wait()
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/eventlet/green/os.py", line 78, in wait
2015-06-18 08:58:47.538 11453 TRACE glance return waitpid(0, 0)
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/eventlet/green/os.py", line 96, in waitpid
2015-06-18 08:58:47.538 11453 TRACE glance greenthread.sleep(0.01)
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
2015-06-18 08:58:47.538 11453 TRACE glance hub.switch()
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
2015-06-18 08:58:47.538 11453 TRACE glance return self.greenlet.switch()
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 346, in run
2015-06-18 08:58:47.538 11453 TRACE glance self.wait(sleep_time)
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/eventlet/hubs/poll.py", line 82, in wait
2015-06-18 08:58:47.538 11453 TRACE glance sleep(seconds)
2015-06-18 08:58:47.538 11453 TRACE glance File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 287, in kill_children
2015-06-18 08:58:47.538 11453 TRACE glance os.killpg(self.pgid, signal.SIGTERM)
2015-06-18 08:58:47.538 11453 TRACE glance OSError: [Errno 38] Function not implemented
2015-06-18 08:58:47.538 11453 TRACE glance

3.I use icehouse2014.1.3 version, but I review code in K version, this issue is also present

Revision history for this message
YaoZheng_ZTE (zheng-yao1) wrote :

my system is redhat + python2.7, look the python manual, OS moudle os.killpg is suported in python2.3,
but,my system is python2.7, the os.killpg has not implemented yet.

Changed in glance:
assignee: nobody → jelly (coding1314)
Changed in glance:
assignee: jelly (coding1314) → nobody
Revision history for this message
YaoZheng_ZTE (zheng-yao1) wrote :

Hi Kuo-tung:
   Use the os.kill function can solve the problem. this bug can be confirmed ?
  assignee: nobody → YaoZheng_ZTE

Changed in glance:
assignee: nobody → YaoZheng_ZTE (zheng-yao1)
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.