Openstack-M版部署一neutron网络服务(计算节点)

1.安装neutron所需的包

[root@compute ~]#yum install openstack-neutron-linuxbridge ebtables ipset -yum

2.编辑多个配置文件

2.1编辑/etc/neutron/neutron.conf
[root@compute ~]# vim /etc/neutron/neutron.conf
1 [DEFAULT]
2 rpc_backend = rabbit
3 auth_strategy = keystone


764 [keystone_authtoken]
765 auth_uri = http://controller:5000
766 auth_url = http://controller:35357
767 memcached_servers = controller:11211
768 auth_type = password
769 project_domain_name = default
770 user_domain_name = default
771 project_name = service
772 username = neutron
773 password = 000000


1040 [oslo_concurrency]
1041 lock_path = /var/lib/neutron/tmp


1142 [oslo_messaging_rabbit]
1143 rabbit_host = controller
1144 rabbit_userid = openstack
1145 rabbit_password = 000000



2.2编辑/etc/neutron/plugins/ml2/linuxbridge_agent.ini

[root@compute ~]# vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini
127 [linux_bridge]
128 physical_interface_mappings = provider:eno33554960
165 [vxlan]
166 enable_vxlan = False
146 [securitygroup]
147 enable_security_group = True
148 firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver


2.3编辑/etc/nova/nova.conf
[root@compute ~]# 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 = 000000

3.启动服务

[root@compute ~]# systemctl restart openstack-nova-compute.service
[root@compute ~]# 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.

[root@compute ~]# systemctl start neutron-linuxbridge-agent.service

4.验证操作

4.1控制节点验证
[root@controller ~]# neutron ext-list
+---------------------------+-----------------------------------------------+
| alias                     | name                                          |
+---------------------------+-----------------------------------------------+
| default-subnetpools       | Default Subnetpools                           |
| availability_zone         | Availability Zone                             |
| network_availability_zone | Network Availability Zone                     |
| auto-allocated-topology   | Auto Allocated Topology Services              |
| binding                   | Port Binding                                  |
| agent                     | agent                                         |
| subnet_allocation         | Subnet Allocation                             |
| dhcp_agent_scheduler      | DHCP Agent Scheduler                          |
| tag                       | Tag support                                   |
| external-net              | Neutron external network                      |
| net-mtu                   | Network MTU                                   |
| network-ip-availability   | Network IP Availability                       |
| quotas                    | Quota management support                      |
| provider                  | Provider Network                              |
| multi-provider            | Multi Provider Network                        |
| address-scope             | Address scope                                 |
| timestamp_core            | Time Stamp Fields addition for core resources |
| extra_dhcp_opt            | Neutron Extra DHCP opts                       |
| security-group            | security-group                                |
| rbac-policies             | RBAC Policies                                 |
| standard-attr-description | standard-attr-description                     |
| port-security             | Port Security                                 |
| allowed-address-pairs     | Allowed Address Pairs                         |
+---------------------------+-----------------------------------------------+
[root@controller ~]# neutron agent-list
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host       | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| 07236419-46cf-4fdd-9fc0-73142cb95806 | Linux bridge agent | compute    |                   | :-)   | True           | neutron-linuxbridge-agent |
| 335df244-de6e-4f96-bbab-a2216091fc24 | Linux bridge agent | controller |                   | :-)   | True           | neutron-linuxbridge-agent |
| 4ff3b0a3-a763-42f7-8f8c-e554b04fcf13 | Metadata agent     | controller |                   | :-)   | True           | neutron-metadata-agent    |
| 791d7932-dd7d-47b9-a09f-5b5fd4ad2887 | DHCP agent         | controller | nova              | :-)   | True           | neutron-dhcp-agent        |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+

猜你喜欢

转载自blog.csdn.net/liang_operations/article/details/80868714
今日推荐