-
Notifications
You must be signed in to change notification settings - Fork 149
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
RackSpace OpenStack #316
Comments
@ap-coder This SDK should work with RackSpace Openstack for the most part. What is the issue you are having? |
Hi @haphan ! I'm at the same point than @ap-coder . I'm moving my old ObjectStore from https://github.com/rackspace/php-opencloud to this new OpenStack code ( the old rackspace still requiring deprected code) Trying to follow with https://php-openstack-sdk.readthedocs.io/en/latest/services/object-store/v1/account.html docs, I create a very simple PHP Code as follows
Please ensure that the resource you're trying to access actually exists. Visit http://docs.php-opencloud.com/en/latest/http-codes for more information about debugging HTTP status codes, or file a support issue on https://github.com/php-openc I have also opened a ticket with Rackspace, but I thing here I could get a better solution. |
@braisdesousa Can you try to use identity v3 instead?
Most likely RackSpace has deprecated v2 identity endpoint.
|
This may be the problem @haphan, there is not identityV3 on rackspace. All documentation is based on https://developer.rackspace.com/docs/cloud-identity/quickstart/ And just refers to https://lon.identity.api.rackspacecloud.com/v2.0/ to identificate. Using CURL I'm able to retrive the catalog list of services, also my TOKEN to use with X-Auth-Token. And the public URL endpoints of this catalog services, But I cannot make it work with OpenStack. |
@braisdesousa I recall this issue with auth v2.0 now. Pardon me because not many platforms are still using v2. For v2 identity you'd need to override the config for Can you give it a try and report back? Thanks |
Test Done, following that documentation I'm able to create the same Guzzle Post, thant I was doing with CURL. And, this part "works", using it as identityService, is till giving the same response.
The response stills |
@braisdesousa We use this with Rackspace. I can't remember doing it, but it looks like Rackspace expects 'apiKey', not 'password' and that we're overriding the default
and
Then the config looks something like:
You'd need to construct an instance of the Identity service passing the api as the second param, and somehow tell the rest of openstack to use that. As I said, our requirements are complex and there may be a much easier way of doing it. Sure would have been nice if Rackspace hadn't fired all their developers 4 years ago ;) |
Thank you @kynx ! I will give it a Try ASAP and reply if it works. |
It Works as expected, the only required extra change is having to EDIT OpenStack Builder, to make a replacement of the API and the Service class, to match the ones we have created. if($apiClass==='OpenStack\Identity\v2\Api'){
$serviceClass=Service::class;
$apiClass=Api::class;
} I'm not so happy with this solution. Looks like a horrible patch. But it works, which is what my company need right now. I'll try to write Rackspace Support for looking for a better solution than this one. But, anyway thanks @kynx @haphan for your incredible help. Couldn't make it without you. |
I struggled with getting OpenStack working with Rackspace Cloud Files for days so I wrote my own very simple PHP client for the basic functionality that my app needs for Cloud Files here: https://github.com/gkilwein/Rackspace-Cloud-Files Hopefully this helps someone. |
Late to this issue, but since it still doesn't seem to have a solution: This uses php-opencloud/openstack v3.10.0
You also need to create the identity service referenced in the code:
|
Any chance someone is working on this?
It would be really helpful in getting it integrated with my app so i was just wondering.
The text was updated successfully, but these errors were encountered: