Menu

#2295 gather: libvirt race conditions

Stability
pending-fixed
5
2011-10-27
2011-10-27
Dave Heller
No

If libvirt domains are created or destroyed during gatherd execution there is a possibility of a race condition that can cause gatherd to crash. There are two patches to metricVirt.c. The first patch ensures the count of total libvirt domains is updated on exit from collectDomainStats(). The second patch detects a null domain pointer returned by livirt API when passed a reference to an invalid domain id.

Discussion

  • Dave Heller

    Dave Heller - 2011-10-27
    • assigned_to: tyreld --> hellerda
     
  • Dave Heller

    Dave Heller - 2011-10-27
     
  • Dave Heller

    Dave Heller - 2011-10-27

    Committed to CVS Head

    Patch attached.

     
  • Dave Heller

    Dave Heller - 2011-10-27
    • status: open --> pending-fixed
     

Log in to post a comment.