Creating secondary Ceph iSCSI Gateway in gwcli fails with error Get gateway hostname failed : Unable to connect to api endpoint

Solution Verified - Updated -

Issue

  • Deployed two Ceph iSCSI gateway nodes with service specification YAML file.
  • Creating the primary iSCSI gateway in gwcli was successful.

    [root@iscsigateway1 /]# gwcli
    /iscsi-target...wiqn/gateways> create iscsigateway1.example.org 198.51.100.21
    Adding gateway, sync'ing 0 disk(s) and 0 client(s)
    ok
    
  • Creating the second iSCSI gateway fails and only one gateway is visible in gwcli.

    [root@iscsigateway1 /]# gwcli
    /iscsi-target...wiqn/gateways> create iscsigateway2.example.org 198.51.100.22
    Get gateway hostname failed : Unable to connect to api endpoint @ http://iscsigateway2.example.org:5000/api/sysinfo/hostname
    Please check api_host setting and make sure host iscsigateway2.example.org IP is listening on port 5000
    /iscsi-target...wiqn/gateways> ls
    o- gateways .................................................................................................. [Up: 1/1, Portals: 1]
      o- iscsigateway1.example.org .............................................................................. [198.51.100.21 (UP)]
    

Environment

  • Red Hat Ceph Storage 5.3z2
  • Multi-homed Ceph nodes

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content