Petr Horáček has uploaded a new change for review.
Change subject: net: fix test_setupNetworks_on_external_bond
......................................................................
net: fix test_setupNetworks_on_external_bond
In this test we manualy write slave names to bond's BONDING_SLAVES file.
Unfortunately, when we try to enslave a nic in UNKNOWN state (left by
a previous test), action explodes with
'IOError: [Errno 1] Operation not permitted'.
Now we set nics explicitly down before enslaving.
Change-Id: Ia29761aa2ec920db4485bf704926b67e0d9851b9
Signed-off-by: Petr Horáček <phoracek(a)redhat.com>
---
M tests/functional/networkTests.py
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/15/45715/1
diff --git a/tests/functional/networkTests.py b/tests/functional/networkTests.py
index 1873222..c2778bc 100644
--- a/tests/functional/networkTests.py
+++ b/tests/functional/networkTests.py
@@ -2625,6 +2625,7 @@
try:
with open(BONDING_SLAVES % BONDING_NAME, 'w') as f:
for nic in nics:
+ linkSet(nic, ['down'])
f.write('+%s\n' % nic)
status, msg = self.setupNetworks(
{NETWORK_NAME:
--
To view, visit
https://gerrit.ovirt.org/45715
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia29761aa2ec920db4485bf704926b67e0d9851b9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <phoracek(a)redhat.com>