标签:bug lock ORC data devops tor lib src input
1.创建neutron数据库[root@controller ~]# cat /etc/neutron/l3_agent.ini | grep -v "^#" | grep -v "^$"
[DEFAULT]
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
external_network_bridge =
debug = false
[agent]
[ovs]
[root@controller ~]# cat /etc/neutron/dhcp_agent.ini | grep -v "^#" | grep -v "^$"
[DEFAULT]
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
verbose = True
debug = false
[agent]
[ovs]
重新配置/etc/nova/nova.conf,配置这步的目的是让compute节点能使用上neutron网络
[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 = devops
service_metadata_proxy = True
metadata_proxy_shared_secret = devops
将dhcp-option-force=26,1450写入/etc/neutron/dnsmasq-neutron.conf
# echo "dhcp-option-force=26,1450" >/etc/neutron/dnsmasq-neutron.conf
[root@controller ~]# cat /etc/neutron/metadata_agent.ini | grep -v "^#" | grep -v "^$"
[DEFAULT]
nova_metadata_ip = controller
metadata_proxy_shared_secret = devops
metadata_workers = 4
verbose = True
debug = false
nova_metadata_protocol = http
[agent]
[cache]
4.创建连接并创建keystone用户
[root@localhost ~]# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
5.更新数据库
[root@localhost ~]# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron
[root@localhost ~]# systemctl restart openstack-nova-api.service
[root@controller ~]# systemctl status openstack-nova-api.service
6.启动服务
[root@localhost ~]# systemctl enable neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
[root@localhost ~]# systemctl start neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
启动neutron-l3-agent.service并设置开机启动
# systemctl enable neutron-l3-agent.service
**# systemctl restart neutron-l3-agent.service
# systemctl status neutron-l3-agent.service
[root@controller ~]# neutron ext-list
[root@localhost ~]# neutron agent-list
7.查看注册信息
[root@localhost ~]# openstack endpoint list
所有的配置文件在百度云盘中:
链接:https://pan.baidu.com/s/1CnmKkFMTemv199ctgb5Oig
提取码:27om
复制这段内容后打开百度网盘手机App,操作更方便哦
标签:bug lock ORC data devops tor lib src input
原文地址:https://blog.51cto.com/343614597/2419475