Here're the detail:
# nova --debug list
connect: (172.17.2.203, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 172.17.2.203:5000\r\nContent-Length: 104\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "ubuntu", "passwordCredentials": {"username": "admin", "password": "password"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Date: Tue, 08 May 2012 04:16:19 GMT
header: Transfer-Encoding: chunked
connect: (172.17.2.203, 8774)
send: u'GET /v1.1/89156f3dde194102ab82cd62a7464f7b/servers/detail HTTP/1.1\r\nHost: 172.17.2.203:8774\r\nx-auth-project-id: ubuntu\r\nx-auth-token: 5b8549b438524402ae588e9f68061f0d\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 503 Service Unavailable\r\n'
header: Content-Length: 100
header: Content-Type: text/plain; charset=UTF-8
header: Date: Tue, 08 May 2012 04:16:19 GMT
DEBUG (shell:416) string indices must be integers, not str
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in main
OpenStackComputeShell().main(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 520, in do_list
utils.print_list(cs.servers.list(search_opts=search_opts), columns,
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 279, in list
return self._list("/servers%s%s" % (detail, query_string), "servers")
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 76, in _list
data = body[response_key]
TypeError: string indices must be integers, not str
ERROR: string indices must be integers, not str
Here's my nova.conf
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/run/lock/nova
--allow_admin_api=true
--use_deprecated_auth=false
--auth_strategy=keystone
--scheduler_driver=nova.scheduler.simple.SimpleScheduler
--s3_host=172.17.2.203
--ec2_host=172.17.2.203
--rabbit_host=172.17.2.203
--cc_host=172.17.2.203
--nova_url=http://172.17.2.203:8774/v1.1/
--routing_source_ip=172.17.2.203
--glance_api_servers=172.17.2.203:9292
--image_service=nova.image.glance.GlanceImageService
--sql_connection=mysql://nova:nova@172.17.2.203/nova_db
--keystone_ec2_url=http://172.17.2.203:5000/v2.0/ec2tokens
--api_paste_config=/etc/nova/api-paste.ini
--libvirt_type=kvm
--libvirt_use_virtio_for_bridges=true
--start_guests_on_host_boot=true
--resume_guests_state_on_host_boot=true
# vnc specific configuration
--novnc_enabled=true
--novncproxy_base_url=http://172.17.2.203:6080/vnc_auto.html
--vncserver_proxyclient_address=172.17.2.203
--vncserver_listen=172.17.2.203
# network specific settings
--network_manager=nova.network.manager.FlatDHCPManager
--public_interface=eth0
--flat_network_bridge=br100
--fixed_range=10.0.0.0/27
--floating_range=172.17.2.203/27
--network_size=32
--flat_network_dhcp_start=10.0.0.3
--flat_injected=False
--force_dhcp_release
--iscsi_helper=tgtadm
--connection_type=libvirt
--root_helper=sudo nova-rootwrap
--verbose
Keystone and glance work well.
Here the keystone endpoint:
keystone endpoint-list
+----------------------------------+-----------+------------------------------------------------+------------------------------------------------+---------------------------------------------+
| id | region | publicurl | internalurl | adminurl |
+----------------------------------+-----------+------------------------------------------------+------------------------------------------------+---------------------------------------------+
| 4f863419b75d43bcbb3ce121d56a8032 | RegionOne | https://172.17.2.203:443/v1/AUTH_%(tenant_id)s | https://172.17.2.203:443/v1/AUTH_%(tenant_id)s | https://172.17.2.203:443/v1 |
| 59e563d654c748fda12415363c9f8494 | RegionOne | http://172.17.2.203:5000/v2.0 | http://172.17.2.203:5000/v2.0 | http://172.17.2.203:35357/v2.0 |
| 73b604bb3e554d47aed7d41491a4466b | RegionOne | http://172.17.2.203:8774/v1.1/%(tenant_id)s | http://172.17.2.203:8774/v1.1/%(tenant_id)s | http://172.17.2.203:8774/v1.1/%(tenant_id)s |
| 7416b69f4f854560a5e6a23a1428b775 | RegionOne | http://172.17.2.203:9292/v1 | http://172.17.2.203:9292/v1 | http://172.17.2.203:9292/v1
Please help me!
Thank you!