Water's Home

Just another Life Style

0%

Compute --- Nova

Install Compute

[root@compute ~]# yum install openstack-selinux python-openstackclient yum-plugin-priorities openstack-nova-compute openstack-utils -y

Configure Nova

[root@compute ~]# cp /etc/nova/nova.conf /etc/nova/nova.conf.bak
[root@compute ~]# openstack-config –set /etc/nova/nova.conf DEFAULT auth_strategy keystone
[root@compute ~]# openstack-config –set /etc/nova/nova.conf DEFAULT my_ip 10.1.1.62
[root@compute ~]# openstack-config –set /etc/nova/nova.conf DEFAULT use_neutron True
[root@compute ~]# openstack-config –set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver
[root@compute ~]# openstack-config –set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:password@controller
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken auth_uri http://controller:5000
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken auth_url http://controller:35357
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken memcached_servers controller:11211
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken auth_type password
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken project_domain_name default
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken user_domain_name default
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken project_name service
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken username nova
[root@compute ~]# openstack-config –set /etc/nova/nova.conf keystone_authtoken password password
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement auth_uri http://controller:5000
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement auth_url http://controller:35357
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement memcached_servers controller:11211
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement auth_type password
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement project_domain_name default
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement user_domain_name default
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement project_name service
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement username placement
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement password password
[root@compute ~]# openstack-config –set /etc/nova/nova.conf placement os_region_name RegionOne
[root@compute ~]# openstack-config –set /etc/nova/nova.conf vnc enabled True
[root@compute ~]# openstack-config –set /etc/nova/nova.conf vnc keymap en-us
[root@compute ~]# openstack-config –set /etc/nova/nova.conf vnc vncserver_listen 0.0.0.0
[root@compute ~]# openstack-config –set /etc/nova/nova.conf vnc vncserver_proxyclient_address 10.1.1.62
[root@compute ~]# openstack-config –set /etc/nova/nova.conf vnc novncproxy_base_url http://9.1.1.61:6080/vnc\_auto.html
[root@compute ~]# openstack-config –set /etc/nova/nova.conf glance api_servers http://controller:9292
[root@compute ~]# openstack-config –set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp
[root@compute ~]# openstack-config –set /etc/nova/nova.conf libvirt virt_type qemu
[root@compute ~]# openstack-config –set /etc/nova/nova.conf libvirt cpu_mode none

Start Compute Service

[root@compute ~]# systemctl enable libvirtd.service openstack-nova-compute.service
[root@compute ~]# systemctl restart libvirtd.service openstack-nova-compute.service
[root@compute ~]# systemctl status libvirtd.service openstack-nova-compute.service

List Compute Service(Do it on Controller)

[root@controller ~]# source /root/admin-openrc
[root@controller ~]# openstack compute service list