0
点赞
收藏
分享

微信扫一扫

Openstack架构构建及详解(7)--Cinder组件

Greatiga 2022-04-24 阅读 56

[](()2、构建实验

[](()1、配置controller节点

[root@controller ~]# mysql -uroot -p

Enter password:

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

Your MariaDB connection id is 30

Server version: 5.5.37-MariaDB MariaDB Server

Copyright © 2000, 2014, Oracle, Monty Program Ab and others.

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

MariaDB [(none)]> CREATE DATABASE cinder;

Query OK, 1 row affected (0.01 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON cinder.* TO ‘cinder’@‘localhost’ IDENTIFIED BY ‘CINDER_DBPASS’;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON cinder.* TO ‘cinder’@‘%’ IDENTIFIED BY ‘CINDER_DBPASS’;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit

Bye

[root@controller ~]# source admin-openrc.sh

[root@controller ~]# keystone user-create --name cinder --pass CINDER_PASS

±---------±---------------------------------+

| Property | Value |

±---------±---------------------------------+

| email | |

| enabled | True |

| id | 81e66a4390474085a9d6eec0498ecbc9 |

| name | cinder |

| username | cinder |

±---------±---------------------------------+

[root@controller ~]# keystone user-role-add --user cinder --tenant service --role admin

[root@controller ~]# keystone service-create --name cinder --type volume --description “OpenStackBlock Storage”

±------------±---------------------------------+

| Property | Value |

±------------±---------------------------------+

| description | OpenStackBlock Storage |

| enabled | True |

| id | e34f25886150411880594b87633536c8 |

| name | cinder |

| type | volume |

±----------- 《一线大厂Java面试题解析+后端开发学习笔记+最新架构讲解视频+实战项目源码讲义》无偿开源 威信搜索公众号【编程进阶路】 -±---------------------------------+

[root@controller ~]# keystone service-create --name cinderv2 --type volumev2 --description “OpenStackBlock Storage”

±------------±---------------------------------+

| Property | Value |

±------------±---------------------------------+

| description | OpenStackBlock Storage |

| enabled | True |

| id | d5d4326f4fa14a1f960caed8af2d1ff1 |

| name | cinderv2 |

| type | volumev2 |

±------------±---------------------------------+

[root@controller ~]# keystone endpoint-create --service-id $(keystone service-list | awk ‘/ volume /{print $2}’) --publicurl http://controller.nice.com:8776/v1/%(tenant_id)s --internalurl http://controller.nice.com:8776/v1/%(tenant_id)s --adminurl http://controller.nice.com:8776/v1/%(tenant_id)s --region regionOne

±------------±-------------------------------------------------+

| Property | Value |

±------------±-------------------------------------------------+

| adminurl | http://controller.nice.com:8776/v1/%(tenant_id)s |

| id | 4262968b5b60490583dd4305b02257a6 |

| internalurl | http://controller.nice.com:8776/v1/%(tenant_id)s |

| publicurl | http://controller.nice.com:8776/v1/%(tenant_id)s |

| region | regionOne |

| service_id | e34f25886150411880594b87633536c8 |

±------------±-------------------------------------------------+

[root@controller ~]# keystone endpoint-create \

±------------±-------------------------------------------------+

| Property | Value |

±------------±-------------------------------------------------+

| adminurl | http://controller.nice.com:8776/v2/%(tenant_id)s |

| id | c1b8efc1f40048fa89ef5d7961d1b7da |

| internalurl | http://controller.nice.com:8776/v2/%(tenant_id)s |

| publicurl | http://controller.nice.com:8776/v2/%(tenant_id)s |

| region | regionOne |

| service_id | d5d4326f4fa14a1f960caed8af2d1ff1 |

±------------±-------------------------------------------------+

在这里插入图片描述在这里插入图片描述

[](()2、配置block节点

[root@block1 ~]# yum install -y ntpdate

[root@block1 ~]# ntpdate -u controller.nice.com

24 Jul 09:07:13 ntpdate[11003]: step time server 192.168.222.5 offset 9415.809954 sec

举报

相关推荐

0 条评论