Change in vdsm[master]: net: Adjust the parsing of multiline tc error

danken at redhat.com danken at redhat.com
Wed Mar 2 06:41:27 UTC 2016


Dan Kenigsberg has submitted this change and it was merged.

Change subject: net: Adjust the parsing of multiline tc error
......................................................................


net: Adjust the parsing of multiline tc error

tc errors are parsed to determine the failure cause.
Recently a new error output has been seen, whith a multiline message
where the expected prefix ('RTNETLINK answers') was not in the first
line. ('Message truncated\nMessage truncated\nRTNETLINK answers:')

This patch fixes the parsing of the error message by checking each line
for the prefix.

Change-Id: I337aa1722ce72fef598565b00cd7a8935d64f171
Signed-off-by: Edward Haas <edwardh at redhat.com>
Reviewed-on: https://gerrit.ovirt.org/54229
Continuous-Integration: Jenkins CI
Reviewed-by: Dan Kenigsberg <danken at redhat.com>
---
M lib/vdsm/tc/_wrapper.py
1 file changed, 7 insertions(+), 4 deletions(-)

Approvals:
  Jenkins CI: Passed CI tests
  Dan Kenigsberg: Looks good to me, approved
  Edward Haas: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I337aa1722ce72fef598565b00cd7a8935d64f171
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Edward Haas <edwardh at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Edward Haas <edwardh at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>


More information about the vdsm-patches mailing list