7.1 nova计算节点

wKioL1hZMSjQJ1jWAAH86ltdncc924.png-wh_50

wKioL1hZMS2QyLlLAALaO_mxy_c754.png-wh_50

wKiom1hZMTSSNQ4hAAO2wZRVMd4810.png-wh_50


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:5000
auth_url = http://192.168.56.11:35357
memcached_servers = 192.168.56.11:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
lock_path=/var/lib/nova/tmp #【oslo_concurrency】模块  配置锁路径
enabled = True
vncserver_listen = 0.0.0.0 #vnclisten  【vnc】模块
vncserver_proxyclient_address = 192.168.56.11
novncproxy_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
+-------------+-------------+----------+