Ido Barkan has uploaded a new change for review.

Change subject: More logging for missing nics.
......................................................................

More logging for missing nics.

Add more logging in case of missing nics. This happens sometimes if
users are trying to use dummy devices in vdsm.

Change-Id: Ib80dbad981e748a53cc71fc77cb20aadd6677513
Signed-off-by: Ido Barkan <[email protected]>
---
M vdsm/network/models.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/82/41782/1

diff --git a/vdsm/network/models.py b/vdsm/network/models.py
index 9aa519e..df0c50b 100644
--- a/vdsm/network/models.py
+++ b/vdsm/network/models.py
@@ -87,7 +87,9 @@
         if _netinfo is None:
             _netinfo = netinfo.NetInfo()
         if name not in _netinfo.nics:
-            raise ConfigNetworkError(ne.ERR_BAD_NIC, 'unknown nic: %s' % name)
+            raise ConfigNetworkError(
+                ne.ERR_BAD_NIC, 'unknown nic: %s. Known nics: %s' % (
+                    name, _netinfo.nics.keys()))
 
         if _netinfo.ifaceUsers(name):
             mtu = max(mtu, netinfo.getMtu(name))


-- 
To view, visit https://gerrit.ovirt.org/41782
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib80dbad981e748a53cc71fc77cb20aadd6677513
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ido Barkan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to