From c0bbc4be369d0b20cd3c5985eb48b8ec66876804 Mon Sep 17 00:00:00 2001 From: hua zhang Date: Wed, 2 May 2012 18:34:01 +0800 Subject: Run ip link show in linux_net._device_exists as root Bug 993097 Change-Id: Iaad55f2e878df65e9398f0c28786f0c13fb82a95 --- nova/network/linux_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova') diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py index d819a111a..626b65c9e 100755 --- a/nova/network/linux_net.py +++ b/nova/network/linux_net.py @@ -818,7 +818,7 @@ def _execute(*cmd, **kwargs): def _device_exists(device): """Check if ethernet device exists.""" (_out, err) = _execute('ip', 'link', 'show', 'dev', device, - check_exit_code=False) + check_exit_code=False, run_as_root=True) return not err -- cgit