Ask Your Question

Quang Vu's profile - activity

2019-06-25 00:29:31 -0500 asked a question How to use S3 protocol to upload object to swift with curl

Hello everyone!

I want to use S3 protocol to write a tool for uploading object to swift with curl. How can I do it? Anyone can help me, thanks!

2019-06-03 04:41:12 -0500 answered a question Faild to use tempURL in swift

I have tried to set up 2 keys in account, 1 key in container. Generate tempurl from python code and swiftclient. It still return 401.

My steps: First, I add tempurl before authtoken Second, I post key to account metadata

         Meta Temp-Url-Key-2: VuVan

Meta X-Account-Meta-Temp-Url-Key: Vuvan

           Meta Temp-Url-Key: secretkey

Third, I use this python code in https://docs.openstack.org/liberty/config-reference/content/object-storage-tempurl.html (https://docs.openstack.org/liberty/co...) and replace my path and key. Then run that code I get tempurl

And this is log:

Jun 3 14:32:34 195 proxy: 10.13.98.165 10.13.98.165 03/Jun/2019/07/32/34 GET /v1/AUTH_44e37cb39c5d4768b320de2229502860/vuvan/admin.rc%3Ftemp_url_sig%3Df0658b6a20841ba0796236fa451faa6cef6a6898%26temp_url_expires%3D1559633543 HTTP/1.0 401 - curl/7.58.0 - - 35 - txf6a26a1d7baa4aed8fee1-005cf4cd12 - 0.0109 - - 1559547154.668499947 1559547154.679441929 -

About swiftclient I use this command:

swift tempurl GET 3600 /v1/AUTH_44e37cb39c5d4768b320de2229502860/vuvan/admin.rc secretkey

(with two keys)

The result still be 401 response.

2019-06-03 02:13:20 -0500 received badge  Enthusiast
2019-06-03 00:06:23 -0500 asked a question Faild to use tempURL in swift

Hello everyone!

I am creating tempURL in swift from 2 sources:

https://www.swiftstack.com/docs/admin/middleware/tempurl.html#configuring-tempurl (https://www.swiftstack.com/docs/admin...)

https://docs.openstack.org/swift/latest/api/temporary_url_middleware.html (https://docs.openstack.org/swift/late...)

I have added tempurl in pipeline and use swift client and curl to generate tempurl, but it always returl 401 response. Please help me!

2019-06-02 22:51:38 -0500 received badge  Editor (source)
2019-05-30 06:16:36 -0500 asked a question How to change expirer token time from 12h to 24h

Hello everyone! I am having some problems with expirer time in keystone. When i use "date" command:

2019-05-30 17:11:35.125056 convert into int: 1559211093

When I use token issue

2019-05-30T11:12:34.000000Z convert into int: 1559189512

There are something wrong. How can I edit expirer time in keystone into 24h format?

2019-05-20 03:35:35 -0500 received badge  Popular Question (source)
2019-05-20 03:01:49 -0500 asked a question How to use expirer object in swift ?

Hello everyone!

I am having trouble with expirer object, I read this article https://docs.openstack.org/swift/ocata/overview_expiring_objects.html (https://docs.openstack.org/swift/ocat...)

And I put object-expirer.conf in every object server, but when I use X-Delete-After header, object is not deleted after the time I set.

2019-05-17 01:33:32 -0500 commented answer Which way to set custom metadata?

thank you so much!

2019-05-16 22:20:25 -0500 asked a question Which way to set custom metadata?

Hello everyone! I want to set custom metadata with command swift post 9331558060408 a.txt -H "X-Object-Quang-Vu: QuangVu" but when I check status of that object, nothing is displayed. Please explain me why? I think setting custom metadata is default, not middleware.

2019-05-14 04:57:05 -0500 asked a question Where to study writing middleware?

Hello everyone!

I have learnt openstack for about 6 month in Openstack docs, but I see there are not enough documents for developer. Such as what I am troubling is writing a new middleware. On google, I just see some simple middlewares, and it's not enough knowledge to write a new one. And I has to learn from source code in github, try to debug line by line. I think it's not true to learn writing middleware like that. Please give me some recommendation. Thanks !