← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1401042] [NEW] Race condition in Process Monitor / disable proccess

 

Public bug reported:

When we disable a monitored process via ProcessMonitor, and the
monitoring loop is running a

RuntimeError: dictionary changed size during iteration

will happen here:

https://github.com/openstack/neutron/blob/master/neutron/agent/linux/external_process.py#L223

This can be prevented by either, getting the full list of .keys() for
the loop, or adding extra locking.

** Affects: neutron
     Importance: Undecided
     Assignee: Miguel Angel Ajo (mangelajo)
         Status: In Progress

** Changed in: neutron
     Assignee: (unassigned) => Miguel Angel Ajo (mangelajo)

** Changed in: neutron
       Status: New => In Progress

** Description changed:

  When we disable a monitored process via ProcessMonitor, and the
- monitoring loop is running a 
+ monitoring loop is running a
  
  RuntimeError: dictionary changed size during iteration
  
  will happen here:
  
  https://github.com/openstack/neutron/blob/master/neutron/agent/linux/external_process.py#L223
  
- This can be prevented by either, getting the full list of .keys() for the loop,
- or adding extra locking.
+ This can be prevented by either, getting the full list of .keys() for
+ the loop, or adding extra locking.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1401042

Title:
  Race condition in Process Monitor / disable proccess

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  When we disable a monitored process via ProcessMonitor, and the
  monitoring loop is running a

  RuntimeError: dictionary changed size during iteration

  will happen here:

  https://github.com/openstack/neutron/blob/master/neutron/agent/linux/external_process.py#L223

  This can be prevented by either, getting the full list of .keys() for
  the loop, or adding extra locking.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1401042/+subscriptions


Follow ups

References