Ask Your Question
0

swift admin password gives unexpected argument error.why??

asked 2013-08-15 23:50:48 -0500

baran gravatar image

updated 2013-08-18 08:57:01 -0500

Hello all.

swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swiftadmin -K swiftadminpasswd stat

see the following error:

traceback (most recent call last):  
file "usr/local/bin/swift", line 7, in <module>   
execfile(--file--) 
file "/root/python-swiftclient/bin/swift", line 578, in st_stat  
……  
……  
……  
…..  
Typeerror: --init—() got an unexpected keyword argument 'insecur

/etc/swift/proxy-server.conf

[DEFAULT]  
bind_port = 8080   
user = root 
workers = 1  
log_facility = LOG_LOCAL1  
eventlet_debug = true  

[pipeline:main]  
pipeline = catch_errors healthcheck cache authtoken swiftauth proxy-server  

[app:proxy-server]  
use = egg:swift#proxy  
allow_account_management = true  
account_autocreate = true  
set log_name = swift-proxy-server  
set log_facility = LOG_LOCAL0  
set log_level = DEBUG  
set access_log_name = swift-proxy-server  
set access_log_facility = LOG_LOCAL0  
set access_log_level = DEBUG
set log_headers = True  

[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:healthcheck]   
use = egg:swift#healthcheck 

[filter:catch_errors]  
use = egg:swift#catch_errors  

[filter:cache]  
use = egg:swift#memcache  
set log_name = cache  

[filter:swiftauth]  
paste.filter_factory = keystone.middleware.swift_auth:filter_factory  
operator_roles = admin, SwiftOperator  
is_admin = true 

[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory  
service_protocol = http  
service_host = 127.0.0.1  
service_port = 5000  
auth_protocol = http  
auth_host = 127.0.0.1  
auth_port = 35357  
admin_tenant_name = service  
admin_user = swiftadmin
admin_password = swiftadminpasswd  
delay_auth_decision = 0  


/etc/swift/swift.conf:  

[swift-hash] 
random unique strings that can never change (DO NOT LOSE) 
swift_hash_path_prefix = changeme 
swift_hash_path_suffix = changeme  


swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat

see the following output:

Account: AUTH_test    
Containers: 0
Objects: 0   
Bytes: 0  
Accept-Ranges: text/plain; charset=utf-8 
x-timestamp: 1346789456.26132  
x-put-timestamp: 1346789456.26132

Of course
i do Keystone settings according to the following: http://www.canonical.com/sites/www.canonical.com/files/active/Ubuntu_Keystone_WP_WEB_AW.pdf

and swift settings according to the following:
http://docs.openstack.org/developer/swift/development_saio.html
and
https://blog.hpcloud.com/road-essex-part-2-keystone-and-swift-keystone-authentication

but:
swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swiftadmin -K swiftadminpasswd stat

see the following error:

  traceback (most recent call last);   
  file "/usr/local/bin/swift", line 7, in <module>   
  execfile(--file--)   
file "/root/python-swiftclient/bin/swift", line 1322, in <module>   
globals() ['st_%s' % args[0]] (parser, argv[1:], thread_manager) file "/root/python-swiftclient/bin/swift", line 578, in st_stat   
headers = conn.head_account()   
file "/root/python-swiftclient/swiftclient/client.py", line 1131, in head_account   
return self._retry(none, head_account)   
file "/root/python-swiftclient/swiftclient/client.py", line 1088, in _retryself.url, self.token = self.get_auth()   
file "/root/python-swiftclient/swiftclient/client.py", line 1064, in get_auth insecure=self.insecure   
file "/root/python-swiftclient/swiftclient/client.py", line 220, in get_keystoneclient_2_0   
auth_url=auth_url, insecure=insecure   
file "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py",line 66, in --init--   
  super(client, self). --init(endpoint=endpoint, **kwargs) 
typeerror: --init--() got an unexpected keyword argumant 'insecure'</module></module>

AND:

swift  -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat

ERROR:

no handlers could be found for logger "swiftclient"   
auth GET failed: http://127.0.0.1:5000/v2.0/ 200 ok ...
(more)
edit retag flag offensive close merge delete

Comments

Are you sure the output of `swift -v –V 2.0 -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat` is what you have pasted here? A "200" code means a successful response.

Jobin gravatar imageJobin ( 2013-08-18 06:36:45 -0500 )edit

excuse me swift -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat ERROR: no handlers could be found for logger "swiftclient" auth GET failed: http://127.0.0.1:5000/v2.0/ 200 ok no: swift -v –V 2.0 -A http://127.0.0.1:5000/v2.0/ -U ubuntu:admin -K openstack stat

baran gravatar imagebaran ( 2013-08-18 08:56:32 -0500 )edit

Please update the question properly.

Jobin gravatar imageJobin ( 2013-08-18 09:25:04 -0500 )edit

ok Done. but What is Benefit?while not answer

baran gravatar imagebaran ( 2013-08-18 10:15:48 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2013-08-16 04:17:40 -0500

clayg gravatar image

updated 2013-08-17 02:41:21 -0500

Looks like an old version of python-keystone client mixed up with a newerish version of pythonswiftclient? You should try to verify the versions of the installed software (system packages? pypi? source?) and update them.

Please update the question with the full tracebacks.

edit flag offensive delete link more

Comments

If what you say is my problem, What is the solution? (an old version of python-keystone client mixed up with a newerish version of pythonswiftclient )

baran gravatar imagebaran ( 2013-08-16 06:53:03 -0500 )edit
1

It depends how you originally installed - can you provide more details?

clayg gravatar imageclayg ( 2013-08-17 02:42:25 -0500 )edit

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: 2013-08-15 23:50:48 -0500

Seen: 658 times

Last updated: Aug 18 '13