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

相关文章

Python版本与package版本兼容性检查方法总结

《Python版本与package版本兼容性检查方法总结》:本文主要介绍Python版本与package版本兼容性检查方法的相关资料,文中提供四种检查方法,分别是pip查询、conda管理、PyP... 目录引言为什么会出现兼容性问题方法一:用 pip 官方命令查询可用版本方法二:conda 管理包环境方法

基于Python开发Windows自动更新控制工具

《基于Python开发Windows自动更新控制工具》在当今数字化时代,操作系统更新已成为计算机维护的重要组成部分,本文介绍一款基于Python和PyQt5的Windows自动更新控制工具,有需要的可... 目录设计原理与技术实现系统架构概述数学建模工具界面完整代码实现技术深度分析多层级控制理论服务层控制注

python依赖管理工具UV的安装和使用教程

《python依赖管理工具UV的安装和使用教程》UV是一个用Rust编写的Python包安装和依赖管理工具,比传统工具(如pip)有着更快、更高效的体验,:本文主要介绍python依赖管理工具UV... 目录前言一、命令安装uv二、手动编译安装2.1在archlinux安装uv的依赖工具2.2从github

JDK8(Java Development kit)的安装与配置全过程

《JDK8(JavaDevelopmentkit)的安装与配置全过程》文章简要介绍了Java的核心特点(如跨平台、JVM机制)及JDK/JRE的区别,重点讲解了如何通过配置环境变量(PATH和JA... 目录Java特点JDKJREJDK的下载,安装配置环境变量总结Java特点说起 Java,大家肯定都

Python一次性将指定版本所有包上传PyPI镜像解决方案

《Python一次性将指定版本所有包上传PyPI镜像解决方案》本文主要介绍了一个安全、完整、可离线部署的解决方案,用于一次性准备指定Python版本的所有包,然后导出到内网环境,感兴趣的小伙伴可以跟随... 目录为什么需要这个方案完整解决方案1. 项目目录结构2. 创建智能下载脚本3. 创建包清单生成脚本4

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三、创