Zones are getting created for all the available ports in Host- BRCD Zone Manager

Bug #1331945 reported by Shanthakumar K
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Kurt Martin
Ubuntu
Confirmed
Undecided
Musaab Jameel

Bug Description

Installed icehouse and configured brocade zonemanager to test FC auto zoning for 3par

Setup details
#########
1. Host with multi port HBA
2. Connected to switch with one of the HBA ports in Host (50:01:43:80:21:e3:9b:9c)
3. 2 ports of 3par Storage is connected of switch (20:01:00:02:ac:00:4f:45, 21:01:00:02:ac:00:4f:45)

Problem
######

During the attach of 3par FC volume, zones are getting created automatically by BRCD zone manager but it takes all the available ports in the host, instead of ports only connected to switch because of this zones are created for the unconnected ports on host

Host with Multi-port HBA
###################

root@hLinux:/sys/class/scsi_host# for i in 0 1 2 3 4 5; do cat host$i/device/fc_host/host$i/port_name; done
0x5001438021e39b9c
0x5001438021e39b9e
root@hLinux:/sys/class/scsi_host#

Switch connect with only one port of the host
#################################

SVSCDLSAN07:FID128:admin> switchshow

Index Port Address Media Speed State Proto
==============================================
   0 0 010000 id N4 Online FC F-Port 20:01:00:02:ac:00:4f:45
   1 1 010100 id N4 Online FC F-Port 21:01:00:02:ac:00:4f:45

<<<<< 8 8 010800 id N8 Online FC F-Port 50:01:43:80:21:e3:9b:9c >>>>>

   9 9 010900 id N8 Online FC F-Port 50:01:43:80:21:e3:99:74

Zones are created for both the ports in host
###############################

SVSCDLSAN07:FID128:admin> cfgshow
Defined configuration:
 cfg: OpenStack_Cfg
                openstack5001438021e39b9e20010002ac004f45;
                openstack5001438021e39b9e21010002ac004f45;
                openstack5001438021e39b9c20010002ac004f45;
                openstack5001438021e39b9c21010002ac004f45
 zone: openstack5001438021e39b9c20010002ac004f45
                50:01:43:80:21:e3:9b:9c; 20:01:00:02:ac:00:4f:45
 zone: openstack5001438021e39b9c21010002ac004f45
                50:01:43:80:21:e3:9b:9c; 21:01:00:02:ac:00:4f:45
 zone: openstack5001438021e39b9e20010002ac004f45
                50:01:43:80:21:e3:9b:9e; 20:01:00:02:ac:00:4f:45
 zone: openstack5001438021e39b9e21010002ac004f45
                50:01:43:80:21:e3:9b:9e; 21:01:00:02:ac:00:4f:45

Effective configuration:
 cfg: OpenStack_Cfg
 zone: openstack5001438021e39b9c20010002ac004f45
                50:01:43:80:21:e3:9b:9c
                20:01:00:02:ac:00:4f:45
 zone: openstack5001438021e39b9c21010002ac004f45
                50:01:43:80:21:e3:9b:9c
                21:01:00:02:ac:00:4f:45
 zone: openstack5001438021e39b9e20010002ac004f45
                50:01:43:80:21:e3:9b:9e
                20:01:00:02:ac:00:4f:45
 zone: openstack5001438021e39b9e21010002ac004f45
                50:01:43:80:21:e3:9b:9e
                21:01:00:02:ac:00:4f:45

Kindly let me know if you need any other details

summary: - Zones are getting created for available all the available ports in Host-
- BRCD Zone Manager
+ Zones are getting created for all the available ports in Host- BRCD Zone
+ Manager
tags: added: zonemanager
tags: added: fibrechannel
Changed in cinder:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Angela Smith (aallen-m) wrote :

This does not appear to be issue with the ZM. Zones are only created for the WWNs that are passed to it in the conn_info.initiator_target_map. If the map contains 2 initiators, then 2 zones will be created.

Changed in cinder:
assignee: nobody → Walt Boring (walter-boring)
Revision history for this message
Shanthakumar K (shantha-kumar) wrote :

if N number of ports are available in host, zones will be created for all the available ports thru "conn_info.initiator_target_map"...

Why cant we restrict only which is connected to the switch ?

Revision history for this message
Angela Smith (aallen-m) wrote : RE: [Bug 1331945] Re: Zones are getting created for all the available ports in Host- BRCD Zone Manager
Download full text (4.1 KiB)

Can you please post nsshow and nscamshow info from the switch? The zonemanager looks up in the nameserver and only zones those initiators and targets which are found in the name server.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of shausy
Sent: Friday, June 20, 2014 2:54 AM
To: Angela Smith
Subject: [Bug 1331945] Re: Zones are getting created for all the available ports in Host- BRCD Zone Manager

if N number of ports are available in host, zones will be created for all the available ports thru "conn_info.initiator_target_map"...

Why cant we restrict only which is connected to the switch ?

--
You received this bug notification because you are subscribed to Cinder.
Matching subscriptions: zoning
https://bugs.launchpad.net/bugs/1331945

Title:
  Zones are getting created for all the available ports in Host- BRCD
  Zone Manager

Status in Cinder:
  Confirmed

Bug description:
  Installed icehouse and configured brocade zonemanager to test FC auto
  zoning for 3par

  Setup details
  #########
  1. Host with multi port HBA
  2. Connected to switch with one of the HBA ports in Host (50:01:43:80:21:e3:9b:9c)
  3. 2 ports of 3par Storage is connected of switch (20:01:00:02:ac:00:4f:45, 21:01:00:02:ac:00:4f:45)

  Problem
  ######

  During the attach of 3par FC volume, zones are getting created
  automatically by BRCD zone manager but it takes all the available
  ports in the host, instead of ports only connected to switch because
  of this zones are created for the unconnected ports on host

  Host with Multi-port HBA
  ###################

  root@hLinux:/sys/class/scsi_host# for i in 0 1 2 3 4 5; do cat host$i/device/fc_host/host$i/port_name; done
  0x5001438021e39b9c
  0x5001438021e39b9e
  root@hLinux:/sys/class/scsi_host#

  Switch connect with only one port of the host
  #################################

  SVSCDLSAN07:FID128:admin> switchshow

  Index Port Address Media Speed State Proto
  ==============================================
     0 0 010000 id N4 Online FC F-Port 20:01:00:02:ac:00:4f:45
     1 1 010100 id N4 Online FC F-Port 21:01:00:02:ac:00:4f:45

  <<<<< 8 8 010800 id N8 Online FC F-Port
  50:01:43:80:21:e3:9b:9c >>>>>

     9 9 010900 id N8 Online FC F-Port
  50:01:43:80:21:e3:99:74

  Zones are created for both the ports in host
  ###############################

  SVSCDLSAN07:FID128:admin> cfgshow
  Defined configuration:
   cfg: OpenStack_Cfg
                  openstack5001438021e39b9e20010002ac004f45;
                  openstack5001438021e39b9e21010002ac004f45;
                  openstack5001438021e39b9c20010002ac004f45;
                  openstack5001438021e39b9c21010002ac004f45
   zone: openstack5001438021e39b9c20010002ac004f45
                  50:01:43:80:21:e3:9b:9c; 20:01:00:02:ac:00:4f:45
   zone: openstack5001438021e39b9c21010002ac004f45
                  50:01:43:80:21:e3:9b:9c; 21:01:00:02:ac:00:4f:45
   zone: openstack5001438021e39b9e20010002ac004f45
                  5...

Read more...

Revision history for this message
Michael Denny (michael-denny) wrote :

cinder.conf attached

Revision history for this message
deepali verneya (deepali-verneya) wrote :

nsshow and nscamshow info from switch--

SVSCDLSAN07:FID128:admin> nsshow
{
 Type Pid COS PortName NodeName TTL(sec)
 N 010000; 3;20:01:00:02:ac:00:4f:45;2f:f7:00:02:ac:00:4f:45; na
    FC4s: FCP
    PortSymb: [25] "1320293 - 0:0:1 - LP11002"
    NodeSymb: [39] "HP_3PAR InServ F400 - 1320293 - fw:3130"
    Fabric Port Name: 20:00:00:27:f8:67:da:3b
    Permanent Port Name: 20:01:00:02:ac:00:4f:45
    Port Index: 0
    Share Area: No
    Device Shared in Other AD: No
    Redirect: No
    Partial: No
 N 010100; 3;21:01:00:02:ac:00:4f:45;2f:f7:00:02:ac:00:4f:45; na
    FC4s: FCP
    PortSymb: [25] "1320293 - 1:0:1 - LP11002"
    NodeSymb: [39] "HP_3PAR InServ F400 - 1320293 - fw:3130"
    Fabric Port Name: 20:01:00:27:f8:67:da:3b
    Permanent Port Name: 21:01:00:02:ac:00:4f:45
    Port Index: 1
    Share Area: No
    Device Shared in Other AD: No
    Redirect: No
    Partial: No
The Local Name Server has 2 entries }

SVSCDLSAN07:FID128:admin> nscamshow
nscam show for remote switches:
No entry is found!

SVSCDLSAN07:FID128:admin>

Revision history for this message
Angela Smith (aallen-m) wrote :

This is working as designed. The FCZM only filters the target WWN list with those available in the name server. All initiators passed in are zoned to allow for pre-provisioning.

Changed in cinder:
importance: Low → High
Revision history for this message
Walt Boring (walter-boring) wrote :

This doesn't affect the functioning of the zone manager, nor does it affect the attaching of LUNs to a host. We have plans to use the lookup service, but it also needs to be done correctly so that we can still support multipath and limit the use of the 3PAR NSP ports.

Changed in cinder:
importance: High → Low
Changed in cinder:
status: Confirmed → New
status: New → Confirmed
Musaab Jameel (mosaabjm)
Changed in ubuntu:
status: New → Incomplete
assignee: nobody → Musaab Jameel (mosaabjm)
status: Incomplete → Confirmed
Changed in cinder:
milestone: none → kilo-3
Changed in cinder:
assignee: Walt Boring (walter-boring) → Richard Hagarty (richard-hagarty)
Revision history for this message
Michael Denny (michael-denny) wrote :

Hi Seems EMC is using the lookup service in the bug
https://bugs.launchpad.net/cinder/+bug/1379156

Changed in cinder:
status: Confirmed → In Progress
Mike Perez (thingee)
Changed in cinder:
assignee: Richard Hagarty (richard-hagarty) → nobody
milestone: kilo-3 → none
status: In Progress → Confirmed
Revision history for this message
Kurt Martin (kurt-f-martin) wrote :
Changed in cinder:
assignee: nobody → Kurt Martin (kurt-f-martin)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.