Openstack组件部署 — Overview和前期环境准备
Openstack组建部署 — Environment of Controller Node
Openstack组件部署 — Keystone功能介绍与认证实现流程
Openstack组件部署 — Keystone Install & Create service entity and API endpoints
Openstack组件部署 — keystone(domain, projects, users, and roles)
Openstack组件实现原理 — Keystone认证功能
Openstack组建部署 — Glance Install
Openstack组件实现原理 — Glance架构(V1/V2)
Openstack组件部署 — Nova overview
Openstack组件部署 — Nova_安装和配置Controller Node
Openstack组件部署 — Nova_Install and configure a compute node
Openstack组件实现原理 — Nova 体系结构
Openstack组件部署 — Netwotking service组件介绍与网络基本概念
Openstack组件部署 — Networking service_安装并配置Controller Node
yum install openstack-neutron openstack-neutron-linuxbridge ebtables ipset -y
Networking 通用组件的配置包括认证机制、消息队列、插件。
编辑/etc/neutron/neutron.conf
文件
vim /etc/neutron/neutron.conf
在[database]
部分,注释所有connection
项,因为计算节点不直接访问数据库。
在 [DEFAULT]
和[oslo_messaging_rabbit]
部分,配置RabbitMQ消息队列访问:
[DEFAULT]
rpc_backend = rabbit
[oslo_messaging_rabbit]
rabbit_host = controller.jmilk.com
rabbit_userid = openstack
rabbit_password = fanguiju
[DEFAULT]
和[keystone_authtoken]
部分,配置Keystone认证服务访问:[DEFAULT]
auth_strategy = keystone
[keystone_authtoken]
auth_uri = http://controller.jmilk.com:5000
auth_url = http://controller.jmilk.com:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = fanguiju
注:在 [keystone_authtoken] 中注释或者删除其他选项。
[oslo_concurrency]
部分,配置锁路径[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
[DEFAULT]
部分启用详细日志[DEFAULT]
verbose = True
Linux桥接代理为实例创建包括私有网络的VXLAN隧道和处理安全组的layer-2(桥接/交换)虚拟网络设施。
编辑/etc/neutron/plugins/ml2/linuxbridge_agent.ini
文件
vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge]
部分,映射公共虚拟网络到公共物理网络接口:[linux_bridge]
physical_interface_mappings = public:PUBLIC_INTERFACE_NAME
将PUBLIC_INTERFACE_NAME
替换为物理公共网络接口(网卡)。
Example:
[linux_bridge]
physical_interface_mappings = public:eth1
[vxlan]
部分,启用VXLAN覆盖网络,配置处理覆盖网络和启用layer-2 的物理网络接口的IP地址:[vxlan]
enable_vxlan = True
local_ip = OVERLAY_INTERFACE_IP_ADDRESS
l2_population = True
Replace OVERLAY_INTERFACE_IP_ADDRESS
with the IP address of the underlying physical network interface that handles overlay networks. The example architecture uses the management interface to tunnel traffic to the other nodes. Therefore, replace OVERLAY_INTERFACE_IP_ADDRESS
with each node’s own management IP address.
Example:
[vxlan]
enable_vxlan = True
local_ip = 192.168.1.108
l2_population = True
[agent]
部分,启用ARP欺骗防护:[agent]
prevent_arp_spoofing = True
[securitygroup]
部分,启用安全组并配置 Linux 桥接 iptables 防火墙驱动:[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
编辑/etc/nova/nova.conf
文件
vim /etc/nova/nova.conf
[neutron]
部分,配置访问参数:[neutron]
url = http://controller.jmilk.com:9696
auth_url = http://controller.jmilk.com:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = neutron
password = fanguiju
Step1. 重启nova-compute service
systemctl restart openstack-nova-compute.service
Step2. 启动Linux桥接代理并配置它开机自启动
systemctl enable neutron-linuxbridge-agent.service
systemctl start neutron-linuxbridge-agent.service
Step1. 加载admin凭证获取权限来执行只有管理员能执行命令:
source admin-openrc
Step2. 列出加载的扩展,对neutron-server
进程是否启动正常进行验证:
neutron ext-list
Step3. 列出代理以验证启动 neutron 代理是否成功:
neutron agent-list
该输出应该显示在控制节点上有四个代理,在每个计算节点上有一个代理。