Ask Your Question
0

ICEHOUSE: Swift Account HEAD failed: http://swiftproxy:8080:8080/v1/AUTH_ 400 Bad Request

asked 2016-03-05 05:35:59 -0500

Riccardo gravatar image

updated 2016-03-06 02:12:53 -0500

Hi all,

I have three nodes as such:

controller = 10.10.10.30
swift = 10.10.10.60
swiftproxy = 10.10.10.70

When I try to verify the installation, it does not work and I get such an error.

Could anyone point me to the error, even if it's in the code?

I assume the 8080:8080 might be the issue and I've followed most of the previous questions with no luck.

Thanks a lot for any help,

Kind Regards,

Riccardo


root@controller:~# source admin-openrc.sh
root@controller:~# cat admin-openrc.sh
export OS_USERNAME=admin
export OS_PASSWORD=****************
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0
root@controller:~# swift stat
Account HEAD failed: http://swiftproxy:8080:8080/v1/AUTH_4e4fa5b386134c6d96e9eca8b285898a 400 Bad Request

root@controller:~# swift --debug stat
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://controller:35357/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "****************"}}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 7125
DEBUG:keystoneclient.session:RESP: [200] CaseInsensitiveDict({'date': 'Sat, 05 Mar 2016 11:11:47 GMT', 'vary': 'X-Auth-Token', 'content-length': '7125', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2016-03-05T11:11:47.831915", "expires": "2016-03-05T12:11:47Z", "id": "MIIMsQYJKoZIhvcNAQcCoIIMojCCDJ4CAQExDTALBglghkgBZQMEAgEwggr-BgkqhkiG9w0BBwGgggrwBIIK7HsiYWNjZXNzIjogeyJ0b2tlbiI6IHsiaXNzdWVkX2F0IjogIjIwMTYtMDMtMDVUMTE6MTE6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XBlIjogImlkZW50aXR5IiwgIm5hbWUiOiAia2V5c3RvbmUifV0sICJ1c2VyIjogeyJ1c2VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiNjk3MGIzNzZkODViNDI4NmJjNjc4M2JhMjJmYjYyYTYiLCAicm9sZXMiOiBbeyJuYW1lIjogIl9tZW1iZXJfIn0sIHsibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiOWZlMmZmOWVlNDM4NGIxODk0YTkwODc4ZDNlOTJiYWIiLCAiNWQ3YjNjYWVmMTRjNDU4ODk2NzA1Y2QyOTA4OThmZjIiXX19fTGCAYUwggGBAgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEggEAY3w-6FdL38BjbBIAlfxBLd752CGUeEiWG1gX7tVIweBghWT0RiQO-ugGr3msKBUH9ByO52O3a-W1wNRIBExhF+BLv0VGoDJxaYdvhIHHcVrghI3agtq06xH8H9GXNqqn+M+mfHcSzmcb2GG3Fpr9RwAwkg9xaDseBu3YRusma-cdZeYLL3hRENvH9h6BMrM2PNHU+b94YL6q8r-gySs+mWZ7OHt4kJNeN07aoU0wSidNutpga0DWpp17Rxn-TXvF-PFXmbfHTbLvqkQFJ4Xz8pRpVchPZew1xDpHXQbZQZ39ykHmNbUS5nj1AbaDZk0JMedCKsGkmZ00d1nGGKZ0WA==", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "4e4fa5b386134c6d96e9eca8b285898a", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:8774/v2/4e4fa5b386134c6d96e9eca8b285898a", "region": "regionOne", "internalURL": "http://controller:8774/v2/4e4fa5b386134c6d96e9eca8b285898a", "id": "8f316c0015df431aa139be8604fecc02", "publicURL": "http://controller:8774/v2/4e4fa5b386134c6d96e9eca8b285898a"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:9696", "region": "regionOne", "internalURL": "http://controller:9696", "id": "0642be24ff504faba66bfe9655bbd47f", "publicURL": "http://controller:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://controller:8776/v2/4e4fa5b386134c6d96e9eca8b285898a", "region": "regionOne", "internalURL": "http://controller:8776/v2/4e4fa5b386134c6d96e9eca8b285898a", "id": "2035953c124f4d779d0621974b4808cb", "publicURL": "http://controller:8776/v2/4e4fa5b386134c6d96e9eca8b285898a"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "21f9ee493ec34e13950b668bbd75fff1", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8776/v1/4e4fa5b386134c6d96e9eca8b285898a", "region": "regionOne", "internalURL": "http://controller:8776/v1/4e4fa5b386134c6d96e9eca8b285898a", "id": "358f552bed28456a8944083eb302c790", "publicURL": "http://controller:8776/v1/4e4fa5b386134c6d96e9eca8b285898a"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://swiftproxy:8080", "region": "regionOne", "internalURL": "http://swiftproxy:8080/v1/AUTH_4e4fa5b386134c6d96e9eca8b285898a", "id": "28f5d869a7c443e2826e257495ae3d82", "publicURL": "http://swiftproxy:8080/v1/AUTH_4e4fa5b386134c6d96e9eca8b285898a"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "5aa34cc8115d4320aebf7168e832c3c7", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "6970b376d85b4286bc6783ba22fb62a6", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "5d7b3caef14c458896705cd290898ff2"]}}}

DEBUG:iso8601.iso8601:Parsed 2016-03-05T12:11:47Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'12', 'daydash': u'05', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'47', 'tz_minute': None, 'year': u'2016', 'separator': u'T', 'monthdash': u'03', 'day': None, 'minute': u'11'} with default timezone <iso8601.iso8601.Utc object at 0x7f390aa31c10>
DEBUG:iso8601.iso8601 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-07 06:47:11 -0500

Riccardo gravatar image

Hi all,

apparently I solved my issue, alas, by removing multipath tools and leaving only devices mounted as iSCSI drives.

The double 8080:8080 misled me to thinking it was a configuration issue. Instead I think this is an issue of the swift parser which cannot accept paths such as:

"/dev/mapper/devicename"

but only paths as:

"/dev/devicename"

That might be a feature request for this/next OpenStack releases for developers.

Cheers,

Riccardo.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-03-05 05:35:59 -0500

Seen: 1,752 times

Last updated: Mar 07 '16