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

相关文章

SpringBoot 多环境开发实战(从配置、管理与控制)

《SpringBoot多环境开发实战(从配置、管理与控制)》本文详解SpringBoot多环境配置,涵盖单文件YAML、多文件模式、MavenProfile分组及激活策略,通过优先级控制灵活切换环境... 目录一、多环境开发基础(单文件 YAML 版)(一)配置原理与优势(二)实操示例二、多环境开发多文件版

RabbitMQ 延时队列插件安装与使用示例详解(基于 Delayed Message Plugin)

《RabbitMQ延时队列插件安装与使用示例详解(基于DelayedMessagePlugin)》本文详解RabbitMQ通过安装rabbitmq_delayed_message_exchan... 目录 一、什么是 RabbitMQ 延时队列? 二、安装前准备✅ RabbitMQ 环境要求 三、安装延时队

Ubuntu如何升级Python版本

《Ubuntu如何升级Python版本》Ubuntu22.04Docker中,安装Python3.11后,使用update-alternatives设置为默认版本,最后用python3-V验证... 目China编程录问题描述前提环境解决方法总结问题描述Ubuntu22.04系统自带python3.10,想升级

linux系统上安装JDK8全过程

《linux系统上安装JDK8全过程》文章介绍安装JDK的必要性及Linux下JDK8的安装步骤,包括卸载旧版本、下载解压、配置环境变量等,强调开发需JDK,运行可选JRE,现JDK已集成JRE... 目录为什么要安装jdk?1.查看linux系统是否有自带的jdk:2.下载jdk压缩包2.解压3.配置环境

Python库 Django 的简介、安装、用法入门教程

《Python库Django的简介、安装、用法入门教程》Django是Python最流行的Web框架之一,它帮助开发者快速、高效地构建功能强大的Web应用程序,接下来我们将从简介、安装到用法详解,... 目录一、Django 简介 二、Django 的安装教程 1. 创建虚拟环境2. 安装Django三、创

linux安装、更新、卸载anaconda实践

《linux安装、更新、卸载anaconda实践》Anaconda是基于conda的科学计算环境,集成1400+包及依赖,安装需下载脚本、接受协议、设置路径、配置环境变量,更新与卸载通过conda命令... 目录随意找一个目录下载安装脚本检查许可证协议,ENTER就可以安装完毕之后激活anaconda安装更

Jenkins的安装与简单配置过程

《Jenkins的安装与简单配置过程》本文简述Jenkins在CentOS7.3上安装流程,包括Java环境配置、RPM包安装、修改JENKINS_HOME路径及权限、启动服务、插件安装与系统管理设置... 目录www.chinasem.cnJenkins安装访问并配置JenkinsJenkins配置邮件通知

更改linux系统的默认Python版本方式

《更改linux系统的默认Python版本方式》通过删除原Python软链接并创建指向python3.6的新链接,可切换系统默认Python版本,需注意版本冲突、环境混乱及维护问题,建议使用pyenv... 目录更改系统的默认python版本软链接软链接的特点创建软链接的命令使用场景注意事项总结更改系统的默

Linux升级或者切换python版本实现方式

《Linux升级或者切换python版本实现方式》本文介绍在Ubuntu/Debian系统升级Python至3.11或更高版本的方法,通过查看版本列表并选择新版本进行全局修改,需注意自动与手动模式的选... 目录升级系统python版本 (适用于全局修改)对于Ubuntu/Debian系统安装后,验证Pyt

MySQL 升级到8.4版本的完整流程及操作方法

《MySQL升级到8.4版本的完整流程及操作方法》本文详细说明了MySQL升级至8.4的完整流程,涵盖升级前准备(备份、兼容性检查)、支持路径(原地、逻辑导出、复制)、关键变更(空间索引、保留关键字... 目录一、升级前准备 (3.1 Before You Begin)二、升级路径 (3.2 Upgrade