部署版本:pike
部署环境:CentOS7.6
配置文件中所有controller可修改为控制节点ip地址
配置过程中使用 echo $?
验证命令执行情况
Networking service
安装与配置neutron (OVS+VXLAN)
OpenStack Networking允许创建由其他OpenStack服务管理的接口设备,并将其连接到网络。可以实现插件以适应不同的网络设备和软件,从而为OpenStack架构和部署提供灵活性。
VXLAN
部署控制节点
一、安装和配置
先决条件
1.使用root进入数据库
[root@controller /]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.
2.创建数据库
MariaDB [(none)]> CREATE DATABASE neutron;
Query OK, 1 row affected (0.00 sec)
3.赋予权限
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'controller' IDENTIFIED BY 'qwer1234';
Query OK, 0 rows affected (0.02 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY 'qwer1234';
Query OK, 0 rows affected (0.00 sec)
安装和配置组件:
1.安装软件
[root@controller /]# yum install -y openstack-neutron openstack-neutron-ml2 openstack-neutron-fwaas openstack-neutron-lbaas
2.配置neutron server服务
获取管理员凭据以启用仅限管理员的CLI命令:
[root@controller openrc]# source admin-openrc.sh
创建服务凭据、创建neutron用户:
[root@controller /]# openstack user create --domain default --password-prompt neutron
User Password:
Repeat User Password:
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | 9ed51eb476a74cb89951db63d8e8cd06 |
| name | neutron |
| options | {
} |
| password_expires_at | None |
+---------------------+----------------------------------+
将管理员角色添加到用户:
[root@controller /]# openstack role add --project service --user neutron admin
[root@controller /]# echo $?
0
创建neutron 服务实体:
[root@controller /]# openstack service create --name neutron --description "OpenStack Networking" network
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Networking |
| enabled | True |
| id | b280ad289b4045c589f4306e4bf013af |
| name | neutron |
| type | network |
+-------------+----------------------------------+
创建网络服务API端点:
[root@controller /]# openstack endpoint create --region RegionOne network public http://controller:9696
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 20b23b30bd9d43578b27f69f8cc0d146 |
| interface | public |
| region