会了他还怕不了解架构
作者:互联网
使用数据库访问客户端以用户身份连接到数据库服务器:root
$ mysql -u root -p
创建 、 和 数据库:nova_apinovanova_cell0
MariaDB [(none)]> CREATE DATABASE nova_api;
MariaDB [(none)]> CREATE DATABASE nova;
MariaDB [(none)]> CREATE DATABASE nova_cell0;
授予对数据库的正确访问权限:
GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova’@‘localhost’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova’@’%’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova’@‘tsw02’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova.* TO ‘nova’@‘localhost’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova.* TO ‘nova’@’%’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova.* TO ‘nova’@‘tsw02’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova_cell0.* TO ‘nova’@‘localhost’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova_cell0.* TO ‘nova’@’%’ IDENTIFIED BY ‘nova’;
GRANT ALL PRIVILEGES ON nova_cell0.* TO ‘nova’@‘tsw02’ IDENTIFIED BY ‘nova’;
创建计算服务凭据:
创建用户:nova
openstack user create --domain default --password-prompt nova
将角色添加到用户:adminnova
openstack user create --domain default --password-prompt nova
创建服务实体:nova
openstack service create --name nova --description “OpenStack Compute” compute
openstack user create --domain default --password-prompt placement
openstack role add --project admin --user placement admin
openstack service create --name placement --description “Placement API” placement
openstack endpoint create --region RegionOne placement public http://192.168.253.132:8778
openstack endpoint create --region RegionOne placement internal http://192.168.253.132:8778
openstack endpoint create --region RegionOne placement admin http://192.168.253.132:8778
创建placement数据库并授权
mysql -u root -p
show databases;
CREATE DATABASE placement;
GRANT ALL PRIVILEGES ON placement.* TO ‘placement’@‘localhost’ IDENTIFIED BY ‘placement’;
GRANT ALL PRIVILEGES ON placement.* TO ‘placement’@’%’ IDENTIFIED BY ‘placement’;
GRANT ALL PRIVILEGES ON placement.* TO ‘placement’@‘tsw02’ IDENTIFIED BY ‘placement’;
#安装和配置组件
yum install -y openstack-nova-api
yum install -y openstack-nova-conductor
yum install -y openstack-nova-console
yum install -y openstack-nova-novncproxy
yum install -y openstack-nova-scheduler
yum install -y openstack-nova-placement-api
此处一个个安装,安装成功会出现complete,否则则安装失败(此处不上图了)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
编辑文件并完成以下操作:/etc/nova/nova.conf
vim /etc/nova/nova.conf
vim /etc/httpd/conf.d/00-nova-placement-api.conf
<Directory /usr/bin>
= 2.4>
Require all granted
<IfVersion < 2.4>
Order allow,deny
Allow from all
标签:placement,GRANT,--,IDENTIFIED,nova,了解,openstack,架构 来源: https://blog.csdn.net/qq_46906413/article/details/121685474