![重启后 OpenStack 持久性](https://linux22.com/image/1090377/%E9%87%8D%E5%90%AF%E5%90%8E%20OpenStack%20%E6%8C%81%E4%B9%85%E6%80%A7.png)
我是 openstack 新手。我在一台服务器上使用 devstack all 安装了 openstack(用于测试)。安装后一切正常,但当我重新启动服务器时,openstack 无法工作。这是正常问题吗?安装过程中是否有其他步骤,以便我的云安装在重新启动后仍然可用?
我用了本指南在单个 Ubuntu 16.04 服务器上安装 openstack 以进行测试和开发:
此安装是在 Ubuntu 16.04 的全新安装上进行的,已应用所有更新和升级。除 Ubuntu 16.04 的默认软件包外,唯一安装的附加软件包是openssh-server
。
安装 Openstack(无需重启)后,我能够遍历仪表板的所有功能。然后我晚上关机了。第二天早上启动并启动仪表板时,我注意到许多错误消息(无法检索使用数据……等等……)但最大的错误是 项目 > 访问和安全我收到以下错误信息:
ConnectionFailed at /project/access_and_security/
Connection to neutron failed: HTTPConnectionPool(host='192.168.1.8', port=9696): Max retries exceeded with url: //v2.0/extensions.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f2551657850>: Failed to establish a new connection: [Errno 111] Connection refused',))
Request Method: GET
Request URL: http://192.168.1.8/dashboard/project/access_and_security/
Django Version: 1.8.14
Exception Type: ConnectionFailed
Exception Value:
Connection to neutron failed: HTTPConnectionPool(host='192.168.1.8', port=9696): Max retries exceeded with url: //v2.0/extensions.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f2551657850>: Failed to establish a new connection: [Errno 111] Connection refused',))
Exception Location: /usr/local/lib/python2.7/dist-packages/neutronclient/client.py in _cs_request, line 111
Python Executable: /usr/bin/python
Python Version: 2.7.12
Python Path:
['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
'/opt/stack/horizon',
'/opt/stack/keystone',
'/opt/stack/glance',
'/opt/stack/cinder',
'/opt/stack/neutron',
'/opt/stack/nova',
'/opt/stack/horizon',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/opt/stack/horizon/openstack_dashboard']
Server time: Sun, 27 Aug 2017 18:10:22 +0000
我已经重现了 5 次,每次都重新安装 Linux 和 OpenStack 并重新启动。每次我都会收到上述错误。
我注意到没有/var/log/neutron
目录,所以我不知道错误日志在哪里。
答案1
Devstack 不是持久性的。它不打算在重启后运行。如果您想要一个更简单的工具来尝试 Openstack,请尝试 Packstack (RHEL/CENTOS),如果您想要一个 Ubuntu 环境,请尝试 Openstack Training Labs 或 Clojure-Up。这些项目应该对您有所帮助。