unstack.sh will not kill the n-cpu spawned in Ubuntu12.04

Bug #1407876 reported by yalei wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
yalei wang

Bug Description

n-cpu is spawned by this command now if you use libvirtd:

sg libvirtd '/usr/local/bin/nova-compute --config-file /etc/nova/nova.conf'

it runs in libvirtd group, and there will be two processes spawned for n-cpu.

$ ps aux |grep compu
root 28490 0.0 0.0 15028 1024 pts/20 S+ 14:18 0:00 sg libvirtd /usr/local/bin/nova-compute --config-file /etc/nova/nova.conf
neutron 28491 1.1 2.5 1851612 101432 pts/20 Sl+ 14:18 0:06 /usr/bin/python /usr/local/bin/nova-compute --config-file /etc/nova/nova.conf

and when u call unstack.sh, the stop_process in functions-common will be called . BUT

pkill -g 28490 will only kill 28490, and process 28491 will be left.
some error will emit, because that process will still occupy the source , like database(you can drop database if you use postgresql).

I use the ubuntu 12.04 and the pkill 's version is:

$ pkill -V
pkill (procps version 3.2.8)

and kill 28491 twice, is can be killed immediately.

yalei wang (yalei-wang)
Changed in devstack:
assignee: nobody → yalei wang (yalei-wang)
yalei wang (yalei-wang)
description: updated
yalei wang (yalei-wang)
Changed in devstack:
status: New → Incomplete
yalei wang (yalei-wang)
description: updated
yalei wang (yalei-wang)
description: updated
Changed in devstack:
status: Incomplete → New
Revision history for this message
yalei wang (yalei-wang) wrote :

the TERM signal will be handled in nova in function _wait_for_exit_or_signal in file nova/openstack/common/service.py

and will never return currently.

Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: New → Invalid
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.