Control node
Before you install and configure the Compute service, you must create a database, service credentials, and API endpoint.
First, create a Nova database and authorize
1. Logging into the database
Mysql-u root-p
2. Create a database and authorize
CREATE DATABASE Nova; GRANT all privileges on Nova.* To'Nova'@'localhost'identified by'Nova_dbpass'; GRANT all privileges on Nova.* To'Nova'@'%'identified by'Nova_dbpass';
Replace NOVA_DBPASS
with a suitable password.
Source the admin
credentials to gain access to admin-only CLI commands:
SOURCE ADMIN-OPENRC. SH
3.To Create the service credentials, complete these steps:
Create the nova
User:
OpenStack User Create--password-prompt Nova
ADD the admin
role to the nova
User:
OpenStack role Add--project service--user Nova Admin
Create the nova
service entity:
OpenStack Service Create- name Nova"OpenStack Compute" Compute
4.Create the Compute service API endpoint:
OpenStack Endpoint Create --publicurl http://controller:8774/v2/%\ (tenant_id\) s \ --internalurl http:// Controller:8774/v2/%\ (tenant_id\) s \ --adminurl http://controller:8774/v2/%\ (tenant_id\) s \ --RegionRegionone Compute
Ii. toInstall and configure Compute controllers components
1.Install the Packages:
Yum Install openstack-nova-api openstack-nova-cert openstack-nova-conductor OpenStack- Nova-console openstack-nova-novncproxy openstack-nova-Scheduler python-novaclient
2.Edit the file and complete the /etc/nova/nova.conf
following actions:
ADD a section [database]
, and configure database access:
= MySQL://nova:[email Protected]/nova
Replace NOVA_DBPASS
with the password-chose for the Compute database.
[DEFAULT]
[oslo_messaging_rabbit]
in the and sections, configure RabbitMQ message queue access:
= = = = Rabbit_pass
Replace RABBIT_PASS
with the password your chose for the account in openstack
RabbitMQ.
[DEFAULT]
[keystone_authtoken]
in the and sections, configure Identity service access:
== http://controller:5000auth_url = http://controller:35357auth_ Plugin == = = == Nova_pass
Replace NOVA_PASS
with the password your chose for the nova
user in the Identity service.
Note: Comment out or remove any other options in the section [keystone_authtoken]
.
[DEFAULT]
in the sections, configure the option to use the my_ip
management interface IP address of the controller node:
10.0. 0.11
[DEFAULT]
in the sections, configure the VNC proxy to use the management interface IP address of the controller node:
10.0. 0.11 10.0. 0.11
[glance]
in the sections, configure the location of the Image service:
= Controller
[oslo_concurrency]
in the section, configure the lock path:
=/var/lib/nova/tmp
(Optional) To assist with troubleshooting, enable verbose logging in the section [DEFAULT]
:
= True
3.Populate the Compute database:
su -s/bin/sh"nova-manage db sync" Nova
To finalize Installation
Start the Compute services and configure them to start when the system boots:
Systemctl Enable Openstack-nova-api.service openstack-nova-cert.service OpenStack- Nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.servicesystemctl start OpenStack-nova-api.service openstack-nova- Cert.service OpenStack-nova-consoleauth.service openstack-nova-scheduler.service OpenStack -nova-conductor.service Openstack-nova-novncproxy.service
Openstack (Kilo) installation series Nova (vii)