Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 721313

Summary: fcoe daemon don't create fcoe session automatically when VLAN trunk has been disabled.
Product: Red Hat Enterprise Linux 6 Reporter: Gris Ge <fge>
Component: fcoe-utilsAssignee: Petr Šabata <psabata>
Status: CLOSED NOTABUG QA Contact: Storage QE <storage-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-25 14:02:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.