Ask Your Question
0

unable to run swift stat

asked 2015-02-19 08:40:04 -0500

eugene.goldberg gravatar image

I have a fresh Fedora 21 install, on which I have installed and configured just swift and keystone I ran the following keystone command:

keystone endpoint-create --region RegionOne --service_id 8c90a8900abe45ad83aa5b04df957e80 --publicurl "http://127.0.0.1:8080/v1/AUTH_c36b8bb29ea947ce922f42389004648b" --adminurl http://127.0.0.1:8080/v1 --internalurl http://127.0.0.1:8080/v1

This gave me the following endpoint definition for swift:

6c063f73bc0041e09a0c0d65193e0285 | RegionOne | http://127.0.0.1:8080/v1/AUTH_c36b8bb29ea947ce922f42389004648b | http://127.0.0.1:8080/v1 | http://127.0.0.1:8080/v1 | 8c90a8900abe45ad83aa5b04df957e80

When I attempt to run swift --debug stat I get the following error:

DEBUG:keystoneclient.session:REQ: curl -i -X POST http://127.0.0.1:35357/v2.0/tokens -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "mast3r"}}}'
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 2423
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Thu, 19 Feb 2015 14:32:32 GMT', 'content-type': 'application/json', 'content-length': '2423', 'vary': 'X-Auth-Token', 'connection': 'keep-alive'}
RESP BODY: {"access": {"token": {"issued_at": "2015-02-19T14:32:32.818064", "expires": "2015-02-19T15:32:32Z", "id": "MIIEzwYJKoZIhvcNAQcCoIIEwDCCBLwCAQExCTAHBgUrDgMCGjCCAyUGCSqGSIb3DQEHAaCCAxYEggMSeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNS0wMi0xOVQxNDozMjozMi44MTgwNjQiLCAiZXhwaXJlcyI6ICIyMDE1LTAyLTE5VDE1OjMyOjMyWiIsICJpZCI6ICJwbGFjZWhvbGRlciI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BABChvGlKkZOoRZFq5XnW5tOu1r875MbK1j07VNAi4p6ZstUqvpvEQm5wyX-262fLJ7zNf57ms3EmL-U5jm-x0KVa08-H5rQ5BA3daj3QyKd8oZFY3f8L6pDEh537XLlkThQYdOd6E1b3PIp+1KgVxVm5Aw-MlaqhEZtj6tr7unb1qTe+OxjctXVFVmxpjereAlnuuUrw6SZTSUiNNWz9E-kWuwfQ1gfekwm1MUU3SQIA1zIqWwfh4f9bkJCYXUBKyhNRpaQsFxDrFDyZdy41mKKPSleNVJz0kTycqqyUTPnRaIEpKnTYM9QPdqrHpwhcm3ntulWKBcj52lsipACGk7o=", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "c36b8bb29ea947ce922f42389004648b", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://127.0.0.1:8080/v1", "region": "RegionOne", "internalURL": "http://127.0.0.1:8080/v1", "id": "452efc8140114d44a04e252e7b0945ea", "publicURL": "http://127.0.0.1:8080/v1/AUTH_c36b8bb29ea947ce922f42389004648b"}], "endpoints_links": [], "type": "object-store", "name": "swift"}], "user": {"username": "admin", "roles_links": [], "id": "a2b8e23eaa404378b2fb34cf217efbe9", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["e3c480c2fd6142f594b8539b002a6b6d"]}}}

WARNING:keystoneclient.httpclient:Failed to retrieve management_url from token
DEBUG:iso8601.iso8601:Parsed 2015-02-19T15:32:32Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'15', 'daydash': u'19', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'32', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'02', 'day': None, 'minute': u'32'} with default timezone <iso8601.iso8601.Utc object at 0x7fb9df33cdd0>
DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'02' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 2 for 'month' with default 2
DEBUG:iso8601.iso8601:Got u'19' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 19 for 'day' with default 19
DEBUG:iso8601.iso8601:Got u'15' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'32' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'32' for 'second' with default None
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-19 08:49:31 -0500

eugene.goldberg gravatar image

In my proxy-server.conf file I have changed IPs from 10.0.0.20 to 127.0.0.1. This let me pass the connection problem, and now I have a different one - ERROR:swiftclient:Account HEAD failed: http://127.0.0.1:8080/v1/AUTH_c36b8bb... 401 Unauthorized

I will post this one separately.

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-02-19 08:40:04 -0500

Seen: 191 times

Last updated: Feb 19 '15