Thread Previous • Date Previous • Date Next • Thread Next |
I've been chasing my tail for quite a while, and thought I'd reach out for help! My problem is that swauth-prep seems to fail, with a less than helpful message. I would appreciate any pointers and thoughts. I think I followed the instructions here: http://swift.openstack.org/howto_installmultinode.html Using swift 1.3, on ubuntu. the machines are VM's hosted in an ESXi, and isolated network The failure: #swauth-prep -A https://192.168.124.131:8080/auth/ -K swauth Auth subsystem prep failed: 500 Server Error In the proxy log ( i added the !!!, and included the response body in the thrown exception from swauth.py#321) Apr 27 13:48:47 d00-0c-29-14-30-92 proxy-server - - 27/Apr/2011/18/48/47 PUT /v1/AUTH_.auth HTTP/1.0 400 - Swauth - - - - tx6a09620d-133b-4cf6-b9a9-0b6c26816c10 - 0.0067 Apr 27 13:48:47 d00-0c-29-14-30-92 proxy-server STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 Fil e "/usr/lib/pymodules/python2.6/swift/common/middleware/swauth.py", line 321, in handle#012 return self.handle_reques t(req)(env, start_response)#012 File "/usr/lib/pymodules/python2.6/swift/common/middleware/swauth.py", line 384, in han dle_request#012 req.response = handler(req)#012 File "/usr/lib/pymodules/python2.6/swift/common/middleware/swauth.py ", line 404, in handle_prep#012 (path, resp.body))#012Exception: Could not create the main auth account: /v1/AUTH_.au th Invalid path: /sdb1/40466/AUTH_.auth !!!#012: {'SCRIPT_NAME': '/auth/v2', 'webob.adhoc_attrs': {'start_time': 1303930 127.884881, 'bytes_transferred': '-', 'client_disconnect': False}, 'REQUEST_METHOD': 'POST', 'PATH_INFO': '/.prep', 'SER VER_PROTOCOL': 'HTTP/1.0', 'QUERY_STRING': '', 'eventlet.posthooks': [(<bound method Swauth.posthooklogger of <swift.com mon.middleware.swauth.Swauth object at 0x1ac4750>>, (<Request at 0x1ae0490 POST https://192.168.124.131:8080/auth/v2/.pr ep>,), {})], 'SERVER_NAME': '192.168.124.131', 'REMOTE_ADDR': '192.168.124.132', 'eventlet.input': <eventlet.wsgi.Input object at 0x1ae0110>, 'HTTP_X_AUTH_ADMIN_KEY': 'swauth', 'wsgi.url_scheme': 'https', 'SERVER_PORT': '8080', 'HTTP_X_AUTH _ADMIN_USER': '.super_admin', 'HTTP_X_CF_TRANS_ID': 'tx6a09620d-133b-4cf6-b9a9-0b6c26816c10', 'wsgi.input': <eventlet.ws gi.Input object at 0x1ae0110>, 'HTTP_HOST': '192.168.124.131:8080', 'swift.cache': <swift.common.memcached.MemcacheRing object at 0x1ad70d0>, 'HTTPS': 'on', 'wsgi.multithread': True, 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', ' wsgi.run_once': False, 'wsgi.errors': <swift.common.utils.LoggerFileObject object at 0x1a6d810>, 'wsgi.multiprocess': Fa lse, 'CONTENT_TYPE': None, 'HTTP_ACCEPT_ENCODING': 'identity'} On the storage node (192.168.124.132 below) Apr 27 13:48:35 d00-0c-29-d6-d1-69 account-server Started child 17254 Apr 27 13:48:47 d00-0c-29-d6-d1-69 object-server 192.168.124.131 - - [27/Apr/2011:18:48:47 +0000] "PUT /sdb1/40466/AUTH_.auth" 400 36 "-" "tx6a09620d-133b-4cf6-b9a9-0b6c26816c10" "-" 0.0009 Apr 27 13:49:05 d00-0c-29-d6-d1-69 object-replicator Starting object replication pass. The config. on the proxy server: Ring info: #swift-ring-builder account.builder account.builder, build version 13 262144 partitions, 1 replicas, 1 zones, 2 devices, 0.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 4 1 192.168.124.130 6000 sdb1 100.00 131072 0.00 5 1 192.168.124.132 6000 sdb1 100.00 131072 0.00 # swift-ring-builder object.builder object.builder, build version 13 262144 partitions, 1 replicas, 1 zones, 2 devices, 0.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 4 1 192.168.124.130 6002 sdb1 100.00 131072 0.00 5 1 192.168.124.132 6002 sdb1 100.00 131072 0.00 # swift-ring-builder container.builder container.builder, build version 13 262144 partitions, 1 replicas, 1 zones, 2 devices, 0.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 4 1 192.168.124.130 6001 sdb1 100.00 131072 0.00 5 1 192.168.124.132 6001 sdb1 100.00 131072 0.00 # cat proxy-server.conf [DEFAULT] cert_file = /etc/swift/cert.crt key_file = /etc/swift/cert.key bind_port = 8080 workers = 8 user = swift [pipeline:main] pipeline = healthcheck cache swauth proxy-server [app:proxy-server] use = egg:swift#proxy allow_account_management = true [filter:swauth] use = egg:swift#swauth default_swift_cluster = local#https://192.168.124.131:8080/v1 super_admin_key = swauth [filter:healthcheck] use = egg:swift#healthcheck [filter:cache] use = egg:swift#memcache memcache_servers = 192.168.124.131:11211 On the account/storage server: # cat account-server.conf [Default] bind_ip = 192.168.124.130 #bind_port = 6012 bind_port = 6000 [pipeline:main] pipeline = account-server [app:account-server] use = egg:swift#account [account-replicator] [account-auditor] [account-reaper] On the second account/storage server: # cat /etc/swift/account-server.conf [Default] bind_ip = 192.168.124.132 #bind_port = 6012 bind_port = 6000 [pipeline:main] pipeline = account-server [app:account-server] use = egg:swift#account [account-replicator] [account-auditor] [account-reaper]
Thread Previous • Date Previous • Date Next • Thread Next |