Nova usually error

Ask Your Question
1

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)

asked 2014-10-09 01:30:59 -0600

joehoyuan gravatar image

updated 2014-10-13 05:24:34 -0600

smaffulli gravatar image

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 ...
(more)

5 answers

2

answered 2014-10-13 00:48:05 -0600

D20K gravatar image

pip install olso.rootwrap --ugrade

service nova-api restart

it will be work

link
2

answered 2014-10-09 13:34:51 -0600

marlonss gravatar image

Had the same problem, found that in /var/log/nova/nova-api.log the error message:

Stderr: 'Traceback (most recent call last):\n File "/usr/bin/nova-rootwrap", line 6, in <module>\n from oslo.rootwrap.cmd import main\nImportError: No module named rootwrap.cmd\n'

Solution:Reinstalled oslo with the command: pip install --upgrade oslo.rootwrap

link

Comments

didn't work

joehoyuan  ( 2014-10-10 01:44:45 -0600 )

Reinstalled oslo with the command: pip install --upgrade oslo.rootwrapThis worked for me


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值