7.1 nova计算节点

7.2 nova计算节点的安装

yum install openstack-nova-compute

7.3 修改nova的配置文件

[root@linux-node2 ~]# grep -E "^[a-Z]"  /etc/nova/nova.conf auth_strategy=keystone  #开启keystone认证 【DEFAULT】模块my_ip=192.168.56.11  #计算节点上的管理网络接口的IP【DEFAULT】模块use_neutron=false      #使用neutron网络 【DEFAULT】模块enabled_apis=osapi_compute,metadata #只启用计算和元数据API 【DEFAULT】模块firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver #去除 Compute 内置的防火墙服务。【DEFAULT】模块transport_url=rabbit://openstack:openstack@192.168.56.11 #[DEFAULT] 消息队列api_servers= #【】keystone_authtoken】auth_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 = serviceusername = novapassword = novalock_path=/var/lib/nova/tmp #【oslo_concurrency】模块  配置锁路径enabled = Truevncserver_listen = 0.0.0.0 #vnclisten  【vnc】模块vncserver_proxyclient_address = 192.168.56.11novncproxy_base_url =  #控制节点的地址

7.3 控制节点验证

[root@linux-node1 ~]# openstack host  list+-------------+-------------+----------+| Host Name   | Service     | Zone     |+-------------+-------------+----------+| linux-node1 | consoleauth | internal || linux-node1 | conductor   | internal || linux-node1 | scheduler   | internal || linux-node2 | compute     | nova     |  #OK+-------------+-------------+----------+