A. Nova Environment
Reference Document: Http://www.aboutyun.com/thread-13089-1-1.html
Http://docs.openstack.org/mitaka/install-guide-ubuntu/nova-controller-install.html
1. Create a Nova database and authorize
mysql -u root -pCREATE DATABASE nova;
- Authorization (self-setting password, connect database with, my Nova)
GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘localhost‘ IDENTIFIED BY ‘NOVA_PASS‘;GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘%‘ IDENTIFIED BY ‘NOVA_PASS‘;
exit
2. Effective admin username
source admin-openrc.sh
3. Create a certification service
openstack user create --password-prompt novaUser Password:(我的设置nova)Repeat User Password:+-----------+----------------------------------+| Field | Value |+-----------+----------------------------------+| domain_id | e0353a670a9e496da891347c589539e9 || enabled | True || id | 8c46e4760902464b889293a74a0c90a8 || name | nova |+-----------+----------------------------------+
- Add Admin role to Nova user
openstackroleadd--projectservice--usernovaadmin
- Create a Nova service instance
openstack service create --name nova --description "OpenStack Compute" compute +-------------+----------------------------------+| Field | Value |+-------------+----------------------------------+| description | OpenStack Compute || enabled | True || id | 060d59eac51b4594815603d75a00aba2 || name | nova || type | compute |+-------------+----------------------------------+
- Create the Nova 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 \--region regionone compute+--------------+-----------------------------------------+| Field | Value |+--------------+-----------------------------------------+| Adminurl |http://controller:8774/v2/%\ (tenant_id\) s|| ID |3c1caa473bfe4390a11e7177894bcc7b || InternalUrl |http://controller:8774/v2/%\ (tenant_id\) s|| Publicurl |http://controller:8774/v2/%\ (tenant_id\) s|| region_id | Regionone || service_id |e702f6f497ed42e6a8ae3ba2e5871c78 || service_name |nova || Service_type |compute |+--------------+-----------------------------------------+
Two. Install Nova
1. Control node
- Installing the Nova Package
apt-get install nova-api nova-cert nova-conductor nova-consoleauth nova-novncproxy nova-scheduler python-novaclient-y
- Modifying a configuration file
Vim/etc/nova/nova.conf[default]verbose= TrueRpc_backend= RabbitAuth_strategy= Keystone#使用控制节点管理网络ip地址配置my_ipmy_ip= 10.0.0.11#使用控制节点管理网络ip地址配置 VNC Proxy (I don't know what it is)Vncserver_listen= 10.0.0.11vncserver_proxyclient_address= 10.0.0.11[database]Connection= Mysql://nova:nova_dbpass (Nova's database password) @controller/nova[oslo_messaging_rabbit]#配置RabbitMQ Message Queuing serviceRabbit_host= ControllerRabbit_userid= OpenStackRabbit_password= Rabbit_pass (password for created message middleware password, mine for 123) [Keystone_authtoken]Auth_uri= http://controller:5000Auth_url= http://controller:35357Auth_plugin= passwordproject_domain_id= Defaultuser_domain_id= DefaultProject_Name= Serviceusername= NovaPassword= Nova_pass (my password is NOVA) [glance]# Configure mirror service locationHost= Controller[oslo_concurrency]Lock_path=/var/lib/nova/tmp
- Synchronize the database (after synchronization, you can see whether the database exists in the table, there is a success, there is no indication that SQLite database is not deleted, after the synchronization rm-f/var/lib/nova/nova.sqlite)
-s-c"nova-manage db sync" nova
- Restarting the Nova Service
service nova-api restartservice nova-cert restartservice nova-consoleauth restartservice nova-scheduler restartservice nova-conductor restartservice nova-novncproxy restart
2. COMPUTE nodes
- Installing the Nova Package
apt-get install nova-compute-y
- Modifying a configuration file
Vim/etc/nova/nova.conf[default]verbose= TrueRpc_backend= RabbitAuth_strategy= Keystone#MANAGEMENT_INTERFACE_IP_ADDRESS这里是计算节点管理网络ip地址 10.0.0.31 (see your settings)my_ip= Management_interface_ip_address#启用和配置remote console access (unknown)vnc_enabled= TrueVncserver_listen= 0.0.0.0vncserver_proxyclient_address= Management_interface_ip_address (that is, compute node Management network IP address, I am 10.0.0.31)Novncproxy_base_url= http://controller:6080/vnc_auto.html (console display, can be written as an IP address if the controller cannot be resolved) [Oslo_messaging_rabbit]#配置RabbitMQ Message Queuing serviceRabbit_host= ControllerRabbit_userid= OpenStackRabbit_password= Rabbit_pass (password for created message middleware password, mine for 123) [Keystone_authtoken]Auth_uri= http://controller:5000Auth_url= http://controller:35357Auth_plugin= passwordproject_domain_id= Defaultuser_domain_id= DefaultProject_Name= Serviceusername= NovaPassword= Nova_pass (my password is NOVA) [glance]# Configure mirror service locationHost= Controller[oslo_concurrency]Lock_path=/var/lib/nova/tmp
- See if compute nodes support virtual machine hardware acceleration
‘(vmx|svm)‘ /proc/cpuinfo
If the output is 0, the
vim /etc/nova/nova-compute.conf[libvirt]...virt_type = qemu
- Restart Service (delete SQLite database, rm-f/var/lib/nova/nova.sqlite)
service nova-compute restart
Three. Verifying the installation (Control node)
- Load Environment variables
source admin-openrc.sh
- See if each service component is up
nova service-list +--+----------------+----------+--------+-------+-----+----------------------------+|Id| Binary | Host |Zone |Status |State| Updated At |+--+----------------+----------+--------+-------+-----+----------------------------+| 1|nova-consoleauth|controller|internal|enabled|up | 2016-02-09T23:11:15.000000 || 2|nova-scheduler |controller|internal|enabled|up | 2016-02-09T23:11:15.000000 || 3|nova-conductor |controller|internal|enabled|up | 2016-02-09T23:11:16.000000 || 4|nova-compute |compute1 |nova |enabled|up | 2016-02-09T23:11:20.000000 |+--+----------------+----------+--------+-------+-----+----------------------------+
nova image-list
Note: Previously built, can run, if there are some questions written above, thank you for pointing out.
First write here, now the error should be gone, and then add something else.
Ubuntu Build OpenStack Platform (Kilo) (four. Nova)