swift setup with devstack kilo Container HEAD failed 401 Unauthorized

asked 2015-09-28 13:12:19 -0600

giis gravatar image

updated 2015-09-29 12:43:30 -0600

smaffulli gravatar image

I'm just getting started with devstack. I was able to setup all components except swift with kilo. Here's my local.conf and logs. Please let me know- what's going wrong.

[[local|localrc]]

# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack
HOST_IP=152.89.59.01

# Services
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak

ENABLED_SERVICES+=,horizon


# Branches
KEYSTONE_BRANCH=stable/kilo
NOVA_BRANCH=stable/kilo
NEUTRON_BRANCH=stable/kilo
SWIFT_BRANCH=stable/kilo
GLANCE_BRANCH=stable/kilo
CINDER_BRANCH=stable/kilo

HORIZON_BRANCH=stable/kilo
SWIFT_DATA_DIR=/data
# Swift Configuration
SWIFT_REPLICAS=1
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5

# Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs

Error:

2015-09-28 17:31:44.677 INFO swiftclient [req-62397760-ef88-4141-b42c-60f4eec08fb8 753cbc2325004c07ab877a983073596b 2ced6efb845143d4b8aaa64ee5ab4aa2]
RESP HEADERS: [('date', 'Mon, 28 Sep 2015 17:31:44 GMT'), ('connection', 'keep-alive'), ('www-authenticate', 'Basic realm="Authorization Required"'),
('x-powered-by', 'Express')]
2015-09-28 17:31:44.677 ERROR swiftclient [req-62397760-ef88-4141-b42c-60f4eec08fb8 753cbc2325004c07ab877a983073596b 2ced6efb845143d4b8aaa64ee5ab4aa2]
 Container HEAD failed: http://152.89.59.0:8080/v1/AUTH_5e82fc59997a411881cf6ef36bcb8303/glance 401 Unauthorized
2015-09-28 17:31:44.677 TRACE swiftclient Traceback (most recent call last):
2015-09-28 17:31:44.677 TRACE swiftclient   File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1261, in _retry
2015-09-28 17:31:44.677 TRACE swiftclient     rv = func(self.url, self.token, *args, **kwargs)
2015-09-28 17:31:44.677 TRACE swiftclient   File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 698, in head_container
2015-09-28 17:31:44.677 TRACE swiftclient     http_response_content=body)
2015-09-28 17:31:44.677 TRACE swiftclient ClientException: Container HEAD failed: http://152.89.59.0:8080/v1/AUTH_5e82fc59997a411881cf6ef36bcb8303/glan
ce 401 Unauthorized
2015-09-28 17:31:44.677 TRACE swiftclient
2015-09-28 17:31:44.678 ERROR glance.api.v1.upload_utils [req-62397760-ef88-4141-b42c-60f4eec08fb8 753cbc2325004c07ab877a983073596b 2ced6efb845143d4b8
aaa64ee5ab4aa2] Failed to upload image 75b1292a-b8d7-4a92-9e81-e3396675aafd
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils   File "/opt/stack/glance/glance/api/v1/upload_utils.py", line 113, in upload_data_to_store
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils     context=req.context)
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils   File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 339, in store_add_to_backend
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils     context=context)
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils   File "/usr/local/lib/python2.7/dist-packages/glance_store/capabilities.py", line 226, in op_checker
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils     return store_op_fun(store, *args, **kwargs)
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils   File "/usr/local/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py", line 492, in add
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils     self._create_container_if_missing(location.container, connection)
2015-09-28 17:31:44.678 TRACE glance.api.v1.upload_utils   File "/usr/local/lib/python2 ...
(more)
edit retag flag offensive close merge delete