Re: swiftclient call radosgw, it always response 401 Unauthorized

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi Radoslaw Zarzynski

now i retry the http://docs.ceph.com/docs/jewel/install/install-ceph-gateway/
and can get radosgw log as following, the result still 401 , it show got expired token: admin:admin expired

i highlight inline......

2016-09-22 17:09:40.975268 7f8292ffd700 10 content=MIIBzgYJKoZIhvcNAQcCoIIBvzCCAbsCAQExDTALBglghkgBZQMEAgEwHgYJKoZIhvcNAQcBoBEED3sicmV2b2tlZCI6IFtdfTGCAYUwggGBAgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEggEAi6EwxSG2h4A9iatlWY258MpqV4NQIRzEUEJIEuEGtlkf9AGjMi9bvXgEsJdf3WXQMPSQOdQAiISo9dWI0cLz90C9gA5buseORLpF5PtdhSK29EtHCqBqlgAssS1ZvPAa3tl4QsqG6GGXpzYPHv8Ilkq5uuxWP3XxgJiBw3EBtgkI93CDidqK9dd49DoPKJDnKINAP2ku6lNwI24kC+KNc7ehPmbUH6vXGhgsGeBh/b49u0nUFzpshy5ehu3kF01vIvuo4FT9tMTmxQ4rn+LrdjLizgdAl2B/Qu/JlJ1J0vN/mFfbb/ClKerlTUJQOJqYbvZfPOw70ZCn2pRZCbyj9Q==
2016-09-22 17:09:40.976034 7f8292ffd700 10 ceph_decode_cms: decoded: {"revoked": []}
2016-09-22 17:09:51.323852 7f82fe7fc700  2 RGWDataChangesLog::ChangesRenewThread: start
2016-09-22 17:10:13.323924 7f82fe7fc700  2 RGWDataChangesLog::ChangesRenewThread: start
2016-09-22 17:10:35.324028 7f82fe7fc700  2 RGWDataChangesLog::ChangesRenewThread: start
2016-09-22 17:10:40.976182 7f8292ffd700  2 keystone revoke thread: start
2016-09-22 17:10:40.976220 7f8292ffd700 20 sending request to http://10.62.14.192:5000/v2.0/tokens/revoked
2016-09-22 17:10:41.008416 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:10:41.008428 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=HTTP/1.1 200 OK
2016-09-22 17:10:41.008434 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:10:41.008435 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Vary: X-Auth-Token
2016-09-22 17:10:41.008439 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:10:41.008440 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Content-Type: application/json
2016-09-22 17:10:41.008442 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:10:41.008443 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Content-Length: 698
2016-09-22 17:10:41.008445 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:10:41.008446 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=X-Openstack-Request-Id: req-19c9d303-a450-44cd-a89d-7ef14ddb4679
2016-09-22 17:10:41.008447 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:10:41.008448 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Date: Thu, 22 Sep 2016 07:08:56 GMT
2016-09-22 17:10:41.008450 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:10:41.008451 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=
2016-09-22 17:10:41.008561 7f8292ffd700 10 request returned {"signed": "-----BEGIN CMS-----\nMIIBzgYJKoZIhvcNAQcCoIIBvzCCAbsCAQExDTALBglghkgBZQMEAgEwHgYJKoZI\nhvcNAQcBoBEED3sicmV2b2tlZCI6IFtdfTGCAYUwggGBAgEBMFwwVzELMAkGA1UE\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PmbUH6vXGhgsGeBh
/b49u0nUFzpshy5ehu3kF01vIvuo4FT9tMTmxQ4rn+LrdjLizgdAl2B/Qu/JlJ1J
0vN/mFfbb/ClKerlTUJQOJqYbvZfPOw70ZCn2pRZCbyj9Q==
-----END CMS-----
2016-09-22 17:10:41.008637 7f8292ffd700 10 content=MIIBzgYJKoZIhvcNAQcCoIIBvzCCAbsCAQExDTALBglghkgBZQMEAgEwHgYJKoZIhvcNAQcBoBEED3sicmV2b2tlZCI6IFtdfTGCAYUwggGBAgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATALBglghkgBZQMEAgEwDQYJKoZIhvcNAQEBBQAEggEAi6EwxSG2h4A9iatlWY258MpqV4NQIRzEUEJIEuEGtlkf9AGjMi9bvXgEsJdf3WXQMPSQOdQAiISo9dWI0cLz90C9gA5buseORLpF5PtdhSK29EtHCqBqlgAssS1ZvPAa3tl4QsqG6GGXpzYPHv8Ilkq5uuxWP3XxgJiBw3EBtgkI93CDidqK9dd49DoPKJDnKINAP2ku6lNwI24kC+KNc7ehPmbUH6vXGhgsGeBh/b49u0nUFzpshy5ehu3kF01vIvuo4FT9tMTmxQ4rn+LrdjLizgdAl2B/Qu/JlJ1J0vN/mFfbb/ClKerlTUJQOJqYbvZfPOw70ZCn2pRZCbyj9Q==
2016-09-22 17:10:41.009410 7f8292ffd700 10 ceph_decode_cms: decoded: {"revoked": []}
2016-09-22 17:10:57.324114 7f82fe7fc700  2 RGWDataChangesLog::ChangesRenewThread: start
2016-09-22 17:11:08.461831 7f826dffb700 20 RGWEnv::set(): HTTP_HOST: 10.62.9.140:7480
2016-09-22 17:11:08.461844 7f826dffb700 20 RGWEnv::set(): HTTP_ACCEPT_ENCODING: identity
2016-09-22 17:11:08.461847 7f826dffb700 20 RGWEnv::set(): HTTP_USER_AGENT: python-swiftclient-2.6.0
2016-09-22 17:11:08.461850 7f826dffb700 20 RGWEnv::set(): HTTP_X_AUTH_TOKEN: ec2ffff70e2441d5a5a31b29e68620c8
2016-09-22 17:11:08.461853 7f826dffb700 20 RGWEnv::set(): REQUEST_METHOD: HEAD
2016-09-22 17:11:08.461855 7f826dffb700 20 RGWEnv::set(): REQUEST_URI: /swift/v1
2016-09-22 17:11:08.461857 7f826dffb700 20 RGWEnv::set(): QUERY_STRING:
2016-09-22 17:11:08.461859 7f826dffb700 20 RGWEnv::set(): REMOTE_USER:
2016-09-22 17:11:08.461860 7f826dffb700 20 RGWEnv::set(): SCRIPT_URI: /swift/v1
2016-09-22 17:11:08.461864 7f826dffb700 20 RGWEnv::set(): SERVER_PORT: 7480
2016-09-22 17:11:08.461865 7f826dffb700 20 HTTP_ACCEPT_ENCODING=identity
2016-09-22 17:11:08.461867 7f826dffb700 20 HTTP_HOST=10.62.9.140:7480
2016-09-22 17:11:08.461868 7f826dffb700 20 HTTP_USER_AGENT=python-swiftclient-2.6.0
2016-09-22 17:11:08.461868 7f826dffb700 20 HTTP_X_AUTH_TOKEN=ec2ffff70e2441d5a5a31b29e68620c8
2016-09-22 17:11:08.461869 7f826dffb700 20 QUERY_STRING=
2016-09-22 17:11:08.461870 7f826dffb700 20 REMOTE_USER=
2016-09-22 17:11:08.461873 7f826dffb700 20 REQUEST_METHOD=HEAD
2016-09-22 17:11:08.461874 7f826dffb700 20 REQUEST_URI=/swift/v1
2016-09-22 17:11:08.461875 7f826dffb700 20 SCRIPT_URI=/swift/v1
2016-09-22 17:11:08.461876 7f826dffb700 20 SERVER_PORT=7480
2016-09-22 17:11:08.461878 7f826dffb700  1 ====== starting new request req=0x7f826dff5710 =====
2016-09-22 17:11:08.461908 7f826dffb700  2 req 14:0.000030::HEAD /swift/v1::initializing for trans_id = tx00000000000000000000e-0057e3a02c-14881-default
2016-09-22 17:11:08.461914 7f826dffb700 10 host=10.62.9.140
2016-09-22 17:11:08.461918 7f826dffb700 20 subdomain= domain= in_hosted_domain=0 in_hosted_domain_s3website=0
2016-09-22 17:11:08.461945 7f826dffb700 10 ver=v1 first= req=
2016-09-22 17:11:08.461949 7f826dffb700 10 handler=29RGWHandler_REST_Service_SWIFT
2016-09-22 17:11:08.461952 7f826dffb700  2 req 14:0.000074:swift:HEAD /swift/v1::getting op 3
2016-09-22 17:11:08.461955 7f826dffb700 10 op=29RGWStatAccount_ObjStore_SWIFT
2016-09-22 17:11:08.461956 7f826dffb700  2 req 14:0.000079:swift:HEAD /swift/v1:stat_account:authorizing
2016-09-22 17:11:08.461962 7f826dffb700 20 token_id=ec2ffff70e2441d5a5a31b29e68620c8
2016-09-22 17:11:08.462002 7f826dffb700 20 sending request to http://10.62.14.192:5000/v2.0/tokens/ec2ffff70e2441d5a5a31b29e68620c8
2016-09-22 17:11:08.477978 7f826dffb700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:08.477989 7f826dffb700 20 RGWPostHTTPData::receive_header: line=HTTP/1.1 200 OK
2016-09-22 17:11:08.477995 7f826dffb700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:08.477996 7f826dffb700 20 RGWPostHTTPData::receive_header: line=Vary: X-Auth-Token
2016-09-22 17:11:08.477999 7f826dffb700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:08.478000 7f826dffb700 20 RGWPostHTTPData::receive_header: line=Content-Type: application/json
2016-09-22 17:11:08.478002 7f826dffb700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:08.478003 7f826dffb700 20 RGWPostHTTPData::receive_header: line=Content-Length: 3638
2016-09-22 17:11:08.478005 7f826dffb700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:08.478006 7f826dffb700 20 RGWPostHTTPData::receive_header: line=X-Openstack-Request-Id: req-b03092b1-a264-4fa1-a10c-9b35a401e5ee
2016-09-22 17:11:08.478014 7f826dffb700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:08.478016 7f826dffb700 20 RGWPostHTTPData::receive_header: line=Date: Thu, 22 Sep 2016 07:09:23 GMT
2016-09-22 17:11:08.478017 7f826dffb700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:08.478018 7f826dffb700 20 RGWPostHTTPData::receive_header: line=
2016-09-22 17:11:08.478245 7f826dffb700 20 received response: {"access": {"token": {"issued_at": "2016-09-22T07:09:23.554470", "expires": "2016-09-22T08:09:23Z", "id": "ec2ffff70e2441d5a5a31b29e68620c8", "tenant": {"enabled": true, "id": "b9873f339f634842a329d6da01c17861", "name": "admin", "description": "admin tenant"}, "audit_ids": ["ax0-YghvQgCdQtOCnAjPdA"]}, "serviceCatalog": [{"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8774/v2/b9873f339f634842a329d6da01c17861", "region": "RegionOne", "publicURL": "http://10.62.14.192:8774/v2/b9873f339f634842a329d6da01c17861", "id": "66cef110a7014b5cab7a428384d4bafe", "internalURL": "http://10.62.14.192:8774/v2/b9873f339f634842a329d6da01c17861"}], "type": "compute", "name": "nova"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:9696", "region": "RegionOne", "publicURL": "http://10.62.14.192:9696", "id": "04a75207a8e841bbbf3e902372a0bc7b", "internalURL": "http://10.62.14.192:9696"}], "type": "network", "name": "neutron"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8776/v2/b9873f339f634842a329d6da01c17861", "region": "RegionOne", "publicURL": "http://10.62.14.192:8776/v2/b9873f339f634842a329d6da01c17861", "id": "1c628d2a7a6546a5af7ab07c310e7ff1", "internalURL": "http://10.62.14.192:8776/v2/b9873f339f634842a329d6da01c17861"}], "type": "volumev2", "name": "cinderv2"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://127.0.0.1:8774/v3", "region": "RegionOne", "publicURL": "http://127.0.0.1:8774/v3", "id": "40b7ace4f95f40e7ab78c930852fe19c", "internalURL": "http://127.0.0.1:8774/v3"}], "type": "computev3", "name": "novav3"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:9292", "region": "RegionOne", "publicURL": "http://10.62.14.192:9292", "id": "376b6cecc8e442e9b69c466c70d3bea6", "internalURL": "http://10.62.14.192:9292"}], "type": "image", "name": "glance"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8777", "region": "RegionOne", "publicURL": "http://10.62.14.192:8777", "id": "06103567623b4bea965311f3aadb3dee", "internalURL": "http://10.62.14.192:8777"}], "type": "metering", "name": "ceilometer"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8776/v1/b9873f339f634842a329d6da01c17861", "region": "RegionOne", "publicURL": "http://10.62.14.192:8776/v1/b9873f339f634842a329d6da01c17861", "id": "b680cec9176d4895aa7f03f6089bb895", "internalURL": "http://10.62.14.192:8776/v1/b9873f339f634842a329d6da01c17861"}], "type": "volume", "name": "cinder"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8773/services/Admin", "region": "RegionOne", "publicURL": "http://10.62.14.192:8773/services/Cloud", "id": "75a8d8dcf4d64a5d9382879258965545", "internalURL": "http://10.62.14.192:8773/services/Cloud"}], "type": "ec2", "name": "nova_ec2"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.9.140:7480/swift/v1", "region": "RegionOne", "publicURL": "http://10.62.9.140:7480/swift/v1", "id": "4bc69f5af52b4521aae2e9e765078236", "internalURL": "http://10.62.9.140:7480/swift/v1"}], "type": "object-store", "name": "swift"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:35357/v2.0", "region": "RegionOne", "publicURL": "http://10.62.14.192:5000/v2.0", "id": "04e97140b3c449f1aaba865a331e5d5a", "internalURL": "http://10.62.14.192:5000/v2.0"}], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "b358bd2c7d824478b47ffa6aca1b4e29", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6261c5f07f1f44d99667f4cb5370a35c"]}}}
2016-09-22 17:11:08.480195 7f826dffb700  0 validated token: admin:admin expires: 1474531763
2016-09-22 17:11:08.480206 7f826dffb700  0 got expired token: admin:admin expired: 1474531763
2016-09-22 17:11:08.480211 7f826dffb700 10 failed to authorize request
2016-09-22 17:11:08.480213 7f826dffb700 20 handler->ERRORHANDLER: err_no=-1 new_err_no=-1
2016-09-22 17:11:08.480313 7f826dffb700  2 req 14:0.018434:swift:HEAD /swift/v1:stat_account:op status=0
2016-09-22 17:11:08.480320 7f826dffb700  2 req 14:0.018442:swift:HEAD /swift/v1:stat_account:http status=401
2016-09-22 17:11:08.480324 7f826dffb700  1 ====== req done req=0x7f826dff5710 op status=0 http_status=401 ======
2016-09-22 17:11:08.480334 7f826dffb700 20 process_request() returned -1
2016-09-22 17:11:08.480371 7f826dffb700  1 civetweb: 0x7f8328e69740: 10.62.14.192 - - [22/Sep/2016:17:11:08 +0800] "HEAD /swift/v1 HTTP/1.1" 401 0 - python-swiftclient-2.6.0
2016-09-22 17:11:09.583142 7f826cff9700 20 RGWEnv::set(): HTTP_HOST: 10.62.9.140:7480
2016-09-22 17:11:09.583155 7f826cff9700 20 RGWEnv::set(): HTTP_ACCEPT_ENCODING: identity
2016-09-22 17:11:09.583158 7f826cff9700 20 RGWEnv::set(): HTTP_USER_AGENT: python-swiftclient-2.6.0
2016-09-22 17:11:09.583160 7f826cff9700 20 RGWEnv::set(): HTTP_X_AUTH_TOKEN: f5719296ddc44de1bd3c8d28af6894e1
2016-09-22 17:11:09.583163 7f826cff9700 20 RGWEnv::set(): REQUEST_METHOD: HEAD
2016-09-22 17:11:09.583165 7f826cff9700 20 RGWEnv::set(): REQUEST_URI: /swift/v1
2016-09-22 17:11:09.583166 7f826cff9700 20 RGWEnv::set(): QUERY_STRING:
2016-09-22 17:11:09.583168 7f826cff9700 20 RGWEnv::set(): REMOTE_USER:
2016-09-22 17:11:09.583170 7f826cff9700 20 RGWEnv::set(): SCRIPT_URI: /swift/v1
2016-09-22 17:11:09.583173 7f826cff9700 20 RGWEnv::set(): SERVER_PORT: 7480
2016-09-22 17:11:09.583174 7f826cff9700 20 HTTP_ACCEPT_ENCODING=identity
2016-09-22 17:11:09.583175 7f826cff9700 20 HTTP_HOST=10.62.9.140:7480
2016-09-22 17:11:09.583178 7f826cff9700 20 HTTP_USER_AGENT=python-swiftclient-2.6.0
2016-09-22 17:11:09.583179 7f826cff9700 20 HTTP_X_AUTH_TOKEN=f5719296ddc44de1bd3c8d28af6894e1
2016-09-22 17:11:09.583180 7f826cff9700 20 QUERY_STRING=
2016-09-22 17:11:09.583181 7f826cff9700 20 REMOTE_USER=
2016-09-22 17:11:09.583182 7f826cff9700 20 REQUEST_METHOD=HEAD
2016-09-22 17:11:09.583183 7f826cff9700 20 REQUEST_URI=/swift/v1
2016-09-22 17:11:09.583183 7f826cff9700 20 SCRIPT_URI=/swift/v1
2016-09-22 17:11:09.583184 7f826cff9700 20 SERVER_PORT=7480
2016-09-22 17:11:09.583186 7f826cff9700  1 ====== starting new request req=0x7f826cff3710 =====
2016-09-22 17:11:09.583202 7f826cff9700  2 req 15:0.000016::HEAD /swift/v1::initializing for trans_id = tx00000000000000000000f-0057e3a02d-14881-default
2016-09-22 17:11:09.583207 7f826cff9700 10 host=10.62.9.140
2016-09-22 17:11:09.583210 7f826cff9700 20 subdomain= domain= in_hosted_domain=0 in_hosted_domain_s3website=0
2016-09-22 17:11:09.583244 7f826cff9700 10 ver=v1 first= req=
2016-09-22 17:11:09.583248 7f826cff9700 10 handler=29RGWHandler_REST_Service_SWIFT
2016-09-22 17:11:09.583253 7f826cff9700  2 req 15:0.000064:swift:HEAD /swift/v1::getting op 3
2016-09-22 17:11:09.583256 7f826cff9700 10 op=29RGWStatAccount_ObjStore_SWIFT
2016-09-22 17:11:09.583257 7f826cff9700  2 req 15:0.000072:swift:HEAD /swift/v1:stat_account:authorizing
2016-09-22 17:11:09.583262 7f826cff9700 20 token_id=f5719296ddc44de1bd3c8d28af6894e1
2016-09-22 17:11:09.583295 7f826cff9700 20 sending request to http://10.62.14.192:5000/v2.0/tokens/f5719296ddc44de1bd3c8d28af6894e1
2016-09-22 17:11:09.600381 7f826cff9700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:09.600392 7f826cff9700 20 RGWPostHTTPData::receive_header: line=HTTP/1.1 200 OK
2016-09-22 17:11:09.600397 7f826cff9700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:09.600398 7f826cff9700 20 RGWPostHTTPData::receive_header: line=Vary: X-Auth-Token
2016-09-22 17:11:09.600402 7f826cff9700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:09.600403 7f826cff9700 20 RGWPostHTTPData::receive_header: line=Content-Type: application/json
2016-09-22 17:11:09.600405 7f826cff9700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:09.600406 7f826cff9700 20 RGWPostHTTPData::receive_header: line=Content-Length: 3638
2016-09-22 17:11:09.600408 7f826cff9700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:09.600409 7f826cff9700 20 RGWPostHTTPData::receive_header: line=X-Openstack-Request-Id: req-a2b6fb82-871c-4b29-8991-b03401630824
2016-09-22 17:11:09.600410 7f826cff9700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:09.600422 7f826cff9700 20 RGWPostHTTPData::receive_header: line=Date: Thu, 22 Sep 2016 07:09:24 GMT
2016-09-22 17:11:09.600425 7f826cff9700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:09.600426 7f826cff9700 20 RGWPostHTTPData::receive_header: line=
2016-09-22 17:11:09.600639 7f826cff9700 20 received response: {"access": {"token": {"issued_at": "2016-09-22T07:09:24.685947", "expires": "2016-09-22T08:09:24Z", "id": "f5719296ddc44de1bd3c8d28af6894e1", "tenant": {"enabled": true, "id": "b9873f339f634842a329d6da01c17861", "name": "admin", "description": "admin tenant"}, "audit_ids": ["kXuaNd47TTmkR-x1zxVXBg"]}, "serviceCatalog": [{"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8774/v2/b9873f339f634842a329d6da01c17861", "region": "RegionOne", "publicURL": "http://10.62.14.192:8774/v2/b9873f339f634842a329d6da01c17861", "id": "66cef110a7014b5cab7a428384d4bafe", "internalURL": "http://10.62.14.192:8774/v2/b9873f339f634842a329d6da01c17861"}], "type": "compute", "name": "nova"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:9696", "region": "RegionOne", "publicURL": "http://10.62.14.192:9696", "id": "04a75207a8e841bbbf3e902372a0bc7b", "internalURL": "http://10.62.14.192:9696"}], "type": "network", "name": "neutron"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8776/v2/b9873f339f634842a329d6da01c17861", "region": "RegionOne", "publicURL": "http://10.62.14.192:8776/v2/b9873f339f634842a329d6da01c17861", "id": "1c628d2a7a6546a5af7ab07c310e7ff1", "internalURL": "http://10.62.14.192:8776/v2/b9873f339f634842a329d6da01c17861"}], "type": "volumev2", "name": "cinderv2"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://127.0.0.1:8774/v3", "region": "RegionOne", "publicURL": "http://127.0.0.1:8774/v3", "id": "40b7ace4f95f40e7ab78c930852fe19c", "internalURL": "http://127.0.0.1:8774/v3"}], "type": "computev3", "name": "novav3"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:9292", "region": "RegionOne", "publicURL": "http://10.62.14.192:9292", "id": "376b6cecc8e442e9b69c466c70d3bea6", "internalURL": "http://10.62.14.192:9292"}], "type": "image", "name": "glance"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8777", "region": "RegionOne", "publicURL": "http://10.62.14.192:8777", "id": "06103567623b4bea965311f3aadb3dee", "internalURL": "http://10.62.14.192:8777"}], "type": "metering", "name": "ceilometer"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8776/v1/b9873f339f634842a329d6da01c17861", "region": "RegionOne", "publicURL": "http://10.62.14.192:8776/v1/b9873f339f634842a329d6da01c17861", "id": "b680cec9176d4895aa7f03f6089bb895", "internalURL": "http://10.62.14.192:8776/v1/b9873f339f634842a329d6da01c17861"}], "type": "volume", "name": "cinder"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:8773/services/Admin", "region": "RegionOne", "publicURL": "http://10.62.14.192:8773/services/Cloud", "id": "75a8d8dcf4d64a5d9382879258965545", "internalURL": "http://10.62.14.192:8773/services/Cloud"}], "type": "ec2", "name": "nova_ec2"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.9.140:7480/swift/v1", "region": "RegionOne", "publicURL": "http://10.62.9.140:7480/swift/v1", "id": "4bc69f5af52b4521aae2e9e765078236", "internalURL": "http://10.62.9.140:7480/swift/v1"}], "type": "object-store", "name": "swift"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://10.62.14.192:35357/v2.0", "region": "RegionOne", "publicURL": "http://10.62.14.192:5000/v2.0", "id": "04e97140b3c449f1aaba865a331e5d5a", "internalURL": "http://10.62.14.192:5000/v2.0"}], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "b358bd2c7d824478b47ffa6aca1b4e29", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6261c5f07f1f44d99667f4cb5370a35c"]}}}
2016-09-22 17:11:09.602667 7f826cff9700  0 validated token: admin:admin expires: 1474531764
2016-09-22 17:11:09.602678 7f826cff9700  0 got expired token: admin:admin expired: 1474531764
2016-09-22 17:11:09.602683 7f826cff9700 10 failed to authorize request
2016-09-22 17:11:09.602685 7f826cff9700 20 handler->ERRORHANDLER: err_no=-1 new_err_no=-1
2016-09-22 17:11:09.602807 7f826cff9700  2 req 15:0.019621:swift:HEAD /swift/v1:stat_account:op status=0
2016-09-22 17:11:09.602816 7f826cff9700  2 req 15:0.019629:swift:HEAD /swift/v1:stat_account:http status=401
2016-09-22 17:11:09.602820 7f826cff9700  1 ====== req done req=0x7f826cff3710 op status=0 http_status=401 ======
2016-09-22 17:11:09.602828 7f826cff9700 20 process_request() returned -1
2016-09-22 17:11:09.602862 7f826cff9700  1 civetweb: 0x7f8274000ea0: 10.62.14.192 - - [22/Sep/2016:17:11:09 +0800] "HEAD /swift/v1 HTTP/1.1" 401 0 - python-swiftclient-2.6.0
2016-09-22 17:11:19.324220 7f82fe7fc700  2 RGWDataChangesLog::ChangesRenewThread: start
2016-09-22 17:11:41.009560 7f8292ffd700  2 keystone revoke thread: start
2016-09-22 17:11:41.009598 7f8292ffd700 20 sending request to http://10.62.14.192:5000/v2.0/tokens/revoked
2016-09-22 17:11:41.039645 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:41.039656 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=HTTP/1.1 200 OK
2016-09-22 17:11:41.039662 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:41.039664 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Vary: X-Auth-Token
2016-09-22 17:11:41.039667 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:41.039668 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Content-Type: application/json
2016-09-22 17:11:41.039670 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:41.039671 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Content-Length: 698
2016-09-22 17:11:41.039673 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:41.039674 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=X-Openstack-Request-Id: req-cfc0acb5-da9f-4638-8f1f-4c69487a7734
2016-09-22 17:11:41.039676 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:41.039677 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=Date: Thu, 22 Sep 2016 07:09:56 GMT
2016-09-22 17:11:41.039678 7f8292ffd700 20 RGWPostHTTPData::receive_header parsing HTTP headers
2016-09-22 17:11:41.039679 7f8292ffd700 20 RGWPostHTTPData::receive_header: line=
2016-09-22 17:11:41.039809 7f8292ffd700 10 request returned {"signed": "-----BEGIN CMS-----\nMIIBzgYJKoZIhvcNAQcCoIIBvzCCAbsCAQExDTALBglghkgBZQMEAgEwHgYJKoZI\nhvcNAQcBoBEED3sicmV2b2tlZCI6IFtdfTGCAYUwggGBAgEBMFwwVzELMAkGA1UE\nBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwF\nVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATALBglghkgBZQMEAgEw\nDQYJKoZIhvcNAQEBBQAEggEAi6EwxSG2h4A9iatlWY258MpqV4NQIRzEUEJIEuEG\ntlkf9AGjMi9bvXgEsJdf3WXQMPSQOdQAiISo9dWI0cLz90C9gA5buseORLpF5Ptd\nhSK29EtHCqBqlgAssS1ZvPAa3tl4QsqG6GGXpzYPHv8Ilkq5uuxWP3XxgJiBw3EB\ntgkI93CDidqK9dd49DoPKJDnKINAP2ku6lNwI24kC+KNc7ehPmbUH6vXGhgsGeBh\n/b49u0nUFzpshy5ehu3kF01vIvuo4FT9tMTmxQ4rn+LrdjLizgdAl2B/Qu/JlJ1J\n0vN/mFfbb/ClKerlTUJQOJqYbvZfPOw70ZCn2pRZCbyj9Q==\n-----END CMS-----\n"}
2016-09-22 17:11:41.039872 7f8292ffd700 10 signed=-----BEGIN CMS-----
MIIBzgYJKoZIhvcNAQcCoIIBvzCCAbsCAQExDTALBglghkgBZQMEAgEwHgYJKoZI
hvcNAQcBoBEED3sicmV2b2tlZCI6IFtdfTGCAYUwggGBAgEBMFwwVzELMAkGA1UE
BhMCVVMxDjAMBgNV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4rn+LrdjLizgdAl2B/Qu/JlJ1J0vN/mFfbb/ClKerlTUJQOJqYbvZfPOw70ZCn2pRZCbyj9Q==
2016-09-22 17:11:41.040605 7f8292ffd700 10 ceph_decode_cms: decoded: {"revoked": []}
2016-09-22 17:11:41.324324 7f82fe7fc700  2 RGWDataChangesLog::ChangesRenewThread: start


finally, thx your greate help





2016-09-21 19:09 GMT+08:00 Radoslaw Zarzynski <rzarzynski@xxxxxxxxxxxx>:
Hi,

Responded inline.

On Wed, Sep 21, 2016 at 4:54 AM, Brian Chang-Chien
<brian.changchien@xxxxxxxxx> wrote:
>
>
> [global]
> ...
> debug rgw = 20
> [client.radosgw.gateway]
> host = brianceph
> rgw keystone url = "" href="http://10.62.13.253:35357" target="_blank" rel="noreferrer">http://10.62.13.253:35357
> rgw keystone admin token = 7bb8e26cbc714c47a26ffec3d96f246f
> rgw keystone accepted roles = admin, swiftuser, user, _member_, Member
> rgw keystone token cache size = 500
> rgw keystone revocation interval = 60
> rgw keystone make new tenants = true
> rgw s3 auth use keystone = true
> nss db path = /var/ceph/nss

The debug_rgw=20 has been put into the global section.
I bet that's the sole reason why this particular RadosGW
instance sees it.

> and I still some config problem
>
> Q3 : when i edit /etc/ceph/ceph.conf , if my hostname is brianceph
> the radosgw term in ceph.conf should be  [client.radosgw.gateway] or [client.radosgw.brianceph]
> which one is correct?
>
> PS: when i create radosgw, i call th cmd " ceph-deploy rgw create brianceph"

Most likely your current section naming is wrong. I haven't
poked with ceph-deloy too much but I would say it should
be [client.rgw.brianceph] or [client.radosgw.brianceph].
I don't have now any cluster alive to disambiguate, sorry.

> Q4: when i finish to edit ceph.conf, i need restart radosgw service or restart ceph service
>  in this case, i use ceph jewel, so which cmd need to call " systemctl restart ceph-radosgw.target " or  "systemctl ceph.target"

Take a look on that:
http://docs.ceph.com/docs/jewel/install/install-ceph-gateway/

> Q5: when i use ceph-deploy new brianceph, ceph will generate a ceph.cof, what kind edit ceph.conf to create rgw is prefer
>
> Method1: i direct edit ceph.conf from ceph geerated, and use ceph-deploy --overwrite-conf rgw create brianceph
>
> Method2(i used in the case) : first i call ceph-deploy rgw create brianceph, and then  edit ceph.conf in /etc/ceph/ folder , then call systemctl restart ceph-radosgw.target
>
>
> two methods i find some different issues,
> in Method1, the radosgw item of the ceph.conf in /etc/ceph/  like "rgw keystone url" will convert rgw_keystone_url ,

Spaces and underscores in configurables' names are treated
in the same way. No difference.

Regards,
Radoslaw Zarzynski

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux