centos8.5_openstack V版(安装部署Keystone)

1、说明

2、环境规划

计算节点必须开启虚拟化

主机名 IP 角色 备注
controller 192.168.6.10 控制节点/网络/计算节点
computer 192.168.6.20 计算节点 开启虚拟化引擎

3、数据库配置(控制节点)

3.1、建立数据库及授权

[root@controller ~]# mysql -u root -prootroot

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 15
Server version: 10.3.28-MariaDB MariaDB Server

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

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

MariaDB [(none)]> CREATE DATABASE keystone;
Query OK, 1 row affected (0.001 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'rootroot';
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'rootroot';
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| keystone           |
| mysql              |
| performance_schema |
+--------------------+
4 rows in set (0.001 sec)

MariaDB [(none)]> exit;
Bye

3.2、安装相关包

[root@controller ~]# yum install openstack-keystone httpd python3-mod_wsgi -y

*** 输出记录节选 ***
Last metadata expiration check: 19:15:28 ago on Wed 02 Aug 2024 09:32:16 PM CST.
Package httpd-2.4.37-54.module_el8.8.0+1256+e1598b50.x86_64 is already installed.
Dependencies resolved.
==========================================================================================================
 Package                      Arch   Version                              Repository                 Size
==========================================================================================================
Installing:
 openstack-keystone           noarch 1:18.1.0-1.el8                       centos-openstack-victoria  83 k
 python3-mod_wsgi             x86_64 4.6.4-5.el8                          appstream                 2.5 M
Installing dependencies:
......
  python3-vine-1.3.0-4.el8.noarch                                                                         
  python3-webob-1.8.6-3.el8s.noarch                                                                       
  python3-werkzeug-1.0.1-3.el8.noarch                                                                     
  python3-yappi-1.2.5-1.el8.x86_64                                                                        
  qpid-proton-c-0.30.0-1.el8.x86_64                                                                       

Complete!

3.3、编辑配置文件

[root@controller ~]# vim /etc/keystone/keystone.conf
###在 [database] 标签下添加以下内容 ###
[database]
connection = mysql+pymysql://keystone:rootroot@controller/keyst
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

菜鸟&大叔

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值