[Openstack-operators] Problem with Curl

e.testingcloud e.testingcloud at tid.es
Wed Jun 22 11:29:46 UTC 2011


Hi.

I'm trying upload a file in my cluster Swift. This is the curl command:

curl -k -v -u pruebas:pruebas -X PUT -L -H 'X-Auth-Token: AUTH_tk4280297ceb064a718eaece2ddfe9f8a8' -F "file=@tn_DSCF1379.JPG" https://127.0.0.1:8080/v1/AUTH_6864d000-1-41cc-b767-77cb1b6bb378/ContainerPrueba

The error is the next:

* About to connect() to 127.0.0.1 port 8080 (#0)
*   Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES256-SHA
* Server certificate:
*        subject: C=ES; ST=Madrid; L=Madrid; O=TID; OU=TID; CN=TID
*        start date: 2011-05-09 10:58:57 GMT
*        expire date: 2011-06-08 10:58:57 GMT
*        common name: TID (does not match '127.0.0.1')
*        issuer: C=ES; ST=Madrid; L=Madrid; O=TID; OU=TID; CN=TID
*        SSL certificate verify result: self signed certificate (18), continuing anyway.
* Server auth using Basic with user 'pruebas'
> PUT /v1/AUTH_6864d000-1-41cc-b767-77cb1b6bb378/ContainerPrueba HTTP/1.1
> Authorization: Basic cHJ1ZWJhczpwcnVlYmFz
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: 127.0.0.1:8080
> Accept: */*
> X-Auth-Token: AUTH_tk4280297ceb064a718eaece2ddfe9f8a8
> Content-Length: 7231
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------74034795b127
>
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain
< Content-Length: 784
< Date: Wed, 22 Jun 2011 11:26:05 GMT
< Connection: close
<
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/eventlet/wsgi.py", line 336, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/pymodules/python2.6/swift/common/middleware/healthcheck.py", line 38, in __call__
    return self.app(env, start_response)
  File "/usr/lib/pymodules/python2.6/swift/common/middleware/memcache.py", line 32, in __call__
    return self.app(env, start_response)
  File "/usr/lib/pymodules/python2.6/swift/common/middleware/swauth.py", line 134, in __call__
    groups = self.get_groups(env, token)
  File "/usr/lib/pymodules/python2.6/swift/common/middleware/swauth.py", line 204, in get_groups
    account, user, sign = account.split(':')
ValueError: need more than 1 value to unpack
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):


Somebody knows about this problem?
The problem is the curl command and the options?

Thank in advance.




Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at.
http://www.tid.es/ES/PAGINAS/disclaimer.aspx


More information about the Openstack-operators mailing list