openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #14983
回复: Keystone client could not behave well, call for help
Hi Dolph,
Thanks. Below is the detailed info.
part of keystone.conf
[DEFAULT]
#bind_host = 0.0.0.0
public_port = 5000
admin_port = 5001
admin_token = 8a47fd17e8950d483ea7
compute_port = 8774
verbose = True
debug = True
#log_config = /etc/keystone/logging.conf
[root@kapi-r11 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1E:67:05:9D:14
inet addr:192.168.11.100 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::21e:67ff:fe05:9d14/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:665663 errors:0 dropped:0 overruns:0 frame:0
TX packets:98960 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:164713538 (157.0 MiB) TX bytes:10391084 (9.9 MiB)
Memory:b1f20000-b1f40000
[root@kapi-r11 ~]# service openstack-keystone status
keystone (pid 31977) is running...
[root@kapi-r11 ~]# iptables -I INPUT 1 -p tcp --dport 5000 -j ACCEPT
[root@kapi-r11 ~]# iptables -I INPUT 1 -p tcp --dport 5001 -j ACCEPT
[root@kapi-r11 ~]# keystone --token 8a47fd17e8950d483ea7 --endpoint http://192.168.11.100:5001/v2.0 --debug role-list
connect: (192.168.11.100, 5001)
send: 'GET /v2.0/OS-KSADM/roles HTTP/1.1\r\nHost: 192.168.11.100:5001\r\nx-auth-token: 8a47fd17e8950d483ea7\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n'
reply: 'HTTP/1.1 503 Service Unavailable\r\n'
header: Cache-Control: no-cache
header: Pragma: no-cache
header: Content-Type: text/html; charset=utf-8
header: Proxy-Connection: close
header: Connection: close
header: Content-Length: 768
Traceback (most recent call last):
File "/usr/bin/keystone", line 9, in <module>
load_entry_point('python-keystoneclient==2012.1', 'console_scripts', 'keystone')()
File "/usr/lib/python2.6/site-packages/keystoneclient/shell.py", line 306, in main
OpenStackIdentityShell().main(sys.argv[1:])
File "/usr/lib/python2.6/site-packages/keystoneclient/shell.py", line 266, in main
args.func(self.cs, args)
File "/usr/lib/python2.6/site-packages/keystoneclient/v2_0/shell.py", line 203, in do_role_list
roles = kc.roles.list()
File "/usr/lib/python2.6/site-packages/keystoneclient/v2_0/roles.py", line 51, in list
return self._list("/OS-KSADM/roles", "roles")
File "/usr/lib/python2.6/site-packages/keystoneclient/base.py", line 70, in _list
data = body[response_key]
TypeError: string indices must be integers, not str
Regards,
Fu Yan Sheng
________________________________
发件人: Dolph Mathews <dolph.mathews@xxxxxxxxx>
收件人: MURAOKA Yusuke <yusuke@xxxxxxxxxx>
抄送: 延生 付 <willfly0620@xxxxxxxxxxxx>; "openstack@xxxxxxxxxxxxxxxxxxx" <openstack@xxxxxxxxxxxxxxxxxxx>
发送日期: 2012年7月22日, 星期日, 下午 8:11
主题: Re: [Openstack] Keystone client could not behave well, call for help
Try running the same command with the --debug option, and share the output here.
Thanks,
-Dolph
On Sunday, July 22, 2012, MURAOKA Yusuke wrote:
Hi,
>
>There is devstack all-in-one openstack builder. http://devstack.org/
>Officially, its not supporting RHEL 6.1 on the site. But its only shell-script.
>So, you can get working stack to compare what's different from the stack you built.
>
>
>--
>MURAOKA Yusuke
>
>Mail: yusuke@xxxxxxxxxx
>
>
>日付:2012年7月22日日曜日、時刻:3:44、差出人:延生 付:
>
>> Dear all,
>>
>> The background is I have already installed all the openstack components on RHEL 6.1.
>> Nova and Glance configured well, and can boot up normally.
>> Keystone server also configured and boot up normally, while when I type the cmd as below, weird things happened.
>>
>> [root@kapi-r11 keystone]# keystone --token 8a47fd17e8950d483ea7 --endpoint http://127.0.0.1:5001/v2.0 role-list
>> string indices must be integers, not str
>>
>> Have you ever encountered the issue I met? Any keystone client cmd could not work well.
>> I did some investigate on the keystone client code, but haven’t found suspected issue.
>> Is it related with RHEL or python version?
>>
>> Best Regards,
>> Will Fu
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@xxxxxxxxxxxxxxxxxxx (mailto:openstack@xxxxxxxxxxxxxxxxxxx)
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>_______________________________________________
>Mailing list: https://launchpad.net/~openstack
>Post to : openstack@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~openstack
>More help : https://help.launchpad.net/ListHelp
>
Follow ups
References