openstack-o版-nova安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openstack-o版-nova安装相关的知识,希望对你有一定的参考价值。

    NOVA组件是调用虚拟化驱动,创建虚拟机。配置NOVA分控制节点和计算节点。

    创建数据库

MariaDB [(none)]> CREATE DATABASE nova_api;
MariaDB[(none)]> CREATE DATABASE nova;
MariaDB [(none)]> CREATE DATABASE nova_cell0;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova‘@‘localhost‘ IDENTIFIED BY ‘NOVA_DBPASS‘;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova‘@‘%‘ IDENTIFIED BY ‘NOVA_DBPASS‘;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘localhost‘ IDENTIFIED BY ‘NOVA_DBPASS‘;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘%‘ IDENTIFIED BY ‘NOVA_DBPASS‘;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO ‘nova‘@‘localhost‘ IDENTIFIED BY ‘NOVA_DBPASS‘;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON nova_cell0.* TO ‘nova‘@‘%‘  IDENTIFIED BY ‘NOVA_DBPASS‘;

    创建NOVA用户

[[email protected] ~]# openstack user create --domain default --password NOVA_PASS nova

     将admin角色添加到NOVA用户和项目
[[email protected] ~]# openstack role add --project service --user nova admin

    创建一个NOVA实体
[[email protected] ~]# openstack service create --name nova --description "OpenStack Compute" compute
   
    创建NOVA的api
[[email protected] ~]# openstack endpoint create --region RegionOne compute public http://wang02:8774/v2.1
[[email protected] ~]# openstack endpoint create --region RegionOne compute internal
http://wang02:8774/v2.1
[[email protected] ~]# openstack endpoint create --region RegionOne compute admin http://wang02:8774/v2.1

     创建一个PLACEMENT用户

[[email protected] ~]# openstack user create --domain default --password PLACEMENT_PASS placement
     
     将admin角色添加到placement用户和项目
[[email protected] ~]# openstack role add --project service --user placement admin
   
     创建一个PLACEMENT实体
[[email protected] ~]#openstack service create --name placement --description "Placement API" placement
   
     创建PLACEMENT的api
[[email protected] ~]# openstack endpoint create --region RegionOne placement public http://wang02:8778
[[email protected] ~]# openstack endpoint create --region RegionOne placement internal http://wang02:8778
[[email protected] ~]# openstack endpoint create --region RegionOne placement admin http://wang02:8778

     下载NOVA的安装包

  
[[email protected] ~]# openstack compute service list
+----+------------------+--------+----------+---------+-------+----------------------------+
| ID | Binary           | Host   | Zone     | Status  | State | Updated At                 |
+----+------------------+--------+----------+---------+-------+----------------------------+
|  1 | nova-scheduler   | wang02 | internal | enabled | up    | 2017-07-06T09:06:15.000000 |
|  2 | nova-consoleauth | wang02 | internal | enabled | up    | 2017-07-06T09:06:15.000000 |
|  3 | nova-conductor   | wang02 | internal | enabled | up    | 2017-07-06T09:06:16.000000 |
|  5 | nova-compute     | wang03 | nova     | enabled | up    | 2017-07-06T09:06:17.000000 |
+----+------------------+--------+----------+---------+-------+----------------------------+

以上是关于openstack-o版-nova安装的主要内容,如果未能解决你的问题,请参考以下文章

openstack-o版-horizon安装

openstack-O版--基础配置

openstack-o版-启动实例

openstack M版安装 compute(nova)服务篇

OpenStack---M版---双节点搭建---Nova安装和配置

OpenStack 运维 - 部署Nova组件 [T版]