Skip to content

Use OpenStack insteadof OpenCloud with 1-x branch of Gaufrette component #235

Open
@chadyred

Description

@chadyred

Hello,

I try to use the 1-x branch of gaufrette component package in order to use OpenStack to replace OpenCloud.

Firstly, I have to redefined Adapter definition as the Bundle wait for OpenCloud class in service definition.

Then I configure the objectStoreV1, but the error is :

Client error: `POST https://auth.cloud.ovh.net/v3/auth/tokens` resulted in a `404 Not Found` response:    {"error": {"message": "Failed to validate token", "code": 404, "title": "Not Found"}}  

This is the main configuration

services:
    knp_gaufrette.adapter.opencloud:
        class: Gaufrette\Adapter\OpenStack
        abstract: true
        arguments: ["first", "second", "third", "fourth"]

    opencloud.connection:
        class: OpenStack\OpenStack
        arguments:
             -
                tokenId: "%openstack_token%"
                region: "%openstack_object_storage_region%"
                authUrl: "%openstack_identity_url%"
                username: "%openstack_username%"
                password: "%openstack_password%"
                tenantName: "%openstack_tenant_name%" # v3 use token, v2 user authentication username
                tenantId: "%openstack_tenant_id%"
                debugLog: true

    opencloud.object_store:
        lazy: false
        class: OpenStack\ObjectStore\v1\Service
        factory: ["@opencloud.connection", objectStoreV1]
        arguments:
            -
                catalogName: "%openstack_object_catalog_type%"
                region: "%openstack_object_storage_region%"
                urlType: "%openstack_object_storage_url_type%"

Do I miss something ? Is it the good option for the adapter ?

Thanks !

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions