Radosgw, keystone, ceph : Temporary URL :(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



English version and French Version // En anglais et en Français

English :

hello,

I set up and working properly CEPH via S3, librbd etc etc. ..

I set up and configure the Keystone radosgw so he can talk together, so far it seemed to work.

However I have a concern about the temporary URL.

I can create my container object:

-> Retrieve the token:
-s curl H 'Content-type: application / json' d '{"auth": {"tenantName": "TENANTNAME", "passwordCredentials": {"username": "USERXX", "password": "PASSXX "}}} 'https: // URL: 5000 / v2.0 / tokens | python -mjson.tool

-> Creation of the container:
curl-X PUT -i H "X-Auth-Token: xxxxxxxxxxxxxxxxxxx" https: // URL / swift / v1 / mycontainerjig

-> Push file:
curl-X PUT -i H "X-Auth-Token: xxxxxx" https: //URL/swift/v1/mycontainerjig/swift-temp-url.py

-> Visualization
telnet URL 80
GET / swift / v1 / mycontainerjig HTTP / 1.1
host: URL
x-auth-token: BnBnBnBnB
HTTP / 1.1 200 OK
Date: Mon, Oct. 6, 2014 2:06:57 p.m. GMT
Server: Apache / 2.2.22 (Ubuntu)
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text / plain; charset = utf-8

12
swift-temp-url.py

-----

For me everything is functional .. However I can not generate temporary URL:

Definition of private keys:

telnet URL 80
Trying A.B.C.D ...
Connected to URL.
Escape character is '^]'.
POST / swift / v1 / mycontainerjig HTTP / 1.1
Host: URL
X-Auth-Token: xxxxxxxxxxxxxxxxxxx
X-Account-Meta-Temp-Url-Key: b3968d0207b54ece87cccc06515a89d4

HTTP / 1.1 202 Accepted
Date: Mon, Oct. 6, 2014 2:11:11 p.m. GMT
Server: Apache / 2.2.22 (Ubuntu)
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text / plain; charset = utf-8

0



Generate temporary URL:
python swift-temp-url.py GET 120 /swift/v1/mycontainerjig/swift-temp-url.py b3968d0207b54ece87cccc06515a89d4
/swift/v1/mycontainerjig/swift-temp-url.py?temp_url_sig=62cf6265f8c81be1db41fc5ab253270f3df9be2f&temp_url_expires=1412604875

It gets a AccesDenied ..

Could you enlighten me?



Version Française :


Bonjour,

J'ai mis en place ceph et il fonctionne correctement via S3, librbd etc etc..

J'ai mis en place Keystone et configurer la radosGW pour qu'il puisse dialoguer ensemble, jusqu'à présent cela avait l'air de fonctionner.

Cependant j'ai un soucis sur les URL temporaire.

J'arrive à crée mes conteneurs, objet :

-> Récupération du token :
curl -s -H 'Content-type: application/json' -d '{"auth": {"tenantName": "TENANTNAME", "passwordCredentials": {"username": "USERXX","password": "PASSXX"}}}' https://URL:5000/v2.0/tokens | python -mjson.tool

-> Création du conteneur :
curl -X PUT -i -H "X-Auth-Token: xxxxxxxxxxxxxxxxxxx" https://URL/swift/v1/mycontainerjig

-> Push du fichier :
curl -X PUT -i -H "X-Auth-Token: xxxxxx" https://URL/swift/v1/mycontainerjig/swift-temp-url.py

-> Visualisation
telnet URL 80
GET /swift/v1/mycontainerjig HTTP/1.1
host: URL
x-auth-token: Xxxxxxxxxxxxx
HTTP/1.1 200 OK
Date: Mon, 06 Oct 2014 14:06:57 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8

12
swift-temp-url.py

-----

Pour moi tout est fonctionnelle.. Cependant je ne peux pas générer d'URL temporaire :

Définition de la clés privée :

telnet URL 80
Trying A.B.C.D...
Connected to URL.
Escape character is '^]'.
POST /swift/v1/mycontainerjig HTTP/1.1
Host: URL
X-Auth-Token: xxxxxxxxxxxxxxxxxxx
X-Account-Meta-Temp-Url-Key: b3968d0207b54ece87cccc06515a89d4

HTTP/1.1 202 Accepted
Date: Mon, 06 Oct 2014 14:11:11 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8

0



Génération de l'URL temporaire :
python swift-temp-url.py GET 120 /swift/v1/mycontainerjig/swift-temp-url.py b3968d0207b54ece87cccc06515a89d4
/swift/v1/mycontainerjig/swift-temp-url.py?temp_url_sig=62cf6265f8c81be1db41fc5ab253270f3df9be2f&temp_url_expires=1412604875

Celle-ci me retourne un AccesDenied..

Pourriez-vous m'éclairer ?

--

Jimmy Goffaux
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux