我的swift stat正常 但是upload的时候,就报404 ,不知道么情况 |
我想直接从浏览器拿出swift中存储的数据,该如何拿出来?URL的格式是什么? |
sstutu 发表于 2016-8-18 13:30 问题出在哪里了呢? |
sa2016 发表于 2016-8-18 11:28 应该是认证的问题 |
我是完全按照官网的教程来安装的,现在出了一点问题,我的swift stat不正常 debug出来是这样的: root@ubuntu:~# swift --debug stat DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:5000/v3/auth/tokens INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 1725 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa HTTP/1.1" 503 0 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa -I -H "X-Auth-Token: gAAAAABXtSQDWR7lHzBHxGS6nvkO4zcGXY9iQ9Usx1xbz9xAevuVcDexHX4nIntFdN36irUVBCidASVdaK8M3pl-eCuufKMqMZ1qFxEC2qgjoguyWhNfzPWkIj72CtFpzBBH6fpreqTswyx8efpQmMxgAv5XkL5dGGzp8OXHhIqS0lpkMidaqDI" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 18 Aug 2016 02:57:07 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'txeb0c2da737b749329c5d2-0057b52403'} DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa HTTP/1.1" 503 0 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa -I -H "X-Auth-Token: gAAAAABXtSQDWR7lHzBHxGS6nvkO4zcGXY9iQ9Usx1xbz9xAevuVcDexHX4nIntFdN36irUVBCidASVdaK8M3pl-eCuufKMqMZ1qFxEC2qgjoguyWhNfzPWkIj72CtFpzBBH6fpreqTswyx8efpQmMxgAv5XkL5dGGzp8OXHhIqS0lpkMidaqDI" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 18 Aug 2016 02:57:08 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'tx2c2977d5743c40448c42a-0057b52404'} DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa HTTP/1.1" 503 0 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa -I -H "X-Auth-Token: gAAAAABXtSQDWR7lHzBHxGS6nvkO4zcGXY9iQ9Usx1xbz9xAevuVcDexHX4nIntFdN36irUVBCidASVdaK8M3pl-eCuufKMqMZ1qFxEC2qgjoguyWhNfzPWkIj72CtFpzBBH6fpreqTswyx8efpQmMxgAv5XkL5dGGzp8OXHhIqS0lpkMidaqDI" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 18 Aug 2016 02:57:10 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'tx73b2522c893e4e318bf24-0057b52406'} DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa HTTP/1.1" 503 0 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa -I -H "X-Auth-Token: gAAAAABXtSQDWR7lHzBHxGS6nvkO4zcGXY9iQ9Usx1xbz9xAevuVcDexHX4nIntFdN36irUVBCidASVdaK8M3pl-eCuufKMqMZ1qFxEC2qgjoguyWhNfzPWkIj72CtFpzBBH6fpreqTswyx8efpQmMxgAv5XkL5dGGzp8OXHhIqS0lpkMidaqDI" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 18 Aug 2016 02:57:14 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'txa944974bf6bb413187caf-0057b5240a'} DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa HTTP/1.1" 503 0 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa -I -H "X-Auth-Token: gAAAAABXtSQDWR7lHzBHxGS6nvkO4zcGXY9iQ9Usx1xbz9xAevuVcDexHX4nIntFdN36irUVBCidASVdaK8M3pl-eCuufKMqMZ1qFxEC2qgjoguyWhNfzPWkIj72CtFpzBBH6fpreqTswyx8efpQmMxgAv5XkL5dGGzp8OXHhIqS0lpkMidaqDI" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 18 Aug 2016 02:57:22 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'txac9b6d382d0d4e768de72-0057b52412'} DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa HTTP/1.1" 503 0 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa -I -H "X-Auth-Token: gAAAAABXtSQDWR7lHzBHxGS6nvkO4zcGXY9iQ9Usx1xbz9xAevuVcDexHX4nIntFdN36irUVBCidASVdaK8M3pl-eCuufKMqMZ1qFxEC2qgjoguyWhNfzPWkIj72CtFpzBBH6fpreqTswyx8efpQmMxgAv5XkL5dGGzp8OXHhIqS0lpkMidaqDI" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 18 Aug 2016 02:57:38 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'tx59313f84be064de4967b4-0057b52422'} ERROR:swiftclient:Account HEAD failed: http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa 503 Service Unavailable Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1565, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 747, in head_account http_response_content=body) ClientException: Account HEAD failed: http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa 503 Service Unavailable ERROR:swiftclient.service:Account HEAD failed: http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa 503 Service Unavailable Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 440, in stat items, headers = get_future_result(stats_future) File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 207, in get_future_result res = f.result(timeout=timeout) File "/usr/lib/python2.7/dist-packages/concurrent/futures/_base.py", line 405, in result return self.__get_result() File "/usr/lib/python2.7/dist-packages/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python2.7/dist-packages/swiftclient/multithreading.py", line 188, in conn_fn return fn(*conn_args, **kwargs) File "/usr/lib/python2.7/dist-packages/swiftclient/command_helpers.py", line 23, in stat_account headers = conn.head_account() File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1605, in head_account return self._retry(None, head_account) File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1565, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 747, in head_account http_response_content=body) ClientException: Account HEAD failed: http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa 503 Service Unavailable Account HEAD failed: http://controller:8080/v1/AUTH_3e1745d259da449b9c68c5363c8b5aaa 503 Service Unavailable |
wendell 发表于 2016-3-19 20:29 贴出错误来,应该是验证的问题 |
新装了个liberty版的openstack swift ,步骤都是按照官网的文档。上传时还是报错。 各位大神帮着看看。 [root@controller ~]# swift --debug upload container1 /root/demo-openrc.sh DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:5000/v3/auth/tokens INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 1695 /usr/lib/python2.7/site-packages/keystoneclient/service_catalog.py:196: UserWarning: Providing attr without filter_value to get_urls() is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. Either both should be provided or neither should be provided. 'Providing attr without filter_value to get_urls() is ' INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:03 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx66f4a4fe98c645f291103-0056d69f9e')] INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html> DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:04 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx2fdbb1af37944d66b6736-0056d69fa0')] INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html> DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:06 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx39b4e55e846648c6adb2e-0056d69fa2')] INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html> DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:10 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx76c8a8d4e9e242ffb50a6-0056d69fa6')] INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html> DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:18 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txdd1745d4925a493290c97-0056d69fae')] INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html> DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84" INFO:swiftclient:RESP STATUS: 503 Service Unavailable INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:34 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txfacfb570902e4821b01d9-0056d69fbe')] INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html> ERROR:swiftclient:Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 809, in put_container http_response_content=body) ClientException: Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently ERROR:swiftclient.service:Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 1538, in _create_container_job container, headers, response_dict=create_response File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1466, in put_container response_dict=response_dict) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 809, in put_container http_response_content=body) ClientException: Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently Warning: failed to create container 'container1': 503 Service Unavailable: <html><h1>Service Unavailable</h1><p>The server is currently DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:5000/v3/auth/tokens INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 1695 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh HTTP/1.1" 404 0 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh -I -H "X-Auth-Token: d690543daaa04f7b9aaa8e6d8666b64e" INFO:swiftclient:RESP STATUS: 404 Not Found INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:34 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx73075833f3294bd88e3ef-0056d69fbe')] ERROR:swiftclient:Object HEAD failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 994, in head_object http_response_content=body) ClientException: Object HEAD failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh HTTP/1.1" 404 70 INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh -X PUT -H "X-Auth-Token: d690543daaa04f7b9aaa8e6d8666b64e" INFO:swiftclient:RESP STATUS: 404 Not Found INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:34 GMT'), ('content-length', '70'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txac81c99d17e4463b9b3a5-0056d69fbe')] INFO:swiftclient:RESP BODY: <html><h1>Not Found</h1><p>The resource could not be found.</p></html> ERROR:swiftclient:Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1104, in put_object http_response_content=body) ClientException: Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< ERROR:swiftclient.service:Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 1941, in _upload_object_job response_dict=obr File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1516, in put_object response_dict=response_dict) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry service_token=self.service_token, **kwargs) File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1104, in put_object http_response_content=body) ClientException: Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.< |
guanrui74 发表于 2016-2-23 10:46 需要哪些日志? |
请大家帮我看看,memcached总起不来。 [root@controller ~]# systemctl status memcached.service ● memcached.service - Memcached Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 二 2016-02-23 10:18:52 CST; 25min ago Main PID: 23313 (code=exited, status=204/MEMORY) 2月 23 10:18:52 controller systemd[1]: Started Memcached. 2月 23 10:18:52 controller systemd[1]: Starting Memcached... 2月 23 10:18:52 controller systemd[1]: memcached.service: main process exited, code=exited, status=204/MEMORY 2月 23 10:18:52 controller systemd[1]: Unit memcached.service entered failed state. 2月 23 10:18:52 controller systemd[1]: memcached.service failed. |