Re: Disabling ACL for qla2xxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Well, I finally had a chance to set up a fibre channel target system with kernel
3.12.  Unfortunately, demo mode still doesn't appear to work for me.  Here's
what I have:

Initiator    Fedora 18
                       kernel      3.10.4-100
             QLogic QLE2562 HBA

Target       Fedora 20
                       kernel      3.12.6-300
             QLogic QLE2462 HBA
                       targetcli   2.1.fb30-1
                       rtslib      2.1.fb40-1
                       configshell 1.1.fb9-1

I set things up as below:
-----------------------------------------------------------------------------
o- / .................................................................. [...] o- backstores ....................................................... [...] | o- block ........................................... [Storage Objects: 1] | | o- strg .................. [/dev/md_d0 (238.5GiB) write-thru activated] | o- fileio .......................................... [Storage Objects: 0] | o- pscsi ........................................... [Storage Objects: 0] | o- ramdisk ......................................... [Storage Objects: 0] o- iscsi ..................................................... [Targets: 0] o- loopback .................................................. [Targets: 0] o- qla2xxx ................................................... [Targets: 2] | o- naa.21000024XXXXXXXe ...................................... [gen-acls] | | o- acls ..................................................... [ACLs: 0] | | o- luns ..................................................... [LUNs: 1] | | o- lun0 ................................... [block/strg (/dev/md_d0)] | o- naa.21000024XXXXXXXf ...................................... [gen-acls] | o- acls ..................................................... [ACLs: 0] | o- luns ..................................................... [LUNs: 1] | o- lun0 ................................... [block/strg (/dev/md_d0)] o- vhost ..................................................... [Targets: 0]
-----------------------------------------------------------------------------

To enable demo mode I issued the following:

   targetcli /qla2xxx/naa.21000024XXXXXXXe set attribute\
      demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1\
      demo_mode_login_only=0

This responded with:

   Parameter demo_mode_login_only is now '0'.
   Parameter demo_mode_write_protect is now '0'.
   Parameter generate_node_acls is now '1'.
   Parameter cache_dynamic_acls is now '1'.


Unfortunately, nothing I do enables the initiator to see the target machine.
Rebooting the initiator or issuing a link initialization and scan don't help.

What does work is to add the initiator WWPNs to the target's acls which is, of
course, what demo mode is supposed to dispel.

This works:
-----------------------------------------------------------------------------
o- / .................................................................. [...] o- backstores ....................................................... [...] | o- block ........................................... [Storage Objects: 1] | | o- strg .................. [/dev/md_d0 (238.5GiB) write-thru activated] | o- fileio .......................................... [Storage Objects: 0] | o- pscsi ........................................... [Storage Objects: 0] | o- ramdisk ......................................... [Storage Objects: 0] o- iscsi ..................................................... [Targets: 0] o- loopback .................................................. [Targets: 0] o- qla2xxx ................................................... [Targets: 2] | o- naa.21000024XXXXXXXe ...................................... [gen-acls] | | o- acls ..................................................... [ACLs: 2] | | | o- naa.21000024XXXXXXXa ............................ [Mapped LUNs: 1] | | | | o- mapped_lun0 ............................. [lun0 block/strg (rw)] | | | o- naa.21000024XXXXXXXb ............................ [Mapped LUNs: 1] | | | o- mapped_lun0 ............................. [lun0 block/strg (rw)] | | o- luns ..................................................... [LUNs: 1] | | o- lun0 ................................... [block/strg (/dev/md_d0)] | o- naa.21000024XXXXXXXf ...................................... [gen-acls] | o- acls ..................................................... [ACLs: 2] | | o- naa.21000024XXXXXXXa ............................ [Mapped LUNs: 1] | | | o- mapped_lun0 ............................. [lun0 block/strg (rw)] | | o- naa.21000024XXXXXXXb ............................ [Mapped LUNs: 1] | | o- mapped_lun0 ............................. [lun0 block/strg (rw)] | o- luns ..................................................... [LUNs: 1] | o- lun0 ................................... [block/strg (/dev/md_d0)] o- vhost ..................................................... [Targets: 0]
-----------------------------------------------------------------------------

This doesn't work.
Here's the saveconfig.json file:

{
  "fabric_modules": [],
  "storage_objects": [
    {
      "attributes": {
        "block_size": 512,
        "emulate_3pc": 1,
        "emulate_caw": 1,
        "emulate_dpo": 0,
        "emulate_fua_read": 0,
        "emulate_fua_write": 1,
        "emulate_model_alias": 1,
        "emulate_rest_reord": 0,
        "emulate_tas": 1,
        "emulate_tpu": 0,
        "emulate_tpws": 0,
        "emulate_ua_intlck_ctrl": 0,
        "emulate_write_cache": 0,
        "enforce_pr_isids": 1,
        "fabric_max_sectors": 8192,
        "is_nonrot": 0,
        "max_unmap_block_desc_count": 1,
        "max_unmap_lba_count": 1024,
        "max_write_same_len": 65535,
        "optimal_sectors": 8192,
        "queue_depth": 128,
        "unmap_granularity": 1,
        "unmap_granularity_alignment": 0
      },
      "dev": "/dev/md_d0",
      "name": "strg",
      "plugin": "block",
      "readonly": false,
      "write_back": false,
      "wwn": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    }
  ],
  "targets": [
    {
      "fabric": "qla2xxx",
      "tpgs": [
        {
          "attributes": {
            "cache_dynamic_acls": 1,
            "demo_mode_login_only": 0,
            "demo_mode_write_protect": 0,
            "generate_node_acls": 1,
            "prod_mode_write_protect": 0
          },
          "enable": true,
          "luns": [
            {
              "index": 0,
              "storage_object": "/backstores/block/strg"
            }
          ],
          "node_acls": [],
          "portals": [],
          "tag": 1
        }
      ],
      "wwn": "naa.21000024XXXXXXXe"
    },
    {
      "fabric": "qla2xxx",
      "tpgs": [
        {
          "attributes": {
            "cache_dynamic_acls": 1,
            "demo_mode_login_only": 0,
            "demo_mode_write_protect": 0,
            "generate_node_acls": 1,
            "prod_mode_write_protect": 0
          },
          "enable": true,
          "luns": [
            {
              "index": 0,
              "storage_object": "/backstores/block/strg"
            }
          ],
          "node_acls": [],
          "portals": [],
          "tag": 1
        }
      ],
      "wwn": "naa.21000024XXXXXXXf"
    }
  ]
}


Am I missing something?

After waiting 6 months and being assured that this would be fixed in
3.12 it is a bit frustrating not be able to get this to work.  I know
since I identified the issue 6 months ago a couple of other people
have also queried the list concerning this feature.

I hope I'm just overlooking something.

Thanks for any insight,

Craig Watson

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux