Bug 1541599 - have to run the create-fcoe-instance command twice on the second NIC to get fcoe instance created(ixgbe)
Summary: have to run the create-fcoe-instance command twice on the second NIC to get f...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: fcoe-utils
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chris Leech
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-03 05:10 UTC by lnie
Modified: 2019-11-27 19:27 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-11-27 19:27:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
journal (1.37 KB, text/x-vhdl)
2018-02-03 05:10 UTC, lnie
no flags Details
journal (3.01 KB, text/plain)
2018-02-03 05:26 UTC, lnie
no flags Details
test log (26.79 KB, text/plain)
2018-08-18 13:32 UTC, lnie
no flags Details
journal (1016.29 KB, text/plain)
2018-08-18 13:33 UTC, lnie
no flags Details
journal (414.09 KB, text/plain)
2018-08-19 13:08 UTC, lnie
no flags Details

Description lnie 2018-02-03 05:10:31 UTC
Created attachment 1390468 [details]
journal

Description of problem:
There are two fcoe NICs on st16,but only one fcoe instance is created.


Version-Release number of selected component (if applicable):
kernel-4.15.0-1.fc28.x86_64
fcoe-utils-1.0.32-3.fc27.x86_64

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 lnie 2018-02-03 05:26:22 UTC
Created attachment 1390469 [details]
journal

Comment 2 Fedora End Of Life 2018-02-20 15:35:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 3 lnie 2018-08-18 13:25:14 UTC
Still see this in fedora 29,both on st13(ixgbe) and st16(bnx2fc) 

[root@storageqe-13 reboot_fcoe_service]# rpm -q kernel fcoe-utils
kernel-4.18.0-0.rc8.git2.1.fc29.x86_64
fcoe-utils-1.0.32-6.fc29.x86_64

Comment 4 lnie 2018-08-18 13:30:33 UTC
Below is the commands in the testcase that being used to enable fcoe on the NICs,which works fine on f27 and RHEL

 intel_fcoe_cmd.append("service lldpad start")
    intel_fcoe_cmd.append("ifconfig %s down" % nic)
    intel_fcoe_cmd.append("ifconfig %s up" % nic)
    intel_fcoe_cmd.append("sleep 5")
    intel_fcoe_cmd.append("dcbtool sc %s dcb on" % nic)
    intel_fcoe_cmd.append("sleep 5")
    intel_fcoe_cmd.append("dcbtool sc %s pfc e:1 a:1 w:1" % nic)
    intel_fcoe_cmd.append("dcbtool sc %s app:fcoe e:1 a:1 w:1" % nic)
    intel_fcoe_cmd.append("cp -f /etc/fcoe/cfg-ethx /etc/fcoe/cfg-%s" % nic)
    intel_fcoe_cmd.append("sed -i -e 's/\(MODE=.*\)$/MODE=\"%s\"/' /etc/fcoe/cfg-%s" % (mode, nic))
    intel_fcoe_cmd.append("sed -i -e 's/ONBOOT.*/ONBOOT=\"yes\"/' /etc/sysconfig/network-scripts/ifcfg-%s" % nic)
    intel_fcoe_cmd.append("service lldpad restart")
    intel_fcoe_cmd.append("service fcoe restart")
    intel_fcoe_cmd.append("chkconfig lldpad on")
    intel_fcoe_cmd.append("chkconfig fcoe on")

    bnx2x_fcoe_cmds = []
    bnx2x_fcoe_cmds.append("ifconfig %s up" % nic)
    bnx2x_fcoe_cmds.append("/bin/cp -f /etc/fcoe/cfg-ethx /etc/fcoe/cfg-%s" % nic)
    bnx2x_fcoe_cmds.append("sed -i -e 's/\(DCB_REQUIRED=.*\)$/DCB_REQUIRED=\"no\"/' /etc/fcoe/cfg-%s" % nic)
    bnx2x_fcoe_cmds.append("sed -i -e 's/\(MODE=.*\)$/MODE=\"%s\"/' /etc/fcoe/cfg-%s" % (mode, nic))
    bnx2x_fcoe_cmds.append("sed -i -e 's/ONBOOT.*/ONBOOT=\"yes\"/' /etc/sysconfig/network-scripts/ifcfg-%s" % nic)
    bnx2x_fcoe_cmds.append("service lldpad restart")
    bnx2x_fcoe_cmds.append("service fcoe restart")
    bnx2x_fcoe_cmds.append("chkconfig lldpad on")
    bnx2x_fcoe_cmds.append("chkconfig fcoe on")

Comment 5 lnie 2018-08-18 13:32:28 UTC
Created attachment 1476766 [details]
test log

Comment 6 lnie 2018-08-18 13:33:58 UTC
Created attachment 1476767 [details]
journal

Comment 7 lnie 2018-08-19 13:06:37 UTC
Still see this with kernel-4.18.1-300.fc29.x86_64,and you have to run fcoe.setup_soft_fcoe()(or run the setup command manually) twice  to get fcoe instance created on ens2f1 

[root@storageqe-13 fcoe_max_frame_size]# systemctl start lldpad 
[root@storageqe-13 fcoe_max_frame_size]# ifconfig ens2f1 down
[root@storageqe-13 fcoe_max_frame_size]# ifconfig ens2f1 up
[root@storageqe-13 fcoe_max_frame_size]# dcbtool sc ens2f1 dcb on
Command:   	Set Config
Feature:   	DCB State
Port:      	ens2f1
Status:    	Successful
[root@storageqe-13 fcoe_max_frame_size]# dcbtool sc ens2f1 pfc e:1 a:1 w:1
Command:   	Set Config
Feature:   	Priority Flow Control
Port:      	ens2f1
Status:    	Successful
[root@storageqe-13 fcoe_max_frame_size]# dcbtool sc ens2f1 app:fcoe e:1 a:1 w:1
Command:   	Set Config
Feature:   	Application FCoE
Port:      	ens2f1
Status:    	Successful
[root@storageqe-13 fcoe_max_frame_size]# cp -f /etc/fcoe/cfg-ethx /etc/fcoe/cfg-ens2f1
[root@storageqe-13 fcoe_max_frame_size]# systemctl restart lldpad
[root@storageqe-13 fcoe_max_frame_size]# systemctl restart fcoe
[root@storageqe-13 fcoe_max_frame_size]# fcoeadm -i
    Description:      82599ES 10-Gigabit SFI/SFP+ Network Connection
    Revision:         01
    Manufacturer:     Intel Corporation
    Serial Number:    001B21591234

    Driver:           ixgbe 5.1.0-k
    Number of Ports:  1

        Symbolic Name:     fcoe v0.1 over ens2f0.802-fcoe
        OS Device Name:    host5
        Node Name:         0x1000001b21591236
        Port Name:         0x2000001b21591236
        Fabric Name:        0x2322000573b27f01
        Speed:             10 Gbit
        Supported Speed:   1 Gbit, 10 Gbit
        MaxFrameSize:      2112 bytes
        FC-ID (Port ID):   0x750005
        State:             Online
[root@storageqe-13 fcoe_max_frame_size]# systemctl start lldpad
[root@storageqe-13 fcoe_max_frame_size]# ifconfig ens2f1 down
[root@storageqe-13 fcoe_max_frame_size]# ifconfig ens2f1 up
[root@storageqe-13 fcoe_max_frame_size]# dcbtool sc ens2f1 dcb on
Command:   	Set Config
Feature:   	DCB State
Port:      	ens2f1
Status:    	Successful
[root@storageqe-13 fcoe_max_frame_size]#  dcbtool sc ens2f1 pfc e:1 a:1 w:1
Command:   	Set Config
Feature:   	Priority Flow Control
Port:      	ens2f1
Status:    	Successful
[root@storageqe-13 fcoe_max_frame_size]# dcbtool sc ens2f1 app:fcoe e:1 a:1 w:1
Command:   	Set Config
Feature:   	Application FCoE
Port:      	ens2f1
Status:    	Successful
[root@storageqe-13 fcoe_max_frame_size]# cp -f /etc/fcoe/cfg-ethx /etc/fcoe/cfg-ens2f1
cp: overwrite '/etc/fcoe/cfg-ens2f1'? systemctl restart lldpad
[root@storageqe-13 fcoe_max_frame_size]# systemctl restart lldpad
[root@storageqe-13 fcoe_max_frame_size]# systemctl restart fcoe
[root@storageqe-13 fcoe_max_frame_size]# fcoeadm -i
    Description:      82599ES 10-Gigabit SFI/SFP+ Network Connection
    Revision:         01
    Manufacturer:     Intel Corporation
    Serial Number:    001B21591234

    Driver:           ixgbe 5.1.0-k
    Number of Ports:  1

        Symbolic Name:     fcoe v0.1 over ens2f0.802-fcoe
        OS Device Name:    host5
        Node Name:         0x1000001b21591236
        Port Name:         0x2000001b21591236
        Fabric Name:        0x2322000573b27f01
        Speed:             10 Gbit
        Supported Speed:   1 Gbit, 10 Gbit
        MaxFrameSize:      2112 bytes
        FC-ID (Port ID):   0x750005
        State:             Online
    Description:      82599ES 10-Gigabit SFI/SFP+ Network Connection
    Revision:         01
    Manufacturer:     Intel Corporation
    Serial Number:    001B21591234

    Driver:           ixgbe 5.1.0-k
    Number of Ports:  1

        Symbolic Name:     fcoe v0.1 over ens2f1.802-fcoe
        OS Device Name:    host6
        Node Name:         0x1000001b21591237
        Port Name:         0x2000001b21591237
        Fabric Name:        0x2322000573b27f01
        Speed:             10 Gbit
        Supported Speed:   1 Gbit, 10 Gbit
        MaxFrameSize:      2112 bytes
        FC-ID (Port ID):   0x750004
        State:             Online


root@storageqe-13 ~]# python
Python 2.7.15 (default, Jul 15 2018, 06:11:59) 
[GCC 8.1.1 20180626 (Red Hat 8.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libsan.host.fcoe as fcoe
>>> fcoe.setup_soft_fcoe()
INFO: fcoe-utils is installed (fcoe-utils-1.0.32-6.fc29.x86_64)
INFO: Going to enable FCoE on these NICs:
	ens2f0 (ixgbe)
	ens2f1 (ixgbe)
INFO: Waiting FCoE session with timeout 180 seconds
INFO: No FCoE interface is configured
INFO: No FCoE session found, will keep waiting timeout 179 seconds
INFO: FCoE session created for ens2f0 as SCSI Host: host5
INFO: Waiting FCoE session with timeout 180 seconds
INFO: No FCoE session created yet for NIC ens2f1, will keep waiting. timeout 179
...
...
INFO: [2018-08-19 06:39:39] Running: 'fcoeadm -i'...
    Description:      82599ES 10-Gigabit SFI/SFP+ Network Connection
    Revision:         01
    Manufacturer:     Intel Corporation
    Serial Number:    001B21591234

    Driver:           ixgbe 5.1.0-k
    Number of Ports:  1

        Symbolic Name:     fcoe v0.1 over ens2f0.802-fcoe
        OS Device Name:    host5
        Node Name:         0x1000001b21591236
        Port Name:         0x2000001b21591236
        Fabric Name:        0x2322000573b27f01
        Speed:             10 Gbit
        Supported Speed:   1 Gbit, 10 Gbit
        MaxFrameSize:      2112 bytes
        FC-ID (Port ID):   0x750005
        State:             Online
FAIL:(libsan.host.fcoe) No FCoE session created for NIC ens2f1
FAIL:(libsan.host.fcoe) Could not enable FCoE on ens2f1
INFO: [2018-08-19 06:39:39] Running: 'fcoeadm -i'...
    Description:      82599ES 10-Gigabit SFI/SFP+ Network Connection
    Revision:         01
    Manufacturer:     Intel Corporation
    Serial Number:    001B21591234

    Driver:           ixgbe 5.1.0-k
    Number of Ports:  1

        Symbolic Name:     fcoe v0.1 over ens2f0.802-fcoe
        OS Device Name:    host5
        Node Name:         0x1000001b21591236
        Port Name:         0x2000001b21591236
        Fabric Name:        0x2322000573b27f01
        Speed:             10 Gbit
        Supported Speed:   1 Gbit, 10 Gbit
        MaxFrameSize:      2112 bytes
        FC-ID (Port ID):   0x750005
        State:             Online
INFO: [2018-08-19 06:39:39] Running: 'ip a'...
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether e8:39:35:2d:e0:b8 brd ff:ff:ff:ff:ff:ff
    inet 10.16.67.77/21 brd 10.16.71.255 scope global dynamic noprefixroute enp2s0
       valid_lft 85793sec preferred_lft 85793sec
    inet6 2620:52:0:1040:43ea:b173:7371:858d/64 scope global dynamic noprefixroute 
       valid_lft 2591997sec preferred_lft 604797sec
    inet6 fe80::83da:a4cc:2276:5b5a/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether e8:39:35:2d:e0:b9 brd ff:ff:ff:ff:ff:ff
8: ens2f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:1b:21:59:12:34 brd ff:ff:ff:ff:ff:ff
    inet 172.17.13.1/16 brd 172.17.255.255 scope global dynamic noprefixroute ens2f0
       valid_lft 863839sec preferred_lft 863839sec
9: ens2f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:1b:21:59:12:35 brd ff:ff:ff:ff:ff:ff
    inet 172.17.13.2/16 brd 172.17.255.255 scope global dynamic noprefixroute ens2f1
       valid_lft 863844sec preferred_lft 863844sec
10: ens2f0.802-fcoe@ens2f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:1b:21:59:12:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::21b:21ff:fe59:1234/64 scope link 
       valid_lft forever preferred_lft forever
False

>>> fcoe.setup_soft_fcoe()
INFO: fcoe-utils is installed (fcoe-utils-1.0.32-6.fc29.x86_64)
INFO: Going to enable FCoE on these NICs:
	ens2f1 (ixgbe)
INFO: Waiting FCoE session with timeout 180 seconds
INFO: FCoE session created for ens2f1 as SCSI Host: host6
INFO: Waiting 120s for devices to be created
True

Comment 8 lnie 2018-08-19 13:08:17 UTC
Created attachment 1476902 [details]
journal

Comment 9 lnie 2018-09-16 04:06:18 UTC
Still see this in kernel-4.18.5-300.fc29.x86_64 and fcoe-utils-1.0.32-6.fc29.x86_64

Comment 10 Ben Cotton 2019-10-31 20:42:15 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Ben Cotton 2019-11-27 19:27:44 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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