添加网络组件
安装和配置控制器节点
创建数据库
mysql -uroot -ptoyo123 CREATE DATABASE neutron; GRANT ALL PRIVILEGES ON neutron.* TO'neutron'@'localhost' \ IDENTIFIED BY'toyo123'; GRANT ALL PRIVILEGES ON neutron.* TO'neutron'@'%' \ IDENTIFIED BY'toyo123'; exit
创建服务凭据
source admin-openrc.sh keystone user-create --name neutron --pass Abcd1234 keystone user-role-add --user neutron --tenant service --role admin keystone service-create --name neutron --type network \--description"OpenStack Networking" keystone endpoint-create \--service-id $(keystone service-list |awk'/ network / {print $2}') \--publicurl http://controller:9696 \ --adminurl http://controller:9696 \ --internalurl http://controller:9696 \ --region regionOne
安装网络组件
yuminstall -y openstack-neutron openstack-neutron-ml2 python-neutronclientwhich
查询service id下面编辑配置文件会用到
source admin-openrc.sh keystone tenant-get service
编辑/etc/neutron/neutron.conf文件
mv /etc/neutron/neutron.conf /etc/neutron/neutron.conf_bak vim/etc/neutr