Centos7安装部署openstack--Networking 网络服务(计算节点)

一、安装服务

yum install openstack-neutron-linuxbridge ebtables ipset -y

二、修改配置文件

  1、修改配置文件

 cp /etc/neutron/neutron.conf{,.bak}
 grep '^[a-z\[]' /etc/neutron/neutron.conf.bak >/etc/neutron/neutron.conf
 openstack-config --set /etc/neutron/neutron.conf DEFAULT rpc_backend rabbit
 openstack-config --set /etc/neutron/neutron.conf DEFAULT auth_strategy keystone
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_uri http://controller:5000
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_url http://controller:35357
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken memcached_servers controller:11211
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_type password
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_domain_name default
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken user_domain_name default
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_name service
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken username neutron
 openstack-config --set /etc/neutron/neutron.conf keystone_authtoken password NEUTRON_PASS
 openstack-config --set /etc/neutron/neutron.conf oslo_concurrency lock_path /var/lib/neutron/tmp
 openstack-config --set /etc/neutron/neutron.conf oslo_messaging_rabbit rabbit_host controller
 openstack-config --set /etc/neutron/neutron.conf oslo_messaging_rabbit rabbit_userid openstack
 openstack-config --set /etc/neutron/neutron.conf oslo_messaging_rabbit rabbit_password RABBIT_PASS

  2、复制控制节点的配置文件

scp -rp 10.0.0.11:/etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini

   3、修改/etc/nova/nova.conf文件

openstack-config --set /etc/nova/nova.conf neutron url http://controller:9696
openstack-config --set /etc/nova/nova.conf neutron auth_url http://controller:35357
openstack-config --set /etc/nova/nova.conf neutron auth_type password
openstack-config --set /etc/nova/nova.conf neutron project_domain_name default
openstack-config --set /etc/nova/nova.conf neutron user_domain_name default
openstack-config --set /etc/nova/nova.conf neutron region_name RegionOne
openstack-config --set /etc/nova/nova.conf neutron project_name service
openstack-config --set /etc/nova/nova.conf neutron username neutron
openstack-config --set /etc/nova/nova.conf neutron password NEUTRON_PASS

三、启动服务

  1、重启compute服务

systemctl restart openstack-nova-compute.service

  2、启动服务

systemctl start neutron-linuxbridge-agent.service
systemctl enable neutron-linuxbridge-agent.service

   3、验证

neutron agent-list

   4、查看kestone上得访问地址

 

posted @ 2020-07-10 15:46  人走茶良  阅读(328)  评论(0编辑  收藏  举报
推荐:华为云