Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

2496

November 30th, 2016 23:00

Issue with python-swiftclient 3.2

Hello together,

i have some issue connecting ECS (Version 3.0) with the python swift tools.

I'm using python in Windows and the packages:

  • python-swiftclient 3.2
  • python-keystoneclient 3.7

The Authentication at the ECS will be fine:

swift -V 2 -A https://ecs.emea.svc.corpintra.net:9025/v2.0 -U test_namespace:test_user_swift -K xyz  --insecure stat test_bucket_swift              

Account: test_namespace           

Container: test_bucket_swift             

Objects: 0               

Bytes: 0            

Read ACL:           

Write ACL:             

Sync To:            

Sync Key: X-Emc-Is-Stale-Allowed: true       

Accept-Ranges: bytes              

Server: ViPR/1.0 X-Emc-Retention-Period: 0    

X-Emc-Request-Id: 351298b4:1589b8375da:53a2:0         

X-Timestamp: 1479988281316        

Content-Type: text/html          

X-Trans-Id: tx351298b41589b8375da53-a2000000000

I use -- insecure because an internal certificate and not an CA certified certificate.

Now i want to upload some data:

swift -V 2 -A https://ecs.emea.svc.corpintra.net:9025/v2.0 -U test_namespace:test_user_swift -K xyz  --insecure upload test_bucket_swift Werksplan.pdf

And i get this error:

Object PUT failed: https://ecs.emea.svc.corpintra.net:9025/v1/test_namespace/test_bucket_swift/Werksplan.pdf 400 Bad Request   b"Bad Content-Type header value:''"

I heard this is a bug at the ECS because the Jersey software.

See some links below:

[1] http://developer.openstack.org/api-ref/object-storage/

[2] https://bugs.launchpad.net/python-swiftclient/+bug/1433767

[3] https://jersey.java.net/

Could someone give me an info if this is an ECS bug and when it will be fixed?

Thanks a lot for support.

Warm regards Peter

No Responses!
No Events found!

Top