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 699104 Details for
Bug 911928
infiniband fails to get UDI
[?]
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 patch to plan the test based on loaded modules, and log without UDI set
infiniband.patch (text/plain), 1.42 KB, created by
Greg Nichols
on 2013-02-18 19:57:29 UTC
(
hide
)
Description:
infiniband patch to plan the test based on loaded modules, and log without UDI set
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2013-02-18 19:57:29 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/tests/infiniband/infiniband.py b/tests/infiniband/infiniband.py >index cf994f6..c4664fc 100644 >--- a/tests/infiniband/infiniband.py >+++ b/tests/infiniband/infiniband.py >@@ -42,6 +42,14 @@ class InfinibandTest(Test): > test = self.makeCopy() > test.setDevice(device) > tests.append(test) >+ # try checking for an infiniband module just in case >+ if not tests: >+ lsmod = Command("lsmod") >+ try: >+ lsmod.getString(regex="ib_", singleLine=False) >+ tests.append(self.makeCopy()) >+ except V7CommandException: >+ pass > > return tests > >@@ -52,11 +60,17 @@ class InfinibandTest(Test): > def logHardwareInfo(self): > udi = self.getUDI() > if not udi: >- print "Warning: fail to get UDI" >- return False >- >- device = UdevDeviceDetector().getDevice(udi) >- print device.dump() >+ print "Warning: could not find device UDI" >+ else: >+ device = UdevDeviceDetector().getDevice(udi) >+ print device.dump() >+ return True >+ >+ # otherwise, no udi, try for string matches >+ detector = UdevDeviceDetector() >+ for device in detector.getDevices(): >+ if device.hasPropertyValue("infiniband"): >+ print device.dump() > return True > > def logStatus(self):
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
Actions:
View
|
Diff
Attachments on
bug 911928
:
699009
| 699104