From 5579ade405ce3318d4a5d33e68e39ee76c80b27c Mon Sep 17 00:00:00 2001 From: Tushar Patil Date: Thu, 15 Sep 2011 10:05:07 -0700 Subject: Execute arping command using run_as_root=True instead of sudo --- nova/network/linux_net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py index aa4bd1ea7..83330b8ca 100644 --- a/nova/network/linux_net.py +++ b/nova/network/linux_net.py @@ -409,7 +409,7 @@ def bind_floating_ip(floating_ip, check_exit_code=True): if FLAGS.send_arp_for_ha: _execute('sudo', 'arping', '-U', floating_ip, '-A', '-I', FLAGS.public_interface, - '-c', 1, check_exit_code=False) + '-c', 1, run_as_root=True, check_exit_code=False) def unbind_floating_ip(floating_ip): @@ -484,7 +484,7 @@ def initialize_gateway_device(dev, network_ref): if FLAGS.send_arp_for_ha: _execute('sudo', 'arping', '-U', network_ref['gateway'], '-A', '-I', dev, - '-c', 1, check_exit_code=False) + '-c', 1, run_as_root=True, check_exit_code=False) if(FLAGS.use_ipv6): _execute('ip', '-f', 'inet6', 'addr', 'change', network_ref['cidr_v6'], -- cgit