报错

[root@controller ~]# nova list
ERROR (ConnectFailure): Unable to establish connection to http://controller:8774/v2.1: HTTPConnectionPool(host='controller', port=8774): Max retries exceeded with url: /v2.1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad8b89e250>: Failed to establish a new connection: [Errno 111] Connection refused',))

[root@controller ~]# less /var/log/nova/nova-api.log
...
    ERROR nova ConfigFileValueError: Value for option server_listen from LocationInfo(location=<Locations.user: (4, True)>, detail='/etc/nova/nova.conf') is not valid:  is not a valid host address
...

解决方案

# 报错很明显 nova.conf 配置有误

原因定位,在使用 "openstack-config --set" 指令配置参数时, 
"openstack-config --set /etc/nova/nova.conf vnc server_listen $my_ip""$my_ip" 被解析错了

吃了没文化的亏

发表评论

邮箱地址不会被公开。 必填项已用*标注