nova-novncproxy leaving behind zombie processes

Bug #1048703 reported by Joe T
58
This bug affects 11 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Sean Dague

Bug Description

Hello,

As reported in this thread (http://www.gossamer-threads.com/lists/openstack/dev/18862) nova-novncproxy / novnc is leaving behind zombie processes after someone uses the VNC console:

$ pstree -Aapn

  |-python,109347 /usr/bin/nova-novncproxy --flagfile=/etc/nova/nova.conf --web ...
  | |-(python,95613)
  | |-(python,95624)
  | `-(python,95625)

$ ps aux | grep 95613
nova 95613 0.0 0.0 0 0 ? Z Sep08 0:00 [python] <defunct>

Please let me know if any further details or information is needed -- I'm not sure exactly what to collect.

Thanks,
Joe

Revision history for this message
Rafi Khardalian (rkhardalian) wrote :

I can confirm this one. We see it occurring in every deployment.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

Can someone verify if this happens in devstack? Need to know if this needs to be investigated in folsom or if it is essex only.

Changed in nova:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Joe T (joe-topjian-v) wrote :

I was able to reproduce this issue with a recent (as of today) install of devstack:

$ pstree -Aapn

  | |-bash,26889
  | | `-python,30368 ./utils/nova-novncproxy --config-file /etc/nova/nova.conf ...
  | | |-(python,31700)
  | | `-(python,31701)

$ ps aux | grep Z

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
ubuntu 31894 0.0 0.0 0 0 pts/12 Z+ 03:01 0:00 [python] <defunct>
ubuntu 31895 0.0 0.0 0 0 pts/12 Z+ 03:01 0:00 [python] <defunct>

Revision history for this message
Joe T (joe-topjian-v) wrote :

Oops, the last output was actually another set of zombie processes from a second test (for verification). For completeness, the output should have been:

$ ps aux | grep Z

ubuntu 31700 0.0 0.0 0 0 pts/12 Z+ 02:59 0:00 [python] <defunct>
ubuntu 31701 0.0 0.0 0 0 pts/12 Z+ 02:59 0:00 [python] <defunct>

Revision history for this message
Vish Ishaya (vishvananda) wrote :

Potential fix for this in websockify library:

https://github.com/kanaka/websockify/pull/61

currently devstack is pulling novnc directly so that will need to be changed to see if this fix works.

You could manually test by making the same fix in:

/opt/stack/noVNC/utils/websockify.py

Revision history for this message
Joe T (joe-topjian-v) wrote :

Hi Vish,

Your comments sound specific to devstack. Do you think fixing the issue in Essex is possible? I'm more concerned about Essex.

Thanks,
Joe

Revision history for this message
Joe T (joe-topjian-v) wrote :

Hello,

This is also a problem in Folsom. The patch that you linked to is included in the websockify package from the Ubuntu 12.04 folsom repo.

Thanks,
Joe

Revision history for this message
pippo (claudio-enjoy) wrote :

same problem in grizzly ubuntu 12.04 with
  nova-novncproxy 1:2013.1-0ubuntu1~cloud0 OpenStack Compute - NoVNC proxy

in http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main

Revision history for this message
Matteo Panella (mpanella) wrote :

The problem persists in nova-novncproxy 1:2013.1.1-0ubuntu2~cloud0 from the Ubuntu Cloud Grizzly repo for precise.

Revision history for this message
Jason Dillaman (jdillaman) wrote :

Potential fix in the websockify library: https://github.com/kanaka/websockify/pull/85

Revision history for this message
Joe T (joe-topjian-v) wrote :

I quickly tested the latest websockify module and, on first glance, it looks like it fixes this bug. Thanks, Jason!

Jiajun Liu (ljjjustin)
Changed in nova:
assignee: nobody → Jiajun Liu (ljjjustin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/94778

Aimon Bustardo (aimonb)
no longer affects: centos
Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Hi,

I have updated the Debian package to version 0.6.0+dfsg1-1. I guess Ubuntu users shall rebuild the package from the Debian source package, or use one of my (non-official) Ubuntu repository. Can anyone try this?

For Ubuntu trusty:
http://icehouse.dev-ubuntu.pkgs.enovance.com/debian/pool/trusty-icehouse-backports/main/w/websockify/

For Ubuntu precise:
http://icehouse.dev-precise.pkgs.enovance.com/debian/pool/precise-icehouse-backports/main/w/websockify/

For Debian Wheezy:
http://icehouse.dev-debian.pkgs.enovance.com/debian/pool/icehouse/main/w/websockify/

Note that I have no rights to update the official Ubuntu packages, I am only the poor Debian maintainer from which Ubuntu is just syncing from! :D

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Joe Gordon (<email address hidden>) on branch: master
Review: https://review.openstack.org/94778
Reason: Is this still active? Nothing has happened in a few months so marking as abandoned. Feel free to restore this.

Sean Dague (sdague)
no longer affects: nova/essex
Changed in nova:
assignee: Jiajun Liu (ljjjustin) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

This is fixed by a requirements bump - https://review.openstack.org/#/c/122702/

Changed in nova:
assignee: nobody → Sean Dague (sdague)
status: Triaged → In Progress
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

The review was abandoned..

Changed in nova:
status: In Progress → Confirmed
Revision history for this message
Deliang Fan (vanderliang) wrote :
Changed in nova:
status: Confirmed → Fix Released
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.