Ask Your Question
0

Swift Kilo Install Error

asked 2015-08-03 15:40:53 -0500

ivarh gravatar image

updated 2015-08-03 22:54:47 -0500

I am following the Kilo installation Guide and I am stuck in Swift at the finalizing installation phase. When I issue:

$ swift -V 3 upload demo-container1 hosts
I get:
Error trying to create container 'demo-container1': 404 Not Found: <html><h1>Not Found</h1><p> The resource could not be found.<
Authorization Failure. Authorization failed: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-359968d9-829c-4d25-8b32-09ec7eda9c98)

I have searched extensively and cannot find a fix or hint as to a solution:

My proxy-server.conf:

bind_port = 8080
swift_dir = /etc/swift
user = swift

[pipeline:main]
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo proxy-logging proxy-server

[app:proxy-server]
use = egg:swift#proxy
account_autocreate = true

[filter:tempauth]
use = egg:swift#tempauth
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3
user_test5_tester5 = testing5 service

[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = swift
password = XXXX
delay_auth_decision = true

[filter:keystoneauth]
use = egg:swift#keystoneauth
operator_roles = admin,user

[filter:healthcheck]
use = egg:swift#healthcheck

[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211

[filter:ratelimit]
use = egg:swift#ratelimit

[filter:domain_remap]
use = egg:swift#domain_remap

[filter:catch_errors]
use = egg:swift#catch_errors

[filter:cname_lookup]
use = egg:swift#cname_lookup

[filter:staticweb]
use = egg:swift#staticweb

[filter:tempurl]
use = egg:swift#tempurl

My swift.conf

[swift-hash]

swift_hash_path_suffix = XXX
swift_hash_path_prefix = XXX

[storage-policy:0]
name = Policy-0
default = yes

[swift-constraints]

My set up I pretty vanilla, one controller and 2 swift nodes.

I have rebuilt this system three times and am obviously missing something. Now when I issue the command I get this:

os-admin@controller:~$ swift -V 3 upload demo-container1 hosts
Error trying to create container 'demo-container1': 404 Not Found: <html><h1>Not Found</h1><p>The resource could not be found.<
Object HEAD failed: http://controller:8080/v1/AUTH_9e1f7d81b5f04828904903718ac8431c/demo-container1/hosts 400 Bad Request

/var/log/syslog shows this for that transaction:

Aug  3 22:45:21 controller proxy-server: Invalid user token - deferring reject downstream
Aug  3 22:45:21 controller proxy-server: - - 04/Aug/2015/03/45/21 HEAD /v1/AUTH_9e1f7d81b5f04828904903718ac8431c HTTP/1.0 204 - Swift - - - - tx45c2988afe044731bce6f-0055c03551 - 0.0343 GET_INFO - 1438659921.754987001 1438659921.789298058
Aug  3 22:45:22 controller proxy-server: Auth Token confirmed use of None apis
Aug  3 22:45:22 controller proxy-server: 192.168.1.31 192.168.1.31 04/Aug/2015/03/45/22 HEAD /v1/AUTH_9e1f7d81b5f04828904903718ac8431c HTTP/1.0 204 - python-swiftclient-2.3.1 6e6e8472bb9f4f44... - - - tx45c2988afe044731bce6f-0055c03551 - 0.6958 - - 1438659921.750310898 1438659922.446083069
Aug  3 22:45:22 controller proxy-server: autocreate account '/AUTH_9e1f7d81b5f04828904903718ac8431c'
Aug  3 22:45:22 controller proxy-server: 192.168.1.31 192.168.1.31 04/Aug/2015/03/45/22 PUT /v1/AUTH_9e1f7d81b5f04828904903718ac8431c/demo-container1 HTTP/1.0 404 - python-swiftclient-2.3.1 6e6e8472bb9f4f44... - 70 - tx965df5d1bfd04c58be8da-0055c03552 - 0.0498 - - 1438659922.481427908 1438659922.531188965
Aug  3 22:45:22 controller proxy-server: 192.168.1.31 192.168.1.31 04/Aug/2015/03/45/22 HEAD /v1 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-03 23:44:01 -0500

ivarh gravatar image

This was a port issue in building the ring. In my haste in copying commands I missed that the ports were different in the swift-object-builder commands and I had all the services (account, container, object) on the same ports. I changed the ports and it worked.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-03 15:40:53 -0500

Seen: 714 times

Last updated: Aug 03 '15