Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 512938 - Running fcoeadm -i ethx where for ethx doesn't exists fc_host displays "fcoeadm: Invalid command options!"
Running fcoeadm -i ethx where for ethx doesn't exists fc_host displays "fcoea...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: fcoe-utils (Show other bugs)
5.4
All Linux
low Severity low
: rc
: ---
Assigned To: Petr Šabata
Gris Ge
: Patch
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-21 08:41 EDT by Martin Kočí
Modified: 2012-02-21 01:09 EST (History)
3 users (show)

See Also:
Fixed In Version: fcoe-utils-1.0.7-5.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 01:09:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch correcting the behaviour (1.18 KB, patch)
2009-09-07 10:20 EDT, Jan Zeleny
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0230 normal SHIPPED_LIVE fcoe-utils package update 2012-02-20 10:07:47 EST

  None (edit)
Description Martin Kočí 2009-07-21 08:41:07 EDT
Description of problem:
Running "fcoeadm -i ethx" where for ethx doesn't exists fc_host displays "fcoeadm: Invalid command options!"

Version-Release number of selected component (if applicable):
fcoe-utils-1.0.7-4

How reproducible:
Always

Steps to Reproduce:
1.# fcoeadm -i eth0 (note that there is no fc_host for eth0)
  
Actual results:
# fcoeadm -i eth0
fcoeadm: No fc_host found for eth0
fcoeadm: Invalid command options!
fcoeadm v1.0.7
Copyright (c) 2009, Intel Corporation.

Usage: fcoeadm
         [-c|--create] <ethX>
         [-d|--destroy] <ethX>
         [-r|--reset] <ethX>
         [-i|--interface] [<ethX>]
         [-t|--target] [<ethX>]
         [-l|--lun] [<target port_id> [<lun_id>]]
         [-s|--stats] <ethX> [-n <interval>]
         [-v|--version]
         [-h|--help]


Expected results:
Some sane output instead of "fcoeadm: Invalid command options!"
Comment 2 Jan Zeleny 2009-09-07 10:20:40 EDT
Created attachment 359997 [details]
Patch correcting the behaviour

Attaching a patch, which is correcting the behavior - now fcoeadm only prints out, that no host was found on given interface.
Comment 9 Petr Šabata 2011-10-19 09:23:46 EDT
Patch applied in fcoe-utils-1_0_7-5_el5
Comment 11 Gris Ge 2012-01-11 02:28:15 EST
fcoe-utils-1.0.7-5.el5 fixed this issue.

VERIFY.
Comment 12 errata-xmlrpc 2012-02-21 01:09:14 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0230.html

Note You need to log in before you can comment on or make changes to this bug.