6-openstack-nova Control Node

Source: Internet
Author: User

Nova's role:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8B/C5/wKiom1hX6OPBVtdYAACi4W0z9uw953.png-wh_500x0-wm_3 -wmp_4-s_2880471252.png "title=" 1.png "alt=" Wkiom1hx6opbvtdyaaci4w0z9uw953.png-wh_50 "/>

The basic role of NOVA components

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8B/C2/wKioL1hX6UKgZhtvAAK1btVqZFM126.png-wh_500x0-wm_3 -wmp_4-s_9626977.png "title=" 2.png "alt=" Wkiol1hx6ukgzhtvaak1btvqzfm126.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8B/C5/wKiom1hX6WTBPZAeAAMFFecFEsE535.png-wh_500x0-wm_3 -wmp_4-s_2697733154.png "title=" 3.png "alt=" Wkiom1hx6wtbpzaeaamffecfese535.png-wh_50 "/>

Nova-scheduler

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/C5/wKiom1hX6amyfU7gAAH86ltdncc893.png-wh_500x0-wm_3 -wmp_4-s_3629342747.png "style=" Float:none; "title=" 1.png "alt=" Wkiom1hx6amyfu7gaah86ltdncc893.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/C2/wKioL1hX6aryj1wYAALaO_mxy_c278.png-wh_500x0-wm_3 -wmp_4-s_3515605138.png "style=" Float:none; "title=" 2.png "alt=" Wkiol1hx6aryj1wyaalao_mxy_c278.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8B/C2/wKioL1hX6c3iIUdUAAO2wZRVMd4172.png-wh_500x0-wm_3 -wmp_4-s_627788816.png "title=" 3.png "alt=" Wkiol1hx6c3iiuduaao2wzrvmd4172.png-wh_50 "/>


Prerequisite: Source Admin-openstack

6.1. Create a Nova and NOVA_API database

Mysql> CREATE DATABASE nova_apimysql> create database Nova;

6.2. Authorization of the database

Mysql> grant all privileges on nova_api.* to ' nova ' @ ' localhost ' identified by ' Nova ';mysql> GRANT all privileges on  nova_api.* to ' Nova ' @ ' percent ' identified by ' Nova ';mysql> GRANT all privileges on nova.* to ' nova ' @ ' localhost ' identified by ' Nova ';mysql> GRANT all privileges in nova.* to ' Nova ' @ ' percent ' identified by ' Nova ';

6.3 Create Nova User nova password

 openstack user create --domain default   --password-prompt  novauser password:repeat user password:+---------------------+--------------------------------- -+| field               |  Value                             |+---------------------+-------------- --------------------+| domain_id           |  default                           | |  enabled             | True                              | |  id                   | 8a7dbf5279404537b1c7b86c033620fe | |  name                |  nova                              | |  password_expires_at | None                              |+ ---------------------+----------------------------------+

6.4 Adding the Admin role to Nova

OpenStack role Add--project service--user Nova Admi

6.5 Creating a Nova Project

openstack service create --name nova   --description  "OpenStack  Compute " compute+-------------+----------------------------------+| field        | Value                             |+-------------+---- ------------------------------+| description | openstack compute                 | |  enabled     | True                               | |  id          | 060d59eac51b4594815603d75a00aba2  | |  name        | nova                              | |  type        | compute                            |+-------------+----------------------------------+

6.6 Creating a control node Endopint

 openstack endpoint create --region regionone   compute public  http://192.168.56.11:8774/v2.1/%\ (tenant_id\) s+--------------+------------------------------------------ -+| field        | value                                       |+--------------+--------------- ----------------------------+| enabled      | true                                        | |  id           |  3c1caa473bfe4390a11e7177894bcc7b          | |  interface    | public                                      | |  region       | RegionOne                                   | |  region_id    | RegionOne                                   | |  service_id   | 060d59eac51b4594815603d75a00aba2           | |  service_name | nova                                        | |  service_type | compute                                     | |  url          | http://controller:8774/v2.1/% ( TENANT_ID) s |+--------------+-------------------------------------------+openstack endpoint  create --region regionone   compute internal http://192.168.56.11:8774/v2.1 /%\ (tenant_id\) s+--------------+-------------------------------------------+| field         | value                                      |+--------------+--------------------- ----------------------+| enabled      | true                                        | |  id           |  e3c918de680746a586eac1f2d9bc10ab          | |  interface    | internal                                    | |  region       | regionone                                   | |  region_id    | RegionOne                                   | |  service_id   | 060d59eac51b4594815603d75a00aba2           | |  service_name | nova                                        | |  service_type | compute                                    | |  url          | http://controller:8774/v2.1/% ( TENANT_ID) s |+--------------+-------------------------------------------+ openstack endpoint  create --region regionone   compute admin http://192.168.56.11:8774/ V2.1/%\ (tenant_id\) s+--------------+-------------------------------------------+| field         | Value                                       |+--------------+-------------------------------------------+|  enabled      | True                                       | |  id           |  38f7af91666a47cfb97b4dc790b94424          | |  interface    | admin                                       | |  region       | RegionOne                                   | |  region_id    | regionone                                  | |  service_id   | 060d59eac51b4594815603d75a00aba2           | |  service_name | nova                                        | |  service_type | compute                                     | |  url          | http://controller:8774/v2.1/% ( TENANT_ID) s |+--------------+-------------------------------------------+

6.7 Install package Nova in addition to the Nova compute node

Yum install Openstack-nova-api openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy Openstack-nova-scheduler

6.8 Modifying the Nova configuration file

[[email protected] ~]# grep   ' ^[a-z] '   /etc/nova/nova.confauth_strategy= keystone   #使用kestone认证use_neutron =true        # Using Neutron's network enabled_apis=osapi_compute,metadata   #支持的API模型firewall_driver  =  nova.virt.firewall.noopfirewalldriver  #防火墙驱动connection =mysql+pymysql://nova:[email protected]/nova_ api   #keystone认证connection =mysql+pymysql://nova:[email protected]/novaapi_servers=http:// 192.168.56.11:9292auth_uri = http://192.168.56.11:5000auth_url = http:// 192.168.56.11:35357memcached_servers = 192.168.56.11:11211auth_type = passwordproject_ domain_name = defaultuser_domain_name = defaultproject_name = service  username = novapassword = novalock_path=/var/lib/nova/tmp   #锁文件transport_url = rabbit://openstack:[email protected]  #消息队列vncserver_listen =0.0.0.0&nbsp: The interface tool of the #vnc监听的IPvncserver_proxyclient_address =192.168.56.11  #vncproxy   h5 [[email  protected] ~]#

6.9 Sync book Nova's database and Nova-api's database

# su-s/bin/sh-c "nova-manage api_db sync" nova# su-s/bin/sh-c "nova-manage db Sync" Nova

6.10 Starting COMPUTE nodes

# Systemctl Enable Openstack-nova-api.service Openstack-nova-consoleauth.service Openstack-nova-scheduler.service   Openstack-nova-conductor.service openstack-nova-novncproxy.service# systemctl Start Openstack-nova-api.service Openstack-nova-consoleauth.service Openstack-nova-scheduler.service Openstack-nova-conductor.service Openstack-nova-novncproxy.servic

6.11 Verifying the final success

[[email protected] nova]# OpenStack Host list +-------------+-------------+----------+| Host Name | Service | Zone |+-------------+-------------+----------+| Linux-node1 | Consoleauth | Internal | | Linux-node1 | Conductor | Internal | | Linux-node1 | Scheduler | Internal |+-------------+-------------+----------+[[email protected] nova]#


This article is from the "Brick Blog" blog, please be sure to keep this source http://wsxxsl.blog.51cto.com/9085838/1884075

6-openstack-nova Control Node

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.