ovh / svfs

The Swift Virtual File System
Other
374 stars 54 forks source link

Webstorage CDN #94

Closed ne0ark closed 8 years ago

ne0ark commented 8 years ago

Context

  1. mount -t svfs -o auth_url="https://lb1047.pcs.ovh.net:5443/v2.0",username="[usernam]",password="[password]",tenant="[tenant]",storage_url="[url]" webstorage /root/webstorage

Credential Information was taken from: https://api.ovh.com/console/#/cdn/webstorage/%7BserviceName%7D/credentials#GET

Results you expected :

Mount the Openstack Storage

Results you observed :

Error

Debug log :

2016/08/31 10:20:00 Bad Request

Minims commented 8 years ago

Hi,

Have you tried like this :

mount -t svfs -o username="[username]",password="[password]",tenant="[tenant]",identity_url="https://lb1047.pcs.ovh.net:5443/v2.0",container=default cdn /mnt/cdn

ne0ark commented 8 years ago

That seems to work. Is there a way to figure out auth_url and region?

xlucas commented 8 years ago

Hello,

Two things here :

xlucas commented 8 years ago

@ne0ark auth_url is identity_url in 0.7.4. You don't need the region option since there's only one with CDN.

But if you are curious, you can list available regions and services like this :

curl "https://lb1047.pcs.ovh.net:5443/v2.0/tokens" -H "Content-Type: application/json" -d '
{
    "auth": {
        "tenantName": "[tenant]",
        "passwordCredentials": {
            "username": "[username]",
            "password": "[password]"
        }
    }
}
'
ne0ark commented 8 years ago

Thank you :) Resolved.