回复 7# zhanghao001122 没有使用multi-host模式,只在控制节点1上安装了nova-network服务,计算节点没有安装nova-network服务。详细看nova.conf配置文件
控制节点:
[DEFAULT]
# LOGS
verbose=True
debug=False
logdir=/var/log/nova
# STATE
auth_strategy=keystone
state_path=/var/lib/nova
lock_path=/run/lock/nova
rootwrap_config=/etc/nova/rootwrap.conf
# PASTE FILE
api_paste_config=/etc/nova/api-paste.ini
# RABBIT
rabbit_host=127.0.0.1
rabbit_port=5672
rpc_backend = nova.openstack.common.rpc.impl_kombu
rabbit_userid=guest
rabbit_password=guest
# SCHEDULER
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
# NETWORK
network_manager=nova.network.manager.FlatDHCPManager
force_dhcp_release=True
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
my_ip=110.1.20.21
public_interface=br100
vlan_interface=p1p1
flat_network_bridge=br100
flat_interface=p1p1
dnsmasq_config_file=/etc/nova/dnsmasq-nova.conf
fixed_range=''
enable_ipv6=False
metadata_host=127.0.0.1
# GLANCE
image_service=nova.image.glance.GlanceImageService
glance_api_servers=110.1.20.21:9292
glance_host=110.1.20.21
# CINDER
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
snapshot_image_format=qcow2
iscsi_helper=tgtadm
# COMPUTE
network_api_class = nova.network.api.API
security_group_api = nova
compute_manager=nova.compute.manager.ComputeManager
connection_type=libvirt
compute_driver=libvirt.LibvirtDriver
libvirt_type=kvm
libvirt_inject_key=false
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
remove_unused_base_images=true
remove_unused_resized_minimum_age_seconds=3600
remove_unused_original_minimum_age_seconds=3600
checksum_base_images=false
start_guests_on_host_boot=true
resume_guests_state_on_host_boot=true
volumes_path=/var/lib/nova/volumes
# QUOTAS
quota_security_groups=50
quota_fixed_ips=40
quota_instances=20
force_config_drive=false
cpu_allocation_ratio=16.0
ram_allocation_ratio=1.5
# KEYSTONE
keystone_ec2_url=http://110.1.20.21:5000/v2.0/ec2tokens
# VNC CONFIG
my_ip=110.1.20.21
novnc_enabled=true
novncproxy_base_url=http://110.1.20.21:6080/vnc_auto.html
xvpvncproxy_base_url=http://110.1.20.21:6081/console
novncproxy_host=110.1.20.21
novncproxy_port=6080
vncserver_listen=110.1.20.21
vncserver_proxyclient_address=110.1.20.21
# OTHER
osapi_max_limit=1000
# APIs
enabled_apis=ec2,osapi_compute,metadata
osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions
ec2_workers=4
osapi_compute_workers=4
metadata_workers=4
osapi_volume_workers=4
osapi_compute_listen=110.1.20.21
osapi_compute_listen_port=8774
ec2_listen=110.1.20.21
ec2_listen_port=8773
ec2_host=110.1.20.21
ec2_private_dns_show_ip=True
[database]
connection = mysql://nova:novapw@110.1.20.21/nova
[keystone_authtoken]
auth_uri =
http://110.1.20.21:5000auth_host = 110.1.20.21
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = novapw
计算节点
[DEFAULT]
# LOGS
verbose=True
debug=False
logdir=/var/log/nova
# STATE
auth_strategy=keystone
state_path=/var/lib/nova
lock_path=/run/lock/nova
rootwrap_config=/etc/nova/rootwrap.conf
# PASTE FILE
api_paste_config=/etc/nova/api-paste.ini
# RABBIT
rabbit_host=110.1.20.21
rabbit_port=5672
rpc_backend = nova.openstack.common.rpc.impl_kombu
rabbit_userid=guest
rabbit_password=guest
# SCHEDULER
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
# NETWORK
# network_manager=nova.network.manager.FlatDHCPManager
# force_dhcp_release=True
# dhcpbridge_flagfile=/etc/nova/nova.conf
# dhcpbridge=/usr/bin/nova-dhcpbridge
# firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
# my_ip=p1p1
# public_interface=br100
# vlan_interface=p1p1
# flat_network_bridge=br100
# flat_interface=p1p1
# dnsmasq_config_file=/etc/nova/dnsmasq-nova.conf
# enable_ipv6=False
# GLANCE
image_service=nova.image.glance.GlanceImageService
glance_api_servers=110.1.20.21:9292
glance_host=110.1.20.21
# CINDER
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
snapshot_image_format=qcow2
iscsi_helper=tgtadm
# COMPUTE
network_api_class = nova.network.api.API
security_group_api = nova
compute_manager=nova.compute.manager.ComputeManager
connection_type=libvirt
compute_driver=libvirt.LibvirtDriver
libvirt_type=kvm
libvirt_inject_key=false
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
remove_unused_base_images=true
remove_unused_resized_minimum_age_seconds=3600
remove_unused_original_minimum_age_seconds=3600
checksum_base_images=false
start_guests_on_host_boot=true
resume_guests_state_on_host_boot=true
volumes_path=/var/lib/nova/volumes
# QUOTAS
quota_security_groups=50
quota_fixed_ips=40
quota_instances=20
force_config_drive=false
cpu_allocation_ratio=16.0
ram_allocation_ratio=1.5
# KEYSTONE
keystone_ec2_url=http://110.1.20.21:5000/v2.0/ec2tokens
# VNC CONFIG
my_ip=110.1.20.22
novnc_enabled=true
novncproxy_base_url=http://110.1.20.21:6080/vnc_auto.html
xvpvncproxy_base_url=http://110.1.20.21:6081/console
novncproxy_host=110.1.20.22
novncproxy_port=6080
vncserver_listen=110.1.20.22
vncserver_proxyclient_address=110.1.20.22
# OTHER
osapi_max_limit=1000
# APIs
enabled_apis=ec2,osapi_compute,metadata
osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions
ec2_workers=4
osapi_compute_workers=4
metadata_workers=4
osapi_volume_workers=4
osapi_compute_listen=p1p1
osapi_compute_listen_port=8774
ec2_listen=p1p1
ec2_listen_port=8773
ec2_host=p1p1
ec2_private_dns_show_ip=True
[database]
connection = mysql://nova:novapw@110.1.20.21/nova
[keystone_authtoken]
auth_uri =
http://110.1.20.21:5000auth_host = 110.1.20.21
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = novapw