Custom zone name prefix is not getting set for Cisco Driver

Bug #1426106 reported by Carl Bader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Akhil Jayakumar

Bug Description

Description of the problem:
 Openstack - Cinder : CISCO Zone driver is failed to create zone with custom zone name prefix configured for the fabric.

Version-Release number of selected component (if applicable):
 openstack-cinder trunk

How reproducible:
 Always

Steps to reproduce:

- Follow the steps to configure the Cisco Zone Driver in cinder.conf to configure a custom zone name for a fabric:

   cinder.conf entry

[fc-zone-manager]
cisco_sb_connector=cinder.zonemanager.drivers.cisco.cisco_fc_zone_client_cli.CiscoFCZoneClientCLI
fc_san_lookup_service= cinder.zonemanager.drivers.cisco.cisco_fc_san_lookup_service.CiscoFCSanLookupService
zone_driver= cinder.zonemanager.drivers.cisco.cisco_fc_zone_driver.CiscoFCZoneDriver
fc_fabric_names=CISCO_FAB_A

[CISCO_FAB_A]
cisco_fc_fabric_address= 10.50.1.5
cisco_fc_fabric_password= hpinvent
cisco_fc_fabric_port= 22
cisco_fc_fabric_user= admin
cisco_zone_activate= True
cisco_zone_name_prefix= Carl_STACK_2_
cisco_zone_policy= initiator-target
cisco_zoning_vsan= 1

- Create volume and VM.
- Attach VM to the Volume.

Actual Results:

2015-02-26 11:53:23.146 ^[[00;32mDEBUG cinder.zonemanager.drivers.cisco.cisco_fc_zone_driver [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mActive zone set from fabric: {'zones': {u'Cisco_1': [u'10:00:38:ea:a7:62:f2:f1', u'10:00:38:ea:a7:62:f2:f5', u'10:00:d8:9d:67:f2:38:89', u'10:00:d8:9d:67:f2:38:8d', u'20:00:00:11:0a:02:94:53', u'20:00:00:11:0a:02:95:f7', u'20:01:00:11:0a:02:f2:ac', u'20:01:00:11:0a:02:f2:de', u'22:11:00:02:ac:00:2b:a0', u'22:12:00:02:ac:00:62:98', u'23:11:00:02:ac:00:2b:a0', u'23:12:00:02:ac:00:62:98']}, 'active_zone_config': u'OpenStack'}^[[00m ^[[00;33mfrom (pid=11169) get_active_zone_set /opt/stack/cinder/cinder/zonemanager/drivers/cisco/cisco_fc_zone_driver.py:470^[[00m

2015-02-26 11:53:23.147 ^[[00;36mINFO cinder.zonemanager.drivers.cisco.cisco_fc_zone_driver [^[[00;36m-^[[00;36m] ^[[01;35m^[[00;36mZone map to add: {u'openstack100038eaa762f2f122120002ac006298': ['10:00:38:ea:a7:62:f2:f1', u'22:12:00:02:ac:00:62:98'], u'openstack100038eaa762f2f123120002ac006298': ['10:00:38:ea:a7:62:f2:f1', u'23:12:00:02:ac:00:62:98']}^[[00m

2015-02-26 11:53:23.147 ^[[00;32mDEBUG cinder.zonemanager.drivers.cisco.cisco_fc_zone_client_cli [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mAdd Zones - Zones passed: {u'openstack100038eaa762f2f122120002ac006298': ['10:00:38:ea:a7:62:f2:f1', u'22:12:00:02:ac:00:62:98'], u'openstack100038eaa762f2f123120002ac006298': ['10:00:38:ea:a7:62:f2:f1', u'23:12:00:02:ac:00:62:98']}^[[00m ^[[00;33mfrom (pid=11169) add_zones /opt/stack/cinder/cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py:148^[[00m

Revision history for this message
Carl Bader (carl-bader) wrote :

zone show from Cisco switch after attachment.

csim-cisco9148# show zone
zone name Cisco_1 vsan 1
  pwwn 10:00:38:ea:a7:62:f2:f1
  pwwn 10:00:38:ea:a7:62:f2:f5
  pwwn 10:00:d8:9d:67:f2:38:89
  pwwn 10:00:d8:9d:67:f2:38:8d
  pwwn 20:00:00:11:0a:02:94:53
  pwwn 20:00:00:11:0a:02:95:f7
  pwwn 20:01:00:11:0a:02:f2:ac
  pwwn 20:01:00:11:0a:02:f2:de
  pwwn 22:11:00:02:ac:00:2b:a0
  pwwn 22:12:00:02:ac:00:62:98
  pwwn 23:11:00:02:ac:00:2b:a0
  pwwn 23:12:00:02:ac:00:62:98

zone name openstack100038eaa762f2f122120002ac006298 vsan 1
  pwwn 10:00:38:ea:a7:62:f2:f1
  pwwn 22:12:00:02:ac:00:62:98

zone name openstack100038eaa762f2f123120002ac006298 vsan 1
  pwwn 10:00:38:ea:a7:62:f2:f1
  pwwn 23:12:00:02:ac:00:62:98

zone name openstack100038eaa762f2f522120002ac006298 vsan 1
  pwwn 10:00:38:ea:a7:62:f2:f5
  pwwn 22:12:00:02:ac:00:62:98

zone name openstack100038eaa762f2f523120002ac006298 vsan 1
  pwwn 10:00:38:ea:a7:62:f2:f5
  pwwn 23:12:00:02:ac:00:62:98

Changed in cinder:
status: New → Confirmed
Xing Yang (xing-yang)
Changed in cinder:
assignee: nobody → Midun Kumar (mneelame)
Mike Perez (thingee)
tags: added: cisco zone-manager
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Owner Expired

Unassigning due to no activity.

Changed in cinder:
assignee: Midun Kumar (mneelame) → nobody
Changed in cinder:
importance: Undecided → Low
Changed in cinder:
assignee: nobody → Akhil Jayakumar (akjayaku)
Revision history for this message
Akhil Jayakumar (akjayaku) wrote :

it is working as expected with latest release.

Mar 02 04:27:56.674434 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: INFO

[CiscoOsFab2]

cisco_fc_fabric_address=x.x.x.x
cisco_fc_fabric_user=xxxxxx
cisco_fc_fabric_password=xxxxxxx
cisco_fc_fabric_port=22
cisco_zoning_policy=initiator-target
cisco_zone_activate=true
cisco_zone_name_prefix=custom
cisco_zoning_vsan=4

cinder.zonemanager.drivers.cisco.cisco_fc_zone_driver [req-aed3f57d-ad01-4b67-bf51-6ddc2d7ed728 req-3c719271-c220-4894-9e84-ccdbb52ac8c8 tempest-AttachVolumeTestJSON-408182352 None] Zone map to add: {'custom2100000e1ee81a165006016c47e06b94': ['21:00:00:0e:1e:e8:1a:16', '50:06:01:6c:47:e0:6b:94']}

bc89-de49336ea73e req-7f9628a6-63e8-48f5-9701-dfe31c65587c tempest-AttachVolumeTestJSON-408182352 None] Result was 0 {{(pid=6900) ssh_execute /usr/local/lib/python3.7/dist-packages/oslo_concurrency/processutils.py:560}}
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: DEBUG cinder.zonemanager.drivers.cisco.cisco_fc_zone_client_cli [req-732c6d01-76e5-482e-bc89-de49336ea73e req-7f9628a6-63e8-48f5-9701-dfe31c65587c tempest-AttachVolumeTestJSON-408182352 None] CLI output from ssh - output: zoneset name CiscoOsFab2 vsan 4
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: zone name cinder-dummy vsan 4
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: pwwn 01:01:01:01:01:01:01:01
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: pwwn 01:01:01:01:01:01:01:02
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: zone name custom2100000e1ee81a165006016c47e06b94 vsan 4
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: * fcid 0x950100 [pwwn 21:00:00:0e:1e:e8:1a:16]
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: * fcid 0x950600 [pwwn 50:06:01:6c:47:e0:6b:94]
Mar 02 04:29:51.753039 ubuntu-nodeprovider2-0000014805 cinder-volume[6808]: {{(pid=6900) _get_switch_info /opt/stack/new/cinder/cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py:390}}

Changed in cinder:
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

Remote bug watches

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