OpenStack m installation Compute (NOVA) service

Source: Internet
Author: User

Configuring the Install Nova Compute service

Installing Controller Nodes

First, create a Nova database

[Email protected] ~]# mysql-u root-p>>create database nova_api;>>create database nova;>>grant all PRI Vileges on nova_api.* to ' nova ' @ ' localhost ' identified by ' nova_dbpass '; >>grant all privileges on nova_api.* to ' n OVA ' @ '% ' identified by ' nova_dbpass '; >>grant-privileges on nova.*-' NOVA ' @ ' localhost ' identified by ' Nova_ Dbpass '; >>grant all privileges on nova.* to ' Nova ' @ ' percent ' identified by ' nova_dbpass ';

Nova_dbpass change to the password you want to set


Ii. Creating service entities and API interfaces

[[email protected] ~] #source  /root/admin-openrc.sh[[email protected] ~]#  Openstack user create --domain default   --password-prompt nova[[email  protected] ~]# openstack role add --project service --user nova  admin[[email protected] ~]# openstack service create --name nova   --description  "Openstack compute"  compute[[email protected] ~]#  openstack endpoint create --region regionone   compute public [[ email protected] ~]# openstack endpoint create --region regionone    compute internal http://controller:8774/v2.1/%\ (tenant_id\) s[[email protected]  ~]# openstack endpoint create --region RegionOne   compute  Admin http://controller:8774/v2.1/%\ (tenant_id\) s 


Third, the installation of Nova services

[email protected] ~]# Yum install Openstack-nova-api openstack-nova-conductor openstack-nova-console Openstack-nova-novncproxy Openstack-nova-scheduler

Editing the Nova service configuration file

[[Email protected] ~]# mv /etc/nova/nova.conf  /etc/nova/nova.conf_bak[default] enabled_apis = osapi_compute,metadatarpc_backend = rabbitauth_strategy =  keystonemy_ip = 10.0.0.11use_neutron = truefirewall_driver =  nova.virt.firewall.noopfirewalldriver[api_database]connection = mysql+pymysql://nova:[email  protected]/nova_api   #改为自己数据库的密码 [database]connection = mysql+pymysql://nova:[email  protected]/nova    #改为自己数据库的密码 [Oslo_messaging_rabbit]rabbit_host = controllerrabbit_ userid = openstackrabbit_password = rabbit_pass    #改为自己rabbitmq的密码 [Keystone _authtoken]auth_uri = http://controller:5000auth_url = http://controller:35357memcached_ Servers = controller:11211auth_type = passwordproject_domain_name = defaultuser_ Domain_name = defaultproject_name = serviceusername = novapassword = nova_pass    #改为自己nova服务的密码 [VNC] vncserver_listen =  $my _ipvncserver_proxyclient_address =  $my _ip[glance]api_servers =  http://controller:9292[oslo_concurrency]lock_path = /var/lib/nova/tmp

Synchronizing databases

[[email protected] ~]# su-s/bin/sh-c "nova-manage api_db Sync" nova[[email protected] ~]# su-s/bin/sh-c "Nova-manage DB Sync "Nova

Start the service and add it to the boot boot

[Email protected] ~]# Systemctl enable Openstack-nova-api.service Openstack-nova-consoleauth.service Openstack-nova-scheduler.service Openstack-nova-conductor.service Openstack-nova-novncproxy.service[[email Protected] ~]# systemctl start Openstack-nova-api.service openstack-nova-consoleauth.service Openstack-nova-scheduler.service Openstack-nova-conductor.service Openstack-nova-novncproxy.service



Installing the COMPUTE node

First, the installation of Nova services

[email protected] ~]# Yum install Openstack-nova-compute

Editing a configuration file

[[email protected] ~] #mv  /etc/nova/nova.conf  /etc/nova/nova.conf_bak[[email  Protected] ~] #vim  /etc/nova/nova.conf[default]rpc_backend = rabbitauth_strategy =  keystonemy_ip = MANAGEMENT_INTERFACE_IP_ADDRESS   #填写本机的管理ip, that's 10.0.0 segment of Use_neutron  = truefirewall_driver = nova.virt.firewall.noopfirewalldriver[oslo_messaging_rabbit] Rabbit_host = controllerrabbit_userid = openstackrabbit_password = rabbit_pass     #填写你rabbit的密码 [keystone_authtoken]auth_uri = http://controller:5000auth_url =  http://controller:35357memcached_servers = controller:11211auth_type =  passwordproject_domain_name = defaultuser_domain_name = defaultproject_name =  serviceusername = novapassword = nova_pass     #填写你nova服务的密码 [VNC] Enabled = truevncserver_listen = 0.0.0.0vncserver_proxyclient_address =  $my _ipnovncproxy_base_url = [glance]api_servers  = http://controller:9292 [oslo_concurrency]lock_path = /var/lib/nova/tmp[libvirt] virt_type = qemu   #在命令行执行egrep  -c  ' (VMX|SVM)  /proc/cpuinfo  if return 0, It's qemu , if it's 1,   is KVM.

Start the Nova-related service and join the boot boot.

[[email protected] ~]# systemctl enable Libvirtd.service Openstack-nova-compute.service[[email protected] ~]# Systemctl Start Libvirtd.service Openstack-nova-compute.service


Second, verification

Executing on the Controller node

[[email protected] ~]# source /root/admin-openrc.sh[[email protected] ~]#  openstack compute service list+----+------------------+------------+----------+---------+------ -+----------------------------+| id | binary            | Host       | Zone      | Status  | State | Updated At                  |+----+------------------+------------+----- -----+---------+-------+----------------------------+|  1 | nova-consoleauth |  Controller | internal | enabled | up    | 2016-06-16t11 : 55:21.000000 | |   2 | nova-conductor   | controller | internal |  Enabled | up    | 2016-06-16t11:55:18.000000 | |   3 | nova-scheduler   | controller | internal |  enabled | up    | 2016-06-16t11:55:25.000000 | |   6 | nova-compute     | compute1   |  Nova     | enabled | up    | 2016-06-16t11 : 55:22.000000 | |   7 | nova-compute     | compute2   |  nova     | enabled | down  | 2016-06-16t08:41:19.000000  |+----+------------------+------------+----------+---------+-------+----------------------------+ My compute2 is not activated so it is down state.

The above information appears to indicate success.




For Network Service installation please refer to:

This article is from the "Venuxs" blog, make sure to keep this source http://venuxs.blog.51cto.com/11763538/1795985

OpenStack m installation Compute (NOVA) service

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.