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 574583 Details for
Bug 488745
Add suggested IB specific commands to network test.
[?]
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.
infiniband test logging ibstat and ibstatus
infiniband.py (text/x-python), 2.38 KB, created by
Greg Nichols
on 2012-04-02 18:20:49 UTC
(
hide
)
Description:
infiniband test logging ibstat and ibstatus
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2012-04-02 18:20:49 UTC
Size:
2.38 KB
patch
obsolete
>#!/usr/bin/python ># Copyright (c) 2012 Red Hat, Inc. All rights reserved. This copyrighted material ># is made available to anyone wishing to use, modify, copy, or ># redistribute it subject to the terms and conditions of the GNU General ># Public License v.2. ># ># This program is distributed in the hope that it will be useful, but WITHOUT ANY ># WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A ># PARTICULAR PURPOSE. See the GNU General Public License for more details. ># ># You should have received a copy of the GNU General Public License ># along with this program; if not, write to the Free Software ># Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ># ># Author: Greg Nichols ># >import os, string > >from v7.tags import Constants, DeviceClass >from v7.test import Test, TestTag >from v7.command import Command, V7CommandException > > >FAILED = 1 >PASSED = 0 > >class InfinibandTest(Test): > > def __init__(self): > Test.__init__(self, name="infiniband") > self.deviceClass = DeviceClass.network_interface > > def tags(self): > return [TestTag.noninteractive, TestTag.certification] > > def plan(self, devices): > properties = dict() > tests = list() > # x060a bridge to IB > properties['pci.device_class'] = 6 > properties['pci.device_subclass'] = 10 > tests = self.planWith(devices, properties, all=False, strict=True) > if tests: > return tests > # otherwise > # x0c06 IB serial controller > properties['pci.device_class'] = 12 > properties['pci.device_subclass'] = 6 > return self.planWith(devices, properties, all=False, strict=True) > > > def getRequiredRPMs(self): > rpms = ["infiniband-diags"] > return rpms > > def logStatus(self): > try: > Command("ibstatus").echo() > Command("ibstat").echo() > return True > except V7CommandException, e: > print "Error: %s" % e.command.command > print e > > return False > > > def run(self): > > result = PASSED > if not self.runSubTest(self.logStatus, "Log Status", "log infiniband status"): > result = FAILED > > return result > >if __name__ == "__main__": > > test = InfinibandTest() > returnValue = test.do(sys.argv) > sys.exit(returnValue) > > > >
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 Raw
Actions:
View
Attachments on
bug 488745
: 574583