[Openstack] Not able to use openstack swift using the s3 api plugin...

Shyam Prasad N nspmangalore at gmail.com
Thu May 3 07:22:44 UTC 2018


Hi,

I tried installing the swift3 plugin using the following link:
https://docs.openstack.org/mitaka/config-reference/object-storage/configure-s3.html

However, I'm not able to perform the operations:
# ./s3curl.pl --id=personal -get -- -s -v http://proxy-server:8080
Unknown option: get
* Rebuilt URL to: http://proxy-server:8080/
*   Trying 20.20.20.220...
* Connected to proxy-server (20.20.20.220) port 8080 (#0)
> GET / HTTP/1.1
> Host: proxy-server:8080
> User-Agent: curl/7.47.0
> Accept: */*
> Date: Thu, 03 May 2018 06:07:40 +0000
> Authorization: AWS
4579fb60db3a47069f289d8fd7fa3212:R4zTQJDhPB3G8wLCsNBHaWNjaZQ=
>
< HTTP/1.1 500 Internal Server Error
< x-amz-id-2: txbbe4b8dc26904cbf880e3-005aeaa72c
< x-amz-request-id: txbbe4b8dc26904cbf880e3-005aeaa72c
< Content-Type: application/xml
< X-Trans-Id: txbbe4b8dc26904cbf880e3-005aeaa72c
< Date: Thu, 03 May 2018 06:07:41 GMT
< Transfer-Encoding: chunked
<
<?xml version='1.0' encoding='UTF-8'?>
<Error><Code>InternalError</Code><Message>We encountered an internal error.
Please try
again.</Message><RequestId>txbbe4b8dc26904cbf880e3-005aeaa72c</RequestId><Reason><?xml
version="1.0" encoding="UTF-8"?>
<Error>
  <Code>InvalidURI</Code>
  <Message>Could not parse the specified URI</Message>
</Error>
* Connection #0 to host proxy-server left intact

Getting this in the logs...
May  2 23:07:40 localhost proxy-server: STDERR: (20652) accepted
('20.20.20.220', 51030)
May  2 23:07:41 localhost proxy-server: <?xml version="1.0"
encoding="UTF-8"?>#015#012<Error>#015#012  <Code>InvalidURI</Code>#015#012
<Message>Could not parse the specified
URI</Message>#015#012</Error>#015#012: #012Traceback (most recent call
last):#012  File "/usr/lib/python2.7/dist-packages/swift3/middleware.py",
line 81, in __call__#012    resp = self.handle_request(req)#012  File
"/usr/lib/python2.7/dist-packages/swift3/middleware.py", line 104, in
handle_request#012    res = getattr(controller, req.method)(req)#012  File
"/usr/lib/python2.7/dist-packages/swift3/controllers/service.py", line 33,
in GET#012    resp = req.get_response(self.app, query={'format':
'json'})#012  File "/usr/lib/python2.7/dist-packages/swift3/request.py",
line 686, in get_response#012    headers, body, query)#012  File
"/usr/lib/python2.7/dist-packages/swift3/request.py", line 665, in
_get_response#012    raise BadSwiftRequest(err_msg)#012BadSwiftRequest:
<?xml version="1.0" encoding="UTF-8"?>#015#012<Error>#015#012
<Code>InvalidURI</Code>#015#012  <Message>Could not parse the specified
URI</Message>#015#012</Error>#015#012 (txn:
txbbe4b8dc26904cbf880e3-005aeaa72c)
May  2 23:07:41 localhost proxy-server: STDERR: 20.20.20.220 - -
[03/May/2018 06:07:41] "GET / HTTP/1.1" 500 724 0.058274 (txn:
txbbe4b8dc26904cbf880e3-005aeaa72c)

Can someone please tell me what's going on?
Please let me know if some additional data is necessary.

-- 
-Shyam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180503/b4a723e5/attachment.html>


More information about the Openstack mailing list