openstack安装(十)网络服务的安装--计算节点

安装和配置计算节点

最终检测:"neutron 四个选项"

(1)安装组件

yum install openstack-neutron-linuxbridge ebtables ipset -y

(2)修改配置文件

vim  /etc/neutron/neutron.conf

###############

'1:消息队列'

[DEFAULT]
...
rpc_backend = rabbit

[oslo_messaging_rabbit]
...
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = xxxxxxxx

'2:认证'

[DEFAULT]
...
auth_strategy = keystone

[keystone_authtoken]
...
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON_PASS

'3:锁文件'

[oslo_concurrency]
...
lock_path = /var/lib/neutron/tmp

(3)计算节点配置二层网络

####################(1)配置Linuxbridge代理-->在计算节点创建网桥

[linux_bridge]
physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME(自己是eth0)

[vxlan]
enable_vxlan = False

[securitygroup]
...
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

(4)为计算节点配置网络服务

vim  /etc/nova/nova.conf

####### 修改配置文件

[neutron]
...
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = NEUTRON_PASS

(5)服务自启动

    '重启计算服务'

    systemctl restart openstack-nova-compute.service

    '启动Linuxbridge代理并配置它开机自启动'

    systemctl enable neutron-linuxbridge-agent.service
    systemctl start neutron-linuxbridge-agent.service

(6)验证

[root@controller ~]# neutron agent-list
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host       | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| 19fbb42a-3fca-4124-9f01-391ff0aa8645 | DHCP agent         | controller | nova              | :-)   | True           | neutron-dhcp-agent        |
| 35965192-d5b6-4c8c-a56a-c1d5d45fcf52 | Metadata agent     | controller |                   | :-)   | True           | neutron-metadata-agent    |
| b45a1bda-a086-482b-9769-5ef2e0d2a788 | Linux bridge agent | compute1   |                   | :-)   | True           | neutron-linuxbridge-agent |
| e9d7d6a9-a89b-4939-854e-2901808714ea | Linux bridge agent | controller |                   | :-)   | True           | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+

'compute1 节点多了一个Linux bridge agent'

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值