openstack Queens版本在centos7.1,最小化安装(安装Cinder(控制节点 )

本文主要是介绍openstack Queens版本在centos7.1,最小化安装(安装Cinder(控制节点 ),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在数据库中创建cinder库和用户并授权

 

[root@controller ~]#  mysql -u root -ptest.2018

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 252

Server version: 10.1.20-MariaDBMariaDB Server

 

Copyright (c) 2000, 2016, Oracle,MariaDB Corporation Ab and others.

 

Type 'help;' or '\h' for help. Type'\c' to clear the current input statement.

 

MariaDB [(none)]> CREATE DATABASEcinder;

Query OK, 1 row affected (0.00 sec)

 

MariaDB [(none)]> GRANT ALLPRIVILEGES ON cinder.* TO 'cinder'@'localhost' \

   ->   IDENTIFIED BY 'test.2018';

Query OK, 0 rows affected (0.06 sec)

 

MariaDB [(none)]> GRANT ALLPRIVILEGES ON cinder.* TO 'cinder'@'%' \

   ->   IDENTIFIED BY 'test.2018';

Query OK, 0 rows affected (0.00 sec)

 

 

**********************************************************************

[root@controller ~]# openstack usercreate --domain default --password-prompt cinder

User Password:

Repeat User Password:

+---------------------+----------------------------------+

| Field               | Value                            |

+---------------------+----------------------------------+

| domain_id           | default                          |

| enabled             | True                             |

| id                  |9e570b85c8eb42f6b2d27176823ba0e0 |

| name                | cinder                           |

| options             | {}                               |

| password_expires_at | None                             |

+---------------------+----------------------------------+

[root@controller ~]# openstack roleadd --project service --user cinder admin

[root@controller ~]# openstack servicecreate --name cinderv2 \

>  --description "OpenStack Block Storage" volumev2

+-------------+----------------------------------+

| Field       | Value                            |

+-------------+----------------------------------+

| description | OpenStack BlockStorage          |

| enabled     | True                             |

| id          | cf9211aeff9745b0bd383b6c203e7d85 |

| name        | cinderv2                         |

| type        | volumev2                         |

+-------------+----------------------------------+

You have new mail in/var/spool/mail/root

[root@controller ~]# openstackservice create --name cinderv3 \

>  --description "OpenStack Block Storage" volumev3

+-------------+----------------------------------+

| Field       | Value                            |

+-------------+----------------------------------+

| description | OpenStack BlockStorage          |

| enabled     | True                             |

| id          | f2c6d5c9b8104d75b0b11caeebee2622 |

| name        | cinderv3                         |

| type        | volumev3                         |

+-------------+----------------------------------+

[root@controller ~]# openstackendpoint create --region RegionOne \

>  volumev2 public http://controller:8776/v2/%\(project_id\)s

+--------------+------------------------------------------+

| Field        | Value                                    |

+--------------+------------------------------------------+

| enabled      | True                                     |

| id           |f98acd01b64b43fc9386479aaf1e8397        |

| interface    | public                                   |

| region       | RegionOne                                |

| region_id    | RegionOne                                |

| service_id   | cf9211aeff9745b0bd383b6c203e7d85         |

| service_name | cinderv2                                 |

| service_type | volumev2                                 |

| url          | http://controller:8776/v2/%(project_id)s|

+--------------+------------------------------------------+

[root@controller ~]# openstackendpoint create --region RegionOne \

>  volumev2 internal http://controller:8776/v2/%\(project_id\)s

+--------------+------------------------------------------+

| Field        | Value                                    |

+--------------+------------------------------------------+

| enabled      | True                                     |

| id           |ba5f1f31a6c74c66be64264be1838c53        |

| interface    | internal                                 |

| region       | RegionOne                                |

| region_id    | RegionOne                                |

| service_id   | cf9211aeff9745b0bd383b6c203e7d85         |

| service_name | cinderv2                                 |

| service_type | volumev2                                 |

| url          | http://controller:8776/v2/%(project_id)s|

+--------------+------------------------------------------+

[root@controller ~]# openstackendpoint create --region RegionOne \

>  volumev2 admin http://controller:8776/v2/%\(project_id\)s

+--------------+------------------------------------------+

| Field        | Value                                    |

+--------------+------------------------------------------+

| enabled      | True                                     |

| id           |418b3ae7f9de44be8b30b2830147d88d        |

| interface    | admin                                    |

| region       | RegionOne                                |

| region_id    | RegionOne                                |

| service_id   | cf9211aeff9745b0bd383b6c203e7d85         |

| service_name | cinderv2                                 |

| service_type | volumev2                                 |

| url          | http://controller:8776/v2/%(project_id)s|

+--------------+------------------------------------------+

[root@controller ~]# openstackendpoint create --region RegionOne \

>  volumev3 public http://controller:8776/v3/%\(project_id\)s

+--------------+------------------------------------------+

| Field        | Value                                    |

+--------------+------------------------------------------+

| enabled      | True                                     |

| id           |d8bd399d2b1642c0aa3059efcdb1b13c        |

| interface    | public                                   |

| region       | RegionOne                                |

| region_id    | RegionOne                                |

| service_id   | f2c6d5c9b8104d75b0b11caeebee2622         |

| service_name | cinderv3                                 |

| service_type | volumev3                                 |

| url          | http://controller:8776/v3/%(project_id)s|

+--------------+------------------------------------------+

[root@controller ~]# openstackendpoint create --region RegionOne \

>  volumev3 internal http://controller:8776/v3/%\(project_id\)s

+--------------+------------------------------------------+

| Field        | Value                                    |

+--------------+------------------------------------------+

| enabled      | True                                     |

| id           |d75d945d115a4eaeb9a4115c8d031e56        |

| interface    | internal                                 |

| region       | RegionOne                                |

| region_id    | RegionOne                                |

| service_id   | f2c6d5c9b8104d75b0b11caeebee2622         |

| service_name | cinderv3                                 |

| service_type | volumev3                                 |

| url          | http://controller:8776/v3/%(project_id)s|

+--------------+------------------------------------------+

You have new mail in /var/spool/mail/root

[root@controller ~]# openstackendpoint create --region RegionOne \

>  volumev3 admin http://controller:8776/v3/%\(project_id\)s

+--------------+------------------------------------------+

| Field        | Value                                    |

+--------------+------------------------------------------+

| enabled      | True                                     |

| id           |f958ebc0bb9e42d98e217565e4e8e2c5        |

| interface    | admin                                    |

| region       | RegionOne                                |

| region_id    | RegionOne                                |

| service_id   | f2c6d5c9b8104d75b0b11caeebee2622         |

| service_name | cinderv3                                 |

| service_type | volumev3                                 |

| url          | http://controller:8776/v3/%(project_id)s|

+--------------+------------------------------------------+

[root@controller ~]#

**********************************************************************

安装

 yum install openstack-cinder -y

 

 

修改配置文件

/etc/cinder/cinder.conf

[DEFAULT]

transport_url = rabbit://openstack:test.2018@controller

auth_strategy = keystone

my_ip = 10.0.2.111

 

[database]

connection = mysql+pymysql://cinder:test.2018@controller/cinder

 

 

[keystone_authtoken]

auth_uri = http://controller:5000

auth_url = http://controller:35357

memcached_servers = controller:11211

auth_type = password

project_domain_id = default

user_domain_id = default

project_name = service

username = cinder

password = test.2018

 

 

[oslo_concurrency]

lock_path = /var/lib/cinder/tmp

 

 

初始化数据库

[root@controller ~]# su -s /bin/sh -c"cinder-manage db sync" cinder

Option "logdir" from group"DEFAULT" is deprecated. Use option "log-dir" from group"DEFAULT".

 

 

 

配置Compute以使用块存储???

Vim /etc/nova/nova.conf

[cinder]
os_region_name=RegionOne

 

重启服务

# systemctl restartopenstack-nova-api.service
 

systemctl restartopenstack-nova-api.service

systemctl enableopenstack-cinder-api.service openstack-cinder-scheduler.service

systemctl restart openstack-cinder-api.serviceopenstack-cinder-scheduler.service

 

 

验证

soure admin-openrc

[root@controller nova]# openstackvolume service list

 

 


这篇关于openstack Queens版本在centos7.1,最小化安装(安装Cinder(控制节点 )的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/626108

相关文章

Jsoncpp的安装与使用方式

《Jsoncpp的安装与使用方式》JsonCpp是一个用于解析和生成JSON数据的C++库,它支持解析JSON文件或字符串到C++对象,以及将C++对象序列化回JSON格式,安装JsonCpp可以通过... 目录安装jsoncppJsoncpp的使用Value类构造函数检测保存的数据类型提取数据对json数

mac安装redis全过程

《mac安装redis全过程》文章内容主要介绍了如何从官网下载指定版本的Redis,以及如何在自定义目录下安装和启动Redis,还提到了如何修改Redis的密码和配置文件,以及使用RedisInsig... 目录MAC安装Redis安装启动redis 配置redis 常用命令总结mac安装redis官网下

你的华为手机升级了吗? 鸿蒙NEXT多连推5.0.123版本变化颇多

《你的华为手机升级了吗?鸿蒙NEXT多连推5.0.123版本变化颇多》现在的手机系统更新可不仅仅是修修补补那么简单了,华为手机的鸿蒙系统最近可是动作频频,给用户们带来了不少惊喜... 为了让用户的使用体验变得很好,华为手机不仅发布了一系列给力的新机,还在操作系统方面进行了疯狂的发力。尤其是近期,不仅鸿蒙O

什么是 Ubuntu LTS?Ubuntu LTS和普通版本区别对比

《什么是UbuntuLTS?UbuntuLTS和普通版本区别对比》UbuntuLTS是Ubuntu操作系统的一个特殊版本,旨在提供更长时间的支持和稳定性,与常规的Ubuntu版本相比,LTS版... 如果你正打算安装 Ubuntu 系统,可能会被「LTS 版本」和「普通版本」给搞得一头雾水吧?尤其是对于刚入

如何安装 Ubuntu 24.04 LTS 桌面版或服务器? Ubuntu安装指南

《如何安装Ubuntu24.04LTS桌面版或服务器?Ubuntu安装指南》对于我们程序员来说,有一个好用的操作系统、好的编程环境也是很重要,如何安装Ubuntu24.04LTS桌面... Ubuntu 24.04 LTS,代号 Noble NumBAT,于 2024 年 4 月 25 日正式发布,引入了众

如何安装HWE内核? Ubuntu安装hwe内核解决硬件太新的问题

《如何安装HWE内核?Ubuntu安装hwe内核解决硬件太新的问题》今天的主角就是hwe内核(hardwareenablementkernel),一般安装的Ubuntu都是初始内核,不能很好地支... 对于追求系统稳定性,又想充分利用最新硬件特性的 Ubuntu 用户来说,HWEXBQgUbdlna(Har

python中poetry安装依赖

《python中poetry安装依赖》本文主要介绍了Poetry工具及其在Python项目中的安装和使用,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随... 目录前言1. 为什么pip install poetry 会造成依赖冲突1.1 全局环境依赖混淆:1

windows端python版本管理工具pyenv-win安装使用

《windows端python版本管理工具pyenv-win安装使用》:本文主要介绍如何通过git方式下载和配置pyenv-win,包括下载、克隆仓库、配置环境变量等步骤,同时还详细介绍了如何使用... 目录pyenv-win 下载配置环境变量使用 pyenv-win 管理 python 版本一、安装 和

Linux下MySQL8.0.26安装教程

《Linux下MySQL8.0.26安装教程》文章详细介绍了如何在Linux系统上安装和配置MySQL,包括下载、解压、安装依赖、启动服务、获取默认密码、设置密码、支持远程登录以及创建表,感兴趣的朋友... 目录1.找到官网下载位置1.访问mysql存档2.下载社区版3.百度网盘中2.linux安装配置1.

Python实现局域网远程控制电脑

《Python实现局域网远程控制电脑》这篇文章主要为大家详细介绍了如何利用Python编写一个工具,可以实现远程控制局域网电脑关机,重启,注销等功能,感兴趣的小伙伴可以参考一下... 目录1.简介2. 运行效果3. 1.0版本相关源码服务端server.py客户端client.py4. 2.0版本相关源码1