Ask Your Question
-1

Setting up Swift and Keystone, new info

asked 2014-08-21 12:43:25 -0600

michaelrapuano08 gravatar image

updated 2014-08-28 13:47:08 -0600

It looks like a storage node issue. I am running the proxy server on the storage node and seeing this in the log..........

Aug 28 18:37:16 localhost swift: Handoff requested (1) (txn: tx0b6060d810174428bedaa-0053ff76dc)
Aug 28 18:37:16 localhost account-server: 10.100.120.23 - - [28/Aug/2014:18:37:16 +0000] "HEAD //cciss/c0d2p1/10502/.expiring_objects" 400 52 "t
x0b6060d810174428bedaa-0053ff76dc" "HEAD http://localhost/v1/.expiring_objects" "proxy-server 18619" 0.0002 ""
Aug 28 18:37:16 localhost object-expirer: Unhandled exception: #012Traceback (most recent call last):#012  File "/usr/lib/python2.6/site-package
s/swift/obj/expirer.py", line 105, in run_once#012    self.swift.get_account_info(self.expiring_objects_account)#012  File "/usr/lib/python2.6/s
ite-packages/swift/common/internal_client.py", line 349, in get_account_info#012    resp = self.make_request('HEAD', path, {}, acceptable_status
es)#012  File "/usr/lib/python2.6/site-packages/swift/common/internal_client.py", line 186, in make_request#012    _('Unexpected response: %s') 
% resp.status, resp)#012UnexpectedResponse: Unexpected response: 400 Bad Request (txn: tx0b6060d810174428bedaa-0053ff76dc)
Aug 28 18:37:35 localhost container-replicator: Skipping /cciss/c0d2p1 as it is not mounted
Aug 28 18:37:35 localhost container-replicator: Skipping /cciss/c0d3p1 as it is not mounted
Aug 28 18:37:35 localhost container-replicator: Skipping /cciss/c0d4p1 as it is not mounted
Aug 28 18:37:35 localhost container-replicator: Skipping /cciss/c0d5p1 as it is not mounted

Below is some configs...........

[root@ocsma005 swift]# swift-ring-builder account.builder
account.builder, build version 4
262144 partitions, 1.000000 replicas, 1 regions, 1 zones, 4 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1   10.100.120.23  6001   10.100.120.23              6001 /cciss/c0d2p1 100.00      65536    0.00 
             1       1     1   10.100.120.23  6001   10.100.120.23              6001 /cciss/c0d3p1 100.00      65536    0.00 
             2       1     1   10.100.120.23  6001   10.100.120.23              6001 /cciss/c0d4p1 100.00      65536    0.00 
             3       1     1   10.100.120.23  6001   10.100.120.23              6001 /cciss/c0d5p1 100.00      65536    0.00 
[root@ocsma005 swift]# swift-ring-builder container.builder
container.builder, build version 4
262144 partitions, 1.000000 replicas, 1 regions, 1 zones, 4 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1   10.100.120.23  6002   10.100.120.23              6002 /cciss/c0d2p1 100.00      65536    0.00 
             1       1     1   10.100.120.23  6002   10.100.120.23              6002 /cciss/c0d3p1 100.00      65536    0.00 
             2       1     1   10.100.120.23  6002   10.100.120.23              6002 /cciss/c0d4p1 100.00      65536    0.00 
             3       1     1   10.100.120.23  6002   10.100.120.23              6002 /cciss/c0d5p1 100.00      65536    0.00 
[root@ocsma005 swift]# swift-ring-builder object.builder ...
(more)
edit retag flag offensive close merge delete

Comments

Read the docs, search this site for suggestions on how to debug, keep editing the question while you add details (like who you're installing swift).

smaffulli gravatar imagesmaffulli ( 2014-08-22 15:57:05 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-08-26 10:49:14 -0600

mpetason gravatar image

What do you have exported as your endpoint for these requests:

[root@ocsma000 keystone]# swift stat
Account HEAD failed: http://ocsma005.choicestream.net:8080/v1.0/103d807ce52748f78bf675ff9d9e5673 403 Forbidden

You should be using Keystone as the endpoint if you are using Keystone instead of swiftauth. You could test this out by specifying the auth URL with swift to verify that it is working:

swift --os-auth-url=http://{keystone-IP}:35357/v2.0 stat

The above should work as long as you have the correct user/password specified in your sourced openrc file.

edit flag offensive delete link more

Comments

Got same result.

[root@ocsma005 ~]# swift --os-auth-url=http://ocsma000.choicestream.net:35357/v2.0 stat Account HEAD failed: http://ocsma005.choicestream.net:8080/v1.0/103d807ce52748f78bf675ff9d9e5673 (http://ocsma005.choicestream.net:8080...) 403 Forbidden [root@ocsma005 ~]#

michaelrapuano08 gravatar imagemichaelrapuano08 ( 2014-08-26 12:32:51 -0600 )edit
0

answered 2014-08-28 14:08:54 -0600

SamYaple gravatar image

Part of your issue is your endpoint is incorrect. Perhaps all of your issue. You can find this out fairly quickly by searching this site for "Swift 403"

| 702d9930ce06451fb208987a87544c90 | regionOne | http://ocsma005.choicestream.net:8080/v1.0/%(tenant_id)s | http://ocsma005.choicestream.net:8080/v1.0/%(tenant_id)s |          http://ocsma005.choicestream.net:8080           | 0388e820498641099746bd2a478b3350 |

http://ocsma005.choicestream.net:8080/v1.0/%(tenant_id)s should read http://ocsma005.choicestream.net:8080/v1.0/AUTH_%(tenant_id)s

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: 2014-08-21 12:43:25 -0600

Seen: 352 times

Last updated: Aug 28 '14