-
Notifications
You must be signed in to change notification settings - Fork 366
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
get projects list not working with openstack4j-3.0.0 #694
Comments
Hi @gilbirenberg , Strange. Does this happen just with project list? |
Hi @auhlig Thanks for getting back to me I think this is in any function's inside os2.identity() Thanks |
Mh. Can you take a look at the Identity Service in the Token's catalog? Is there a Identity V3 one with correct endpoints? |
should i check this with the openstart4j jar? can you give code example please? |
Hi I hope you refering to this, but this is what i did: |
where os2 is V3 connection, i can see that the keystone endpoint is only |
Hi, So you could enable debug by adding OSFactory's |
did is what i did, using the OSFactory's .enableHttpLoggingFilter(true). this is how i know that the url of the projects is bad |
i think i found your problem, you are using this function String resolveV3(URLResolverParams p) to get the keystone public identity, the thing is in one of my system the response is wrong getting any solution for this? |
Hi @auhlig hope you doing well? I don't this is right because i am using v3 connection and when running the command: do you think this will be fix or you will give this option in the next release of you wonderful jar tool :) |
@gilbirenberg Please have a look at the test cases here and try to see if it fits what you are expecting |
Hi @gilbirenberg , Shouldn't the Identity V3 Endpoint in the catalog end with |
Hi @auhlig Gil |
Not sure I understand your last comment. As far as I know the url of the identity service in the catalog should contain the version, which will be used for identity operations. |
Today the endpoint coming from the identity service is returning wrong version |
I guess in your case you need to configure your OpenStack properly, because adding an Endpoint to a service using OS4j is possible but requires that the Identity service works. |
@gilbirenberg Is this issue still valid or can it be closed? |
@gilbirenberg please reopen if this issue is valid still |
Hi @vinodborole @auhlig , I have several instance of openstack. All of them support V3 authentication. But in few instances after authentication keystone endpoint it is returning as When I am doing externally /v3/projects it is returning all projects in all instances. Can you please suggest some way so that I can get projects even if it returns /v2.0 as endpoint url. Otherwise with previous version of openstack it will be difficult to handle and we will be loosing backward compatibility. |
@kushalagrawal1 What do you mean when by this "When I am doing externally /v3/projects it is returning all projects in all instances." ? |
Hi @vinodborole, Thanks for replying, As I have multiple instances of OpenStack consider 2 at this moment.
So in case of |
@kushalagrawal1 It has to do something with your openstack configuration itself; please verify it once with your other two instances |
Hi All
I am using the name jar and like to get all the projects list, here is the code I am using:
OSClientV3 os2 = OSFactory.builderV3()
.endpoint("http://127.0.0.1:5000/v3")
.credentials("admin", "********", Identifier.byName("default"))
.scopeToProject(Identifier.byName("admin") , Identifier.byName("default"))
.authenticate();
System.out.println(os2.identity().projects().list());
I active the http log:
OSFactory.enableHttpLoggingFilter(true);
the connection is working, then when running the command os2.identity().projects().list() I see that the REST API is trying to run this:
GET http://172.29.159.19:5000/v2.0/projects
You can see that this is not correct, it should be:
GET http://172.29.159.19:5000/v3/projects
Is this known issue?
Thanks
Gil
The text was updated successfully, but these errors were encountered: