Bug 1468183 - [RHEL-7.4][fcoe VN2VN] cannot disable the vn2vn fcoe by 'echo 0>/sys/bus/fcoe/ctlr_1/enabled'
[RHEL-7.4][fcoe VN2VN] cannot disable the vn2vn fcoe by 'echo 0>/sys/bus/fcoe...
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: fcoe-utils (Show other bugs)
7.5
x86_64 Linux
medium Severity medium
: rc
: ---
Assigned To: Chris Leech
xhe@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-06 04:43 EDT by xhe@redhat.com
Modified: 2017-08-13 03:36 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description xhe@redhat.com 2017-07-06 04:43:53 EDT
Description of problem:
[RHEL-7.4][fcoe VN2VN] cannot disable the vn2vn fcoe by 'echo 0>/sys/bus/fcoe/ctlr_1/enabled'

Version-Release number of selected component (if applicable):
3.10.0-690.el7.x86_64
fcoe-utils-1.0.32-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. load the fcoe driver ixgbe, and bring up the interface ens2f0
   # modprobe ixgbe
   # ifconfig ens2f0 up
   # service fcoe start
2. create vn2vn fcoe by sysbus
   # echo ens2f0 > /sys/bus/fcoe/ctlr_create
3. set vn2vn mode and enable fcoe
   # echo vn2vn>/sys/bus/fcoe/devices/ctlr_1/mode 
   # echo 1>/sys/bus/fcoe/devices/ctlr_1/enabled 
   # fcoeadm -i
4. disable fcoe 
   # echo 0>/sys/bus/fcoe/devices/ctlr_1/enabled 

Actual results:
   # echo 0>/sys/bus/fcoe/devices/ctlr_1/enabled 
   # fcoeadm -i ens2f0
    Description:      82599ES 10-Gigabit SFI/SFP+ Network Connection
    Revision:         01
    Manufacturer:     Intel Corporation
    Serial Number:    90E2BA5661D8

    Driver:           ixgbe 4.4.0-k-rh7.4
    Number of Ports:  1

        Symbolic Name:     fcoe v0.1 over ens2f0
        OS Device Name:    host3
        Node Name:         0x100090e2ba5661da
        Port Name:         0x200090e2ba5661da
        Fabric Name:        0x0
        Speed:             10 Gbit
        Supported Speed:   1 Gbit, 10 Gbit
        MaxFrameSize:      2112 bytes
        FC-ID (Port ID):   0x0061da
        State:             Online   <---It's still Online


Expected results:
   # echo 0>/sys/bus/fcoe/devices/ctlr_1/enabled 
   # fcoeadm -i ens2f0
    Description:      82599ES 10-Gigabit SFI/SFP+ Network Connection
    Revision:         01
    Manufacturer:     Intel Corporation
    Serial Number:    90E2BA5661D8

    Driver:           ixgbe 4.4.0-k-rh7.4
    Number of Ports:  1

        Symbolic Name:     fcoe v0.1 over ens2f0
        OS Device Name:    host3
        Node Name:         0x100090e2ba5661da
        Port Name:         0x200090e2ba5661da
        Fabric Name:        0x0
        Speed:             10 Gbit
        Supported Speed:   1 Gbit, 10 Gbit
        MaxFrameSize:      2112 bytes
        FC-ID (Port ID):   0x0061da
        State:             Offline          


Additional info:
Comment 1 xhe@redhat.com 2017-07-06 05:03:34 EDT
Disabling the fcoe instance works at first time when I "echo 0>..." and you will see State: Offline. However after first time, it is not be able to Disabled when you use "echo 0>...". 

 # echo ens2f0>/sys/bus/fcoe/ctlr_create
 # echo vn2vn>/sys/bus/fcoe/devices/ctlr_1/mode
 # echo 1>/sys/bus/fcoe/devices/ctlr_1/enabled 
 # echo 0>/sys/bus/fcoe/devices/ctlr_1/enabled --> works at first time 
 # echo 1>/sys/bus/fcoe/devices/ctlr_1/enabled 
 # echo 0>/sys/bus/fcoe/devices/ctlr_1/enabled --> won't work
 # echo 0>/sys/bus/fcoe/devices/ctlr_1/enabled --> won't work
 # echo 0>/sys/bus/fcoe/devices/ctlr_1/enabled --> won't work
  ...

-Xiaonan

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