openstack ocata版本简化安装
Network Time Protocol (NTP)
Controller Node
Edit the /etc/chrony/chrony.conf 添加如下信息
注释掉 pool 2.debian.pool.ntp.org offline iburst line Restart the NTP service
Compute Node
Edit the /etc/chrony/chrony.conf 添加如下信息
注释掉 pool 2.debian.pool.ntp.org offline iburst line
OpenStack packages(所有节点)
SQL database(控制节点)
创建和配置该文件 /etc/mysql/mariadb.conf.d/99-openstack.cnf,配置信息如下。将bind-address的IP地址换成控制节点的IP地址:
重启数据库服务器,初始化数据库服务器。
Message queue(控制节点)
Memcached(控制节点)
编辑 /etc/memcached.conf 替换已经存在的 "-l 127.0.0.1" 为controller node的IP地址
1|0Identity service(控制节点)
Prerequisites
Install and configure components
编辑 /etc/keystone/keystone.conf。替换KETSTONE_DBPASS为上面数据库注册时的密码。
注释或移除[database]配置项下面的其他数据库连接
编辑 /etc/apache2/apache2.conf file添加下面的配置信息
Finalize the installation
配置 administrative account,替换ADMIN_PASS为自己创建admin用户时的密码
Create a domain, projects, users, and roles
Verify operation
Forsecurityreasons,disablethetemporaryauthenticationtokenmechanism:
Creating the scripts
2|0Image service
Prerequisites
Install and configure components
编辑 the /etc/glance/glance-api.conf file。 替换GLANCE_DBPASS和GLANCE_PASS为设定密码。
编辑 the /etc/glance/glance-registry.conf file,替换两个GLANCE_DBPASS为设定密码。
Verify operation
3|0Compute service
3|1Install and configure controller node
Prerequisites
Install and configure components
Edit the /etc/nova/nova.conf,替换NOVA_DBPASS为自己的密码
3|2Install and configure a compute node
编辑 the /etc/nova/nova.conf,替换所有的密码为自己的密码。
如果是使用虚拟机,则如下操作:
编辑 the [libvirt] 配置项 in the /etc/nova/nova-compute.conf
Add the compute node to the cell database
或者在 /etc/nova/nova.conf文件中添加如下配置信息:
4|0Networking service
4|1Install and configure controller node
Prerequisites
[安装 neutron 软件包]
编辑 /etc/neutron/neutron.conf 文件
[修改 ml2 配置文件]
配置 /etc/neutron/plugins/ml2/ml2_conf.ini 文件
修改 etc/neutron/plugins/ml2/openvswitch_agent.ini 在[ovs]增加
[更新 L3 配置]
配置 /etc/neutron/l3_agent.ini
配置 /etc/neutron/dhcp_agent.ini
编辑 /etc/neutron/dhcp_agent.ini 在[DEFAULT]选项中添加
创建/etc/neutron/dnsmasq-neutron.conf 文件
编辑/etc/neutron/metadata_agent.ini 在[DEFAULT]部分加入以下设置
修改控制节点 nova 配置文件中[neutron]部分
配置/etc/nova/nova.conf,修改密码为自己的密码
[同步 neutron 数据库]
neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
同步过程大概 2-3 分钟左右
[重启 Nova API Server]
启动 openvswitch
增加用于外部网络的网桥
向外部网桥添加物理网卡
关闭网卡的 GRO 功能
[重启 Neutron 服务]
验证 Neutron client 來查看外部网络
验证 Neutron client 來查看 Agents 状态
4|2Install and configure compute node
[安装计算节点 neutron 软件包]
编辑/etc/neutron/neutron.conf 在[DEFAULT]部分加入以下设置
在[database]部分將所有 connection 与 sqlite 相关的参数注释
[database]
[oslo_messaging_rabbit]部分加入以下设置
[keystone_authtoken]部分加入以下设置
配置修改/etc/neutron/plugins/ml2/ml2_conf.ini 设置如下
配置修改/etc/neutron/plugins/ml2/openvswitch_agent.ini 设置如下
配置/etc/nova/nova.conf 在[neutron]中添加如下信息,修改密码为自己的密码
[重启 nova-compute]
[重启 Open vSwitch Agent]
[验证计算节点 neutron]
5|0Block Storage service
5|1Install and configure controller node
Install and configure components
编辑 the /etc/cinder/cinder.conf 配置
Edit the /etc/nova/nova.conf file and add the following to it:
Finalize installation
5|2Install and configure a storage node
Prerequisites
根据环境中硬盘的盘符来写,如sdb sda sdc等。在这一步之前必须要先添加一块硬盘到cinder_storage中
In the devices section, add a filter that accepts the /dev/sdb device and rejects all other devices。在cinder_node节点上过滤非添加硬盘。
Install and configure components
Edit the /etc/cinder/cinder.conf 替换所有的密码为自己的密码
Finalize installation
6|0swift
6|1controller
Prerequisites
Install and configure components
Create the /etc/swift directory.
curl -o /etc/swift/proxy-server.conf https://git.openstack.org/cgit/openstack/swift/plain/etc/proxy-server.conf-sample?h=stable/newton
Edit the /etc/swift/proxy-server.conf 替换所有的密码
6|2storage node
Prerequisites
Create or edit the /etc/rsyncd.conf 替换IP地址为storage node的IP地址
Edit the /etc/default/rsync file and enable the rsync service:
Start the rsync service:
Install and configure components
Edit the /etc/swift/account-server.conf 替换IP地址为storage node的IP地址
Edit the /etc/swift/container-server.conf file 替换IP地址为storage node的IP地址
Edit the /etc/swift/object-server.conf 替换IP地址为storage node的IP地址
Create account ring(controller node)
Create the base account.builder file。数字比例为( 10 节点数 1)
Create the base container.builder file:数字比例为( 10 节点数 1)
Create the base object.builder file:数字比例为( 10 节点数 1)
Copy the account.ring.gz, container.ring.gz, and object.ring.gz files to the
/etc/swift directory on each storage node and any additional nodes running the proxy service
拷贝生成的ring.gz文件到所有的storage node的/etc/swift文件下。
Finalize installation(controller node)
Obtain the /etc/swift/swift.conf file from the Object Storage source repository:
Edit the /etc/swift/swift.conf file and complete the following actions
Copy the swift.conf file to the /etc/swift directory on each storage node and any additional nodes running the proxy service.(拷贝/etc/swift中的swift.conf文件到所有storage node的 /etc/swift文件夹中)
On all nodes, ensure proper ownership of the configuration directory(所有节点改变/etc/swift的用户组关系,确保权限正确)
7|0Dashboard
Install and configure
Edit the /etc/openstack-dashboard/local_settings.py file and complete the following actions:
Finalize installation
__EOF__

本文链接:https://www.cnblogs.com/goldsunshine/p/7440823.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角【推荐】一下。您的鼓励是博主的最大动力!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理