Openstack 实战讲解之-----08-计算节点neutron配置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Openstack 实战讲解之-----08-计算节点neutron配置相关的知识,希望对你有一定的参考价值。
Neutron组件安装
[[email protected] ~]# yum install openstack-neutron-linuxbridge ebtables ipset
配置通用组件
Networking 通用组件的配置包括认证机制、消息队列和插件
编辑``/etc/neutron/neutron.conf`` 文件并完成如下操作:
在``[database]`` 部分,注释所有``connection`` 项,因为计算节点不直接访问数据库。
在``[DEFAULT]``部分,配置``RabbitMQ``消息队列访问权限:
transport_url = rabbit://openstack:[email protected]
在 “[DEFAULT]” 和 “[keystone_authtoken]” 部分,配置认证服务访问:
auth_strategy = keystone auth_uri = http://192.168.56.11:5000 auth_url = http://192.168.56.11:35357 memcached_servers = 192.168.56.11:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = neutron
在 [oslo_concurrency]
部分,配置锁路径:
lock_path = /var/lib/neutron/tmp
配置计算使用的网络服务
配置Linuxbridge代理
这里的配置和控制节点上面是一样的,所以我们把控制节点配置拷贝过来
[[email protected] ~]# scp /etc/neutron/plugins/ml2/linuxbridge_agent.ini 192.168.56.12:/etc/neutron/plugins/ml2/ [email protected]‘s password: linuxbridge_agent.ini
编辑``/etc/nova/nova.conf``文件并完成下面的操作:
在``[neutron]`` 部分,配置访问参数:
[neutron] url = http://192.168.56.11:9696 auth_url = http://192.168.56.11:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = neutron
安装完成
重启计算服务:
[[email protected] ~]# systemctl restart openstack-nova-compute.service [[email protected] ~]# ps aux|grep nova nova 21400 56.7 6.9 1661432 130576 ? Ssl 23:19 0:11 /usr/bin/python2 /usr/bin/nova-compute root 21433 0.0 0.0 112644 952 pts/0 S+ 23:19 0:00 grep --color=auto nova
启动Linuxbridge代理并配置它开机自启动:
[[email protected] ~]# systemctl enable neutron-linuxbridge-agent.service Created symlink from /etc/systemd/system/multi-user.target.wants/neutron-linuxbridge-agent.service to /usr/lib/systemd/system/neutron-linuxbridge-agent.service. [[email protected] ~]# systemctl start neutron-linuxbridge-agent.service
验证服务
我们从控制节点上来查看是否接收到计算节点:
[[email protected] ~]# neutron agent-list +--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+ | id | agent_type | host | availability_zone | alive | admin_state_up | binary | +--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+ | 030154d2-c9ad-4af1-91db-ea1bf01bb99f | Metadata agent | linux-node1 | | :-) | True | neutron-metadata-agent | | 27e1ee2f-6224-4a79-b3a5-ad0f46e59c4a | DHCP agent | linux-node1 | nova | :-) | True | neutron-dhcp-agent | | 900f0ace-c809-4493-89b0-caf0094b217a | Linux bridge agent | linux-node2 | | :-) | True | neutron-linuxbridge-agent | | f0b914bc-ab5b-4304-89a6-29d36d809705 | Linux bridge agent | linux-node1 | | :-) | True | neutron-linuxbridge-agent | +--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+
这里我们可以看到host里面已经找到了计算节点
[[email protected] ~]# nova service-list +----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+ | 3 | nova-consoleauth | linux-node1 | internal | enabled | up | 2017-01-02T20:27:14.000000 | - | | 4 | nova-conductor | linux-node1 | internal | enabled | up | 2017-01-02T20:27:15.000000 | - | | 5 | nova-scheduler | linux-node1 | internal | enabled | up | 2017-01-02T20:27:15.000000 | - | | 6 | nova-compute | linux-node2 | nova | enabled | up | 2017-01-02T20:27:19.000000 | - | +----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+
到此计算节点的服务安装成功~~~~~~~
下面我们将学习启动实例!!!
本文出自 “圈中一鸟” 博客,谢绝转载!
以上是关于Openstack 实战讲解之-----08-计算节点neutron配置的主要内容,如果未能解决你的问题,请参考以下文章
Openstack 实战讲解之-----------01-基础环境安装
Openstack 实战讲解之-----10-图形界面管理安装配置(Dashboard)
Openstack 实战讲解之-----------02-控制节点服务配置