nova list ERROR: HTTPConnectionPool(host='controller', port=8774): Max retries exceeded with url: /v2/c677d3d3c35644579fa8da9b4342e19d/servers/detail (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
What's wrong?I think nova 8774 port didn't open.Because I writting "service nova-api start ; nova list",and then it works.
netstat -nlp | grep 8774
has nothing.
root@ubuntu:~# nova image-list
ERROR: HTTPConnectionPool(host='controller', port=8774): Max retries exceeded with url: /v2/c677d3d3c35644579fa8da9b4342e19d/images/detail (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
root@ubuntu:~# keystone endpoint-list
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| id | region | publicurl | internalurl | adminurl | service_id |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| 1e803f55a9a74a8fae0cbe401429d2b4 | regionOne | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | bb5e9d0cacc14822ac7794c9e5119006 |
| 987c7e6e65994ae39b6d60ae9550d0d7 | regionOne | http://controller:9292 | http://controller:9292 | http://controller:9292 | 89827670e374415ea166b0aba3184460 |
| e24925baaa324688ac14df3fbe91d7be | regionOne | http://controller:5000/v2.0 | http://controller:5000/v2.0 | http://controller:35357/v2.0 | 597620e190404c01800255dc0ff8a3b4 |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
root@ubuntu:~# keystone service-list
+----------------------------------+----------+----------+-------------------------+
| id | name | type | description |
+----------------------------------+----------+----------+-------------------------+
| 89827670e374415ea166b0aba3184460 | glance | i
mage | Openstack Image Service |
| 597620e190404c01800255dc0ff8a3b4 | keystone | identity | Openstack Identity |
| bb5e9d0cacc14822ac7794c9e5119006 | nova | compute | OpenStack Compute |
+----------------------------------+----------+----------+-------------------------+
root@ubuntu:~# cat /etc/nova/nova.conf
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
rabbit_host=controller
rabbit_password=zh7758520.
my_ip=10.0.0.10
vncserver_listen=10.0.0.10
vncserver_proxyclient_address=10.0.0.10
auth_strategy=keystone
[database]
connection=mysql://nova:zh7758520.@controller/nova
[keystone_authtoken]
auth_url=http://controller:5000
auth_host=controller
auth_port=35357
auth_protocol=http
admin_tenant_name=service
admin_user=nova
admin_password=zh7758520.
/var/log/nova/nova-api.log
2014-10-09 15:52:18.378 4145 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware
2014-10-09 15:52:18.379 4145 WARNING keystoneclient.middleware.auth_token [-] This middleware module is deprecated as of v0.10.0 in favor of keystonemiddleware.auth_token - please update your WSGI pipeline to reference the new middleware package.
2014-10-09 15:52:18.381 4145 WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead.
2014-10-09 15:52:18.382 4145 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
2014-10-09 15:52:18.389 4145 INFO keystoneclient.middleware.auth_token [-] Using /var/lib/nova/keystone-signing as cache directory for signing certificate
2014-10-09 15:52:18.393 4145 WARNING keystoneclient.middleware.auth_token [-] signing_dir is not owned by 0
2014-10-09 15:52:18.433 4145 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774
2014-10-09 15:52:18.437 4145 INFO nova.openstack.common.service [-] Starting 1 workers
2014-10-09 15:52:18.449 4145 INFO nova.openstack.common.service [-] Started child 4151
2014-10-09 15:52:18.461 4151 INFO nova.osapi_compute.wsgi.server [-] (4151) wsgi starting up on http://0.0.0.0:8774/
2014-10-09 15:52:18.464 4145 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net'
2014-10-09 15:52:18.622 4145 INFO nova.wsgi [-] metadata listening on 0.0.0.0:8775
2014-10-09 15 ...