starting dnsmasq should be protected by semaphore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Mandar Vaze |
Bug Description
Scenario :
========
while enable_dhcp() method in nova/network/
Thus multiple update_dhcp and a enable_dhcp method could be executed on same time. This could cause problem when starting dnsmasq
Following steps are done in both enable_dhcp() and update_dhcp()
1) update_
2) kill_dhcp (only in update_dhcp - Not done in enable_dhcp)
3) restart_dhcp
Steps 1,2,3 should be executed atomically.
Proposed Solution :
================
Create new private method inside update_dhcp:
@utils.
def _safe_restart_
self.
# Restart dnsmasq
self.
self.
Now Invoke the above method from update_dhcp() instead of three separate steps.
Changed in nova: | |
assignee: | nobody → Mandar Vaze (mandarvaze) |
tags: | added: essex-backport |
Changed in nova: | |
importance: | Undecided → Medium |
milestone: | none → folsom-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-1 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/6481
Review: https:/