Bug 721313 - fcoe daemon don't create fcoe session automatically when VLAN trunk has been disabled.
Summary: fcoe daemon don't create fcoe session automatically when VLAN trunk has been ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: fcoe-utils
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Petr Šabata
QA Contact: Storage QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-14 09:15 UTC by Gris Ge
Modified: 2011-11-02 15:49 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-25 14:02:27 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Gris Ge 2011-07-14 09:15:27 UTC
Description of problem:

Bug 682790 has enable biosdevname in RHEL 6.1, it will give nic with name 'em1', 'p1p1' instead of 'ethX'.

configuration like "/etc/fcoe/cfg-p1p1" will not be loaded. fcoeadm -i show nothing about p1p1 NIC.

Work around:
========
echo p1p1 >/sys/module/fcoe/parameters/create
========

Version-Release number of selected component (if applicable):
RHEL 6.1 GA
kernel-2.6.32-131.0.15.el6.x86_64
fcoe-utils-1.0.18-2.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Find a server with SMBIOS 2.6 or higher
2. Install fcoe-utils.
3. cp /etc/fcoe/cfg-ethx /etc/fcoe-${nic_name}
4. service lldpad start (skip this is that NIC is not 10Gb NIC with switch enabled DCBX)
5. dcbtool sc ${nic_name} dcb on
6. dcbtool sc ${nic_name} app:fcoe e:1
7. service fcoe start

Actual results:
fcoe initiator cannot started.

Expected results:
fcoe initiator started as expected.

Additional info:

Comment 2 Petr Šabata 2011-07-15 12:02:22 UTC
I don't see any issues in the code.  It should work when you rename the interfaces to their biosdevname equivalents.  The server you mentioned (note: a private comment) uses the ethX scheme.

Comment 3 Gris Ge 2011-09-06 09:54:31 UTC
Petr,
Sorry for the late response.

That server do using biosdevname scheme. Check p1p1 and p1p2, by default it's in down mode.

I check again on fcoe-utils-1.0.20-2.el6.x86_64, still same problem.
Does these steps correct?

1. cp /etc/fcoe/cfg-ethx /etc/fcoe/cfg-${nic_name}
2. service lldpad start
3. dcbtool sc ${nic_name} dcb on
4. dcbtool sc ${nic_name} app:fcoe e:1
5. service fcoe start

[root@storageqe-51 ~]# fcoeadm -i
No FCoE interfaces created.

Comment 4 Gris Ge 2011-10-25 08:37:55 UTC
Petr Sabata,

It seems I found the root cause of this.

After I disable "trunk" on the FCoE switch. Linux has to use ethX for FCoE rather than ethX.802-fcoe sub-NIC.

With "trunk" enabled in FCoE, fcoe services will get fcoe host created automatically, but without it, we need "echo p1p1 >/sys/module/fcoe/parameters/create"

I checked on server using ethX name scheme, same results.

Can I reopen this bug and change subject?

Comment 5 Petr Šabata 2011-10-25 08:55:26 UTC
Gris,

I'm not sure what this "trunk" really is but it seems to respond to FIP VLAN discovery; when it's disabled, users have to create their interfaces manually.  The interface name (eth1 vs p1p1) should make no difference.

What exactly do you think is wrong?

Comment 6 Gris Ge 2011-10-25 09:53:13 UTC
Yes. The interface name make no difference.

Current issue is if FCoE switch has disabled VLAN trunk, then fcoe daemon (or lldapd) will not create FC host.

You mentioned user have to create their interfaces manually, you mean:
 1. ifconfig eth0.fcoe up
 2. echo eth0.fcoe > /sys/module/fcoe/parameters/create

Comment 7 Petr Šabata 2011-10-26 15:09:07 UTC
(In reply to comment #6)
> Yes. The interface name make no difference.
> 
> Current issue is if FCoE switch has disabled VLAN trunk, then fcoe daemon (or
> lldapd) will not create FC host.
> 
> You mentioned user have to create their interfaces manually, you mean:
>  1. ifconfig eth0.fcoe up
>  2. echo eth0.fcoe > /sys/module/fcoe/parameters/create

Yes, either that or via fcoeadm -c.

Comment 8 Gris Ge 2011-11-02 07:51:32 UTC
Thanks for the explanation. I keep it as NOTABUG.

Comment 9 Gris Ge 2011-11-02 08:38:55 UTC
the name scheme for ethX.* is for vlan trunk only.

command "ifconfig eth0.fcoe up" is not executable.

For sub nic like "ethX:X", it cannot echo to /sys/module/fcoe/parameters/create

So, for use who disabled the vlan trunk, it can only use ethX directly. In that way, fcoe daemon don't create it's fcoe session automatically.

Does Red Hat really support FCoE without vlan trunk?

BTW: I change the bug title for better understanding.

Comment 10 Petr Šabata 2011-11-02 15:49:18 UTC
(In reply to comment #9)
> the name scheme for ethX.* is for vlan trunk only.
> 
> command "ifconfig eth0.fcoe up" is not executable.
> 
> For sub nic like "ethX:X", it cannot echo to /sys/module/fcoe/parameters/create
> 
> So, for use who disabled the vlan trunk, it can only use ethX directly. In that
> way, fcoe daemon don't create it's fcoe session automatically.
> 
> Does Red Hat really support FCoE without vlan trunk?

It's never really worked for me (but that doesn't mean anything) ...

> 
> BTW: I change the bug title for better understanding.


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