swift keystoneclient error “got an unexpected keyword argument 'insecure'”
A week ago, i used a computer with swift and keystone well. today i want to set the same definition on another virtual machine.I got "TypeError: __init__() got an unexpected keyword argument 'insecure'", this time i got the new code from github.com.
$ swift -V 2.0 -A http://
Traceback (most recent call last):
File "/usr/local/
pkg_
File "/usr/lib/
self.
File "/usr/lib/
execfile(
File "/usr/local/
error_queue)
File "/usr/local/
headers = conn.head_account()
File "/usr/local/
return self._retry(None, head_account)
File "/usr/local/
self.url, self.token = self.get_auth()
File "/usr/local/
insecure=
File "/usr/local/
insecure=
File "/usr/local/
auth_
File "/usr/lib/
super(Client, self)._
TypeError: __init__() got an unexpected keyword argument 'insecure'
my proxy-server.conf like this:
[DEFAULT]
bind_ip = 0.0.0.0
bind_port = 80
swift_dir = /etc/swift
workers = 1
user = swift
#cert_file = /etc/swift/cert.crt
#key_file = /etc/swift/cert.key
#log_name = swift
#log_facility = LOG_LOCAL0
#log_level = DEBUG
[pipeline:main]
pipeline = catch_errors healthcheck cache ratelimit authtoken keystone proxy-server
#pipeline = catch_errors healthcheck cache ratelimit tempauth proxy-server
[app:proxy-server]
use = egg:swift#proxy
account_autocreate = true
log_level = DEBUG
[filter:authtoken]
paste.filter_
#the host must point to your keystone server
auth_host = 10.165.0.198
auth_port = 35357
auth_protocol=http
service_host = 10.165.0.198
service_port = 5000
admin_token = ADMIN
admin_user = admin
admin_password = openstack
admin_tenant_name = demo
[filter:keystone]
paste.filter_
#use=egg:swift
operator_roles = adminRole, swiftoperator
#is_admin = true
#reseller_
[filter:tempauth]
use = egg:swift#tempauth
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3
[filter:
use = egg:swift#
[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211
[filter:ratelimit]
use = egg:swift#ratelimit
[filter:
use = egg:swift#
[filter:
use = egg:swift#
i use curl to test the keystone service. it works well!
curl -X POST -d '{"auth": {"tenantName": "demo", "passwordCreden
return like this:
% Total % Received % Xferd Average Speed Time Time Time Current
100 3229 100 3127 100 102 3577 116 --:--:-- --:--:-- --:--:-- 3627
{
"access": {
"metadata": {
]
},
{
],
},
],
"token": {
"id": “xxxx”
}
},
"user": {
"id": "2ecaf33a78f14c
"name": "admin",
{
},
{
}
],
}
}
}
when i turn to use tempauth, It works well, how can i do to fix it?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Kun Huang
- Solved:
- Last query:
- Last reply: