Account HEAD failed: http://proxy1:8080:8080/v1/AUTH_3e54a18b27d542e5b55c9d4b522ac627 401 Unauthorized [closed]

asked 2014-07-15 04:31:24 -0500

hugesu gravatar image

updated 2014-08-19 12:47:18 -0500

briancline gravatar image

Hello, everyone: I am installing and configuration openstack swift, but now I encounter a problem. last week, I have finished the installation following the guide. I installed 1 proxy node named proxy1 and 3 storage nodes named storage 1/2/3. all these nodes metioned above are KVMs which bridge to real network. I install the keystone on another real server. because my proxy-server was not installed on node where keystone. so my configuration is a little different from guide.

keystone endpoint-create --service-id=$(keystone service-list | awk '/ object-store / {print $2}') --publicurl='http://proxy1:8080/v1/AUTH_%(tenant_id)s' --internalurl='http://proxy1:8080/v1/AUTH_%(tenant_id)s' --adminurl=http://proxy1:8080

At that moment, everything seemed fine and I could upload and download files on proxy1. this week, I reboot the all the KVMs and now I encounter a problem. after I execute "source admin-openrc.sh; swift stat", I get:

Account HEAD failed: http://proxy1:8080:8080/v1/AUTH_3e54a18b27d542e5b55c9d4b522ac627 401 Unauthorized.

In the /var/log/messages, it shows"

Jul 15 22:43:53 proxy1 proxy-server: Authorization failed for token
Jul 15 22:43:53 proxy1 proxy-server: Invalid user token - deferring reject downstream

I try to restart service proxy-server, keystone and services on storage, but it does not go well. In the proxy1, I try "keystone token-get" and it works. In the directory of key_signing, all three pem files exist. Because of my poor python skill, I cannot understand how program works, I just print some variables to find out what happen.

[root@proxy1 stx]# swift stat
hugesu: __main__: begin
hugesu: st_stat: before get_conn
hugesu: get_conn: begin
hugesu: get_conn: options.auth=http://controller:35357/v2.0
hugesu: get_conn: options.user=admin
hugesu: get_conn: options.key=123456
hugesu: get_conn: options.retries=5
hugesu: get_conn: options.auth_version=2.0
hugesu: get_conn: options.os_options={'region_name': None, 'tenant_id': None, 'auth_token': None, 'endpoint_type': None, 'tenant_name': 'admin', 'service_type': None, 'object_storage_url': None}
hugesu: get_conn: options.snet=False
hugesu: get_conn: options.os_cacert=None
hugesu: get_conn: options.insecure=False
hugesu: get_conn: options.ssl_compression=True
hugesu: st_stat: if not args
hugesu: st_stat: before stat_account
hugesu: stat_account: begin
hugesu: _retry: begin
hugesu: head_account: begin
hugesu: head_account: url=http://proxy1:8080/v1/AUTH_3e54a18b27d542e5b55c9d4b522ac627
hugesu: head_account: before conn.request
hugesu: head_account: http_scheme=http
hugesu: head_account: http_host=proxy1:8080
hugesu: head_account: port=8080
hugesu: head_account: method=HEAD
hugesu: head_account: parsed.path=/v1/AUTH_3e54a18b27d542e5b55c9d4b522ac627
hugesu: head_account: headers={'X-Auth-Token': u'MIILlgYJKoZIhvcNAQcCoIILhzCCC4MCAQExCTAHBgUrDgMCGjCCCewGCSqGSIb3DQEHAaCCCd0EggnZeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNy0xNVQwNzoxNDowMC44ODIzMDEiLCAiZXhwaXJlcyI6ICIyMDE0LTA3LTE1VDA4OjE0OjAwWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjNlNTRhMThiMjdkNTQyZTViNTVjOWQ0YjUyMmFjNjI3IiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9jb250cm9sbGVyOjg3NzQvdjIvM2U1NGExOGIyN2Q1NDJlNWI1NWM5ZDRiNTIyYWM2MjciLCAicmVnaW9uIjogInJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vY29udHJvbGxlcjo4Nzc0L3YyLzNlNTRhMThiMjdkNTQyZTViNTVjOWQ0YjUyMmFjNjI3IiwgImlkIjogIjM3ZDA4NWM3MTc2MDQwOGU4MWExNzgxNWFjMmY5ODQ2IiwgInB1YmxpY1VSTCI6ICJodHRwOi8vY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_account: before raise
hugesu: head_account: resp.status=401
hugesu: head_account: resp.reason=Unauthorized
hugesu: head_account: begin
hugesu: head_account: url=http://proxy1:8080/v1/AUTH_3e54a18b27d542e5b55c9d4b522ac627
hugesu: head_account: before conn.request
hugesu: head_account: http_scheme=http
hugesu: head_account: http_host=proxy1:8080
hugesu: head_account: port=8080
hugesu: head_account: method=HEAD
hugesu: head_account: parsed.path=/v1/AUTH_3e54a18b27d542e5b55c9d4b522ac627
hugesu: head_account: headers={'X-Auth-Token': u'MIILlgYJKoZIhvcNAQcCoIILhzCCC4MCAQExCTAHBgUrDgMCGjCCCewGCSqGSIb3DQEHAaCCCd0EggnZeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNy0xNVQwNzoxNDowMi4xOTQyOTIiLCAiZXhwaXJlcyI6ICIyMDE0LTA3LTE1VDA4OjE0OjAyWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjNlNTRhMThiMjdkNTQyZTViNTVjOWQ0YjUyMmFjNjI3IiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9jb250cm9sbGVyOjg3NzQvdjIvM2U1NGExOGIyN2Q1NDJlNWI1NWM5ZDRiNTIyYWM2MjciLCAicmVnaW9uIjogInJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vY29udHJvbGxlcjo4Nzc0L3YyLzNlNTRhMThiMjdkNTQyZTViNTVjOWQ0YjUyMmFjNjI3IiwgImlkIjogIjM3ZDA4NWM3MTc2MDQwOGU4MWExNzgxNWFjMmY5ODQ2IiwgInB1YmxpY1VSTCI6ICJodHRwOi8vY29udHJvbGxlcjo4Nzc0L3YyLz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iOiAiaHR0cDovL2NvbnRyb2xsZXI6NTAwMC92Mi4wIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImlkZW50aXR5IiwgIm5hbWUiOiAia2V5c3RvbmUifV0sICJ1c2VyIjogeyJ1c2VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiOWIzODhjYTEwZjQzNGRhMjg4N2Q5NDRhMjA4YzhmNWEiLCAicm9sZXMiOiBbeyJuYW1lIjogIl9tZW1iZXJfIn0sIHsibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiOWZlMmZmOWVlNDM4NGIxODk0YTkwODc4ZDNlOTJiYWIiLCAiYmM3ZGMzMGIwN2NlNGU1MmIyZDRkMDJkM2U0MTMwOTgiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBI+06BDDBCmDvRWqH7MdPzyU-38CODFXM0s-fA2k3mpDTKWPVw0n+q9m4GhaoiiwncBX3R4hZSIW08fqm3qWeAaL8ZGOqIiKSnFAuK16nhNVNwm34rNcB66ivkYpulABx+LTQMRHYymC3c0PQzg2AfEm6E0nL2Oc0d9ioVRLul0TH0BCUhdNqfoJlBOLm3loYC5zEIbSnkXteD62JAXmAHWhhOSkfRDXFKtK0L3za-MOtGHzDr7-l83cFRnmRJIYh4UfXpNIQzwHxFa7g7V-9VmiRIFngpDbz81OjfWIoP-gJHuzO7OthxoxCZpgfjjvw4PqZl9EzzeFdSo6xVLpkV'}
hugesu: head_account: after conn.request
hugesu: head_account: before raise
hugesu: head_account: resp.status=401
hugesu: head_account: resp.reason=Unauthorized
Account HEAD failed: http://proxy1:8080:8080/v1/AUTH_3e54a18b27d542e5b55c9d4b522ac627 401 Unauthorized
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by SGPJ
close date 2014-07-15 04:33:32.259789

Comments

smaffulli gravatar imagesmaffulli ( 2014-07-15 11:04:32 -0500 )edit