Skip to content

Commit

Permalink
Dns stops working on precise when network manager is enabled
Browse files Browse the repository at this point in the history
In Precise and Quantal, we nuke the dnsmasq launched by NetworkManager

Fixes LP# 993666

Change-Id: I4b39010765e2cbbea1ca3fc3120bf329015b7a56
  • Loading branch information
Davanum Srinivas committed Jan 29, 2013
1 parent 3b3a6d7 commit d71d6e7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,14 @@ fi

if is_service_enabled n-net q-dhcp; then
# Delete traces of nova networks from prior runs
sudo killall dnsmasq || true
# Do not kill any dnsmasq instance spawned by NetworkManager
netman_pid=$(pidof NetworkManager || true)
if [ -z "$netman_pid" ]; then
sudo killall dnsmasq || true
else
sudo ps h -o pid,ppid -C dnsmasq | grep -v $netman_pid | awk '{print $1}' | sudo xargs kill || true
fi

clean_iptables
rm -rf ${NOVA_STATE_PATH}/networks
sudo mkdir -p ${NOVA_STATE_PATH}/networks
Expand Down

0 comments on commit d71d6e7

Please sign in to comment.