centos6.4 单机安装Openstack遇到的问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.4 单机安装Openstack遇到的问题相关的知识,希望对你有一定的参考价值。

按照http://www.linuxidc.com/Linux/2013-01/78253p3.htm
centos6.4 单机安装Openstack已经完成,但是倒入镜像,启动实例却无法连接到实例
nova.conf配置如下
[DEFAULT]
logdir = /var/log/nova
state_path = /var/lib/nova
lock_path = /var/lib/nova/tmp
volumes_dir = /etc/nova/volumes
dhcpbridge = /usr/bin/nova-dhcpbridge
dhcpbridge_flagfile = /etc/nova/nova.conf
force_dhcp_release = True
injected_network_template = /usr/share/nova/interfaces.template
libvirt_nonblocking = True
libvirt_inject_partition = -1
network_manager = nova.network.manager.FlatDHCPManager
iscsi_helper = tgtadm
sql_connection = mysql://nova:nova@localhost/nova
compute_driver = libvirt.LibvirtDriver
firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
rpc_backend = nova.openstack.common.rpc.impl_qpid
rootwrap_config = /etc/nova/rootwrap.conf
auth_strategy = keystone
flat_interface = eth0
public_interface = eth0
flat_network_bridge=br0
fixed_range=192.168.18.0/24
connection_type=libvirt
vnc_enabled=true
vncserver_listen=192.168.166.123 #本机IP
[keystone_authtoken]
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dir = /tmp/keystone-signing-nova
报错信息为下图
请大神帮忙呀

好像是网络有问题,改一下下面三个文件(有可能是两个,有一个好像已经是好的。)
# diff -u /usr/lib/python2.6/site-packages/quantum/agent/linux/interface.py.orig,
--- /usr/lib/python2.6/site-packages/quantum/agent/linux/interface.py.orig 2013-06-06 17:20:03.928751907 +0900
+++ /usr/lib/python2.6/site-packages/quantum/agent/linux/interface.py 2013-06-08 00:25:35.919838475 +0900
@@ -291,11 +293,11 @@

def _set_device_plugin_tag(self, network_id, device_name, namespace=None):
plugin_tag = self._get_flavor_by_network_id(network_id)
- device = ip_lib.IPDevice(device_name, self.conf.root_helper, namespace)
+ device = ip_lib.IPDevice(device_name, self.root_helper, namespace)
device.link.set_alias(plugin_tag)

def _get_device_plugin_tag(self, device_name, namespace=None):
- device = ip_lib.IPDevice(device_name, self.conf.root_helper, namespace)
+ device = ip_lib.IPDevice(device_name, self.root_helper, namespace)
return device.link.alias

def get_device_name(self, port):

# diff -u /usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py.orig,
--- /usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py.orig 2013-06-07 23:57:42.259839168 +0900
+++ /usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py 2013-06-07 23:58:13.121839155 +0900
@@ -324,7 +324,7 @@
pm = external_process.ProcessManager(
self.conf,
network.id,
- self.conf.root_helper,
+ self.root_helper,
self._ns_name(network))
pm.enable(callback)

@@ -332,7 +332,7 @@
pm = external_process.ProcessManager(
self.conf,
network.id,
- self.conf.root_helper,
+ self.root_helper,
self._ns_name(network))
pm.disable()

# diff -u /usr/lib/python2.6/site-packages/quantum/agent/l3_agent.py.orig,
--- /usr/lib/python2.6/site-packages/quantum/agent/l3_agent.py.orig 2013-06-07 23:59:25.365839124 +0900
+++ /usr/lib/python2.6/site-packages/quantum/agent/l3_agent.py 2013-06-07 23:59:36.360839119 +0900
@@ -649,12 +649,12 @@
\'via\', route[\'nexthop\']]
#TODO(nati) move this code to iplib
if self.conf.use_namespaces:
- ip_wrapper = ip_lib.IPWrapper(self.conf.root_helper,
+ ip_wrapper = ip_lib.IPWrapper(self.root_helper,
namespace=ri.ns_name())
ip_wrapper.netns.execute(cmd, check_exit_code=False)
else:
utils.execute(cmd, check_exit_code=False,
- root_helper=self.conf.root_helper)
+ root_helper=self.root_helper)

def routes_updated(self, ri):
new_routes = ri.router[\'routes\']
参考技术A centos6.4 单机安装Openstack遇到的问题

这个问题我知道

推荐您使用“赛思QQ陌生人推广小助手 ”

不用加好友 直接发消息

日引1万独立IP 绝对没有问题

325.【openstack】kolla 搭建 openstack 单机版云环境

参考技术A 参考 314. 【Python】linux 环境搭建 python3

参考 315.【Linux】云环境搭建准备——关闭防火墙

预检查没问题之后,继续下一步

大概花了 15 分钟。

大概花了 10 分钟。

验证部署,并且生成/etc/kolla/admin-openrc.sh

浏览器输入客户端地址:http://192.168.199.171/

可以看到,已经正常进入了

最近前前后后,我已经部署4,5次了,后面还要部署,虽然很多东西都记在脑袋里了,但想想还是记录一下比较好。

相关文章:
315.【Linux】云环境搭建准备——关闭防火墙
185. 【docker】二进制方式安装 Docker
314. 【Python】linux 环境搭建 python3
332.【openstack】开启物理机虚拟机化

以上是关于centos6.4 单机安装Openstack遇到的问题的主要内容,如果未能解决你的问题,请参考以下文章

OpenStack 部署总结之:在CentOS 6.5上使用RDO单机安装icehouse(Ml2+GRE)

325.【openstack】kolla 搭建 openstack 单机版云环境

OpenStack-Rocky版单机部署

CentOS7 上配置Openstack[单机配置]

CentOS7 上配置Openstack[单机配置]

redis安装-单机版