Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 528832

Summary: fence_scsi_test should not allow -c and -s options together
Product: Red Hat Enterprise Linux 5 Reporter: Ryan O'Hara <rohara>
Component: cmanAssignee: Ryan O'Hara <rohara>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 5.4CC: ccaulfie, cluster-maint, edamato
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cman-2.0.115-22.el5.src.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:42:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Check is that both modes aren't specified on cmd line none

Description Ryan O'Hara 2009-10-13 21:56:44 UTC
Description of problem:

The fence_scsi_test script can be run in two modes: cluster or scsi. In cluster mode, the script will find and test all devices within cluster volumers. In scsi mode, the script will test all scsi devices found in /sys/block directory. The modes should be mutually exclusive. In other words, you should not use the -s (scsi mode) and -c (cluster mode) options simultaneously.

How reproducible:

Always.

Steps to Reproduce:
1. Run 'fence_scsi_test -c -s'
  
Actual results:

You'll get test results for both scsi mode and cluster mode.

Expected results:

We should detect that both modes were specified on the command-line and print the usage message.

Comment 1 Ryan O'Hara 2009-10-14 23:56:58 UTC
Created attachment 364837 [details]
Check is that both modes aren't specified on cmd line

This patch simply checks that -c and -s options are not specified at the same time. If so, print the usage and exit.

Comment 2 Ryan O'Hara 2009-11-16 16:43:59 UTC
Pushed to RHEL55 branch.

commit 25a4785a06376ff410cd5d35b08c6c5c7411e33e

Comment 7 errata-xmlrpc 2010-03-30 08:42:08 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0266.html