Red Hat Bugzilla – Bug 512938
Running fcoeadm -i ethx where for ethx doesn't exists fc_host displays "fcoeadm: Invalid command options!"
Last modified: 2012-02-21 01:09:14 EST
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!"
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.
Patch applied in fcoe-utils-1_0_7-5_el5
fcoe-utils-1.0.7-5.el5 fixed this issue. VERIFY.
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