diff options
| author | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-09-15 10:05:07 -0700 |
|---|---|---|
| committer | Tushar Patil <tushar.vitthal.patil@gmail.com> | 2011-09-15 10:05:07 -0700 |
| commit | 5579ade405ce3318d4a5d33e68e39ee76c80b27c (patch) | |
| tree | f93e5f215b2bd3802e52d80b08d7a28a26efd21b | |
| parent | 0a5365bd2a324ce3485f58e39365354ff39bfb7e (diff) | |
| download | nova-5579ade405ce3318d4a5d33e68e39ee76c80b27c.tar.gz nova-5579ade405ce3318d4a5d33e68e39ee76c80b27c.tar.xz nova-5579ade405ce3318d4a5d33e68e39ee76c80b27c.zip | |
Execute arping command using run_as_root=True instead of sudo
| -rw-r--r-- | nova/network/linux_net.py | 4 |
1 files 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'], |
