会了他还怕不了解架构

使用数据库访问客户端以用户身份连接到数据库服务器: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


会了他还怕不了解架构

上一篇:openstack-M版,学习笔记四


下一篇:RabbitMQ安装配置(AMQP消息队列)