openstack-o版-nova安裝

    NOVA組件是調用虛擬化驅動,建立虛擬機。配置NOVA分控制節點和計算節點。數據庫

    建立數據庫api

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用戶dom

[root@wang02 ~]# openstack user create --domain default --password NOVA_PASS nova

     將admin角色添加到NOVA用戶和項目
[root@wang02 ~]# openstack role add --project service --user nova admin

    建立一個NOVA實體
[root@wang02 ~]# openstack service create --name nova --description "OpenStack Compute" compute
   
    建立NOVA的api
[root@wang02 ~]# openstack endpoint create --region RegionOne compute public http://wang02:8774/v2.1
[root@wang02 ~]# openstack endpoint create --region RegionOne compute internal
http://wang02:8774/v2.1
[root@wang02 ~]# openstack endpoint create --region RegionOne compute admin http://wang02:8774/v2.1

     建立一個PLACEMENT用戶ide

[root@wang02 ~]# openstack user create --domain default --password PLACEMENT_PASS placement
     
     將admin角色添加到placement用戶和項目
[root@wang02 ~]# openstack role add --project service --user placement admin
   
     建立一個PLACEMENT實體
[root@wang02 ~]#openstack service create --name placement --description "Placement API" placement
   
     建立PLACEMENT的api
[root@wang02 ~]# openstack endpoint create --region RegionOne placement public http://wang02:8778
[root@wang02 ~]# openstack endpoint create --region RegionOne placement internal http://wang02:8778
[root@wang02 ~]# openstack endpoint create --region RegionOne placement admin http://wang02:8778

     下載NOVA的安裝包spa

  
[root@wang02 ~]# 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 |
+----+------------------+--------+----------+---------+-------+----------------------------+
相關文章
相關標籤/搜索