Neutron related configurations corrected

* Add required subsystems to basic-neutron and basic-all
  personas for nova/neutron components.
* Correct neutron related configurations to make sure
  all required nova/neutron components are started
  successfully.

Change-Id: Ia4a43b7e8ce48f15a3f651891a08f27dd85bd00b
This commit is contained in:
Stanislav Kudriashev 2013-11-08 17:25:04 +02:00 committed by Ivan A. Melnikov
parent 09e9727251
commit 93049be89d
6 changed files with 9 additions and 22 deletions

View File

@ -37,7 +37,8 @@ class L3Configurator(neutron_plugins.Configurator):
plugin_conf.add("admin_tenant_name", params["service_tenant"]) plugin_conf.add("admin_tenant_name", params["service_tenant"])
plugin_conf.add("auth_url", params["endpoints"]["admin"]["uri"]) plugin_conf.add("auth_url", params["endpoints"]["admin"]["uri"])
plugin_conf.add("root_helper", "sudo neutron-rootwrap /etc/neutron/rootwrap.conf") plugin_conf.add("root_helper", "sudo neutron-rootwrap /etc/neutron/rootwrap.conf")
plugin_conf.add("use_namespaces", "False") plugin_conf.add("use_namespaces", self.installer.get_option("use_namespaces",
default_value=True))
plugin_conf.add("debug", "False") plugin_conf.add("debug", "False")
plugin_conf.add("verbose", "True") plugin_conf.add("verbose", "True")
self.setup_rpc(plugin_conf, rpc_backends=MQ_BACKENDS) self.setup_rpc(plugin_conf, rpc_backends=MQ_BACKENDS)

View File

@ -255,20 +255,8 @@ class NovaConfigurator(base.Configurator):
nova_conf.add("neutron_auth_strategy", "keystone") nova_conf.add("neutron_auth_strategy", "keystone")
nova_conf.add("neutron_admin_tenant_name", params['service_tenant']) nova_conf.add("neutron_admin_tenant_name", params['service_tenant'])
nova_conf.add("neutron_url", params['neutron']['endpoints']['admin']['uri']) nova_conf.add("neutron_url", params['neutron']['endpoints']['admin']['uri'])
libvirt_vif_drivers = { nova_conf.add("libvirt_vif_driver",
"linuxbridge": "nova.virt.libvirt.vif.NeutronLinuxBridgeVIFDriver", "nova.virt.libvirt.vif.LibvirtGenericVIFDriver")
"openvswitch": "nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver",
}
# FIXME(aababilov): error on KeyError
nova_conf.add(
"libvirt_vif_driver",
libvirt_vif_drivers[self.installer.get_option('neutron-core-plugin')])
# FIXME(aababilov): add for linuxbridge:
nova_conf.add("libvirt_vif_type", "ethernet")
nova_conf.add("connection_type", "libvirt")
nova_conf.add("neutron_use_dhcp",
self.installer.get_bool_option('neutron-use-dhcp'))
def _configure_cells(self, nova_conf): def _configure_cells(self, nova_conf):
cells_enabled = self.installer.get_bool_option('enable-cells') cells_enabled = self.installer.get_bool_option('enable-cells')

View File

@ -7,6 +7,7 @@ api_port: 9696
protocol: http protocol: http
core_plugin: openvswitch core_plugin: openvswitch
use_namespaces: True
network_vlan_ranges: physnet1:100:299 network_vlan_ranges: physnet1:100:299
physical_interface_mappings: physnet1:100:299 physical_interface_mappings: physnet1:100:299

View File

@ -33,7 +33,6 @@ options:
enable-spice: false enable-spice: false
local-conductor: false local-conductor: false
mq-type: rabbit mq-type: rabbit
neutron-core-plugin: linuxbridge
neutron-enabled: true neutron-enabled: true
glance: glance:
db-sync: true db-sync: true
@ -60,13 +59,13 @@ subsystems:
- api - api
- cert - cert
- compute - compute
- consoleauth - conductor
- scheduler - scheduler
- xvpvncproxy
neutron: neutron:
- server - server
- agent - agent
- l3-agent - l3-agent
- dhcp-agent
cinder: cinder:
- api - api
- scheduler - scheduler

View File

@ -26,7 +26,6 @@ options:
enable-spice: false enable-spice: false
local-conductor: false local-conductor: false
mq-type: rabbit mq-type: rabbit
neutron-core-plugin: linuxbridge
neutron-enabled: true neutron-enabled: true
glance: glance:
db-sync: true db-sync: true
@ -51,13 +50,13 @@ subsystems:
- api - api
- cert - cert
- compute - compute
- consoleauth - conductor
- scheduler - scheduler
- xvpvncproxy
neutron: neutron:
- server - server
- agent - agent
- l3-agent - l3-agent
- dhcp-agent
cinder: cinder:
- api - api
- scheduler - scheduler

View File

@ -34,7 +34,6 @@ options:
enable-spice: false enable-spice: false
local-conductor: false local-conductor: false
neutron-enabled: true neutron-enabled: true
neutron-core-plugin: linuxbridge
glance: glance:
db-sync: true db-sync: true
load-images: true load-images: true