Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create target gateway failure #158

Closed
tanshaolong opened this issue Dec 6, 2019 · 14 comments
Closed

Create target gateway failure #158

tanshaolong opened this issue Dec 6, 2019 · 14 comments

Comments

@tanshaolong
Copy link

Hi

I try to create a target gateway, but I meet the below error message:

/iscsi-target...-igw/gateways> create iscsi-gw-1 192.168.2.98
Adding gateway, sync'ing 0 disk(s) and 0 client(s)
Failed : ip_addresses query to iscsi-gw-1 failed - check rbd-target-api log. Is the API server running and in the right mode (http/https)?

I am sure the rbd-target-api service is running at 192.168.2.98. Which wrong is for target api configuration?

Thanks
Ray

@tanshaolong
Copy link
Author

Although, I check the status of rbd-target-api service in 192.168.2.98 is ok, I meet issue that run api to get targets. Please see the output.

[root@iscsi-gw-1 ceph]# curl --insecure --user admin:admin -X GET http://192.168.2.98:5000/api/targets
{
  "message": "API access not available to 192.168.2.98"
}

I run same api at the another gw node(iscsi-gw-0). It is ok.

@ricardoasmarques
Copy link
Contributor

@tanshaolong you have to add 192.168.2.98 to the trusted_ip_list on /etc/ceph/iscsi-gateway.cfgand restart the rbd-target-api service.

@tanshaolong
Copy link
Author

@ricardoasmarques Thank for your quick response

I add 192.168.2.98 to the trusted_ip_list. I can run above api at gw node 192.168.2.98. But I create a target gateway by gwcli, I have same issue yet.

If I create the target gateway by api. I get the below message:

[root@iscsi-gw-1 ceph]# curl --insecure --user admin:admin -d ip_address=192.168.2.98 -dskipchecks=true -X PUT http://192.168.2.98:5000/api/gateway/iqn.2020-05.com.redhat.iscsi-gw/iscsi-gw-1
{
  "message": "Gateway creation failed, gateway(s) unavailable:iscsi-gw-1(UNKNOWN state),iscsi-gw-0.sample.com(UNKNOWN state)"
}

@ricardoasmarques
Copy link
Contributor

Any useful information on /var/log/rbd-target-api/rbd-target-api.log?

@ricardoasmarques
Copy link
Contributor

ricardoasmarques commented Dec 6, 2019

Is pingworking?

curl --insecure --user admin:admin -X GET http://192.168.2.98:5000/api/_ping

Which HTTP code is returned?

@mikechristie
Copy link
Contributor

Can you confirm that iscsi-gw-1 is the hostname of the gw node and it has IP 192.168.2.98 and its also the node you were running gwcli on and where rbd-target-api is running successfully?

@tanshaolong
Copy link
Author

@ricardoasmarques

I am sorry for late to reponse you.

If I directly do curl for ping, I think it work well.

[root@iscsi-gw-0 ~]# curl --insecure --user admin:admin -X GET http://192.168.2.91:5000/api/_ping
{
  "message": "pong"
}

But I see 403 http code at rbd-target-api.log, please see the detail log information:

2019-12-08 21:32:00,593     INFO [_internal.py:87:_log()] - fe80::250:56ff:fe8d:d6c9%ens192 - - [08/Dec/2019 21:32:00] "GET /api/_ping HTTP/1.1" 403 -
2019-12-08 21:32:01,856     INFO [_internal.py:87:_log()] - ::1 - - [08/Dec/2019 21:32:01] "GET /api/_ping HTTP/1.1" 200 -
2019-12-08 21:32:10,590     INFO [_internal.py:87:_log()] - fe80::250:56ff:fe8d:d6c9%ens192 - - [08/Dec/2019 21:32:10] "GET /api/_ping HTTP/1.1" 403 -
2019-12-08 21:32:11,857     INFO [_internal.py:87:_log()] - ::1 - - [08/Dec/2019 21:32:11] "GET /api/_ping HTTP/1.1" 200 -
2019-12-08 21:32:15,193    DEBUG [common.py:499:refresh()] - config refresh - current config is {u'updated': u'2019/12/06 09:30:45', u'created': u'2019/12/05 07:01:14', u'disks': {}, u'epoch': 9, u'version': 11, u'gateways': {u'iscsi-gw-0.sample.com': {u'updated': u'2019/12/06 07:34:55', u'active_luns': 0, u'created': u'2019/12/06 07:34:55'}, u'localhost6.localdomain6': {u'updated': u'2019/12/05 08:01:06', u'active_luns': 0, u'created': u'2019/12/05 08:01:06'}}, u'targets': {u'iqn.2020-01.com.redhat.iscsi-gw:iscsi-igw': {u'portals': {u'iscsi-gw-0.sample.com': {u'portal_ip_addresses': [u'192.168.2.91'], u'gateway_ip_list': [u'192.168.2.91'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 07:30:57', u'disks': {}, u'updated': u'2019/12/06 07:34:55', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.91']}, u'iqn.2020-01.com.redhat.iscsi-gw': {u'portals': {u'iscsi-gw-0.sample.com': {u'portal_ip_addresses': [u'192.168.2.91'], u'gateway_ip_list': [u'192.168.2.91'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 08:50:50', u'disks': {}, u'updated': u'2019/12/06 09:14:37', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.91']}, u'iqn.2019-01.com.redhat.iscsi-gw:iscsi-igw': {u'portals': {u'localhost6.localdomain6': {u'portal_ip_addresses': [u'192.168.2.92'], u'gateway_ip_list': [u'192.168.2.92'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/05 07:15:04', u'disks': {}, u'updated': u'2019/12/05 08:01:06', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.92']}, u'iqn.2020-05.com.redhat.iscsi-gw': {u'portals': {u'iscsi-gw-0.sample.com': {u'portal_ip_addresses': [u'192.168.2.91'], u'gateway_ip_list': [u'192.168.2.91'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 08:51:08', u'disks': {}, u'updated': u'2019/12/06 09:07:02', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.91']}, u'iqn.2020-06.com.redhat.iscsi-gw': {u'portals': {}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 09:30:45', u'disks': {}, u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}}}, u'discovery_auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}}
2019-12-08 21:32:15,193    DEBUG [common.py:139:_open_ioctx()] - (_open_ioctx) Opening connection to rbd pool
2019-12-08 21:32:15,194    DEBUG [common.py:146:_open_ioctx()] - (_open_ioctx) connection opened
2019-12-08 21:32:15,195    DEBUG [common.py:118:_read_config_object()] - _read_config_object reading the config object
2019-12-08 21:32:15,204    DEBUG [common.py:168:_get_ceph_config()] - (_get_rbd_config) config object contains '{
    "created": "2019/12/05 07:01:14",
    "discovery_auth": {
        "mutual_password": "",
        "mutual_password_encryption_enabled": false,
        "mutual_username": "",
        "password": "",
        "password_encryption_enabled": false,
        "username": ""
    },
    "disks": {},
    "epoch": 9,
    "gateways": {
        "iscsi-gw-0.sample.com": {
            "active_luns": 0,
            "created": "2019/12/06 07:34:55",
            "updated": "2019/12/06 07:34:55"
        },
        "localhost6.localdomain6": {
            "active_luns": 0,
            "created": "2019/12/05 08:01:06",
            "updated": "2019/12/05 08:01:06"
        }
    },
    "targets": {
        "iqn.2019-01.com.redhat.iscsi-gw:iscsi-igw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/05 07:15:04",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.92"
            ],
            "portals": {
                "localhost6.localdomain6": {
                    "gateway_ip_list": [
                        "192.168.2.92"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.92"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/05 08:01:06"
        },
        "iqn.2020-01.com.redhat.iscsi-gw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 08:50:50",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.91"
            ],
            "portals": {
                "iscsi-gw-0.sample.com": {
                    "gateway_ip_list": [
                        "192.168.2.91"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.91"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/06 09:14:37"
        },
        "iqn.2020-01.com.redhat.iscsi-gw:iscsi-igw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 07:30:57",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.91"
            ],
            "portals": {
                "iscsi-gw-0.sample.com": {
                    "gateway_ip_list": [
                        "192.168.2.91"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.91"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/06 07:34:55"
        },
        "iqn.2020-05.com.redhat.iscsi-gw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 08:51:08",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.91"
            ],
            "portals": {
                "iscsi-gw-0.sample.com": {
                    "gateway_ip_list": [
                        "192.168.2.91"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.91"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/06 09:07:02"
        },
        "iqn.2020-06.com.redhat.iscsi-gw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 09:30:45",
            "disks": {},
            "groups": {},
            "portals": {}
        }
    },
    "updated": "2019/12/06 09:30:45",
    "version": 11
}'
2019-12-08 21:32:15,206     INFO [_internal.py:87:_log()] - ::1 - - [08/Dec/2019 21:32:15] "GET /api/config HTTP/1.1" 200 -
2019-12-08 21:32:15,225    DEBUG [common.py:499:refresh()] - config refresh - current config is {u'updated': u'2019/12/06 09:30:45', u'created': u'2019/12/05 07:01:14', u'disks': {}, u'epoch': 9, u'version': 11, u'gateways': {u'iscsi-gw-0.sample.com': {u'updated': u'2019/12/06 07:34:55', u'active_luns': 0, u'created': u'2019/12/06 07:34:55'}, u'localhost6.localdomain6': {u'updated': u'2019/12/05 08:01:06', u'active_luns': 0, u'created': u'2019/12/05 08:01:06'}}, u'targets': {u'iqn.2020-01.com.redhat.iscsi-gw:iscsi-igw': {u'portals': {u'iscsi-gw-0.sample.com': {u'portal_ip_addresses': [u'192.168.2.91'], u'gateway_ip_list': [u'192.168.2.91'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 07:30:57', u'disks': {}, u'updated': u'2019/12/06 07:34:55', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.91']}, u'iqn.2020-01.com.redhat.iscsi-gw': {u'portals': {u'iscsi-gw-0.sample.com': {u'portal_ip_addresses': [u'192.168.2.91'], u'gateway_ip_list': [u'192.168.2.91'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 08:50:50', u'disks': {}, u'updated': u'2019/12/06 09:14:37', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.91']}, u'iqn.2019-01.com.redhat.iscsi-gw:iscsi-igw': {u'portals': {u'localhost6.localdomain6': {u'portal_ip_addresses': [u'192.168.2.92'], u'gateway_ip_list': [u'192.168.2.92'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/05 07:15:04', u'disks': {}, u'updated': u'2019/12/05 08:01:06', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.92']}, u'iqn.2020-05.com.redhat.iscsi-gw': {u'portals': {u'iscsi-gw-0.sample.com': {u'portal_ip_addresses': [u'192.168.2.91'], u'gateway_ip_list': [u'192.168.2.91'], u'inactive_portal_ips': [], u'tpgs': 1}}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 08:51:08', u'disks': {}, u'updated': u'2019/12/06 09:07:02', u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}, u'ip_list': [u'192.168.2.91']}, u'iqn.2020-06.com.redhat.iscsi-gw': {u'portals': {}, u'clients': {}, u'acl_enabled': True, u'created': u'2019/12/06 09:30:45', u'disks': {}, u'auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}, u'controls': {}, u'groups': {}}}, u'discovery_auth': {u'username': u'', u'password_encryption_enabled': False, u'mutual_username': u'', u'mutual_password_encryption_enabled': False, u'mutual_password': u'', u'password': u''}}
2019-12-08 21:32:15,225    DEBUG [common.py:139:_open_ioctx()] - (_open_ioctx) Opening connection to rbd pool
2019-12-08 21:32:15,225    DEBUG [common.py:146:_open_ioctx()] - (_open_ioctx) connection opened
2019-12-08 21:32:15,226    DEBUG [common.py:118:_read_config_object()] - _read_config_object reading the config object
2019-12-08 21:32:15,227    DEBUG [common.py:168:_get_ceph_config()] - (_get_rbd_config) config object contains '{
    "created": "2019/12/05 07:01:14",
    "discovery_auth": {
        "mutual_password": "",
        "mutual_password_encryption_enabled": false,
        "mutual_username": "",
        "password": "",
        "password_encryption_enabled": false,
        "username": ""
    },
    "disks": {},
    "epoch": 9,
    "gateways": {
        "iscsi-gw-0.sample.com": {
            "active_luns": 0,
            "created": "2019/12/06 07:34:55",
            "updated": "2019/12/06 07:34:55"
        },
        "localhost6.localdomain6": {
            "active_luns": 0,
            "created": "2019/12/05 08:01:06",
            "updated": "2019/12/05 08:01:06"
        }
    },
    "targets": {
        "iqn.2019-01.com.redhat.iscsi-gw:iscsi-igw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/05 07:15:04",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.92"
            ],
            "portals": {
                "localhost6.localdomain6": {
                    "gateway_ip_list": [
                        "192.168.2.92"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.92"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/05 08:01:06"
        },
        "iqn.2020-01.com.redhat.iscsi-gw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 08:50:50",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.91"
            ],
            "portals": {
                "iscsi-gw-0.sample.com": {
                    "gateway_ip_list": [
                        "192.168.2.91"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.91"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/06 09:14:37"
        },
        "iqn.2020-01.com.redhat.iscsi-gw:iscsi-igw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 07:30:57",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.91"
            ],
            "portals": {
                "iscsi-gw-0.sample.com": {
                    "gateway_ip_list": [
                        "192.168.2.91"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.91"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/06 07:34:55"
        },
        "iqn.2020-05.com.redhat.iscsi-gw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 08:51:08",
            "disks": {},
            "groups": {},
            "ip_list": [
                "192.168.2.91"
            ],
            "portals": {
                "iscsi-gw-0.sample.com": {
                    "gateway_ip_list": [
                        "192.168.2.91"
                    ],
                    "inactive_portal_ips": [],
                    "portal_ip_addresses": [
                        "192.168.2.91"
                    ],
                    "tpgs": 1
                }
            },
            "updated": "2019/12/06 09:07:02"
        },
        "iqn.2020-06.com.redhat.iscsi-gw": {
            "acl_enabled": true,
            "auth": {
                "mutual_password": "",
                "mutual_password_encryption_enabled": false,
                "mutual_username": "",
                "password": "",
                "password_encryption_enabled": false,
                "username": ""
            },
            "clients": {},
            "controls": {},
            "created": "2019/12/06 09:30:45",
            "disks": {},
            "groups": {},
            "portals": {}
        }
    },
    "updated": "2019/12/06 09:30:45",
    "version": 11
}'
2019-12-08 21:32:15,228     INFO [rbd-target-api:620:gateway()] - gateway validation needed for iscsi-gw-1
2019-12-08 21:32:15,231     INFO [_internal.py:87:_log()] - ::1 - - [08/Dec/2019 21:32:15] "PUT /api/gateway/iqn.2020-01.com.redhat.iscsi-gw:iscsi-igw/iscsi-gw-1 HTTP/1.1" 400 -
2019-12-08 21:32:20,587     INFO [_internal.py:87:_log()] - fe80::250:56ff:fe8d:d6c9%ens192 - - [08/Dec/2019 21:32:20] "GET /api/_ping HTTP/1.1" 403 -
2019-12-08 21:32:21,857     INFO [_internal.py:87:_log()] - ::1 - - [08/Dec/2019 21:32:21] "GET /api/_ping HTTP/1.1" 200 -
2019-12-08 21:32:30,594     INFO [_internal.py:87:_log()] - fe80::250:56ff:fe8d:d6c9%ens192 - - [08/Dec/2019 21:32:30] "GET /api/_ping HTTP/1.1" 403 -
2019-12-08 21:32:31,858     INFO [_internal.py:87:_log()] - ::1 - - [08/Dec/2019 21:32:31] "GET /api/_ping HTTP/1.1" 200 -

@tanshaolong
Copy link
Author

@mikechristie
Yes, I have three ceph gw nodes. The two rbd-target-api services are running well. I run my test steps at the both well services. The below is both gw nodes information.

ip: 192.168.2.98, hostname: iscsi-gw-1
ip: 192.168.2.91, hostname: iscsi-gw-0.sample.com

If you need the more information for the issue, please let me know. Thank you very much.

@ricardoasmarques
Copy link
Contributor

@tanshaolong

Check if the following commands are working:

curl --insecure --user admin:admin -X GET http://192.168.2.98:5000/api/sysinfo/ip_addresses
curl --insecure --user admin:admin -X GET http://192.168.2.91:5000/api/sysinfo/ip_addresses

If not, check for errors on /var/log/rbd-target-api/rbd-target-api.log.

@tanshaolong
Copy link
Author

@ricardoasmarques @mikechristie Thank for your help.

I maybe find the issue cause. I stop firewalld and disable selinux. I can create the target gw now.

/iscsi-target...-igw/gateways> create iscsi-gw-1 192.168.2.98
Adding gateway, sync'ing 0 disk(s) and 0 client(s)

All gateways accessible
ok

@ricardoasmarques Also, I curl route “api/sysinfo/ip_addresses”. The both http requirements are working well.

curl --insecure --user admin:admin -X GET http://192.168.2.98:5000/api/sysinfo/ip_addresses
{
  "data": [
    "192.168.2.98"
  ]
}

@tanshaolong
Copy link
Author

@ricardoasmarques @mikechristie

I don't find restful api documents from ceph officous site for ceph target api. For the api usage, I currently check the python code from ceph iscsi. Do you please give some other suggestion for get the api description? Thank you very much.

@ricardoasmarques
Copy link
Contributor

ricardoasmarques commented Dec 10, 2019

@tanshaolong You'll find API documentation at http://192.168.2.98:5000/api.

@ricardoasmarques
Copy link
Contributor

@ricardoasmarques @mikechristie Thank for your help.

I maybe find the issue cause. I stop firewalld and disable selinux. I can create the target gw now.

@tanshaolong can we close this issue?

@tanshaolong
Copy link
Author

Thank for your help, I think we can close the issue. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants