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

Fail for authenticating to the Object Storage. #5

Open
YunSangJun opened this issue Sep 20, 2017 · 0 comments
Open

Fail for authenticating to the Object Storage. #5

YunSangJun opened this issue Sep 20, 2017 · 0 comments

Comments

@YunSangJun
Copy link

Hello.

I fail for authenticating to the Object Storage using fog-softlayer library.

The following is fog conncetion setup.

      fog_connection: &fog_connection
        provider: 'softlayer'
        softlayer_username: IBM1365xxx
        softlayer_api_key: xxx
        softlayer_storage_account: IBMOS1365xxx-2
        softlayer_bluemix_objstor_auth_url: https://seo01.objectstorage.service.networklayer.com/auth/v1.0
        softlayer_cluster: seo01
        softlayer_temp_url_key: xxx

I success to authenticate by REST API via curl.
https://sldn.softlayer.com/blog/waelriac/managing-softlayer-object-storage-through-rest-apis

curl -i -H "X-Auth-User: IBMOS1365xxx-2 " -H "X-Auth-Key: xxx " https://seo01.objectstorage.service.networklayer.com/auth/v1.0

I debugged the following file and changed "unless" to "if" in line 147.
Current code : https://github.com/fog/fog-softlayer/blob/master/lib/fog/softlayer/storage.rb

Finally, i success to authenticate using fixed fog-softlayer library.
Fixed code : https://github.com/YunSangJun/fog-softlayer/blob/master/lib/fog/softlayer/storage.rb

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

1 participant