Skip to content

concat connections fail during connect-all #3034

@martin-gpy

Description

@martin-gpy

Seems secure channel concat connections fail during nvme connect-all while using a JSON config file, as shown below:

# cat /usr/local/etc/nvme/config.json
[
  {
    "hostnqn":"nqn.2014-08.org.nvmexpress:uuid:e6550026-173e-4959-ba74-be367844bd8a",
    "hostid":"e6550026-173e-4959-ba74-be367844bd8a",
    "subsystems":[
      {
        "nqn":"nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:subsystem.subsys_CLIENT116_0",
        "ports":[
          {
            "transport":"tcp",
            "traddr":"192.168.1.116",
            "host_traddr":"192.168.1.6",
            "trsvcid":"4420",
            "dhchap_key":"DHHC-1:01:gTtZdM+d+SjkxHcCcJKuI0OQKEnIJiXFASAlNDQP94FD/lKe:",
            "concat":"true"
          }
        ]
      }
    ]
  }
]

Now attempt a connect-all on the above JSON config file:

# nvme connect-all -J /usr/local/etc/nvme/config.json -vv
kernel supports: instance cntlid transport traddr trsvcid nqn queue_size nr_io_queues reconnect_delay ctrl_loss_tmo keep_alive_tmo hostnqn host_traddr host_iface hostid duplicate_connect disable_sqflow hdr_digest data_digest nr_write_queues nr_poll_queues tos keyring tls_key fast_io_fail_tmo discovery dhchap_secret dhchap_ctrl_secret tls concat recovery_delay
connect ctrl, 'nqn=nqn.2014-08.org.nvmexpress.discovery,transport=tcp,traddr=192.168.1.116,host_traddr=192.168.1.6,trsvcid=4420,hostnqn=nqn.2014-08.org.nvmexpress:uuid:e6550026-173e-4959-ba74-be367844bd8a,hostid=e6550026-173e-4959-ba74-be367844bd8a,ctrl_loss_tmo=600'
connect ctrl, response 'instance=0,cntlid=192'
nvme0: nqn.2014-08.org.nvmexpress.discovery connected
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0
nvme0: nqn.2014-08.org.nvmexpress.discovery disconnected
connect ctrl, 'nqn=nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:discovery,transport=tcp,traddr=192.168.1.116,host_traddr=192.168.1.6,trsvcid=4420,hostnqn=nqn.2014-08.org.nvmexpress:uuid:e6550026-173e-4959-ba74-be367844bd8a,hostid=e6550026-173e-4959-ba74-be367844bd8a,discovery,ctrl_loss_tmo=600'
connect ctrl, response 'instance=0,cntlid=256'
nvme0: nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:discovery connected
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0
nvme0: get header (try 0/10)
nvme0: get 2 records (genctr 21)
nvme0: get header again
lookup ctrl (transport: tcp, traddr: 192.168.1.116, trsvcid 4420)
connect ctrl, 'nqn=nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:subsystem.subsys_CLIENT116_0,transport=tcp,traddr=192.168.1.116,trsvcid=4420,hostnqn=nqn.2014-08.org.nvmexpress:uuid:e6550026-173e-4959-ba74-be367844bd8a,hostid=e6550026-173e-4959-ba74-be367844bd8a,dhchap_secret=DHHC-1:01:gTtZdM+d+SjkxHcCcJKuI0OQKEnIJiXFASAlNDQP94FD/lKe:,ctrl_loss_tmo=600,tls,concat'
Failed to write to /dev/nvme-fabrics: Invalid argument
nvme0: nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:discovery disconnected

Tailing the messages file for the above failure:

# tail -f /var/log/messages
kernel: [T34705] nvme nvme0: mapped 2/0/0 default/read/poll queues.
kernel: [T34705] nvme nvme0: new ctrl: NQN "nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:subsystem.subsys_CLIENT116_0", addr 192.168.1.116:4420
kernel: [T34723] nvme nvme0: Removing ctrl: NQN "nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:subsystem.subsys_CLIENT116_0"
kernel: [T34835] nvme nvme0: queue_size 128 > ctrl sqsize 32, clamping down
kernel: [T34835] nvme nvme0: new ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery", addr 192.168.1.116:4420
kernel: [T34835] nvme nvme0: Removing ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery"
kernel: [T34835] nvme nvme0: queue_size 128 > ctrl sqsize 32, clamping down
kernel: [T34835] nvme nvme0: new ctrl: NQN "nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:discovery", addr 192.168.1.116:4420
kernel: [T34835] nvme_fabrics: Secure concatenation over TLS is not supported
kernel: [T34835] nvme nvme0: Removing ctrl: NQN "nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:discovery"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions