-
Notifications
You must be signed in to change notification settings - Fork 59
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
Comments
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.
I run same api at the another gw node(iscsi-gw-0). It is ok. |
@tanshaolong you have to add |
@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:
|
Any useful information on |
Is
Which HTTP code is returned? |
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? |
I am sorry for late to reponse you. If I directly do curl for ping, I think it work well.
But I see 403 http code at rbd-target-api.log, please see the detail log information:
|
@mikechristie ip: 192.168.2.98, hostname: iscsi-gw-1 If you need the more information for the issue, please let me know. Thank you very much. |
Check if the following commands are working:
If not, check for errors on |
@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.
@ricardoasmarques Also, I curl route “api/sysinfo/ip_addresses”. The both http requirements are working well.
|
@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. |
@tanshaolong You'll find API documentation at |
@tanshaolong can we close this issue? |
Thank for your help, I think we can close the issue. :) |
Hi
I try to create a target gateway, but I meet the below error message:
I am sure the rbd-target-api service is running at 192.168.2.98. Which wrong is for target api configuration?
Thanks
Ray
The text was updated successfully, but these errors were encountered: