Dan Kenigsberg has uploaded a new change for review.
Change subject: connectivity log: report dropped devices
......................................................................
connectivity log: report dropped devices
When a networking device is removed from the host it (and its most
recently recorded state) is logged to connectivity.log
Change-Id: I8ccb6b661efa12a7e7f3456caf23b15ea5c73ca5
Bug-Url:
https://bugzilla.redhat.com/1111234
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/virt/sampling.py
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/27/30227/1
diff --git a/vdsm/virt/sampling.py b/vdsm/virt/sampling.py
index 26d670a..e2bed5d 100644
--- a/vdsm/virt/sampling.py
+++ b/vdsm/virt/sampling.py
@@ -300,6 +300,10 @@
else:
text += 'new %s:(%s) ' % (ifid, sample.to_connlog())
+ for ifid, sample in other.interfaces.iteritems():
+ if ifid not in self.interfaces:
+ text += 'dropped %s:(%s) ' % (ifid, sample.to_connlog())
+
if self.recentClient != other.recentClient:
text += 'recent_client:%s' % self.recentClient
--
To view, visit
http://gerrit.ovirt.org/30227
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ccb6b661efa12a7e7f3456caf23b15ea5c73ca5
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>