Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 672813 Details for
Bug 888688
infiniband: should show udi or pci id information
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
infiniband: log hardware udev info
0001-infiniband-add-hardware-info-from-udev.patch (text/plain), 1.96 KB, created by
Caspar Zhang
on 2013-01-05 10:13:32 UTC
(
hide
)
Description:
infiniband: log hardware udev info
Filename:
MIME Type:
Creator:
Caspar Zhang
Created:
2013-01-05 10:13:32 UTC
Size:
1.96 KB
patch
obsolete
>From 3220f4717d254903fc9cf963d73e0fa0afb7a9b0 Mon Sep 17 00:00:00 2001 >From: Caspar Zhang <czhang@redhat.com> >Date: Sat, 5 Jan 2013 17:42:40 +0800 >Subject: [PATCH] infiniband: add hardware info from udev > >Signed-off-by: Caspar Zhang <czhang@redhat.com> >--- > tests/infiniband/infiniband.py | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > >diff --git a/tests/infiniband/infiniband.py b/tests/infiniband/infiniband.py >index 105bcce..cf994f6 100644 >--- a/tests/infiniband/infiniband.py >+++ b/tests/infiniband/infiniband.py >@@ -19,6 +19,7 @@ import os, string > from v7.tags import Constants, DeviceClass > from v7.test import Test, TestTag > from v7.command import Command, V7CommandException >+from v7.udevDeviceDetector import UdevDeviceDetector > > FAILED = 1 > PASSED = 0 >@@ -39,6 +40,7 @@ class InfinibandTest(Test): > # x060a bridge to IB or x0c06 IB serial controller > if device.getProperty("PCI_CLASS") == "60A00" or device.getProperty("PCI_CLASS") == "C0600": > test = self.makeCopy() >+ test.setDevice(device) > tests.append(test) > > return tests >@@ -46,7 +48,17 @@ class InfinibandTest(Test): > def getRequiredRPMs(self): > rpms = ["infiniband-diags"] > return rpms >- >+ >+ def logHardwareInfo(self): >+ udi = self.getUDI() >+ if not udi: >+ print "Warning: fail to get UDI" >+ return False >+ >+ device = UdevDeviceDetector().getDevice(udi) >+ print device.dump() >+ return True >+ > def logStatus(self): > try: > Command("ibstatus").echo() >@@ -62,6 +74,8 @@ class InfinibandTest(Test): > def run(self): > > result = PASSED >+ if not self.runSubTest(self.logHardwareInfo, "Log Hardware Info", "log hardware info from udev"): >+ result = FAILED > if not self.runSubTest(self.logStatus, "Log Status", "log infiniband status"): > result = FAILED > >-- >1.8.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
czhang
: review? (
gnichols
)
Actions:
View
|
Diff
Attachments on
bug 888688
: 672813 |
676987