当前位置:网站首页>openstack详解(二十三)——Neutron其他配置、数据库初始化与服务启动
openstack详解(二十三)——Neutron其他配置、数据库初始化与服务启动
2022-06-11 08:57:00 【永远是少年啊】
今天继续给大家介绍Linux运维相关知识,本文主要内容是Neutron其他配置、数据库初始化与服务启动。
一、Neutron元数据代理配置
在上文openstack详解(二十二)——Neutron插件配置中,我们完成了Neutron插件的配置,今天,我们来进行Neutron的元数据代理配置、数据库初始化以及服务启动。
打开Neutron的元数据代理配置文件/etc/neutron/metadata_agent.ini,在[DEFAULT]模块下,我们找到如下参数,并修改为以下内容:
nova_metadata=192.168.136.101
metadata_proxy_shared_secret=neutron
第一个配置表示指定元数据主机,第二个配置表示指定元数据共享密码,完成后的配置文件如下所示:
这样,我们的Neutron元数据代理配置就完成了。
二、Neutron网络服务配置
在完成Neutron元数据代理配置后,我们接下来需要配置Neutron的网络服务,打开nova的配置文件/etc/nova/nova.conf,在其中的neutron模块添加如下内容:
[neutron]
url = http://192.168.136.101:9696
auth_url = http://192.168.136.101:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
service_metadata_proxy=true
metadata_proxy_shared_secret = neutron
注意,在上述配置中,最后的metadata_proxy_shared_secret要和上一模块配置的密钥一致。
完成后的配置文件如下所示:
之后,我们需要创建一个软链接/etc/neutron/plugin.ini,指向/etc/neutron/plugins/ml2/ml2_conf.ini。
执行命令:
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
即可完成软链接的创建。
这样,我们的Neutron的网络配置就完成了。
三、Neutron数据库初始化
在完成Neutron的网络配置后,我们就可以进行Neutron的数据库配置了。执行命令:
su -s /bin/sh -c "neutron-db-nanage --config /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head " neutron
该命令执行结果如下所示:
之后,我们执行命令:
mysql -h 192.168.136.101 -uneutron -pneutron -e "use neutron;show tables"
查看当前数据库下的配置,发现配置如下所示:
从上图可以知道,我们的Neutron数据库初始化服务配置成功。
之后,我们要重启计算API服务,执行命令:
systemctl restart openstack-nova-api
即可。
四、Neutron服务启动
最后,我们要启动Neutron服务,执行命令:
systemctl start neutron-server
systemctl start neutron-linuxbridge-agent
systemctl start neutron-dhcp-agent
systemctl start neutron-metadata-agent
即可完成Neutron服务的启动,上述命令执行如下所示:
原创不易,转载请说明出处:https://blog.csdn.net/weixin_40228200
边栏推荐
- PVC 塑料片BS 476-6 火焰传播性能测定
- EN 45545 R24氧指数测试方法解析
- (1) AAC opening - lifecycle, livedata, ViewModel and source code analysis skills of core component principles (Reprint)
- Matlab learning 7- linear smoothing filtering of image processing
- Sword finger offer 18 Delete the node of the linked list
- Flutter开发日志——路由管理
- Sword finger offer II 036 Postfix Expression
- kubelet Error getting node 问题求助
- 83. delete duplicate elements in the sorting linked list
- PHP solves Chinese display garbled code
猜你喜欢

AS 3744.1标准中提及ISO8191测试,两者测试一样吗?

使用express+mysql创建一个基于nodejs的后台服务

The interviewer asked four questions and summed up four experiences

【C语言-数据存储】数据在内存中是怎样存储的?

What is the process of en 1101 flammability test for curtains?

Create a nodejs based background service using express+mysql

Standardized compilation knowledge

Mazhiqiang: research progress and application of speech recognition technology -- RTC dev Meetup

Sword finger offer 62 The last remaining number in the circle

Which Apple devices support this system update? See if your old apple device supports the latest system
随机推荐
EN 45545 R24氧指数测试方法解析
Sword finger offer 51 Reverse pair in array
876. intermediate node of linked list
Matlab learning 7- linear smoothing filtering of image processing
BS 7176软垫家具阻燃防火测试
20. 有效的括号
EN 45545-2T10水平法烟密度检测的注意事项
Flutter开发日志——路由管理
(1) AAC opening - lifecycle, livedata, ViewModel and source code analysis skills of core component principles (Reprint)
What is the process of en 1101 flammability test for curtains?
Screaming Frog Log File Analyser 中文版安装教程
Typescript high level feature 1 - merge type (&)
Mazhiqiang: research progress and application of speech recognition technology -- RTC dev Meetup
Flutter development log - route management
Display DIN 4102-1 Class B1 fire test requirements
20. valid brackets
Sword finger offer 06 Print linked list from end to end
Printf correlation of C
处理RAW格式的图像,需要什么软件?
PHP solves Chinese display garbled code