用centos使用rdo-pakestack 部署openstack
时间: 2024-12-05 13:15:12 浏览: 16
Centos7.0-RDO-install-Openstack
在CentOS上使用RDO-PackageStack部署OpenStack是一个常见的云计算管理平台安装流程。以下是简要步骤:
1. **更新系统**:
```sh
sudo yum update -y
```
2. **安装必要的软件包**:
```sh
sudo yum install epel-release -y
sudo yum install http://repos.fedorapeople.org/openstack/openstack-release.rpm -y
```
3. **加入OpenStack社区仓库**:
```sh
echo "[openstack]
name=OpenStack
baseurl=http://download.openstack.org/pub/openstack/releases/$OPENSTACK_RELEASE/
gpgcheck=0
enabled=1" > /etc/yum.repos.d/openstack.repo
```
4. **安装RDO-Packages**:
```sh
sudo yum install openstack-dashboard openstack-placement horizon python-openstackclient heat-ceph-client cinder glance neutron nova ironic swift -y
```
5. **初始化数据库并创建用户**:
```sh
source ~/adminrc # 如果有创建,如果没有则需要自建
ceilometer-manage db sync
keystone-manage bootstrap
```
6. **配置和服务启动**:
```sh
openstack-config --bash-completion
sudo systemctl start openstack-dashboard openstack-placement Horizon neutron-api neutron-server nova-api nova-conductor nova-scheduler nova-compute cinder-api cinder-volume glance-api glance-registry ironic-api ironic-conductor heat-api heat-engine s-proxy s-vip swift-api swift-container swift-object
sudo systemctl enable openstack-dashboard openstack-placement Horizon neutron-api neutron-server nova-api nova-conductor nova-scheduler nova-compute cinder-api cinder-volume glance-api glance-registry ironic-api ironic-conductor heat-api heat-engine s-proxy s-vip swift-api swift-container swift-object
```
7. **验证安装**:
使用`openstack`命令行工具检查服务状态,并登录到Horizon(https://<your_server_ip>:8000),进行进一步的OpenStack界面设置。
阅读全文