Join the Community
and take part in the story

Authentication to proxyd


#1

Hello,

I want to understand a bit about authentication setup for proxyd. I noticed that the C APIs and the page here https://github.com/open-io/oio-sds/wiki/OpenIO-Proxyd-API-Reference does not have an authentication step.

How does an account securely login to proxyd to access its resources.

Thank you.


#2

Hi @linuxmonk,

There is no authentication layer built in the oioproxy for now.
If you want to secure your accounts you have to use the swift/s3 proxy (which uses keystone for authentication) or to create your own authentication process within your app on top of the proxyd.

Regards,

Max


#3

Got it. Thanks Maxime. !


#4

Hello,

I installed a gateway to access sds by swift client

export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=xxxxxxxx
export OS_AUTH_URL=http://192.168.2.24:5000/v2.0

but I got 503 error:

root@:~# swift stat
Account HEAD failed: http://192.168.2.24:6007/v1.0/AUTH_31375a353f7046219e6479776546a126 503 Service Unavailable
Failed Transaction ID: txe53709d233a54ce5bc92c-005ab9c6e8

and

2018-03-27T12:21:29.471228+08:00 free-24 OIO,OPENIO,oioswift,0: info  - - 27/Mar/2018/04/21/29 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 204 - Swift - - - - tx4d7c4b732cc8438994c30-005ab9c6c9 - 0.0074 RL - 1522124489.463282108 1522124489.470659971 -
2018-03-27T12:21:29.520406+08:00 free-24 OIO,OPENIO,oioswift,0: info  192.168.2.24 192.168.2.24 27/Mar/2018/04/21/29 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 312347a1d6784404... - - - tx4d7c4b732cc8438994c30-005ab9c6c9 - 0.0585 - - 1522124489.461304903 1522124489.519848108 -
2018-03-27T12:21:30.568804+08:00 free-24 OIO,OPENIO,oioswift,0: info  192.168.2.24 192.168.2.24 27/Mar/2018/04/21/30 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 312347a1d6784404... - - - txc620948c9ca8479190b4d-005ab9c6ca - 0.0427 - - 1522124490.525463104 1522124490.568167925 -
2018-03-27T12:21:32.619348+08:00 free-24 OIO,OPENIO,oioswift,0: info  192.168.2.24 192.168.2.24 27/Mar/2018/04/21/32 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 312347a1d6784404... - - - txcfe1745b466d476980a8e-005ab9c6cc - 0.0441 - - 1522124492.574807882 1522124492.618868113 -
2018-03-27T12:21:36.676839+08:00 free-24 OIO,OPENIO,oioswift,0: info  192.168.2.24 192.168.2.24 27/Mar/2018/04/21/36 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 312347a1d6784404... - - - tx922f1afeb1e14b2c98282-005ab9c6d0 - 0.0483 - - 1522124496.628074884 1522124496.676369905 -
2018-03-27T12:21:44.729289+08:00 free-24 OIO,OPENIO,oioswift,0: info  192.168.2.24 192.168.2.24 27/Mar/2018/04/21/44 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 312347a1d6784404... - - - txabfb794ebd7f41b6a1ced-005ab9c6d8 - 0.0422 - - 1522124504.686732054 1522124504.728935957 -
2018-03-27T12:22:00.787285+08:00 free-24 OIO,OPENIO,oioswift,0: info  192.168.2.24 192.168.2.24 27/Mar/2018/04/22/00 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 312347a1d6784404... - - - txe53709d233a54ce5bc92c-005ab9c6e8 - 0.0407 - - 1522124520.746110916 1522124520.786837101 -

It returned 204 and then 503.

Another run:

Mar 27 14:18:26 free-24 keystone-public[1352]: 2018-03-27 14:18:26.045 1352 INFO keystone.common.wsgi [req-365f2026-62ed-445b-a2a1-b45f755ee15d - - - - -] POST http://192.168.2.24:5000/v2.0/tokens
Mar 27 14:18:26 free-24 keystone-public[1352]: 2018-03-27 14:18:26.234 1352 INFO keystone.token.providers.fernet.utils [req-365f2026-62ed-445b-a2a1-b45f755ee15d - - - - -] Loaded 2 encryption keys (max_active_keys=3) from: /etc/keystone/fernet-keys
Mar 27 14:18:26 free-24 OIO,OPENIO,oioswift,0[1445]: - - 27/Mar/2018/06/18/26 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 204 - Swift - - - - txd5d3e84c9b434ee8b92e9-005ab9e232 - 0.0088 RL - 1522131506.246351957 1522131506.255187035 -
Mar 27 14:18:26 free-24 keystone-admin[1351]: 2018-03-27 14:18:26.263 1351 INFO keystone.common.wsgi [req-ff6ff18d-e783-41d6-8e77-b047965a3d46 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:26 free-24 keystone-admin[1351]: 2018-03-27 14:18:26.277 1351 WARNING keystone.common.wsgi [req-ff6ff18d-e783-41d6-8e77-b047965a3d46 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:26 free-24 keystone-admin[1351]: 2018-03-27 14:18:26.288 1351 INFO keystone.common.wsgi [req-13932082-8a36-403d-b6fd-5483b3f5e1e1 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:26 free-24 keystone-admin[1351]: 2018-03-27 14:18:26.302 1351 WARNING keystone.common.wsgi [req-13932082-8a36-403d-b6fd-5483b3f5e1e1 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:26 free-24 OIO,OPENIO,oioswift,0[1445]: 192.168.2.24 192.168.2.24 27/Mar/2018/06/18/26 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 gAAAAABaueIyfTfQ... - - - txd5d3e84c9b434ee8b92e9-005ab9e232 - 0.0646 - - 1522131506.244374037 1522131506.308970928 -
Mar 27 14:18:27 free-24 keystone-admin[1351]: 2018-03-27 14:18:27.321 1351 INFO keystone.common.wsgi [req-13a25a59-0163-4f0f-a60a-804d8df83e36 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:27 free-24 keystone-admin[1351]: 2018-03-27 14:18:27.333 1351 WARNING keystone.common.wsgi [req-13a25a59-0163-4f0f-a60a-804d8df83e36 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:27 free-24 keystone-admin[1351]: 2018-03-27 14:18:27.342 1351 INFO keystone.common.wsgi [req-8222e649-95ec-4cfe-88e2-b8983fbce51a - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:27 free-24 keystone-admin[1351]: 2018-03-27 14:18:27.354 1351 WARNING keystone.common.wsgi [req-8222e649-95ec-4cfe-88e2-b8983fbce51a - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:27 free-24 OIO,OPENIO,oioswift,0[1445]: 192.168.2.24 192.168.2.24 27/Mar/2018/06/18/27 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 gAAAAABaueIyfTfQ... - - - tx782bbe727ca240adbbb5a-005ab9e233 - 0.0445 - - 1522131507.314351082 1522131507.358864069 -
Mar 27 14:18:29 free-24 keystone-admin[1351]: 2018-03-27 14:18:29.371 1351 INFO keystone.common.wsgi [req-bf8fc13c-7621-403a-95c3-924f0fc92307 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:29 free-24 keystone-admin[1351]: 2018-03-27 14:18:29.385 1351 WARNING keystone.common.wsgi [req-bf8fc13c-7621-403a-95c3-924f0fc92307 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:29 free-24 keystone-admin[1351]: 2018-03-27 14:18:29.395 1351 INFO keystone.common.wsgi [req-62a716f4-71db-4666-ada4-00e4a2653beb - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:29 free-24 keystone-admin[1351]: 2018-03-27 14:18:29.408 1351 WARNING keystone.common.wsgi [req-62a716f4-71db-4666-ada4-00e4a2653beb - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:29 free-24 OIO,OPENIO,oioswift,0[1445]: 192.168.2.24 192.168.2.24 27/Mar/2018/06/18/29 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 gAAAAABaueIyfTfQ... - - - tx1939b7c3ef874b788a154-005ab9e235 - 0.0484 - - 1522131509.365056038 1522131509.413494110 -
Mar 27 14:18:33 free-24 keystone-admin[1351]: 2018-03-27 14:18:33.429 1351 INFO keystone.common.wsgi [req-b0fb13e4-67e6-4841-b13e-5dba58d2f41e - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:33 free-24 keystone-admin[1351]: 2018-03-27 14:18:33.441 1351 WARNING keystone.common.wsgi [req-b0fb13e4-67e6-4841-b13e-5dba58d2f41e - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:33 free-24 keystone-admin[1351]: 2018-03-27 14:18:33.451 1351 INFO keystone.common.wsgi [req-821f324f-4a04-482f-9a54-d49809019695 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:33 free-24 keystone-admin[1351]: 2018-03-27 14:18:33.467 1351 WARNING keystone.common.wsgi [req-821f324f-4a04-482f-9a54-d49809019695 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:33 free-24 OIO,OPENIO,oioswift,0[1445]: 192.168.2.24 192.168.2.24 27/Mar/2018/06/18/33 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 gAAAAABaueIyfTfQ... - - - txc10f9d8e01a74c70b20e3-005ab9e239 - 0.0505 - - 1522131513.421848059 1522131513.472301960 -
Mar 27 14:18:41 free-24 keystone-admin[1351]: 2018-03-27 14:18:41.492 1351 INFO keystone.common.wsgi [req-cb330f3f-80e3-4d6a-b2b8-84bd84dba9f8 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:41 free-24 keystone-admin[1351]: 2018-03-27 14:18:41.505 1351 WARNING keystone.common.wsgi [req-cb330f3f-80e3-4d6a-b2b8-84bd84dba9f8 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:41 free-24 keystone-admin[1351]: 2018-03-27 14:18:41.515 1351 INFO keystone.common.wsgi [req-41ca6568-e176-46b5-b341-4cb4623448e8 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:41 free-24 keystone-admin[1351]: 2018-03-27 14:18:41.529 1351 WARNING keystone.common.wsgi [req-41ca6568-e176-46b5-b341-4cb4623448e8 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:41 free-24 OIO,OPENIO,oioswift,0[1445]: 192.168.2.24 192.168.2.24 27/Mar/2018/06/18/41 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 gAAAAABaueIyfTfQ... - - - tx2ca02cf255b249b5aaf2f-005ab9e241 - 0.0491 - - 1522131521.485162973 1522131521.534267902 -
Mar 27 14:18:57 free-24 keystone-admin[1351]: 2018-03-27 14:18:57.561 1351 INFO keystone.common.wsgi [req-6cd3f0cd-7e0c-4be4-854c-5dad59085bc5 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:57 free-24 keystone-admin[1351]: 2018-03-27 14:18:57.667 1351 WARNING keystone.common.wsgi [req-6cd3f0cd-7e0c-4be4-854c-5dad59085bc5 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:57 free-24 keystone-admin[1351]: 2018-03-27 14:18:57.676 1351 INFO keystone.common.wsgi [req-e2334f97-4e65-403d-8948-052ac9e626f2 - - - - -] POST http://0.0.0.0:35357/v3/auth/tokens
Mar 27 14:18:57 free-24 keystone-admin[1351]: 2018-03-27 14:18:57.688 1351 WARNING keystone.common.wsgi [req-e2334f97-4e65-403d-8948-052ac9e626f2 - - - - -] Authorization failed. The request you have made requires authentication. from 127.0.0.1
Mar 27 14:18:57 free-24 OIO,OPENIO,oioswift,0[1445]: 192.168.2.24 192.168.2.24 27/Mar/2018/06/18/57 HEAD /v1.0/AUTH_31375a353f7046219e6479776546a126 HTTP/1.0 503 - python-swiftclient-3.4.0 gAAAAABaueIyfTfQ... - - - tx1346b75016804ac8aaa02-005ab9e251 - 0.1386 - - 1522131537.554795980 1522131537.693412066 -

Best regards,
Yongsheng


#5

How can I check if oioproxy is running ok ?


#6

root@free-24:~# swift stat --debug
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://0.0.0.0:5000/v2.0/tokens
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 0.0.0.0
DEBUG:urllib3.connectionpool:http://0.0.0.0:5000 “POST /v2.0/tokens HTTP/1.1” 200 716
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.2.24
DEBUG:urllib3.connectionpool:http://192.168.2.24:6007 “HEAD /v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 HTTP/1.1” 503 0
INFO:swiftclient:REQ: curl -i http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 -I -H "X-Auth-Token: gAAAAABau2LvEzWgG6zquARSQvnZSosHxU-hUk3OdKF3dwLKhdic54WrFKGoruV3dWX4rproBplYW1zyP63QyL0bf7rbUmfmB1ZKfXY6UnHaMBPuOeL4u0TXbMZTJRP4JGmoqi7Jvc1fG4-PCrc5KWQubNmULVooQMZwdqz5L0Tp-TFutNumDag"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u’Date’: u’Wed, 28 Mar 2018 09:39:59 GMT’, u’Content-Length’: u’0’, u’Content-Type’: u’text/html; charset=UTF-8’, u’X-Openstack-Request-Id’: u’tx2759ed802573475b9347f-005abb62ef’, u’X-Trans-Id’: u’tx2759ed802573475b9347f-005abb62ef’}
DEBUG:urllib3.connectionpool:http://192.168.2.24:6007 “HEAD /v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 HTTP/1.1” 503 0
INFO:swiftclient:REQ: curl -i http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 -I -H "X-Auth-Token: gAAAAABau2LvEzWgG6zquARSQvnZSosHxU-hUk3OdKF3dwLKhdic54WrFKGoruV3dWX4rproBplYW1zyP63QyL0bf7rbUmfmB1ZKfXY6UnHaMBPuOeL4u0TXbMZTJRP4JGmoqi7Jvc1fG4-PCrc5KWQubNmULVooQMZwdqz5L0Tp-TFutNumDag"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u’Date’: u’Wed, 28 Mar 2018 09:40:00 GMT’, u’Content-Length’: u’0’, u’Content-Type’: u’text/html; charset=UTF-8’, u’X-Openstack-Request-Id’: u’txedc5dbdc6e7c48bfbffdb-005abb62f0’, u’X-Trans-Id’: u’txedc5dbdc6e7c48bfbffdb-005abb62f0’}
DEBUG:urllib3.connectionpool:http://192.168.2.24:6007 “HEAD /v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 HTTP/1.1” 503 0
INFO:swiftclient:REQ: curl -i http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 -I -H "X-Auth-Token: gAAAAABau2LvEzWgG6zquARSQvnZSosHxU-hUk3OdKF3dwLKhdic54WrFKGoruV3dWX4rproBplYW1zyP63QyL0bf7rbUmfmB1ZKfXY6UnHaMBPuOeL4u0TXbMZTJRP4JGmoqi7Jvc1fG4-PCrc5KWQubNmULVooQMZwdqz5L0Tp-TFutNumDag"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u’Date’: u’Wed, 28 Mar 2018 09:40:02 GMT’, u’Content-Length’: u’0’, u’Content-Type’: u’text/html; charset=UTF-8’, u’X-Openstack-Request-Id’: u’tx5bf89268151c48809f980-005abb62f2’, u’X-Trans-Id’: u’tx5bf89268151c48809f980-005abb62f2’}
DEBUG:urllib3.connectionpool:http://192.168.2.24:6007 “HEAD /v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 HTTP/1.1” 503 0
INFO:swiftclient:REQ: curl -i http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 -I -H "X-Auth-Token: gAAAAABau2LvEzWgG6zquARSQvnZSosHxU-hUk3OdKF3dwLKhdic54WrFKGoruV3dWX4rproBplYW1zyP63QyL0bf7rbUmfmB1ZKfXY6UnHaMBPuOeL4u0TXbMZTJRP4JGmoqi7Jvc1fG4-PCrc5KWQubNmULVooQMZwdqz5L0Tp-TFutNumDag"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u’Date’: u’Wed, 28 Mar 2018 09:40:06 GMT’, u’Content-Length’: u’0’, u’Content-Type’: u’text/html; charset=UTF-8’, u’X-Openstack-Request-Id’: u’txa1f2505763c8498898bba-005abb62f6’, u’X-Trans-Id’: u’txa1f2505763c8498898bba-005abb62f6’}
DEBUG:urllib3.connectionpool:http://192.168.2.24:6007 “HEAD /v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 HTTP/1.1” 503 0
INFO:swiftclient:REQ: curl -i http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 -I -H "X-Auth-Token: gAAAAABau2LvEzWgG6zquARSQvnZSosHxU-hUk3OdKF3dwLKhdic54WrFKGoruV3dWX4rproBplYW1zyP63QyL0bf7rbUmfmB1ZKfXY6UnHaMBPuOeL4u0TXbMZTJRP4JGmoqi7Jvc1fG4-PCrc5KWQubNmULVooQMZwdqz5L0Tp-TFutNumDag"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u’Date’: u’Wed, 28 Mar 2018 09:40:14 GMT’, u’Content-Length’: u’0’, u’Content-Type’: u’text/html; charset=UTF-8’, u’X-Openstack-Request-Id’: u’tx7c164850e12f4143a993a-005abb62fe’, u’X-Trans-Id’: u’tx7c164850e12f4143a993a-005abb62fe’}
DEBUG:urllib3.connectionpool:http://192.168.2.24:6007 “HEAD /v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 HTTP/1.1” 503 0
INFO:swiftclient:REQ: curl -i http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 -I -H "X-Auth-Token: gAAAAABau2LvEzWgG6zquARSQvnZSosHxU-hUk3OdKF3dwLKhdic54WrFKGoruV3dWX4rproBplYW1zyP63QyL0bf7rbUmfmB1ZKfXY6UnHaMBPuOeL4u0TXbMZTJRP4JGmoqi7Jvc1fG4-PCrc5KWQubNmULVooQMZwdqz5L0Tp-TFutNumDag"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u’Date’: u’Wed, 28 Mar 2018 09:40:30 GMT’, u’Content-Length’: u’0’, u’Content-Type’: u’text/html; charset=UTF-8’, u’X-Openstack-Request-Id’: u’tx0e9f309f87a94e0691802-005abb630e’, u’X-Trans-Id’: u’tx0e9f309f87a94e0691802-005abb630e’}
ERROR:swiftclient.service:Account HEAD failed: http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 503 Service Unavailable
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/swiftclient/service.py”, line 514, in stat
items, headers = get_future_result(stats_future)
File “/usr/lib/python2.7/dist-packages/swiftclient/service.py”, line 230, 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 187, in conn_fn
return fn(*conn_args, **kwargs)
File “/usr/lib/python2.7/dist-packages/swiftclient/command_helpers.py”, line 24, in stat_account
headers = conn.head_account(headers=req_headers)
File “/usr/lib/python2.7/dist-packages/swiftclient/client.py”, line 1719, in head_account
return self._retry(None, head_account, headers=headers)
File “/usr/lib/python2.7/dist-packages/swiftclient/client.py”, line 1678, in _retry
service_token=self.service_token, **kwargs)
File “/usr/lib/python2.7/dist-packages/swiftclient/client.py”, line 806, in head_account
raise ClientException.from_response(resp, ‘Account HEAD failed’, body)
ClientException: Account HEAD failed: http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 503 Service Unavailable
Account HEAD failed: http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 503 Service Unavailable
Failed Transaction ID: tx0e9f309f87a94e0691802-005abb630e


#7

hi,
Have you just do ?

swift post
before swift stat


#8

No, I didn’t do swift post yet.


#9
root@free-24:~# swift post
Account POST failed: http://192.168.2.24:6007/v1.0/AUTH_1884a2a14df646f2a86a32abc86dc4e2 503 Service Unavailable  [first 60 chars of response] 503 Service Unavailable

The server is currently unavailable
Failed Transaction ID: tx89c53c70a98f498cb5b82-005abb6f73

#10

Hello @yongsheng, could you please move your question to a new topic, as this has nothing to do with the current one, and you are only necrobumping at this point.


#11