Giter VIP home page Giter VIP logo

Comments (10)

robert-bor avatar robert-bor commented on July 17, 2024

The quick start link does indeed say what you claim it does. When I try out all three combinations (both, only id, or only name), I get authenticated in all three situations.

I'm not too sure what exactly the problem is? Can you not get authenticated?

from joss.

yev avatar yev commented on July 17, 2024

Actually, I get IOException and 400 => Unknown and I can't pass authentication.
Maybe swift version/config differences?

from joss.

robert-bor avatar robert-bor commented on July 17, 2024

If you set the logger to DEBUG properties, you can see what it sends across the wire. If you're comfortable with sending me the credentials (username, password, tenant name, authentication URL, the code snippet that makes it all work) for your trial account, I can check it for you as well. My email address is [email protected].

from joss.

yev avatar yev commented on July 17, 2024

Hi Robert,
I activated the Debug mode.
Unfortunately I can't send you credentials as I'm working on our corporate server...

Here is a log:

11:19:33,290 INFO [main] org.javaswift.joss.client.impl.ClientImpl[73] org.javaswift.joss.client.impl.ClientImpl: JOSS / Creating real account instance
11:19:33,295 INFO [main] org.javaswift.joss.client.impl.ClientImpl[74] org.javaswift.joss.client.impl.ClientImpl: JOSS / * Allow caching: true
11:19:34,045 INFO [main] org.javaswift.joss.client.impl.ClientImpl[92] org.javaswift.joss.client.impl.ClientImpl: JOSS / Attempting authentication with tenant name: helios.me, tenant ID: null, username: XXXX, Auth URL: http://keystone.helioscloud.com:5000/v2.0
11:19:34,046 DEBUG [main] org.javaswift.joss.command.impl.core.AbstractCommand[67] org.javaswift.joss.command.impl.core.AbstractCommand: JOSS / Sending HTTP POST call http://keystone.helioscloud.com:5000/v2.0
11:19:34,046 DEBUG [main] org.javaswift.joss.command.impl.core.AbstractCommand[69] org.javaswift.joss.command.impl.core.AbstractCommand: * Accept=application/json
11:19:34,122 DEBUG [main] org.apache.http.impl.conn.PoolingClientConnectionManager[186] org.apache.http.impl.conn.PoolingClientConnectionManager: Connection request: [route: {}->http://keystone.helioscloud.com:5000][total kept alive: 0; route allocated: 0 of 25; total allocated: 0 of 50]
11:19:34,140 DEBUG [main] org.apache.http.impl.conn.PoolingClientConnectionManager[220] org.apache.http.impl.conn.PoolingClientConnectionManager: Connection leased: [id: 0][route: {}->http://keystone.helioscloud.com:5000][total kept alive: 0; route allocated: 1 of 25; total allocated: 1 of 50]
11:19:34,143 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnectionOperator[177] org.apache.http.impl.conn.DefaultClientConnectionOperator: Connecting to keystone.helioscloud.com:5000
11:19:34,230 DEBUG [main] org.apache.http.client.protocol.RequestAddCookies[132] org.apache.http.client.protocol.RequestAddCookies: CookieSpec selected: best-match
11:19:34,251 DEBUG [main] org.apache.http.client.protocol.RequestAuthCache[78] org.apache.http.client.protocol.RequestAuthCache: Auth cache not set in the context
11:19:34,252 DEBUG [main] org.apache.http.client.protocol.RequestTargetAuthentication[78] org.apache.http.client.protocol.RequestTargetAuthentication: Target auth state: UNCHALLENGED
11:19:34,253 DEBUG [main] org.apache.http.client.protocol.RequestProxyAuthentication[87] org.apache.http.client.protocol.RequestProxyAuthentication: Proxy auth state: UNCHALLENGED
11:19:34,253 DEBUG [main] org.apache.http.impl.client.DefaultRequestDirector[710] org.apache.http.impl.client.DefaultHttpClient: Attempt 1 to execute request
11:19:34,254 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[269] org.apache.http.impl.conn.DefaultClientConnection: Sending request: POST /v2.0 HTTP/1.1
11:19:34,254 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "POST /v2.0 HTTP/1.1[\r][\n]"
11:19:34,256 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "Accept: application/json[\r][\n]"
11:19:34,259 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "Content-Length: 101[\r][\n]"
11:19:34,260 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "Content-Type: application/json[\r][\n]"
11:19:34,260 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "Host: keystone.helioscloud.com:5000[\r][\n]"
11:19:34,260 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "Connection: Keep-Alive[\r][\n]"
11:19:34,261 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "User-Agent: Apache-HttpClient/4.2.1 (java 1.5)[\r][\n]"
11:19:34,261 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: >> "[\r][\n]"
11:19:34,261 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[273] org.apache.http.headers: >> POST /v2.0 HTTP/1.1
11:19:34,262 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[276] org.apache.http.headers: >> Accept: application/json
11:19:34,262 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[276] org.apache.http.headers: >> Content-Length: 101
11:19:34,262 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[276] org.apache.http.headers: >> Content-Type: application/json
11:19:34,262 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[276] org.apache.http.headers: >> Host: keystone.helioscloud.com:5000
11:19:34,263 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[276] org.apache.http.headers: >> Connection: Keep-Alive
11:19:34,263 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[276] org.apache.http.headers: >> User-Agent: Apache-HttpClient/4.2.1 (java 1.5)
11:19:34,263 DEBUG [main] org.apache.http.impl.conn.Wire[77] org.apache.http.wire: >> "{"auth":{"passwordCredentials":{"username":"XXXX","password":"YYYY"},"tenantName":"helios.me"}}"
11:19:34,324 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "HTTP/1.1 400 Bad Request[\r][\n]"
11:19:34,327 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "Server: nginx/1.1.19[\r][\n]"
11:19:34,328 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "Date: Sat, 22 Feb 2014 09:19:33 GMT[\r][\n]"
11:19:34,328 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "Content-Type: application/json[\r][\n]"
11:19:34,328 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "Content-Length: 121[\r][\n]"
11:19:34,329 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "Connection: keep-alive[\r][\n]"
11:19:34,329 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "Vary: X-Auth-Token[\r][\n]"
11:19:34,329 DEBUG [main] org.apache.http.impl.conn.Wire[63] org.apache.http.wire: << "[\r][\n]"
11:19:34,331 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[254] org.apache.http.impl.conn.DefaultClientConnection: Receiving response: HTTP/1.1 400 Bad Request
11:19:34,331 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[257] org.apache.http.headers: << HTTP/1.1 400 Bad Request
11:19:34,331 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[260] org.apache.http.headers: << Server: nginx/1.1.19
11:19:34,332 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[260] org.apache.http.headers: << Date: Sat, 22 Feb 2014 09:19:33 GMT
11:19:34,332 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[260] org.apache.http.headers: << Content-Type: application/json
11:19:34,332 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[260] org.apache.http.headers: << Content-Length: 121
11:19:34,332 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[260] org.apache.http.headers: << Connection: keep-alive
11:19:34,333 DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection[260] org.apache.http.headers: << Vary: X-Auth-Token
11:19:34,340 DEBUG [main] org.apache.http.impl.client.DefaultRequestDirector[540] org.apache.http.impl.client.DefaultHttpClient: Connection can be kept alive indefinitely
11:19:34,367 ERROR [main] org.javaswift.joss.command.impl.core.AbstractCommand[74] org.javaswift.joss.command.impl.core.AbstractCommand: JOSS / HTTP POST call http://keystone.helioscloud.com:5000/v2.0, HTTP status 400, Error UNKNOWN
11:19:34,367 ERROR [main] org.javaswift.joss.command.impl.core.AbstractCommand[82] org.javaswift.joss.command.impl.core.AbstractCommand: * Accept=application/json
11:19:34,369 DEBUG [main] org.apache.http.impl.conn.Wire[77] org.apache.http.wire: << "{"error": {"message": "get_version_v2() got an unexpected keyword argument 'auth'", "code": 400, "title": "Bad Request"}}"
11:19:34,370 DEBUG [main] org.apache.http.impl.conn.PoolingClientConnectionManager[272] org.apache.http.impl.conn.PoolingClientConnectionManager: Connection [id: 0][route: {}->http://keystone.helioscloud.com:5000] can be kept alive indefinitely

11:19:34,370 DEBUG [main] org.apache.http.impl.conn.PoolingClientConnectionManager[278] org.apache.http.impl.conn.PoolingClientConnectionManager: Connection released: [id: 0][route: {}->http://keystone.helioscloud.com:5000][total kept alive: 1; route allocated: 1 of 25; total allocated: 1 of 50]

Thank you for your help

from joss.

robert-bor avatar robert-bor commented on July 17, 2024

No problem, I fully understand. It looks like the auth URL is not correct.

Could you please try to use this auth URL?

http://keystone.helioscloud.com:5000/v2.0/tokens

from joss.

yev avatar yev commented on July 17, 2024

Yep, it was the trick!
Thank you very much, Robert!

from joss.

robert-bor avatar robert-bor commented on July 17, 2024

Great! You're welcome. If you like the product, please consider starring it in github.

from joss.

yev avatar yev commented on July 17, 2024

If you have a twitter account, I'll make a little ad. Or even better, an article in my tech blog.
Good project should be visible!

from joss.

robert-bor avatar robert-bor commented on July 17, 2024

That would be great! My twitter account is @robert_bor, not very active though. If you have an article, I'll be sure to retweet it.

from joss.

yev avatar yev commented on July 17, 2024

Hi Robert,

I just published a little post in my tech blog about JOSS

http://yevgen-fr.blogspot.com/2014/02/best-java-client-for-swift-openstack.html

If you have comments, please, don’t hesitate...

Voronetskyy Yevgen
http://yev-java.freehostia.com

On 22 Feb 2014, at 16:38, Robert Bor [email protected] wrote:

That would be great! My twitter account is @robert_bor, not very active though. If you have an article, I'll be sure to retweet it.

β€”
Reply to this email directly or view it on GitHub.

from joss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.