Support neutron configuration

Since in OpenStack Havana release the Quantum project was renamed to the
Neutron, for the cookbooks we also need do the same things to support
the Neutron. I do the %s/Quantum/Neutron/g in all the files under
cookbook-openstack-netwrok. It will effect other cookbooks:
openstack-compute, openstack-ops-database which should be covered in
others patches.

Implemented: blueprint neutron-support

Change-Id: I59f3f2d8dfad678f70b97d4cbc4e10dfa163e9b2
This commit is contained in:
gengjh
2013-11-25 16:09:26 +08:00
parent 91c3df304a
commit 6cda0639c3
61 changed files with 536 additions and 533 deletions

View File

@@ -2,6 +2,9 @@
This file is used to list changes made in each version of cookbook-openstack-network. This file is used to list changes made in each version of cookbook-openstack-network.
## 8.0.0:
* Support neutron deployment by search and replace quantum with neutron
## 7.1.1 ## 7.1.1
* fixing rpc_backend for qpid * fixing rpc_backend for qpid

View File

@@ -1,7 +1,7 @@
Description Description
=========== ===========
This cookbook installs the **OpenStack Network** service (formerly project-named Quantum) This cookbook installs the **OpenStack Network** service (formerly project-named Quantum, current name is Neutron)
as part of a Chef reference deployment of OpenStack. as part of a Chef reference deployment of OpenStack.
More information about the OpenStack Network service is available More information about the OpenStack Network service is available
@@ -84,7 +84,7 @@ Templates
========= =========
* `api-paste.ini.erb` - Paste config for OpenStack Network server * `api-paste.ini.erb` - Paste config for OpenStack Network server
* `quantum.conf.erb` - Config file for OpenStack Network server * `neutron.conf.erb` - Config file for OpenStack Network server
* `policy.json.erb` - Configuration of ACLs for glance API server * `policy.json.erb` - Configuration of ACLs for glance API server
Testing Testing

View File

@@ -29,9 +29,9 @@ default["openstack"]["network"]["debug"] = "False"
# Gets set in the Network Endpoint when registering with Keystone # Gets set in the Network Endpoint when registering with Keystone
default["openstack"]["network"]["region"] = "RegionOne" default["openstack"]["network"]["region"] = "RegionOne"
default["openstack"]["network"]["service_user"] = "quantum" default["openstack"]["network"]["service_user"] = "neutron"
default["openstack"]["network"]["service_role"] = "admin" default["openstack"]["network"]["service_role"] = "admin"
default["openstack"]["network"]["service_name"] = "quantum" default["openstack"]["network"]["service_name"] = "neutron"
default["openstack"]["network"]["service_type"] = "network" default["openstack"]["network"]["service_type"] = "network"
default["openstack"]["network"]["description"] = "OpenStack Networking service" default["openstack"]["network"]["description"] = "OpenStack Networking service"
@@ -46,8 +46,8 @@ default["openstack"]["network"]["rabbit"]["port"] = 5672
default["openstack"]["network"]["rabbit"]["host"] = "127.0.0.1" default["openstack"]["network"]["rabbit"]["host"] = "127.0.0.1"
default["openstack"]["network"]["rabbit"]["ha"] = false default["openstack"]["network"]["rabbit"]["ha"] = false
# The database username for the quantum database # The database username for the neutron database
default["openstack"]["network"]["db"]["username"] = "quantum" default["openstack"]["network"]["db"]["username"] = "neutron"
# Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size, # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
# sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled. # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
@@ -71,7 +71,7 @@ default['openstack']['network']['db']['sql_idle_timeout'] = 3600
# Used in the Keystone authtoken middleware configuration # Used in the Keystone authtoken middleware configuration
default["openstack"]["network"]["service_tenant_name"] = "service" default["openstack"]["network"]["service_tenant_name"] = "service"
default["openstack"]["network"]["service_user"] = "quantum" default["openstack"]["network"]["service_user"] = "neutron"
default["openstack"]["network"]["service_role"] = "admin" default["openstack"]["network"]["service_role"] = "admin"
# The maximum number of seconds we will wait for an agent to checkin # The maximum number of seconds we will wait for an agent to checkin
@@ -81,12 +81,12 @@ default["openstack"]["network"]["api"]["agent"]["agent_down_time"] = 15
default["openstack"]["network"]["api"]["agent"]["agent_report_interval"] = 4 default["openstack"]["network"]["api"]["agent"]["agent_report_interval"] = 4
# The agent signing directory for api server # The agent signing directory for api server
default["openstack"]["network"]["api"]["agent"]["signing_dir"] = "/var/lib/quantum/keystone-signing" default["openstack"]["network"]["api"]["agent"]["signing_dir"] = "/var/lib/neutron/keystone-signing"
# Keystone PKI signing directory. # Keystone PKI signing directory.
default["openstack"]["network"]["api"]["auth"]["cache_dir"] = "/var/cache/quantum/api" default["openstack"]["network"]["api"]["auth"]["cache_dir"] = "/var/cache/neutron/api"
# If bind_interface is set, the quantum API service will bind to the # If bind_interface is set, the neutron API service will bind to the
# address on this interface and use the port in bind_port. Otherwise, # address on this interface and use the port in bind_port. Otherwise,
# it will bind to the API endpoint's host. # it will bind to the API endpoint's host.
default["openstack"]["network"]["api"]["bind_interface"] = nil default["openstack"]["network"]["api"]["bind_interface"] = nil
@@ -116,12 +116,12 @@ default["openstack"]["network"]["mq"]["qpid"]["tcp_nodelay"] = true
default["openstack"]["network"]["syslog"]["use"] = false default["openstack"]["network"]["syslog"]["use"] = false
# The driver for Quota management in Neutron. Possible values: # The driver for Quota management in Neutron. Possible values:
# quantum.quota.ConfDriver (default) # neutron.quota.ConfDriver (default)
# quantum.quota.DbDriver # neutron.quota.DbDriver
# #
# Note: set this to the DbDriver if you want to be able to update # Note: set this to the DbDriver if you want to be able to update
# quotas for networks/subnets/security groups! # quotas for networks/subnets/security groups!
default["openstack"]["network"]["quota"]["driver"] = "quantum.quota.ConfDriver" default["openstack"]["network"]["quota"]["driver"] = "neutron.quota.ConfDriver"
# default quotas will be used when no more specific tenant entry exists # default quotas will be used when no more specific tenant entry exists
# when using the DBDriver - override them below to adjust the default # when using the DBDriver - override them below to adjust the default
@@ -159,31 +159,31 @@ default["openstack"]["network"]["quota"]["security_group_rule"] = 100
# or nicira plugins are crashing the sdn routers # or nicira plugins are crashing the sdn routers
default['openstack']['network']['disable_offload'] = false default['openstack']['network']['disable_offload'] = false
# configure quantum ha tool installation parameters # configure neutron ha tool installation parameters
default["openstack"]["network"]["quantum_ha_cmd_cron"] = false default["openstack"]["network"]["neutron_ha_cmd_cron"] = false
default["openstack"]["network"]["quantum_ha_cmd"] = "/usr/local/bin/quantum-ha-tool.py" default["openstack"]["network"]["neutron_ha_cmd"] = "/usr/local/bin/neutron-ha-tool.py"
default["openstack"]["network"]["cron_l3_healthcheck"] = "*/1" default["openstack"]["network"]["cron_l3_healthcheck"] = "*/1"
default["openstack"]["network"]["cron_replicate_dhcp"] = "*/1" default["openstack"]["network"]["cron_replicate_dhcp"] = "*/1"
# the plugins to install on the server. this will be # the plugins to install on the server. this will be
# quantum-plugin-%plugin% and the first plugin in the # neutron-plugin-%plugin% and the first plugin in the
# list should match the core plugin below # list should match the core plugin below
# N.B. this will be ignored on SUSE as all plugins are installed by # N.B. this will be ignored on SUSE as all plugins are installed by
# default by the main openstack-quantum package # default by the main openstack-neutron package
default["openstack"]["network"]["plugins"] = ['openvswitch', 'openvswitch-agent' ] default["openstack"]["network"]["plugins"] = ['openvswitch', 'openvswitch-agent' ]
# the core plugin to use for quantum # the core plugin to use for neutron
default["openstack"]["network"]["core_plugin"] = "quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2" default["openstack"]["network"]["core_plugin"] = "neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2"
# The bridging interface driver. # The bridging interface driver.
# #
# Options are: # Options are:
# #
# - quantum.agent.linux.interface.OVSInterfaceDriver # - neutron.agent.linux.interface.OVSInterfaceDriver
# - quantum.agent.linux.interface.BridgeInterfaceDriver # - neutron.agent.linux.interface.BridgeInterfaceDriver
# #
default["openstack"]["network"]["interface_driver"] = 'quantum.agent.linux.interface.OVSInterfaceDriver' default["openstack"]["network"]["interface_driver"] = 'neutron.agent.linux.interface.OVSInterfaceDriver'
# maps the above driver to a plugin name # maps the above driver to a plugin name
default["openstack"]["network"]["interface_driver_map"] = { default["openstack"]["network"]["interface_driver_map"] = {
@@ -192,13 +192,13 @@ default["openstack"]["network"]["interface_driver_map"] = {
} }
default["openstack"]["network"]["plugin_conf_map"] = { default["openstack"]["network"]["plugin_conf_map"] = {
'ovsinterfacedriver' => 'openvswitch/ovs_quantum_plugin.ini', 'ovsinterfacedriver' => 'openvswitch/ovs_neutron_plugin.ini',
'bridgeinterfacedriver' => 'linuxbridge/linuxbridge_conf.ini' 'bridgeinterfacedriver' => 'linuxbridge/linuxbridge_conf.ini'
} }
# The agent can use other DHCP drivers. Dnsmasq is the simplest and requires # The agent can use other DHCP drivers. Dnsmasq is the simplest and requires
# no additional setup of the DHCP server. # no additional setup of the DHCP server.
default["openstack"]["network"]["dhcp_driver"] = 'quantum.agent.linux.dhcp.Dnsmasq' default["openstack"]["network"]["dhcp_driver"] = 'neutron.agent.linux.dhcp.Dnsmasq'
# Use namespaces and optionally allow overlapping IPs. You # Use namespaces and optionally allow overlapping IPs. You
# must enable namespaces to use overlapping ips. Also, # must enable namespaces to use overlapping ips. Also,
@@ -207,13 +207,13 @@ default["openstack"]["network"]["dhcp_driver"] = 'quantum.agent.linux.dhcp.Dnsma
default["openstack"]["network"]["use_namespaces"] = "True" default["openstack"]["network"]["use_namespaces"] = "True"
default["openstack"]["network"]["allow_overlapping_ips"] = "False" default["openstack"]["network"]["allow_overlapping_ips"] = "False"
# use quantum root wrap # use neutron root wrap
default["openstack"]["network"]["use_rootwrap"] = true default["openstack"]["network"]["use_rootwrap"] = true
# ============================= DHCP Agent Configuration =================== # ============================= DHCP Agent Configuration ===================
# The scheduler class to use for scheduling to DHCP agents # The scheduler class to use for scheduling to DHCP agents
default["openstack"]["network"]["dhcp"]["scheduler"] = "quantum.scheduler.dhcp_agent_scheduler.ChanceScheduler" default["openstack"]["network"]["dhcp"]["scheduler"] = "neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler"
# Override the default mtu setting given to virtual machines # Override the default mtu setting given to virtual machines
# to 1454 to allow for tunnel and other encapsulation overhead. You # to 1454 to allow for tunnel and other encapsulation overhead. You
@@ -221,7 +221,7 @@ default["openstack"]["network"]["dhcp"]["scheduler"] = "quantum.scheduler.dhcp_a
# of the default guest MTU. # of the default guest MTU.
default["openstack"]["network"]["dhcp"]["dhcp-option"] = "26,1454" default["openstack"]["network"]["dhcp"]["dhcp-option"] = "26,1454"
# Number of seconds between sync of DHCP agent with Quantum API server # Number of seconds between sync of DHCP agent with Neutron API server
default["openstack"]["network"]["dhcp"]["resync_interval"] = 5 default["openstack"]["network"]["dhcp"]["resync_interval"] = 5
# OVS based plugins(Ryu, NEC, NVP, BigSwitch/Floodlight) that use OVS # OVS based plugins(Ryu, NEC, NVP, BigSwitch/Floodlight) that use OVS
@@ -237,7 +237,7 @@ default["openstack"]["network"]["dhcp"]["enable_isolated_metadata"] = "False"
# Allows for serving metadata requests coming from a dedicated metadata # Allows for serving metadata requests coming from a dedicated metadata
# access network whose cidr is 169.254.169.254/16 (or larger prefix), and # access network whose cidr is 169.254.169.254/16 (or larger prefix), and
# is connected to a Quantum router from which the VMs send metadata # is connected to a Neutron router from which the VMs send metadata
# request. In this case DHCP Option 121 will not be injected in VMs, as # request. In this case DHCP Option 121 will not be injected in VMs, as
# they will be able to reach 169.254.169.254 through a router. # they will be able to reach 169.254.169.254 through a router.
# This option requires enable_isolated_metadata = True # This option requires enable_isolated_metadata = True
@@ -284,7 +284,7 @@ default["openstack"]["network"]["dhcp"]["default_domain"] = "openstacklocal"
# ============================= L3 Agent Configuration ===================== # ============================= L3 Agent Configuration =====================
# The scheduler class to use for scheduling routers to L3 agents # The scheduler class to use for scheduling routers to L3 agents
default["openstack"]["network"]["l3"]["scheduler"] = "quantum.scheduler.l3_agent_scheduler.ChanceScheduler" default["openstack"]["network"]["l3"]["scheduler"] = "neutron.scheduler.l3_agent_scheduler.ChanceScheduler"
# If use_namespaces is set as False then the agent can only configure one router. # If use_namespaces is set as False then the agent can only configure one router.
# This is done by setting the specific router_id. # This is done by setting the specific router_id.
@@ -298,7 +298,7 @@ default["openstack"]["network"]["l3"]["gateway_external_network_id"] = nil
# Indicates that this L3 agent should also handle routers that do not have # Indicates that this L3 agent should also handle routers that do not have
# an external network gateway configured. This option should be True only # an external network gateway configured. This option should be True only
# for a single agent in a Quantum deployment, and may be False for all agents # for a single agent in a Neutron deployment, and may be False for all agents
# if all routers must have an external network gateway # if all routers must have an external network gateway
default["openstack"]["network"]["l3"]["handle_internal_only_routers"] = "True" default["openstack"]["network"]["l3"]["handle_internal_only_routers"] = "True"
@@ -309,7 +309,7 @@ default["openstack"]["network"]["l3"]["external_network_bridge"] = "br-ex"
# Interface to use for external bridge. # Interface to use for external bridge.
default["openstack"]["network"]["l3"]["external_network_bridge_interface"] = "eth1" default["openstack"]["network"]["l3"]["external_network_bridge_interface"] = "eth1"
# TCP Port used by Quantum metadata server # TCP Port used by Neutron metadata server
default["openstack"]["network"]["l3"]["metadata_port"] = 9697 default["openstack"]["network"]["l3"]["metadata_port"] = 9697
# Send this many gratuitous ARPs for HA setup. Set it below or equal to 0 # Send this many gratuitous ARPs for HA setup. Set it below or equal to 0
@@ -330,18 +330,18 @@ default["openstack"]["network"]["metadata"]["nova_metadata_ip"] = "127.0.0.1"
default["openstack"]["network"]["metadata"]["nova_metadata_port"] = 8775 default["openstack"]["network"]["metadata"]["nova_metadata_port"] = 8775
# The name of the secret databag containing the metadata secret # The name of the secret databag containing the metadata secret
default["openstack"]["network"]["metadata"]["secret_name"] = "quantum_metadata_secret" default["openstack"]["network"]["metadata"]["secret_name"] = "neutron_metadata_secret"
# ============================= LBaaS Agent Configuration ================== # ============================= LBaaS Agent Configuration ==================
# Enable or disable quantum loadbalancer # Enable or disable neutron loadbalancer
default["openstack"]["network"]["quantum_loadbalancer"] = false default["openstack"]["network"]["neutron_loadbalancer"] = false
# Plugin configuration path # Plugin configuration path
default["openstack"]["network"]["lbaas_config_path"] = "/etc/quantum/plugins/services/agent_loadbalancer" default["openstack"]["network"]["lbaas_config_path"] = "/etc/neutron/plugins/services/agent_loadbalancer"
# Number of seconds between sync of LBaaS agent with Quantum API server # Number of seconds between sync of LBaaS agent with Neutron API server
default["openstack"]["network"]["lbaas"]["periodic_interval"] = 10 default["openstack"]["network"]["lbaas"]["periodic_interval"] = 10
# Set lbaas plugin # Set lbaas plugin
@@ -417,8 +417,8 @@ default["openstack"]["network"]["openvswitch"]["local_ip_interface"] = nil
# Example: bridge_mappings = physnet1:br-eth1 # Example: bridge_mappings = physnet1:br-eth1
default["openstack"]["network"]["openvswitch"]["bridge_mappings"] = nil default["openstack"]["network"]["openvswitch"]["bridge_mappings"] = nil
# Firewall driver for realizing quantum security group function # Firewall driver for realizing neutron security group function
default["openstack"]["network"]["openvswitch"]["fw_driver"] = "quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver" default["openstack"]["network"]["openvswitch"]["fw_driver"] = "neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver"
# The newest version of OVS which comes with 12.04 Precise is 1.4.0 # The newest version of OVS which comes with 12.04 Precise is 1.4.0
# Which is legacy. Should we compile a newer version from source? # Which is legacy. Should we compile a newer version from source?
@@ -523,10 +523,10 @@ default["openstack"]["network"]["brocade"]["physical_interface_mappings"] = ""
# ============================= Cisco Plugin Configuration ================= # ============================= Cisco Plugin Configuration =================
# The module and class name path for the nexus plugin # The module and class name path for the nexus plugin
default["openstack"]["network"]["cisco"]["nexus_plugin"] = "quantum.plugins.cisco.nexus.cisco_nexus_plugin_v2.NexusPlugin" default["openstack"]["network"]["cisco"]["nexus_plugin"] = "neutron.plugins.cisco.nexus.cisco_nexus_plugin_v2.NexusPlugin"
# The module and class name path for the vswitch plugin # The module and class name path for the vswitch plugin
default["openstack"]["network"]["cisco"]["vswitch_plugin"] = "quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2" default["openstack"]["network"]["cisco"]["vswitch_plugin"] = "neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2"
# Start of the tenant VLAN range # Start of the tenant VLAN range
default["openstack"]["network"]["cisco"]["vlan_start"] = 100 default["openstack"]["network"]["cisco"]["vlan_start"] = 100
@@ -546,13 +546,13 @@ default["openstack"]["network"]["cisco"]["max_port_profiles"] = 65568
default["openstack"]["network"]["cisco"]["max_networks"] = 65568 default["openstack"]["network"]["cisco"]["max_networks"] = 65568
# Module and class path for switch model # Module and class path for switch model
default["openstack"]["network"]["cisco"]["model_class"] = "quantum.plugins.cisco.models.virt_phy_sw_v2.VirtualPhysicalSwitchModelV2" default["openstack"]["network"]["cisco"]["model_class"] = "neutron.plugins.cisco.models.virt_phy_sw_v2.VirtualPhysicalSwitchModelV2"
# Module and class path for VLAN network manager # Module and class path for VLAN network manager
default["openstack"]["network"]["cisco"]["manager_class"] = "quantum.plugins.cisco.segmentation.l2network_vlan_mgr_v2.L2NetworkVLANMgr" default["openstack"]["network"]["cisco"]["manager_class"] = "neutron.plugins.cisco.segmentation.l2network_vlan_mgr_v2.L2NetworkVLANMgr"
# Module and class path for the Nexus driver # Module and class path for the Nexus driver
default["openstack"]["network"]["cisco"]["nexus_driver"] = "quantum.plugins.cisco.tests.unit.v2.nexus.fake_nexus_driver.CiscoNEXUSFakeDriver" default["openstack"]["network"]["cisco"]["nexus_driver"] = "neutron.plugins.cisco.tests.unit.v2.nexus.fake_nexus_driver.CiscoNEXUSFakeDriver"
# For each Nexus switch, add a hash to the # For each Nexus switch, add a hash to the
# node["openstack"]["network"]["cisco"]["nexus_switches"] Hash, # node["openstack"]["network"]["cisco"]["nexus_switches"] Hash,
@@ -626,10 +626,10 @@ default["openstack"]["network"]["hyperv"]["local_network_vswitch"] = "private"
# ============================= Metaplugin Plugin Configuration ============ # ============================= Metaplugin Plugin Configuration ============
## This is list of flavor:quantum_plugins ## This is list of flavor:neutron_plugins
# extension method is used in the order of this list # extension method is used in the order of this list
default["openstack"]["network"]["metaplugin"]["plugin_list"] = "openvswitch:quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2,linuxbridge:quantum.plugins.linuxbridge.lb_quantum_plugin.LinuxBridgePluginV2" default["openstack"]["network"]["metaplugin"]["plugin_list"] = "openvswitch:neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2,linuxbridge:neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2"
default["openstack"]["network"]["metaplugin"]["l3_plugin_list"] = "openvswitch:quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2,linuxbridge:quantum.plugins.linuxbridge.lb_quantum_plugin.LinuxBridgePluginV2" default["openstack"]["network"]["metaplugin"]["l3_plugin_list"] = "openvswitch:neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2,linuxbridge:neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2"
# Default "flavor" for L2 and L3 # Default "flavor" for L2 and L3
default["openstack"]["network"]["metaplugin"]["default_flavor"] = "openvswitch" default["openstack"]["network"]["metaplugin"]["default_flavor"] = "openvswitch"
@@ -667,14 +667,14 @@ default["openstack"]["network"]["nec"]["integration_bridge"] = "br-int"
# Agent's polling interval in seconds # Agent's polling interval in seconds
default["openstack"]["network"]["nec"]["polling_interval"] = 2 default["openstack"]["network"]["nec"]["polling_interval"] = 2
# Firewall driver for realizing quantum security group function # Firewall driver for realizing neutron security group function
default["openstack"]["network"]["nec"]["firewall_driver"] = "quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver" default["openstack"]["network"]["nec"]["firewall_driver"] = "neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver"
# Specify OpenFlow Controller Host, Port and Driver to connect. # Specify OpenFlow Controller Host, Port and Driver to connect.
default["openstack"]["network"]["nec"]["ofc_host"] = "127.0.0.1" default["openstack"]["network"]["nec"]["ofc_host"] = "127.0.0.1"
default["openstack"]["network"]["nec"]["ofc_port"] = 8888 default["openstack"]["network"]["nec"]["ofc_port"] = 8888
# Drivers are in quantum/plugins/nec/drivers/ . # Drivers are in neutron/plugins/nec/drivers/ .
default["openstack"]["network"]["nec"]["ofc_driver"] = "trema" default["openstack"]["network"]["nec"]["ofc_driver"] = "trema"
# PacketFilter is available when it's enabled in this configuration # PacketFilter is available when it's enabled in this configuration
@@ -707,7 +707,7 @@ default["openstack"]["network"]["nicira"]["redirects"] = 2
default["openstack"]["network"]["nicira"]["nvp_controllers"] = "xx.yy.zz.ww:443, aa.bb.cc.dd, ee.ff.gg.hh.ee:80" default["openstack"]["network"]["nicira"]["nvp_controllers"] = "xx.yy.zz.ww:443, aa.bb.cc.dd, ee.ff.gg.hh.ee:80"
# UUID of the pre-existing default NVP Transport zone to be used for creating # UUID of the pre-existing default NVP Transport zone to be used for creating
# tunneled isolated "Quantum" networks. This option MUST be specified, e.g.: # tunneled isolated "Neutron" networks. This option MUST be specified, e.g.:
default["openstack"]["network"]["nicira"]["default_tz_uuid"] = "1e8e52cf-fa7f-46b0-a14a-f99835a9cb53" default["openstack"]["network"]["nicira"]["default_tz_uuid"] = "1e8e52cf-fa7f-46b0-a14a-f99835a9cb53"
# (Optional) UUID of the cluster in NVP. It can be retrieved from NVP management # (Optional) UUID of the cluster in NVP. It can be retrieved from NVP management
@@ -741,7 +741,7 @@ default["openstack"]["network"]["nicira"]["concurrent_connections"] = 3
# Acceptable values for 'metadata_mode' are: # Acceptable values for 'metadata_mode' are:
# - 'access_network': this enables a dedicated connection to the metadata # - 'access_network': this enables a dedicated connection to the metadata
# proxy for metadata server access via Quantum router. # proxy for metadata server access via Neutron router.
# - 'dhcp_host_route': this enables host route injection via the dhcp agent. # - 'dhcp_host_route': this enables host route injection via the dhcp agent.
# This option is only useful if running on a host that does not support # This option is only useful if running on a host that does not support
# namespaces otherwise access_network should be used. # namespaces otherwise access_network should be used.
@@ -802,8 +802,8 @@ default["openstack"]["network"]["ryu"]["ovsdb_port"] = 6634
default["openstack"]["network"]["ryu"]["ovsdb_ip"] = "" default["openstack"]["network"]["ryu"]["ovsdb_ip"] = ""
default["openstack"]["network"]["ryu"]["ovsdb_interface"] = "eth0" default["openstack"]["network"]["ryu"]["ovsdb_interface"] = "eth0"
# Firewall driver for realizing quantum security group function # Firewall driver for realizing neutron security group function
default["openstack"]["network"]["ryu"]["firewall_driver"] = "quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver" default["openstack"]["network"]["ryu"]["firewall_driver"] = "neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver"
# Agent's polling interval in seconds # Agent's polling interval in seconds
default["openstack"]["network"]["ryu"]["polling_interval"] = 2 default["openstack"]["network"]["ryu"]["polling_interval"] = 2
@@ -812,87 +812,87 @@ default["openstack"]["network"]["ryu"]["polling_interval"] = 2
case platform case platform
when "fedora", "redhat", "centos" # :pragma-foodcritic: ~FC024 - won't fix this when "fedora", "redhat", "centos" # :pragma-foodcritic: ~FC024 - won't fix this
default["openstack"]["network"]["platform"] = { default["openstack"]["network"]["platform"] = {
"user" => "quantum", "user" => "neutron",
"group" => "quantum", "group" => "neutron",
"mysql_python_packages" => [ "MySQL-python" ], "mysql_python_packages" => [ "MySQL-python" ],
"postgresql_python_packages" => ["python-psycopg2"], "postgresql_python_packages" => ["python-psycopg2"],
"nova_network_packages" => [ "openstack-nova-network" ], "nova_network_packages" => [ "openstack-nova-network" ],
"quantum_packages" => [ "openstack-quantum" ], "neutron_packages" => [ "openstack-neutron" ],
"quantum_client_packages" => [], "neutron_client_packages" => [],
"quantum_dhcp_packages" => [ "openstack-quantum" ], "neutron_dhcp_packages" => [ "openstack-neutron" ],
"quantum_dhcp_build_packages" => [], "neutron_dhcp_build_packages" => [],
"quantum_l3_packages" => [ "quantum-l3-agent" ], "neutron_l3_packages" => [ "neutron-l3-agent" ],
"quantum_openvswitch_packages" => ["openvswitch"], "neutron_openvswitch_packages" => ["openvswitch"],
"quantum_openvswitch_agent_packages" => ["openstack-quantum-openvswitch-agent"], "neutron_openvswitch_agent_packages" => ["openstack-neutron-openvswitch-agent"],
"quantum_linuxbridge_agent_packages" => ["openstack-quantum-linuxbridge"], "neutron_linuxbridge_agent_packages" => ["openstack-neutron-linuxbridge"],
"quantum_metadata_agent_packages" => [], "neutron_metadata_agent_packages" => [],
"quantum_plugin_package" => "openstack-quantum-%plugin%", "neutron_plugin_package" => "openstack-neutron-%plugin%",
"quantum_server_packages" => [], "neutron_server_packages" => [],
"quantum_dhcp_agent_service" => "quantum-dhcp-agent", "neutron_dhcp_agent_service" => "neutron-dhcp-agent",
"quantum_l3_agent_service" => "quantum-l3-agent", "neutron_l3_agent_service" => "neutron-l3-agent",
"quantum_metadata_agent_service" => "quantum-metadata-agent", "neutron_metadata_agent_service" => "neutron-metadata-agent",
"quantum_openvswitch_service" => "openvswitch", "neutron_openvswitch_service" => "openvswitch",
"quantum_openvswitch_agent_service" => "openstack-quantum-openvswitch-agent", "neutron_openvswitch_agent_service" => "openstack-neutron-openvswitch-agent",
"quantum_linuxbridge_agent_service" => "quantum-linuxbridge-agent", "neutron_linuxbridge_agent_service" => "neutron-linuxbridge-agent",
"quantum_server_service" => "quantum-server", "neutron_server_service" => "neutron-server",
"package_overrides" => "" "package_overrides" => ""
} }
when "suse" when "suse"
default["openstack"]["network"]["platform"] = { default["openstack"]["network"]["platform"] = {
"user" => "openstack-quantum", "user" => "openstack-neutron",
"group" => "openstack-quantum", "group" => "openstack-neutron",
"mysql_python_packages" => ["python-mysql"], "mysql_python_packages" => ["python-mysql"],
"postgresql_python_packages" => ["python-psycopg2"], "postgresql_python_packages" => ["python-psycopg2"],
"nova_network_packages" => ["openstack-nova-network"], "nova_network_packages" => ["openstack-nova-network"],
"quantum_packages" => ["openstack-quantum"], "neutron_packages" => ["openstack-neutron"],
"quantum_client_packages" => [], "neutron_client_packages" => [],
"quantum_dhcp_packages" => ["openstack-quantum-dhcp-agent"], "neutron_dhcp_packages" => ["openstack-neutron-dhcp-agent"],
"quantum_dhcp_build_packages" => [], "neutron_dhcp_build_packages" => [],
"quantum_l3_packages" => ["openstack-quantum-l3-agent"], "neutron_l3_packages" => ["openstack-neutron-l3-agent"],
# plugins are installed by the main openstack-quantum package on SUSE # plugins are installed by the main openstack-neutron package on SUSE
"quantum_plugin_package" => "", "neutron_plugin_package" => "",
"quantum_metadata_agent_packages" => ["openstack-quantum-metadata-agent"], "neutron_metadata_agent_packages" => ["openstack-neutron-metadata-agent"],
"quantum_openvswitch_packages" => ["openvswitch-switch"], "neutron_openvswitch_packages" => ["openvswitch-switch"],
"quantum_openvswitch_agent_packages" => ["openstack-quantum-openvswitch-agent"], "neutron_openvswitch_agent_packages" => ["openstack-neutron-openvswitch-agent"],
"quantum_linuxbridge_agent_packages" => ["openstack-quantum-linuxbridge-agent"], "neutron_linuxbridge_agent_packages" => ["openstack-neutron-linuxbridge-agent"],
"quantum_metadata_agent_packages" => ["openstack-quantum-metadata-agent"], "neutron_metadata_agent_packages" => ["openstack-neutron-metadata-agent"],
"quantum_server_packages" => [], "neutron_server_packages" => [],
"quantum_dhcp_agent_service" => "openstack-quantum-dhcp-agent", "neutron_dhcp_agent_service" => "openstack-neutron-dhcp-agent",
"quantum_l3_agent_service" => "openstack-quantum-l3-agent", "neutron_l3_agent_service" => "openstack-neutron-l3-agent",
"quantum_metadata_agent_service" => "openstack-quantum-metadata-agent", "neutron_metadata_agent_service" => "openstack-neutron-metadata-agent",
"quantum_openvswitch_service" => "openvswitch-switch", "neutron_openvswitch_service" => "openvswitch-switch",
"quantum_openvswitch_agent_service" => "openstack-quantum-openvswitch-agent", "neutron_openvswitch_agent_service" => "openstack-neutron-openvswitch-agent",
"quantum_linuxbridge_agent_service" => "openstack-quantum-linuxbridge-agent", "neutron_linuxbridge_agent_service" => "openstack-neutron-linuxbridge-agent",
"quantum_server_service" => "openstack-quantum", "neutron_server_service" => "openstack-neutron",
"package_overrides" => "" "package_overrides" => ""
} }
when "ubuntu" when "ubuntu"
default["openstack"]["network"]["platform"] = { default["openstack"]["network"]["platform"] = {
"user" => "quantum", "user" => "neutron",
"group" => "quantum", "group" => "neutron",
"mysql_python_packages" => [ "python-mysqldb" ], "mysql_python_packages" => [ "python-mysqldb" ],
"postgresql_python_packages" => [ "python-psycopg2" ], "postgresql_python_packages" => [ "python-psycopg2" ],
"nova_network_packages" => [ "nova-network" ], "nova_network_packages" => [ "nova-network" ],
"quantum_lb_packages" => ["quantum-lbaas-agent", "haproxy"], "neutron_lb_packages" => ["neutron-lbaas-agent", "haproxy"],
"quantum_packages" => [ "quantum-common", "python-pyparsing", "python-cliff" ], "neutron_packages" => [ "neutron-common", "python-pyparsing", "python-cliff" ],
"quantum_client_packages" => [ "python-quantumclient", "python-pyparsing" ], "neutron_client_packages" => [ "python-neutronclient", "python-pyparsing" ],
"quantum_dhcp_packages" => [ "quantum-dhcp-agent" ], "neutron_dhcp_packages" => [ "neutron-dhcp-agent" ],
"quantum_dhcp_build_packages" => [ "build-essential", "pkg-config", "libidn11-dev", "libdbus-1-dev", "libnetfilter-conntrack-dev", "gettext" ], "neutron_dhcp_build_packages" => [ "build-essential", "pkg-config", "libidn11-dev", "libdbus-1-dev", "libnetfilter-conntrack-dev", "gettext" ],
"quantum_l3_packages" => [ "quantum-l3-agent" ], "neutron_l3_packages" => [ "neutron-l3-agent" ],
"quantum_openvswitch_packages" => [ "openvswitch-switch", "openvswitch-datapath-dkms", "bridge-utils" ], "neutron_openvswitch_packages" => [ "openvswitch-switch", "openvswitch-datapath-dkms", "bridge-utils" ],
"quantum_openvswitch_build_packages" => [ "build-essential", "pkg-config", "fakeroot", "libssl-dev", "openssl", "debhelper", "autoconf", "dkms", "python-all", "python-qt4", "python-zopeinterface", "python-twisted-conch" ], "neutron_openvswitch_build_packages" => [ "build-essential", "pkg-config", "fakeroot", "libssl-dev", "openssl", "debhelper", "autoconf", "dkms", "python-all", "python-qt4", "python-zopeinterface", "python-twisted-conch" ],
"quantum_openvswitch_agent_packages" => [ "quantum-plugin-openvswitch", "quantum-plugin-openvswitch-agent" ], "neutron_openvswitch_agent_packages" => [ "neutron-plugin-openvswitch", "neutron-plugin-openvswitch-agent" ],
"quantum_linuxbridge_agent_packages" => [ "quantum-plugin-linuxbridge", "quantum-plugin-linuxbridge-agent" ], "neutron_linuxbridge_agent_packages" => [ "neutron-plugin-linuxbridge", "neutron-plugin-linuxbridge-agent" ],
"quantum_metadata_agent_packages" => [ "quantum-metadata-agent" ], "neutron_metadata_agent_packages" => [ "neutron-metadata-agent" ],
"quantum_plugin_package" => "quantum-plugin-%plugin%", "neutron_plugin_package" => "neutron-plugin-%plugin%",
"quantum_server_packages" => ["quantum-server"], "neutron_server_packages" => ["neutron-server"],
"quantum_dhcp_agent_service" => "quantum-dhcp-agent", "neutron_dhcp_agent_service" => "neutron-dhcp-agent",
"quantum_l3_agent_service" => "quantum-l3-agent", "neutron_l3_agent_service" => "neutron-l3-agent",
"quantum_metadata_agent_service" => "quantum-metadata-agent", "neutron_metadata_agent_service" => "neutron-metadata-agent",
"quantum_openvswitch_service" => "openvswitch-switch", "neutron_openvswitch_service" => "openvswitch-switch",
"quantum_openvswitch_agent_service" => "quantum-plugin-openvswitch-agent", "neutron_openvswitch_agent_service" => "neutron-plugin-openvswitch-agent",
"quantum_linuxbridge_agent_service" => "quantum-plugin-linuxbridge-agent", "neutron_linuxbridge_agent_service" => "neutron-plugin-linuxbridge-agent",
"quantum_server_service" => "quantum-server", "neutron_server_service" => "neutron-server",
"package_overrides" => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'" "package_overrides" => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'"
} }
end end

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user
@@ -14,7 +14,7 @@ dnsmasq: DnsmasqFilter, /sbin/dnsmasq, root
dnsmasq_usr: DnsmasqFilter, /usr/sbin/dnsmasq, root dnsmasq_usr: DnsmasqFilter, /usr/sbin/dnsmasq, root
# dhcp-agent uses kill as well, that's handled by the generic KillFilter # dhcp-agent uses kill as well, that's handled by the generic KillFilter
# it looks like these are the only signals needed, per # it looks like these are the only signals needed, per
# quantum/agent/linux/dhcp.py # neutron/agent/linux/dhcp.py
kill_dnsmasq: KillFilter, root, /sbin/dnsmasq, -9, -HUP kill_dnsmasq: KillFilter, root, /sbin/dnsmasq, -9, -HUP
kill_dnsmasq_usr: KillFilter, root, /usr/sbin/dnsmasq, -9, -HUP kill_dnsmasq_usr: KillFilter, root, /usr/sbin/dnsmasq, -9, -HUP
@@ -26,10 +26,10 @@ ovs-vsctl_sbin: CommandFilter, /sbin/ovs-vsctl, root
ovs-vsctl_sbin_usr: CommandFilter, /usr/sbin/ovs-vsctl, root ovs-vsctl_sbin_usr: CommandFilter, /usr/sbin/ovs-vsctl, root
# metadata proxy # metadata proxy
metadata_proxy: CommandFilter, /usr/bin/quantum-ns-metadata-proxy, root metadata_proxy: CommandFilter, /usr/bin/neutron-ns-metadata-proxy, root
# If installed from source (say, by devstack), the prefix will be # If installed from source (say, by devstack), the prefix will be
# /usr/local instead of /usr/bin. # /usr/local instead of /usr/bin.
metadata_proxy_local: CommandFilter, /usr/local/bin/quantum-ns-metadata-proxy, root metadata_proxy_local: CommandFilter, /usr/local/bin/neutron-ns-metadata-proxy, root
kill_metadata7: KillFilter, root, /usr/bin/python2.7, -9 kill_metadata7: KillFilter, root, /usr/bin/python2.7, -9
kill_metadata6: KillFilter, root, /usr/bin/python2.6, -9 kill_metadata6: KillFilter, root, /usr/bin/python2.6, -9

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user
@@ -8,14 +8,14 @@
[Filters] [Filters]
# quantum/agent/linux/iptables_manager.py # neutron/agent/linux/iptables_manager.py
# "iptables-save", ... # "iptables-save", ...
iptables-save: CommandFilter, /sbin/iptables-save, root iptables-save: CommandFilter, /sbin/iptables-save, root
iptables-restore: CommandFilter, /sbin/iptables-restore, root iptables-restore: CommandFilter, /sbin/iptables-restore, root
ip6tables-save: CommandFilter, /sbin/ip6tables-save, root ip6tables-save: CommandFilter, /sbin/ip6tables-save, root
ip6tables-restore: CommandFilter, /sbin/ip6tables-restore, root ip6tables-restore: CommandFilter, /sbin/ip6tables-restore, root
# quantum/agent/linux/iptables_manager.py # neutron/agent/linux/iptables_manager.py
# "iptables", "-A", ... # "iptables", "-A", ...
iptables: CommandFilter, /sbin/iptables, root iptables: CommandFilter, /sbin/iptables, root
ip6tables: CommandFilter, /sbin/ip6tables, root ip6tables: CommandFilter, /sbin/ip6tables, root

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user
@@ -17,10 +17,10 @@ sysctl: CommandFilter, /sbin/sysctl, root
route: CommandFilter, /sbin/route, root route: CommandFilter, /sbin/route, root
# metadata proxy # metadata proxy
metadata_proxy: CommandFilter, /usr/bin/quantum-ns-metadata-proxy, root metadata_proxy: CommandFilter, /usr/bin/neutron-ns-metadata-proxy, root
# If installed from source (say, by devstack), the prefix will be # If installed from source (say, by devstack), the prefix will be
# /usr/local instead of /usr/bin. # /usr/local instead of /usr/bin.
metadata_proxy_local: CommandFilter, /usr/local/bin/quantum-ns-metadata-proxy, root metadata_proxy_local: CommandFilter, /usr/local/bin/neutron-ns-metadata-proxy, root
kill_metadata7: KillFilter, root, /usr/bin/python2.7, -9 kill_metadata7: KillFilter, root, /usr/bin/python2.7, -9
kill_metadata6: KillFilter, root, /usr/bin/python2.6, -9 kill_metadata6: KillFilter, root, /usr/bin/python2.6, -9

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user
@@ -8,7 +8,7 @@
[Filters] [Filters]
# nec_quantum_agent # nec_neutron_agent
ovs-vsctl: CommandFilter, /bin/ovs-vsctl, root ovs-vsctl: CommandFilter, /bin/ovs-vsctl, root
ovs-vsctl_usr: CommandFilter, /usr/bin/ovs-vsctl, root ovs-vsctl_usr: CommandFilter, /usr/bin/ovs-vsctl, root
ovs-vsctl_sbin: CommandFilter, /sbin/ovs-vsctl, root ovs-vsctl_sbin: CommandFilter, /sbin/ovs-vsctl, root

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user

View File

@@ -1,4 +1,4 @@
# quantum-rootwrap command filters for nodes on which quantum is # neutron-rootwrap command filters for nodes on which neutron is
# expected to control network # expected to control network
# #
# This file should be owned by (and only-writeable by) the root user # This file should be owned by (and only-writeable by) the root user
@@ -12,14 +12,14 @@
# unclear whether both variants are necessary, but I'm transliterating # unclear whether both variants are necessary, but I'm transliterating
# from the old mechanism # from the old mechanism
# quantum/plugins/ryu/agent/ryu_quantum_agent.py: # neutron/plugins/ryu/agent/ryu_neutron_agent.py:
# "ovs-vsctl", "--timeout=2", ... # "ovs-vsctl", "--timeout=2", ...
ovs-vsctl: CommandFilter, /bin/ovs-vsctl, root ovs-vsctl: CommandFilter, /bin/ovs-vsctl, root
ovs-vsctl_usr: CommandFilter, /usr/bin/ovs-vsctl, root ovs-vsctl_usr: CommandFilter, /usr/bin/ovs-vsctl, root
ovs-vsctl_sbin: CommandFilter, /sbin/ovs-vsctl, root ovs-vsctl_sbin: CommandFilter, /sbin/ovs-vsctl, root
ovs-vsctl_sbin_usr: CommandFilter, /usr/sbin/ovs-vsctl, root ovs-vsctl_sbin_usr: CommandFilter, /usr/sbin/ovs-vsctl, root
# quantum/plugins/ryu/agent/ryu_quantum_agent.py: # neutron/plugins/ryu/agent/ryu_neutron_agent.py:
# "xe", "vif-param-get", ... # "xe", "vif-param-get", ...
xe: CommandFilter, /bin/xe, root xe: CommandFilter, /bin/xe, root
xe_usr: CommandFilter, /usr/bin/xe, root xe_usr: CommandFilter, /usr/bin/xe, root

View File

@@ -27,12 +27,12 @@ import time
from logging.handlers import SysLogHandler from logging.handlers import SysLogHandler
from collections import OrderedDict from collections import OrderedDict
from random import choice from random import choice
from quantumclient.quantum import client from neutronclient.neutron import client
LOG = logging.getLogger('quantum-ha-tool') LOG = logging.getLogger('neutron-ha-tool')
LOG_FORMAT='%(asctime)s %(name)-12s %(levelname)-8s %(message)s' LOG_FORMAT='%(asctime)s %(name)-12s %(levelname)-8s %(message)s'
LOG_DATE = '%m-%d %H:%M' LOG_DATE = '%m-%d %H:%M'
DESCRIPTION = "Quantum High Availability Tool" DESCRIPTION = "neutron High Availability Tool"
TAKEOVER_DELAY = int(random.random()*30+30) TAKEOVER_DELAY = int(random.random()*30+30)
@@ -102,14 +102,14 @@ def l3_agent_rebalance(qclient, noop=False):
on each l3 agent will be as close as possible which should help on each l3 agent will be as close as possible which should help
distribute load as new l3 agents come online. distribute load as new l3 agents come online.
:param qclient: A quantumclient :param qclient: A neutronclient
:param noop: Optional noop flag :param noop: Optional noop flag
""" """
# {u'binary': u'quantum-l3-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:23', u'alive': True, u'topic': # {u'binary': u'neutron-l3-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:23', u'alive': True, u'topic':
# u'l3_agent', u'host': u'o3r3.int.san3.attcompute.com', u'agent_type': u'L3 agent', u'created_at': u'2013-07-02 14:50:58', u'started_at': u'2013-07-02 18:00:55', # u'l3_agent', u'host': u'o3r3.int.san3.attcompute.com', u'agent_type': u'L3 agent', u'created_at': u'2013-07-02 14:50:58', u'started_at': u'2013-07-02 18:00:55',
# u'id': u'6efe494a-616c-41ea-9c8f-2c592f4d46ff', u'configurations': {u'router_id': u'', u'gateway_external_network_id': u'', u'handle_internal_only_routers': True, # u'id': u'6efe494a-616c-41ea-9c8f-2c592f4d46ff', u'configurations': {u'router_id': u'', u'gateway_external_network_id': u'', u'handle_internal_only_routers': True,
# u'use_namespaces': True, u'routers': 5, u'interfaces': 3, u'floating_ips': 9, u'interface_driver': u'quantum.agent.linux.interface.OVSInterfaceDriver', u'ex_gw_ports': 3}}, # u'use_namespaces': True, u'routers': 5, u'interfaces': 3, u'floating_ips': 9, u'interface_driver': u'neutron.agent.linux.interface.OVSInterfaceDriver', u'ex_gw_ports': 3}},
l3_agent_dict={} l3_agent_dict={}
agents = list_agents(qclient, agent_type='L3 agent') agents = list_agents(qclient, agent_type='L3 agent')
@@ -162,7 +162,7 @@ def l3_agent_check(qclient, noop=False):
Walk the l3 agents searching for agents that are offline. Show routers Walk the l3 agents searching for agents that are offline. Show routers
that are offline and where we would migrate them too. that are offline and where we would migrate them too.
:param qclient: A quantumclient :param qclient: A neutronclient
:param noop: Optional noop flag :param noop: Optional noop flag
""" """
@@ -196,7 +196,7 @@ def l3_agent_migrate(qclient, noop=False):
offline, we will retrieve a list of routers on them and migrate them to a offline, we will retrieve a list of routers on them and migrate them to a
random l3 agent that is online. random l3 agent that is online.
:param qclient: A quantumclient :param qclient: A neutronclient
:param noop: Optional noop flag :param noop: Optional noop flag
""" """
@@ -256,7 +256,7 @@ def replicate_dhcp(qclient, noop=False):
Retrieve a network list and then probe each DHCP agent to ensure they have that Retrieve a network list and then probe each DHCP agent to ensure they have that
network assigned. network assigned.
:param qclient: A quantumclient :param qclient: A neutronclient
:param noop: Optional noop flag :param noop: Optional noop flag
""" """
@@ -287,13 +287,13 @@ def migrate_router(qclient, router_id, agent_id, target_id):
""" """
Returns nothing, and raises on exception Returns nothing, and raises on exception
:param qclient: A quantumclient :param qclient: A neutronclient
:param router_id: The id of the router to migrate :param router_id: The id of the router to migrate
:param agent_id: The id of the l3 agent to migrate from :param agent_id: The id of the l3 agent to migrate from
:param target_id: The id of the l3 agent to migrate to :param target_id: The id of the l3 agent to migrate to
""" """
# N.B. The quantum API will return "success" even when there is a subsequent # N.B. The neutron API will return "success" even when there is a subsequent
# failure during the add or remove process so we must check to ensure the # failure during the add or remove process so we must check to ensure the
# router has been added or removed # router has been added or removed
@@ -318,7 +318,7 @@ def list_networks(qclient):
""" """
Return a list of network objects Return a list of network objects
:param qclient: A quantumclient :param qclient: A neutronclient
""" """
resp = qclient.list_networks() resp = qclient.list_networks()
@@ -329,7 +329,7 @@ def list_dhcp_agent_networks(qclient, agent_id):
""" """
Return a list of network ids assigned to a particular DHCP agent Return a list of network ids assigned to a particular DHCP agent
:param qclient: A quantumclient :param qclient: A neutronclient
:param agent_id: A DHCP agent id :param agent_id: A DHCP agent id
""" """
@@ -343,7 +343,7 @@ def list_routers(qclient):
""" """
Return a list of router objects Return a list of router objects
:param qclient: A quantumclient :param qclient: A neutronclient
# {'routers': [{u'status': u'ACTIVE', u'external_gateway_info': {u'network_id': u'b970297c-d80e-4527-86d7-e49d2da9fdef'}, u'name': u'router1', # {'routers': [{u'status': u'ACTIVE', u'external_gateway_info': {u'network_id': u'b970297c-d80e-4527-86d7-e49d2da9fdef'}, u'name': u'router1',
# u'admin_state_up': True, u'tenant_id': u'5603b97ee7f047ea999e25492c7fcb23', u'routes': [], u'id': u'0a122e5c-1623-412e-8c53-a1e21d1daff8'}, # u'admin_state_up': True, u'tenant_id': u'5603b97ee7f047ea999e25492c7fcb23', u'routes': [], u'id': u'0a122e5c-1623-412e-8c53-a1e21d1daff8'},
@@ -358,7 +358,7 @@ def list_routers_on_l3_agent(qclient, agent_id):
""" """
Return a list of router ids on an agent Return a list of router ids on an agent
:param qclient: A quantumclient :param qclient: A neutronclient
""" """
resp = qclient.list_routers_on_l3_agent(agent_id) resp = qclient.list_routers_on_l3_agent(agent_id)
@@ -369,27 +369,27 @@ def list_agents(qclient, agent_type=None):
""" """
Return a list of agent objects Return a list of agent objects
:param qclient: A quantumclient :param qclient: A neutronclient
# openvswitch # openvswitch
# #
# {u'agents': [{u'binary': u'quantum-openvswitch-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:25' # {u'agents': [{u'binary': u'neutron-openvswitch-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:25'
# u'alive': True, u'topic': u'N/A', u'host': u'o3r3.int.san3.attcompute.com', u'agent_type': u'Open vSwitch agent', u'created_at': u'2013-07-02 14:50:57', # u'alive': True, u'topic': u'N/A', u'host': u'o3r3.int.san3.attcompute.com', u'agent_type': u'Open vSwitch agent', u'created_at': u'2013-07-02 14:50:57',
# u'started_at': u'2013-07-02 14:50:57', u'id': u'3a577f1d-d86e-4f1a-a395-8d4c8e4df1e2', u'configurations': {u'devices': 10}}, # u'started_at': u'2013-07-02 14:50:57', u'id': u'3a577f1d-d86e-4f1a-a395-8d4c8e4df1e2', u'configurations': {u'devices': 10}},
# #
# dhcp # dhcp
# #
# {u'binary': u'quantum-dhcp-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:23', u'alive': True, # {u'binary': u'neutron-dhcp-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:23', u'alive': True,
# u'topic': u'dhcp_agent', u'host': u'o5r4.int.san3.attcompute.com', u'agent_type': u'DHCP agent', u'created_at': u'2013-06-26 16:21:02', u'started_at': # u'topic': u'dhcp_agent', u'host': u'o5r4.int.san3.attcompute.com', u'agent_type': u'DHCP agent', u'created_at': u'2013-06-26 16:21:02', u'started_at':
# u'2013-06-28 13:32:52', u'id': u'3e8be28e-05a0-472b-9288-a59f8d8d2271', u'configurations': {u'subnets': 4, u'use_namespaces': True, u'dhcp_driver': # u'2013-06-28 13:32:52', u'id': u'3e8be28e-05a0-472b-9288-a59f8d8d2271', u'configurations': {u'subnets': 4, u'use_namespaces': True, u'dhcp_driver':
# u'quantum.agent.linux.dhcp.Dnsmasq', u'networks': 4, u'dhcp_lease_time': 120, u'ports': 38}}, # u'neutron.agent.linux.dhcp.Dnsmasq', u'networks': 4, u'dhcp_lease_time': 120, u'ports': 38}},
# #
# l3 # l3
# #
# {u'binary': u'quantum-l3-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:23', u'alive': True, u'topic': # {u'binary': u'neutron-l3-agent', u'description': None, u'admin_state_up': True, u'heartbeat_timestamp': u'2013-07-02 22:20:23', u'alive': True, u'topic':
# u'l3_agent', u'host': u'o3r3.int.san3.attcompute.com', u'agent_type': u'L3 agent', u'created_at': u'2013-07-02 14:50:58', u'started_at': u'2013-07-02 18:00:55', # u'l3_agent', u'host': u'o3r3.int.san3.attcompute.com', u'agent_type': u'L3 agent', u'created_at': u'2013-07-02 14:50:58', u'started_at': u'2013-07-02 18:00:55',
# u'id': u'6efe494a-616c-41ea-9c8f-2c592f4d46ff', u'configurations': {u'router_id': u'', u'gateway_external_network_id': u'', u'handle_internal_only_routers': True, # u'id': u'6efe494a-616c-41ea-9c8f-2c592f4d46ff', u'configurations': {u'router_id': u'', u'gateway_external_network_id': u'', u'handle_internal_only_routers': True,
# u'use_namespaces': True, u'routers': 5, u'interfaces': 3, u'floating_ips': 9, u'interface_driver': u'quantum.agent.linux.interface.OVSInterfaceDriver', u'ex_gw_ports': 3}}, # u'use_namespaces': True, u'routers': 5, u'interfaces': 3, u'floating_ips': 9, u'interface_driver': u'neutron.agent.linux.interface.OVSInterfaceDriver', u'ex_gw_ports': 3}},
""" """
resp = qclient.list_agents() resp = qclient.list_agents()

View File

@@ -3,7 +3,7 @@ maintainer "Jay Pipes <jaypipes@gmail.com>"
license "Apache 2.0" license "Apache 2.0"
description "Installs and configures the OpenStack Network API Service and various agents and plugins" description "Installs and configures the OpenStack Network API Service and various agents and plugins"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "7.1.1" version "8.0.0"
recipe "openstack-network::server", "Installs packages required for a OpenStack Network server" recipe "openstack-network::server", "Installs packages required for a OpenStack Network server"
recipe "openstack-network::openvswitch", "Installs packages required for OVS" recipe "openstack-network::openvswitch", "Installs packages required for OVS"
recipe "openstack-network::metadata_agent", "Installs packages required for a OpenStack Network Metadata Agent" recipe "openstack-network::metadata_agent", "Installs packages required for a OpenStack Network Metadata Agent"
@@ -13,7 +13,7 @@ recipe "openstack-network::identity_registration", "Registers OpenSta
supports os supports os
end end
depends "openstack-identity", "~> 7.0" depends "openstack-identity", "~> 8.0"
depends "openstack-common", "~> 0.4.0" depends "openstack-common", "~> 8.0"
depends "mysql" depends "mysql"
depends "postgresql" depends "postgresql"

View File

@@ -24,14 +24,14 @@
platform_options = node["openstack"]["network"]["platform"] platform_options = node["openstack"]["network"]["platform"]
service "quantum-server" do service "neutron-server" do
service_name platform_options["quantum_server_service"] service_name platform_options["neutron_server_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :nothing action :nothing
end end
platform_options["quantum_lb_packages"].each do |pkg| platform_options["neutron_lb_packages"].each do |pkg|
package pkg do package pkg do
action :install action :install
end end
@@ -46,5 +46,5 @@ end
template "#{node["openstack"]["network"]["lbaas_config_path"]}/lbaas_agent.ini" do template "#{node["openstack"]["network"]["lbaas_config_path"]}/lbaas_agent.ini" do
source "lbaas_agent.ini.erb" source "lbaas_agent.ini.erb"
notifies :restart, "service[quantum-server]", :immediately notifies :restart, "service[neutron-server]", :immediately
end end

View File

@@ -21,7 +21,7 @@
platform_options = node["openstack"]["network"]["platform"] platform_options = node["openstack"]["network"]["platform"]
platform_options["quantum_openvswitch_build_packages"].each do |pkg| platform_options["neutron_openvswitch_build_packages"].each do |pkg|
package pkg do package pkg do
action :install action :install
end end

View File

@@ -42,13 +42,13 @@ platform_options["nova_network_packages"].each do |pkg|
end end
end end
platform_options["quantum_packages"].each do |pkg| platform_options["neutron_packages"].each do |pkg|
package pkg do package pkg do
action :install action :install
end end
end end
directory "/etc/quantum/plugins" do directory "/etc/neutron/plugins" do
recursive true recursive true
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -56,7 +56,7 @@ directory "/etc/quantum/plugins" do
action :create action :create
end end
directory "/var/cache/quantum" do directory "/var/cache/neutron" do
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00700 mode 00700
@@ -72,28 +72,28 @@ directory ::File.dirname node["openstack"]["network"]["api"]["auth"]["cache_dir"
end end
# This will copy recursively all the files in # This will copy recursively all the files in
# /files/default/etc/quantum/rootwrap.d # /files/default/etc/neutron/rootwrap.d
remote_directory "/etc/quantum/rootwrap.d" do remote_directory "/etc/neutron/rootwrap.d" do
source "etc/quantum/rootwrap.d" source "etc/neutron/rootwrap.d"
files_owner node["openstack"]["network"]["platform"]["user"] files_owner node["openstack"]["network"]["platform"]["user"]
files_group node["openstack"]["network"]["platform"]["group"] files_group node["openstack"]["network"]["platform"]["group"]
files_mode 00700 files_mode 00700
end end
template "/etc/quantum/rootwrap.conf" do template "/etc/neutron/rootwrap.conf" do
source "rootwrap.conf.erb" source "rootwrap.conf.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
end end
template "/etc/quantum/policy.json" do template "/etc/neutron/policy.json" do
source "policy.json.erb" source "policy.json.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
if node["openstack"]["network"]["mq"]["service_type"] == "rabbitmq" if node["openstack"]["network"]["mq"]["service_type"] == "rabbitmq"
@@ -109,7 +109,7 @@ identity_admin_endpoint = endpoint "identity-admin"
auth_uri = ::URI.decode identity_endpoint.to_s auth_uri = ::URI.decode identity_endpoint.to_s
db_user = node["openstack"]["network"]["db"]["username"] db_user = node["openstack"]["network"]["db"]["username"]
db_pass = db_password "quantum" db_pass = db_password "neutron"
sql_connection = db_uri("network", db_user, db_pass) sql_connection = db_uri("network", db_user, db_pass)
api_endpoint = endpoint "network-api" api_endpoint = endpoint "network-api"
@@ -132,7 +132,7 @@ else
local_ip = address_for node["openstack"]["network"]["openvswitch"]["local_ip_interface"] local_ip = address_for node["openstack"]["network"]["openvswitch"]["local_ip_interface"]
end end
platform_options["quantum_client_packages"].each do |pkg| platform_options["neutron_client_packages"].each do |pkg|
package pkg do package pkg do
action :upgrade action :upgrade
options platform_options["package_overrides"] options platform_options["package_overrides"]
@@ -142,17 +142,17 @@ end
# all recipes include common.rb, and some servers # all recipes include common.rb, and some servers
# may just be running a subset of agents (like l3_agent) # may just be running a subset of agents (like l3_agent)
# and not the api server components, so we ignore restart # and not the api server components, so we ignore restart
# failures here as there may be no quantum-server process # failures here as there may be no neutron-server process
service "quantum-server" do service "neutron-server" do
service_name platform_options["quantum_server_service"] service_name platform_options["neutron_server_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
ignore_failure true ignore_failure true
action :nothing action :nothing
end end
template "/etc/quantum/quantum.conf" do template "/etc/neutron/neutron.conf" do
source "quantum.conf.erb" source "neutron.conf.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
@@ -166,10 +166,10 @@ template "/etc/quantum/quantum.conf" do
:service_pass => service_pass :service_pass => service_pass
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
template "/etc/quantum/api-paste.ini" do template "/etc/neutron/api-paste.ini" do
source "api-paste.ini.erb" source "api-paste.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -181,10 +181,10 @@ template "/etc/quantum/api-paste.ini" do
"service_pass" => service_pass "service_pass" => service_pass
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
directory "/etc/quantum/plugins/#{main_plugin}" do directory "/etc/neutron/plugins/#{main_plugin}" do
recursive true recursive true
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -192,7 +192,7 @@ directory "/etc/quantum/plugins/#{main_plugin}" do
end end
# For several plugins, the plugin configuration # For several plugins, the plugin configuration
# is required by both the quantum-server and # is required by both the neutron-server and
# ancillary services that may be on different # ancillary services that may be on different
# physical servers like the l3 agent, so we assume # physical servers like the l3 agent, so we assume
# the plugin configuration is a "common" file # the plugin configuration is a "common" file
@@ -202,8 +202,8 @@ template_file = nil
case main_plugin case main_plugin
when "bigswitch" when "bigswitch"
template_file = "/etc/quantum/plugins/bigswitch/restproxy.ini" template_file = "/etc/neutron/plugins/bigswitch/restproxy.ini"
template "/etc/quantum/plugins/bigswitch/restproxy.ini" do template "/etc/neutron/plugins/bigswitch/restproxy.ini" do
source "plugins/bigswitch/restproxy.ini.erb" source "plugins/bigswitch/restproxy.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -212,13 +212,13 @@ when "bigswitch"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "brocade" when "brocade"
template_file = "/etc/quantum/plugins/brocade/brocade.ini" template_file = "/etc/neutron/plugins/brocade/brocade.ini"
template "/etc/quantum/plugins/brocade/brocade.ini" do template "/etc/neutron/plugins/brocade/brocade.ini" do
source "plugins/brocade/brocade.ini.erb" source "plugins/brocade/brocade.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -227,13 +227,13 @@ when "brocade"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "cisco" when "cisco"
template_file = "/etc/quantum/plugins/cisco/cisco_plugins.ini" template_file = "/etc/neutron/plugins/cisco/cisco_plugins.ini"
template "/etc/quantum/plugins/cisco/cisco_plugins.ini" do template "/etc/neutron/plugins/cisco/cisco_plugins.ini" do
source "plugins/cisco/cisco_plugins.ini.erb" source "plugins/cisco/cisco_plugins.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -242,14 +242,14 @@ when "cisco"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "hyperv" when "hyperv"
template_file = "/etc/quantum/plugins/hyperv/hyperv_quantum_plugin.ini.erb" template_file = "/etc/neutron/plugins/hyperv/hyperv_neutron_plugin.ini.erb"
template "/etc/quantum/plugins/hyperv/hyperv_quantum_plugin.ini.erb" do template "/etc/neutron/plugins/hyperv/hyperv_neutron_plugin.ini.erb" do
source "plugins/hyperv/hyperv_quantum_plugin.ini.erb" source "plugins/hyperv/hyperv_neutron_plugin.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
@@ -257,13 +257,13 @@ when "hyperv"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "linuxbridge" when "linuxbridge"
template_file = "/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini" template_file = "/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini"
template "/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini" do template "/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini" do
source "plugins/linuxbridge/linuxbridge_conf.ini.erb" source "plugins/linuxbridge/linuxbridge_conf.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -272,13 +272,13 @@ when "linuxbridge"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "midonet" when "midonet"
template_file = "/etc/quantum/plugins/metaplugin/metaplugin.ini" template_file = "/etc/neutron/plugins/metaplugin/metaplugin.ini"
template "/etc/quantum/plugins/metaplugin/metaplugin.ini" do template "/etc/neutron/plugins/metaplugin/metaplugin.ini" do
source "plugins/metaplugin/metaplugin.ini.erb" source "plugins/metaplugin/metaplugin.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -287,13 +287,13 @@ when "midonet"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "nec" when "nec"
template_file = "/etc/quantum/plugins/nec/nec.ini" template_file = "/etc/neutron/plugins/nec/nec.ini"
template "/etc/quantum/plugins/nec/nec.ini" do template "/etc/neutron/plugins/nec/nec.ini" do
source "plugins/nec/nec.ini.erb" source "plugins/nec/nec.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -302,13 +302,13 @@ when "nec"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "nicira" when "nicira"
template_file = "/etc/quantum/plugins/nicira/nvp.ini" template_file = "/etc/neutron/plugins/nicira/nvp.ini"
template "/etc/quantum/plugins/nicira/nvp.ini" do template "/etc/neutron/plugins/nicira/nvp.ini" do
source "plugins/nicira/nvp.ini.erb" source "plugins/nicira/nvp.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -317,20 +317,20 @@ when "nicira"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "openvswitch" when "openvswitch"
template_file = "/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini" template_file = "/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini"
service "quantum-plugin-openvswitch-agent" do service "neutron-plugin-openvswitch-agent" do
service_name platform_options["quantum_openvswitch_agent_service"] service_name platform_options["neutron_openvswitch_agent_service"]
action :nothing action :nothing
end end
template "/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini" do template "/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini" do
source "plugins/openvswitch/ovs_quantum_plugin.ini.erb" source "plugins/openvswitch/ovs_neutron_plugin.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
@@ -338,17 +338,17 @@ when "openvswitch"
:sql_connection => sql_connection, :sql_connection => sql_connection,
:local_ip => local_ip :local_ip => local_ip
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
if node.run_list.expand(node.chef_environment).recipes.include?("openstack-network::openvswitch") if node.run_list.expand(node.chef_environment).recipes.include?("openstack-network::openvswitch")
notifies :restart, "service[quantum-plugin-openvswitch-agent]", :delayed notifies :restart, "service[neutron-plugin-openvswitch-agent]", :delayed
end end
end end
when "plumgrid" when "plumgrid"
template_file = "/etc/quantum/plugins/plumgrid/plumgrid.ini" template_file = "/etc/neutron/plugins/plumgrid/plumgrid.ini"
template "/etc/quantum/plugins/plumgrid/plumgrid.ini" do template "/etc/neutron/plugins/plumgrid/plumgrid.ini" do
source "plugins/plumgrid/plumgrid.ini.erb" source "plugins/plumgrid/plumgrid.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -357,13 +357,13 @@ when "plumgrid"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
when "ryu" when "ryu"
template_file = "/etc/quantum/plugins/ryu/ryu.ini" template_file = "/etc/neutron/plugins/ryu/ryu.ini"
template "/etc/quantum/plugins/ryu/ryu.ini" do template "/etc/neutron/plugins/ryu/ryu.ini" do
source "plugins/ryu/ryu.ini.erb" source "plugins/ryu/ryu.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -372,13 +372,13 @@ when "ryu"
:sql_connection => sql_connection :sql_connection => sql_connection
) )
notifies :restart, "service[quantum-server]", :delayed notifies :restart, "service[neutron-server]", :delayed
end end
end end
template "/etc/default/quantum-server" do template "/etc/default/neutron-server" do
source "quantum-server.erb" source "neutron-server.erb"
owner "root" owner "root"
group "root" group "root"
mode 00644 mode 00644

View File

@@ -25,15 +25,15 @@ platform_options = node["openstack"]["network"]["platform"]
driver_name = node["openstack"]["network"]["interface_driver"].split('.').last.downcase driver_name = node["openstack"]["network"]["interface_driver"].split('.').last.downcase
main_plugin = node["openstack"]["network"]["interface_driver_map"][driver_name] main_plugin = node["openstack"]["network"]["interface_driver_map"][driver_name]
platform_options["quantum_dhcp_packages"].each do |pkg| platform_options["neutron_dhcp_packages"].each do |pkg|
package pkg do package pkg do
options platform_options["package_overrides"] options platform_options["package_overrides"]
action :install action :install
end end
end end
service "quantum-dhcp-agent" do service "neutron-dhcp-agent" do
service_name platform_options["quantum_dhcp_agent_service"] service_name platform_options["neutron_dhcp_agent_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :enable action :enable
@@ -41,31 +41,31 @@ end
# Some plugins have DHCP functionality, so we install the plugin # Some plugins have DHCP functionality, so we install the plugin
# Python package and include the plugin-specific recipe here... # Python package and include the plugin-specific recipe here...
package platform_options["quantum_plugin_package"].gsub("%plugin%", main_plugin) do package platform_options["neutron_plugin_package"].gsub("%plugin%", main_plugin) do
options platform_options["package_overrides"] options platform_options["package_overrides"]
action :install action :install
# plugins are installed by the main openstack-quantum package on SUSE # plugins are installed by the main openstack-neutron package on SUSE
not_if { platform_family? "suse" } not_if { platform_family? "suse" }
end end
execute "quantum-dhcp-setup --plugin #{main_plugin}" do execute "neutron-dhcp-setup --plugin #{main_plugin}" do
only_if { platform?(%w(fedora redhat centos)) } # :pragma-foodcritic: ~FC024 - won't fix this only_if { platform?(%w(fedora redhat centos)) } # :pragma-foodcritic: ~FC024 - won't fix this
end end
template "/etc/quantum/dnsmasq.conf" do template "/etc/neutron/dnsmasq.conf" do
source "dnsmasq.conf.erb" source "dnsmasq.conf.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
notifies :restart, "service[quantum-dhcp-agent]", :delayed notifies :restart, "service[neutron-dhcp-agent]", :delayed
end end
template "/etc/quantum/dhcp_agent.ini" do template "/etc/neutron/dhcp_agent.ini" do
source "dhcp_agent.ini.erb" source "dhcp_agent.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
notifies :restart, "service[quantum-dhcp-agent]", :immediately notifies :restart, "service[neutron-dhcp-agent]", :immediately
end end
# Deal with ubuntu precise dnsmasq 2.59 version by custom # Deal with ubuntu precise dnsmasq 2.59 version by custom
@@ -81,7 +81,7 @@ end
# has no plans to fix # has no plans to fix
if node['lsb'] && node['lsb']['codename'] == "precise" if node['lsb'] && node['lsb']['codename'] == "precise"
platform_options["quantum_dhcp_build_packages"].each do |pkg| platform_options["neutron_dhcp_build_packages"].each do |pkg|
package pkg do package pkg do
action :install action :install
end end

View File

@@ -25,7 +25,7 @@ platform_options = node["openstack"]["network"]["platform"]
driver_name = node["openstack"]["network"]["interface_driver"].split('.').last.downcase driver_name = node["openstack"]["network"]["interface_driver"].split('.').last.downcase
main_plugin = node["openstack"]["network"]["interface_driver_map"][driver_name] main_plugin = node["openstack"]["network"]["interface_driver_map"][driver_name]
platform_options["quantum_l3_packages"].each do |pkg| platform_options["neutron_l3_packages"].each do |pkg|
package pkg do package pkg do
options platform_options["package_overrides"] options platform_options["package_overrides"]
action :install action :install
@@ -34,30 +34,30 @@ platform_options["quantum_l3_packages"].each do |pkg|
end end
end end
service "quantum-l3-agent" do service "neutron-l3-agent" do
service_name platform_options["quantum_l3_agent_service"] service_name platform_options["neutron_l3_agent_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :enable action :enable
end end
execute "quantum-l3-setup --plugin #{main_plugin}" do execute "neutron-l3-setup --plugin #{main_plugin}" do
only_if { only_if {
platform?(%w(fedora redhat centos)) and not # :pragma-foodcritic: ~FC024 - won't fix this platform?(%w(fedora redhat centos)) and not # :pragma-foodcritic: ~FC024 - won't fix this
["nicira", "plumgrid", "bigswitch"].include?(main_plugin) ["nicira", "plumgrid", "bigswitch"].include?(main_plugin)
} }
end end
template "/etc/quantum/l3_agent.ini" do template "/etc/neutron/l3_agent.ini" do
source "l3_agent.ini.erb" source "l3_agent.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
mode 00644 mode 00644
notifies :restart, "service[quantum-l3-agent]", :immediately notifies :restart, "service[neutron-l3-agent]", :immediately
end end
if not ["nicira", "plumgrid", "bigswitch", "linuxbridge"].include?(main_plugin) if not ["nicira", "plumgrid", "bigswitch", "linuxbridge"].include?(main_plugin)
# See http://docs.openstack.org/trunk/openstack-network/admin/content/install_quantum-l3.html # See http://docs.openstack.org/trunk/openstack-network/admin/content/install_neutron-l3.html
ext_bridge = node["openstack"]["network"]["l3"]["external_network_bridge"] ext_bridge = node["openstack"]["network"]["l3"]["external_network_bridge"]
ext_bridge_iface = node["openstack"]["network"]["l3"]["external_network_bridge_interface"] ext_bridge_iface = node["openstack"]["network"]["l3"]["external_network_bridge_interface"]
execute "create external network bridge" do execute "create external network bridge" do

View File

@@ -23,15 +23,15 @@ include_recipe "openstack-network::common"
platform_options = node["openstack"]["network"]["platform"] platform_options = node["openstack"]["network"]["platform"]
platform_options["quantum_linuxbridge_agent_packages"].each do |pkg| platform_options["neutron_linuxbridge_agent_packages"].each do |pkg|
package pkg do package pkg do
options platform_options["package_overrides"] options platform_options["package_overrides"]
action :install action :install
end end
end end
service "quantum-plugin-linuxbridge-agent" do service "neutron-plugin-linuxbridge-agent" do
service_name platform_options["quantum_linuxbridge_agent_service"] service_name platform_options["neutron_linuxbridge_agent_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :enable action :enable
end end

View File

@@ -29,7 +29,7 @@ identity_endpoint = endpoint "identity-api"
service_pass = service_password "openstack-network" service_pass = service_password "openstack-network"
metadata_secret = secret "secrets", node["openstack"]["network"]["metadata"]["secret_name"] metadata_secret = secret "secrets", node["openstack"]["network"]["metadata"]["secret_name"]
template "/etc/quantum/metadata_agent.ini" do template "/etc/neutron/metadata_agent.ini" do
source "metadata_agent.ini.erb" source "metadata_agent.ini.erb"
owner node["openstack"]["network"]["platform"]["user"] owner node["openstack"]["network"]["platform"]["user"]
group node["openstack"]["network"]["platform"]["group"] group node["openstack"]["network"]["platform"]["group"]
@@ -39,19 +39,19 @@ template "/etc/quantum/metadata_agent.ini" do
:metadata_secret => metadata_secret, :metadata_secret => metadata_secret,
:service_pass => service_pass :service_pass => service_pass
) )
notifies :restart, "service[quantum-metadata-agent]", :immediately notifies :restart, "service[neutron-metadata-agent]", :immediately
action :create action :create
end end
platform_options["quantum_metadata_agent_packages"].each do |pkg| platform_options["neutron_metadata_agent_packages"].each do |pkg|
package pkg do package pkg do
action :install action :install
options platform_options["package_overrides"] options platform_options["package_overrides"]
end end
end end
service "quantum-metadata-agent" do service "neutron-metadata-agent" do
service_name platform_options["quantum_metadata_agent_service"] service_name platform_options["neutron_metadata_agent_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :enable action :enable
end end

View File

@@ -49,41 +49,41 @@ if node['openstack']['network']['openvswitch']['use_source_version']
include_recipe "openstack-network::build_openvswitch_source" include_recipe "openstack-network::build_openvswitch_source"
end end
else else
platform_options["quantum_openvswitch_packages"].each do |pkg| platform_options["neutron_openvswitch_packages"].each do |pkg|
package pkg do package pkg do
action :install action :install
end end
end end
end end
service "quantum-openvswitch-switch" do service "neutron-openvswitch-switch" do
service_name platform_options["quantum_openvswitch_service"] service_name platform_options["neutron_openvswitch_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :enable action :enable
end end
if node.run_list.expand(node.chef_environment).recipes.include?("openstack-network::server") if node.run_list.expand(node.chef_environment).recipes.include?("openstack-network::server")
service "quantum-server" do service "neutron-server" do
service_name platform_options["quantum_server_service"] service_name platform_options["neutron_server_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :nothing action :nothing
end end
end end
platform_options["quantum_openvswitch_agent_packages"].each do |pkg| platform_options["neutron_openvswitch_agent_packages"].each do |pkg|
package pkg do package pkg do
action :install action :install
options platform_options["package_overrides"] options platform_options["package_overrides"]
end end
end end
service "quantum-plugin-openvswitch-agent" do service "neutron-plugin-openvswitch-agent" do
service_name platform_options["quantum_openvswitch_agent_service"] service_name platform_options["neutron_openvswitch_agent_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :enable action :enable
end end
execute "quantum-node-setup --plugin openvswitch" do execute "neutron-node-setup --plugin openvswitch" do
only_if { platform?(%w(fedora redhat centos)) } # :pragma-foodcritic: ~FC024 - won't fix this only_if { platform?(%w(fedora redhat centos)) } # :pragma-foodcritic: ~FC024 - won't fix this
end end
@@ -94,7 +94,7 @@ if not ["nicira", "plumgrid", "bigswitch"].include?(main_plugin)
command "ovs-vsctl add-br #{int_bridge}" command "ovs-vsctl add-br #{int_bridge}"
action :run action :run
not_if "ovs-vsctl show | grep 'Bridge #{int_bridge}'" not_if "ovs-vsctl show | grep 'Bridge #{int_bridge}'"
notifies :restart, "service[quantum-plugin-openvswitch-agent]", :delayed notifies :restart, "service[neutron-plugin-openvswitch-agent]", :delayed
end end
end end
@@ -105,7 +105,7 @@ if not ["nicira", "plumgrid", "bigswitch"].include?(main_plugin)
command "ovs-vsctl add-br #{tun_bridge}" command "ovs-vsctl add-br #{tun_bridge}"
action :run action :run
not_if "ovs-vsctl show | grep 'Bridge #{tun_bridge}'" not_if "ovs-vsctl show | grep 'Bridge #{tun_bridge}'"
notifies :restart, "service[quantum-plugin-openvswitch-agent]", :delayed notifies :restart, "service[neutron-plugin-openvswitch-agent]", :delayed
end end
end end

View File

@@ -33,28 +33,28 @@ core_plugin = node["openstack"]["network"]["core_plugin"]
platform_options = node["openstack"]["network"]["platform"] platform_options = node["openstack"]["network"]["platform"]
platform_options["quantum_server_packages"].each do |pkg| platform_options["neutron_server_packages"].each do |pkg|
package pkg do package pkg do
options platform_options["package_overrides"] options platform_options["package_overrides"]
action :install action :install
end end
end end
service "quantum-server" do service "neutron-server" do
service_name platform_options["quantum_server_service"] service_name platform_options["neutron_server_service"]
supports :status => true, :restart => true supports :status => true, :restart => true
action :enable action :enable
end end
cookbook_file "quantum-ha-tool" do cookbook_file "neutron-ha-tool" do
source "quantum-ha-tool.py" source "neutron-ha-tool.py"
path node["openstack"]["network"]["quantum_ha_cmd"] path node["openstack"]["network"]["neutron_ha_cmd"]
owner "root" owner "root"
group "root" group "root"
mode 00755 mode 00755
end end
if node["openstack"]["network"]["quantum_ha_cmd_cron"] if node["openstack"]["network"]["neutron_ha_cmd_cron"]
# ensure period checks are offset between multiple l3 agent nodes # ensure period checks are offset between multiple l3 agent nodes
# and assumes splay will remain constant (i.e. based on hostname) # and assumes splay will remain constant (i.e. based on hostname)
# Generate a uniformly distributed unique number to sleep. # Generate a uniformly distributed unique number to sleep.
@@ -62,27 +62,27 @@ if node["openstack"]["network"]["quantum_ha_cmd_cron"]
splay = node['chef_client']['splay'].to_i || 3000 splay = node['chef_client']['splay'].to_i || 3000
sleep_time = checksum.to_s.hex % splay sleep_time = checksum.to_s.hex % splay
cron "quantum-ha-healthcheck" do cron "neutron-ha-healthcheck" do
minute node["openstack"]["network"]["cron_l3_healthcheck"] minute node["openstack"]["network"]["cron_l3_healthcheck"]
command "sleep #{sleep_time} ; . /root/openrc && #{node["openstack"]["network"]["quantum_ha_cmd"]} --l3-agent-migrate > /dev/null 2>&1" command "sleep #{sleep_time} ; . /root/openrc && #{node["openstack"]["network"]["neutron_ha_cmd"]} --l3-agent-migrate > /dev/null 2>&1"
end end
cron "quantum-ha-replicate-dhcp" do cron "neutron-ha-replicate-dhcp" do
minute node["openstack"]["network"]["cron_replicate_dhcp"] minute node["openstack"]["network"]["cron_replicate_dhcp"]
command "sleep #{sleep_time} ; . /root/openrc && #{node["openstack"]["network"]["quantum_ha_cmd"]} --replicate-dhcp > /dev/null 2>&1" command "sleep #{sleep_time} ; . /root/openrc && #{node["openstack"]["network"]["neutron_ha_cmd"]} --replicate-dhcp > /dev/null 2>&1"
end end
end end
# the default SUSE initfile uses this sysconfig file to determine the # the default SUSE initfile uses this sysconfig file to determine the
# quantum plugin to use # neutron plugin to use
template "/etc/sysconfig/quantum" do template "/etc/sysconfig/neutron" do
only_if { platform? "suse" } only_if { platform? "suse" }
source "quantum.sysconfig.erb" source "neutron.sysconfig.erb"
owner "root" owner "root"
group "root" group "root"
mode 00644 mode 00644
variables( variables(
:plugin_conf => node["openstack"]["network"]["plugin_conf_map"][driver_name] :plugin_conf => node["openstack"]["network"]["plugin_conf_map"][driver_name]
) )
notifies :restart, "service[quantum-server]" notifies :restart, "service[neutron-server]"
end end

View File

@@ -5,36 +5,36 @@ describe 'openstack-network::balancer' do
describe "ubuntu" do describe "ubuntu" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::balancer" @chef_run.converge "openstack-network::balancer"
end end
it "does not install quantum-lbaas-agent when nova networking." do it "does not install neutron-lbaas-agent when nova networking." do
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
node = @chef_run.node node = @chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
@chef_run.converge "openstack-network::balancer" @chef_run.converge "openstack-network::balancer"
expect(@chef_run).to_not install_package "quantum-lbaas-agent" expect(@chef_run).to_not install_package "neutron-lbaas-agent"
end end
['haproxy', 'quantum-lbaas-agent'].each do |pack| ['haproxy', 'neutron-lbaas-agent'].each do |pack|
it "installs #{pack} package" do it "installs #{pack} package" do
expect(@chef_run).to install_package pack expect(@chef_run).to install_package pack
end end
end end
it 'creates directory /etc/quantum/plugins/services/agent_loadbalancer' do it 'creates directory /etc/neutron/plugins/services/agent_loadbalancer' do
expect(@chef_run).to create_directory '/etc/quantum/plugins/services/agent_loadbalancer' expect(@chef_run).to create_directory '/etc/neutron/plugins/services/agent_loadbalancer'
end end
it 'balancer config' do it 'balancer config' do
configf = "/etc/quantum/plugins/services/agent_loadbalancer/lbaas_agent.ini" configf = "/etc/neutron/plugins/services/agent_loadbalancer/lbaas_agent.ini"
expect(@chef_run).to create_file configf expect(@chef_run).to create_file configf
expect(@chef_run).to create_file_with_content configf, /periodic_interval = 10/ expect(@chef_run).to create_file_with_content configf, /periodic_interval = 10/
expect(@chef_run).to create_file_with_content configf, /interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver/ expect(@chef_run).to create_file_with_content configf, /interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver/
end end
end end

View File

@@ -2,9 +2,9 @@ require_relative 'spec_helper'
describe "openvswitch::build_openvswitch_source" do describe "openvswitch::build_openvswitch_source" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new(::UBUNTU_OPTS) do |n| @chef_run = ::ChefSpec::ChefRunner.new(::UBUNTU_OPTS) do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::openvswitch" @chef_run.converge "openstack-network::openvswitch"
@chef_run.converge "openstack-network::build_openvswitch_source" @chef_run.converge "openstack-network::build_openvswitch_source"

View File

@@ -3,23 +3,23 @@ require_relative 'spec_helper'
describe "openstack-network::common" do describe "openstack-network::common" do
describe "ubuntu" do describe "ubuntu" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::common" @chef_run.converge "openstack-network::common"
end end
it "does not install python-quantumclient when nova networking" do it "does not install python-neutronclient when nova networking" do
chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::common" chef_run.converge "openstack-network::common"
expect(chef_run).to_not install_package "python-quantumclient" expect(chef_run).to_not install_package "python-neutronclient"
end end
it "upgrades python quantumclient" do it "upgrades python neutronclient" do
expect(@chef_run).to upgrade_package "python-quantumclient" expect(@chef_run).to upgrade_package "python-neutronclient"
end end
it "upgrades python pyparsing" do it "upgrades python pyparsing" do

View File

@@ -5,23 +5,23 @@ describe 'openstack-network::dhcp_agent' do
describe "opensuse" do describe "opensuse" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::dhcp_agent" @chef_run.converge "openstack-network::dhcp_agent"
end end
it "does not install openstack-quantum-dhcp-agent when nova networking" do it "does not install openstack-neutron-dhcp-agent when nova networking" do
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
node = @chef_run.node node = @chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
@chef_run.converge "openstack-network::dhcp_agent" @chef_run.converge "openstack-network::dhcp_agent"
expect(@chef_run).to_not install_package "openstack-quantum-dhcp-agent" expect(@chef_run).to_not install_package "openstack-neutron-dhcp-agent"
end end
it "installs quamtum dhcp package" do it "installs quamtum dhcp package" do
expect(@chef_run).to install_package "openstack-quantum-dhcp-agent" expect(@chef_run).to install_package "openstack-neutron-dhcp-agent"
end end
it "installs plugin packages" do it "installs plugin packages" do
@@ -31,17 +31,17 @@ describe 'openstack-network::dhcp_agent' do
it "starts the dhcp agent on boot" do it "starts the dhcp agent on boot" do
expect(@chef_run).to( expect(@chef_run).to(
set_service_to_start_on_boot "openstack-quantum-dhcp-agent") set_service_to_start_on_boot "openstack-neutron-dhcp-agent")
end end
it "/etc/quantum/dhcp_agent.ini has the proper owner" do it "/etc/neutron/dhcp_agent.ini has the proper owner" do
expect(@chef_run.template "/etc/quantum/dhcp_agent.ini").to( expect(@chef_run.template "/etc/neutron/dhcp_agent.ini").to(
be_owned_by "openstack-quantum", "openstack-quantum") be_owned_by "openstack-neutron", "openstack-neutron")
end end
it "/etc/quantum/dnsmasq.conf has the proper owner" do it "/etc/neutron/dnsmasq.conf has the proper owner" do
expect(@chef_run.template "/etc/quantum/dnsmasq.conf").to( expect(@chef_run.template "/etc/neutron/dnsmasq.conf").to(
be_owned_by "openstack-quantum", "openstack-quantum") be_owned_by "openstack-neutron", "openstack-neutron")
end end
end end
end end

View File

@@ -5,9 +5,9 @@ describe 'openstack-network::dhcp_agent' do
describe "ubuntu" do describe "ubuntu" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::dhcp_agent" @chef_run.converge "openstack-network::dhcp_agent"
end end
@@ -29,42 +29,42 @@ describe 'openstack-network::dhcp_agent' do
end end
it "installs quamtum dhcp package" do it "installs quamtum dhcp package" do
expect(@chef_run).to install_package "quantum-dhcp-agent" expect(@chef_run).to install_package "neutron-dhcp-agent"
end end
it "installs plugin packages" do it "installs plugin packages" do
expect(@chef_run).to install_package "quantum-plugin-openvswitch" expect(@chef_run).to install_package "neutron-plugin-openvswitch"
end end
it "starts the dhcp agent on boot" do it "starts the dhcp agent on boot" do
expect(@chef_run).to set_service_to_start_on_boot "quantum-dhcp-agent" expect(@chef_run).to set_service_to_start_on_boot "neutron-dhcp-agent"
end end
describe "/etc/quantum/plugins" do describe "/etc/neutron/plugins" do
before do before do
@file = @chef_run.directory "/etc/quantum/plugins" @file = @chef_run.directory "/etc/neutron/plugins"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
expect(sprintf("%o", @file.mode)).to eq "700" expect(sprintf("%o", @file.mode)).to eq "700"
end end
end end
describe "/etc/quantum/dhcp_agent.ini" do describe "/etc/neutron/dhcp_agent.ini" do
before do before do
@file = @chef_run.template "/etc/quantum/dhcp_agent.ini" @file = @chef_run.template "/etc/neutron/dhcp_agent.ini"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
expect(sprintf("%o", @file.mode)).to eq "644" expect(sprintf("%o", @file.mode)).to eq "644"
end end
it "uses ovs driver" do it "uses ovs driver" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver" "interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver"
end end
it "uses namespaces" do it "uses namespaces" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
@@ -76,12 +76,12 @@ describe 'openstack-network::dhcp_agent' do
end end
end end
describe "/etc/quantum/dnsmasq.conf" do describe "/etc/neutron/dnsmasq.conf" do
before do before do
@file = @chef_run.template "/etc/quantum/dnsmasq.conf" @file = @chef_run.template "/etc/neutron/dnsmasq.conf"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
expect(sprintf("%o", @file.mode)).to eq "644" expect(sprintf("%o", @file.mode)).to eq "644"

View File

@@ -2,9 +2,9 @@ require_relative "spec_helper"
describe "openstack-network::identity_registration" do describe "openstack-network::identity_registration" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::identity_registration" @chef_run.converge "openstack-network::identity_registration"
end end
@@ -74,15 +74,15 @@ describe "openstack-network::identity_registration" do
it "registers service user" do it "registers service user" do
resource = @chef_run.find_resource( resource = @chef_run.find_resource(
"openstack-identity_register", "openstack-identity_register",
"Register quantum User" "Register neutron User"
).to_hash ).to_hash
expect(resource).to include( expect(resource).to include(
:auth_uri => "http://127.0.0.1:35357/v2.0", :auth_uri => "http://127.0.0.1:35357/v2.0",
:bootstrap_token => "bootstrap-token", :bootstrap_token => "bootstrap-token",
:tenant_name => "service", :tenant_name => "service",
:user_name => "quantum", :user_name => "neutron",
:user_pass => "quantum-pass", :user_pass => "neutron-pass",
:action => [:create_user] :action => [:create_user]
) )
end end
@@ -90,7 +90,7 @@ describe "openstack-network::identity_registration" do
it "grants admin role to service user for service tenant" do it "grants admin role to service user for service tenant" do
resource = @chef_run.find_resource( resource = @chef_run.find_resource(
"openstack-identity_register", "openstack-identity_register",
"Grant 'admin' Role to quantum User for service Tenant" "Grant 'admin' Role to neutron User for service Tenant"
).to_hash ).to_hash
expect(resource).to include( expect(resource).to include(
@@ -98,7 +98,7 @@ describe "openstack-network::identity_registration" do
:bootstrap_token => "bootstrap-token", :bootstrap_token => "bootstrap-token",
:tenant_name => "service", :tenant_name => "service",
:role_name => "admin", :role_name => "admin",
:user_name => "quantum", :user_name => "neutron",
:action => [:grant_role] :action => [:grant_role]
) )
end end

View File

@@ -5,33 +5,33 @@ describe 'openstack-network::l3_agent' do
describe "ubuntu" do describe "ubuntu" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::l3_agent" @chef_run.converge "openstack-network::l3_agent"
end end
it "does not install quantum l3 package when nova networking" do it "does not install neutron l3 package when nova networking" do
chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::l3_agent" chef_run.converge "openstack-network::l3_agent"
expect(chef_run).to_not install_package "quantum-l3-agent" expect(chef_run).to_not install_package "neutron-l3-agent"
end end
it "installs quamtum l3 package" do it "installs quamtum l3 package" do
expect(@chef_run).to install_package "quantum-l3-agent" expect(@chef_run).to install_package "neutron-l3-agent"
end end
describe "l3_agent.ini" do describe "l3_agent.ini" do
before do before do
@file = @chef_run.template "/etc/quantum/l3_agent.ini" @file = @chef_run.template "/etc/neutron/l3_agent.ini"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
@@ -40,7 +40,7 @@ describe 'openstack-network::l3_agent' do
it "it has ovs driver" do it "it has ovs driver" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver" "interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver"
end end
it "sets fuzzy delay to default" do it "sets fuzzy delay to default" do
@@ -61,10 +61,10 @@ describe 'openstack-network::l3_agent' do
describe "create ovs bridges" do describe "create ovs bridges" do
before do before do
quantum_stubs neutron_stubs
opts = ::UBUNTU_OPTS.merge(:evaluate_guards => true) opts = ::UBUNTU_OPTS.merge(:evaluate_guards => true)
@chef_run = ::ChefSpec::ChefRunner.new opts do |n| @chef_run = ::ChefSpec::ChefRunner.new opts do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
end end

View File

@@ -4,10 +4,10 @@ describe 'openstack-network::linuxbridge' do
describe "opensuse" do describe "opensuse" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n|
n.set["openstack"]["network"]["interface_driver"] = "quantum.agent.linux.interface.BridgeInterfaceDriver" n.set["openstack"]["network"]["interface_driver"] = "neutron.agent.linux.interface.BridgeInterfaceDriver"
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::linuxbridge" @chef_run.converge "openstack-network::linuxbridge"
end end
@@ -17,15 +17,15 @@ describe 'openstack-network::linuxbridge' do
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::linuxbridge" chef_run.converge "openstack-network::linuxbridge"
expect(chef_run).to_not install_package "openstack-quantum-linuxbridge-agent" expect(chef_run).to_not install_package "openstack-neutron-linuxbridge-agent"
end end
it "installs linuxbridge agent" do it "installs linuxbridge agent" do
expect(@chef_run).to install_package "openstack-quantum-linuxbridge-agent" expect(@chef_run).to install_package "openstack-neutron-linuxbridge-agent"
end end
it "sets the linuxbridge service to start on boot" do it "sets the linuxbridge service to start on boot" do
expect(@chef_run).to set_service_to_start_on_boot "openstack-quantum-linuxbridge-agent" expect(@chef_run).to set_service_to_start_on_boot "openstack-neutron-linuxbridge-agent"
end end
end end

View File

@@ -4,10 +4,10 @@ describe 'openstack-network::linuxbridge' do
describe "redhat" do describe "redhat" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS do |n|
n.set["openstack"]["network"]["interface_driver"] = "quantum.agent.linux.interface.BridgeInterfaceDriver" n.set["openstack"]["network"]["interface_driver"] = "neutron.agent.linux.interface.BridgeInterfaceDriver"
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::linuxbridge" @chef_run.converge "openstack-network::linuxbridge"
end end
@@ -17,15 +17,15 @@ describe 'openstack-network::linuxbridge' do
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::linuxbridge" chef_run.converge "openstack-network::linuxbridge"
expect(chef_run).to_not install_package "openstack-quantum-linuxbridge" expect(chef_run).to_not install_package "openstack-neutron-linuxbridge"
end end
it "installs linuxbridge agent" do it "installs linuxbridge agent" do
expect(@chef_run).to install_package "openstack-quantum-linuxbridge" expect(@chef_run).to install_package "openstack-neutron-linuxbridge"
end end
it "sets the linuxbridge service to start on boot" do it "sets the linuxbridge service to start on boot" do
expect(@chef_run).to set_service_to_start_on_boot "quantum-linuxbridge-agent" expect(@chef_run).to set_service_to_start_on_boot "neutron-linuxbridge-agent"
end end
end end

View File

@@ -4,10 +4,11 @@ describe 'openstack-network::linuxbridge' do
describe "ubuntu" do describe "ubuntu" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["network"]["interface_driver"] = "quantum.agent.linux.interface.BridgeInterfaceDriver" n.set["openstack"]["network"]["interface_driver"] = "neutron.agent.linux.interface.BridgeInterfaceDriver"
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
n.set["openstack"]["db"]["network"]["db_name"] = "neutron"
end end
@chef_run.converge "openstack-network::linuxbridge" @chef_run.converge "openstack-network::linuxbridge"
end end
@@ -17,25 +18,25 @@ describe 'openstack-network::linuxbridge' do
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::linuxbridge" chef_run.converge "openstack-network::linuxbridge"
expect(chef_run).to_not install_package "quantum-plugin-linuxbridge-agent" expect(chef_run).to_not install_package "neutron-plugin-linuxbridge-agent"
end end
it "installs linuxbridge agent" do it "installs linuxbridge agent" do
expect(@chef_run).to install_package "quantum-plugin-linuxbridge-agent" expect(@chef_run).to install_package "neutron-plugin-linuxbridge-agent"
end end
it "sets the linuxbridge service to start on boot" do it "sets the linuxbridge service to start on boot" do
expect(@chef_run).to set_service_to_start_on_boot "quantum-plugin-linuxbridge-agent" expect(@chef_run).to set_service_to_start_on_boot "neutron-plugin-linuxbridge-agent"
end end
describe "/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini" do describe "/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini" do
before do before do
@file = @chef_run.template( @file = @chef_run.template(
"/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini") "/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini")
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
@@ -44,7 +45,7 @@ describe 'openstack-network::linuxbridge' do
it "has a correct sql_connection value" do it "has a correct sql_connection value" do
expect(@chef_run).to create_file_with_content( expect(@chef_run).to create_file_with_content(
@file.name, "mysql://quantum:quantum-pass@127.0.0.1:3306/quantum") @file.name, "mysql://neutron:neutron-pass@127.0.0.1:3306/neutron")
end end
it "sets sqlalchemy attributes" do it "sets sqlalchemy attributes" do

View File

@@ -5,9 +5,9 @@ describe 'openstack-network::metadata_agent' do
describe "ubuntu" do describe "ubuntu" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::metadata_agent" @chef_run.converge "openstack-network::metadata_agent"
end end
@@ -17,21 +17,21 @@ describe 'openstack-network::metadata_agent' do
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::metadata_agent" chef_run.converge "openstack-network::metadata_agent"
expect(chef_run).to_not install_package "quantum-metadata-agent" expect(chef_run).to_not install_package "neutron-metadata-agent"
end end
it "installs quamtum metadata agent" do it "installs quamtum metadata agent" do
expect(@chef_run).to install_package "quantum-metadata-agent" expect(@chef_run).to install_package "neutron-metadata-agent"
end end
describe "metadata_agent.ini" do describe "metadata_agent.ini" do
before do before do
@file = @chef_run.template "/etc/quantum/metadata_agent.ini" @file = @chef_run.template "/etc/neutron/metadata_agent.ini"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
@@ -52,11 +52,11 @@ describe 'openstack-network::metadata_agent' do
end end
it "sets admin user" do it "sets admin user" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"admin_user = quantum" "admin_user = neutron"
end end
it "sets admin password" do it "sets admin password" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"admin_password = quantum-pass" "admin_password = neutron-pass"
end end
it "sets nova metadata ip correctly" do it "sets nova metadata ip correctly" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
@@ -66,7 +66,7 @@ describe 'openstack-network::metadata_agent' do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"nova_metadata_port = 8775" "nova_metadata_port = 8775"
end end
it "sets quantum secret correctly" do it "sets neutron secret correctly" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"metadata_proxy_shared_secret = metadata-secret" "metadata_proxy_shared_secret = metadata-secret"
end end

View File

@@ -3,10 +3,10 @@ require_relative "spec_helper"
describe 'openstack-network::openvswitch' do describe 'openstack-network::openvswitch' do
describe "opensuse" do describe "opensuse" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n|
n.set["chef_client"]["splay"] = 300 n.set["chef_client"]["splay"] = 300
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@node = @chef_run.node @node = @chef_run.node
@chef_run.converge "openstack-network::openvswitch" @chef_run.converge "openstack-network::openvswitch"
@@ -25,7 +25,7 @@ describe 'openstack-network::openvswitch' do
end end
it "installs the openvswitch-agent package" do it "installs the openvswitch-agent package" do
expect(@chef_run).to install_package "openstack-quantum-openvswitch-agent" expect(@chef_run).to install_package "openstack-neutron-openvswitch-agent"
end end
it "starts the openvswitch-switch service" do it "starts the openvswitch-switch service" do

View File

@@ -2,11 +2,11 @@ require_relative 'spec_helper'
describe 'openstack-network::openvswitch' do describe 'openstack-network::openvswitch' do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new(::UBUNTU_OPTS) do |n| @chef_run = ::ChefSpec::ChefRunner.new(::UBUNTU_OPTS) do |n|
n.automatic_attrs["kernel"]["release"] = "1.2.3" n.automatic_attrs["kernel"]["release"] = "1.2.3"
n.set["openstack"]["network"]["local_ip_interface"] = "eth0" n.set["openstack"]["network"]["local_ip_interface"] = "eth0"
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::openvswitch" @chef_run.converge "openstack-network::openvswitch"
end end
@@ -40,11 +40,11 @@ describe 'openstack-network::openvswitch' do
end end
it "installs openvswitch agent" do it "installs openvswitch agent" do
expect(@chef_run).to install_package "quantum-plugin-openvswitch-agent" expect(@chef_run).to install_package "neutron-plugin-openvswitch-agent"
end end
it "sets the openvswitch service to start on boot" do it "sets the openvswitch service to start on boot" do
expect(@chef_run).to set_service_to_start_on_boot "quantum-plugin-openvswitch-agent" expect(@chef_run).to set_service_to_start_on_boot "neutron-plugin-openvswitch-agent"
end end
describe "ovs-dpctl-top" do describe "ovs-dpctl-top" do
@@ -70,13 +70,13 @@ describe 'openstack-network::openvswitch' do
end end
end end
describe "ovs_quantum_plugin.ini" do describe "ovs_neutron_plugin.ini" do
before do before do
@file = @chef_run.template "/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini" @file = @chef_run.template "/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
@@ -115,7 +115,7 @@ describe 'openstack-network::openvswitch' do
it "it has firewall driver" do it "it has firewall driver" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver" "firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver"
end end
it "it uses local_ip from eth0 when local_ip_interface is set" do it "it uses local_ip from eth0 when local_ip_interface is set" do

View File

@@ -3,45 +3,45 @@ require_relative "spec_helper"
describe 'openstack-network::server' do describe 'openstack-network::server' do
describe "opensuse" do describe "opensuse" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n|
n.set["chef_client"]["splay"] = 300 n.set["chef_client"]["splay"] = 300
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@node = @chef_run.node @node = @chef_run.node
@chef_run.converge "openstack-network::server" @chef_run.converge "openstack-network::server"
end end
it "does not install openstack-quantum when nova networking" do it "does not install openstack-neutron when nova networking" do
chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::server" chef_run.converge "openstack-network::server"
expect(chef_run).to_not install_package "openstack-quantum" expect(chef_run).to_not install_package "openstack-neutron"
end end
it "installs openstack-quantum packages" do it "installs openstack-neutron packages" do
expect(@chef_run).to install_package "openstack-quantum" expect(@chef_run).to install_package "openstack-neutron"
end end
it "enables openstack-quantum service" do it "enables openstack-neutron service" do
expect(@chef_run).to enable_service "openstack-quantum" expect(@chef_run).to enable_service "openstack-neutron"
end end
it "does not install openvswitch package" do it "does not install openvswitch package" do
opts = ::OPENSUSE_OPTS.merge(:evaluate_guards => true) opts = ::OPENSUSE_OPTS.merge(:evaluate_guards => true)
chef_run = ::ChefSpec::ChefRunner.new opts do |n| chef_run = ::ChefSpec::ChefRunner.new opts do |n|
n.set["chef_client"]["splay"] = 300 n.set["chef_client"]["splay"] = 300
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
chef_run.converge "openstack-network::server" chef_run.converge "openstack-network::server"
expect(chef_run).not_to install_package "openstack-quantum-openvswitch" expect(chef_run).not_to install_package "openstack-neutron-openvswitch"
end end
describe "/etc/sysconfig/quantum" do describe "/etc/sysconfig/neutron" do
before do before do
@file = @chef_run.template("/etc/sysconfig/quantum") @file = @chef_run.template("/etc/sysconfig/neutron")
end end
it "has proper owner" do it "has proper owner" do
@@ -54,19 +54,19 @@ describe 'openstack-network::server' do
it "has the correct plugin config location - ovs by default" do it "has the correct plugin config location - ovs by default" do
expect(@chef_run).to create_file_with_content( expect(@chef_run).to create_file_with_content(
@file.name, "/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini") @file.name, "/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini")
end end
it "uses linuxbridge when configured to use it" do it "uses linuxbridge when configured to use it" do
chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n| chef_run = ::ChefSpec::ChefRunner.new ::OPENSUSE_OPTS do |n|
n.set["openstack"]["network"]["interface_driver"] = "quantum.agent.linux.interface.BridgeInterfaceDriver" n.set["openstack"]["network"]["interface_driver"] = "neutron.agent.linux.interface.BridgeInterfaceDriver"
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
chef_run.converge "openstack-network::server" chef_run.converge "openstack-network::server"
expect(chef_run).to create_file_with_content( expect(chef_run).to create_file_with_content(
"/etc/sysconfig/quantum", "/etc/sysconfig/neutron",
"/etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini" "/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini"
) )
end end
end end

View File

@@ -3,38 +3,38 @@ require_relative "spec_helper"
describe 'openstack-network::server' do describe 'openstack-network::server' do
describe "redhat" do describe "redhat" do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@node = @chef_run.node @node = @chef_run.node
@chef_run.converge "openstack-network::server" @chef_run.converge "openstack-network::server"
end end
it "does not install openstack-quantum when nova networking" do it "does not install openstack-neutron when nova networking" do
chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::server" chef_run.converge "openstack-network::server"
expect(chef_run).to_not install_package "openstack-quantum" expect(chef_run).to_not install_package "openstack-neutron"
end end
it "installs openstack-quantum packages" do it "installs openstack-neutron packages" do
expect(@chef_run).to install_package "openstack-quantum" expect(@chef_run).to install_package "openstack-neutron"
end end
it "enables openstack-quantum server service" do it "enables openstack-neutron server service" do
expect(@chef_run).to enable_service "quantum-server" expect(@chef_run).to enable_service "neutron-server"
end end
it "does not install openvswitch package" do it "does not install openvswitch package" do
opts = ::REDHAT_OPTS.merge(:evaluate_guards => true) opts = ::REDHAT_OPTS.merge(:evaluate_guards => true)
chef_run = ::ChefSpec::ChefRunner.new opts do |n| chef_run = ::ChefSpec::ChefRunner.new opts do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
chef_run.converge "openstack-network::server" chef_run.converge "openstack-network::server"
expect(chef_run).not_to install_package "openvswitch" expect(chef_run).not_to install_package "openvswitch"
expect(chef_run).not_to enable_service "openstack-quantum-openvswitch-agent" expect(chef_run).not_to enable_service "openstack-neutron-openvswitch-agent"
end end
end end
end end

View File

@@ -2,9 +2,9 @@ require_relative 'spec_helper'
describe 'openstack-network::server' do describe 'openstack-network::server' do
before do before do
quantum_stubs neutron_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n| @chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
n.set["openstack"]["mq"]["host"] = "127.0.0.1" n.set["openstack"]["mq"]["host"] = "127.0.0.1"
n.set["chef_client"]["splay"] = 300 n.set["chef_client"]["splay"] = 300
n.set["openstack"]["network"]["quota"]["driver"] = "my.quota.Driver" n.set["openstack"]["network"]["quota"]["driver"] = "my.quota.Driver"
@@ -12,28 +12,28 @@ describe 'openstack-network::server' do
@chef_run.converge "openstack-network::server" @chef_run.converge "openstack-network::server"
end end
it "does not install quantum-server when nova networking" do it "does not install neutron-server when nova networking" do
chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
node = chef_run.node node = chef_run.node
node.set["openstack"]["compute"]["network"]["service_type"] = "nova" node.set["openstack"]["compute"]["network"]["service_type"] = "nova"
chef_run.converge "openstack-network::server" chef_run.converge "openstack-network::server"
expect(chef_run).to_not install_package "quantum-server" expect(chef_run).to_not install_package "neutron-server"
end end
describe "package and services" do describe "package and services" do
it "installs quantum packages" do it "installs neutron packages" do
expect(@chef_run).to install_package "quantum-server" expect(@chef_run).to install_package "neutron-server"
end end
it "starts server service" do it "starts server service" do
expect(@chef_run).to enable_service "quantum-server" expect(@chef_run).to enable_service "neutron-server"
end end
it "does not install openvswitch package or the agent" do it "does not install openvswitch package or the agent" do
expect(@chef_run).not_to install_package "openvswitch" expect(@chef_run).not_to install_package "openvswitch"
expect(@chef_run).not_to install_package "quantum-plugin-openvswitch-agent" expect(@chef_run).not_to install_package "neutron-plugin-openvswitch-agent"
expect(@chef_run).not_to enable_service "quantum-plugin-openvswitch-agent" expect(@chef_run).not_to enable_service "neutron-plugin-openvswitch-agent"
end end
end end
@@ -41,20 +41,20 @@ describe 'openstack-network::server' do
describe "api-paste.ini" do describe "api-paste.ini" do
before do before do
@file = @chef_run.template "/etc/quantum/api-paste.ini" @file = @chef_run.template "/etc/neutron/api-paste.ini"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
expect(sprintf("%o", @file.mode)).to eq "640" expect(sprintf("%o", @file.mode)).to eq "640"
end end
it "has quantum pass" do it "has neutron pass" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"admin_password = quantum-pass" "admin_password = neutron-pass"
end end
it "has auth_uri" do it "has auth_uri" do
@@ -78,18 +78,18 @@ describe 'openstack-network::server' do
end end
end end
it "should create quantum-ha-tool.py script" do it "should create neutron-ha-tool.py script" do
expect(@chef_run).to create_cookbook_file "/usr/local/bin/quantum-ha-tool.py" expect(@chef_run).to create_cookbook_file "/usr/local/bin/neutron-ha-tool.py"
end end
describe "quantum.conf" do describe "neutron.conf" do
before do before do
@file = @chef_run.template "/etc/quantum/quantum.conf" @file = @chef_run.template "/etc/neutron/neutron.conf"
end end
it "has proper owner" do it "has proper owner" do
expect(@file).to be_owned_by "quantum", "quantum" expect(@file).to be_owned_by "neutron", "neutron"
end end
it "has proper modes" do it "has proper modes" do
@@ -108,7 +108,7 @@ describe 'openstack-network::server' do
it "it sets root_helper" do it "it sets root_helper" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
'root_helper = "sudo quantum-rootwrap /etc/quantum/rootwrap.conf"' 'root_helper = "sudo neutron-rootwrap /etc/neutron/rootwrap.conf"'
end end
it "binds to appropriate api ip" do it "binds to appropriate api ip" do
@@ -133,7 +133,7 @@ describe 'openstack-network::server' do
it "has appropriate admin password for agents" do it "has appropriate admin password for agents" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"admin_password = quantum-pass" "admin_password = neutron-pass"
end end
it "has rabbit_host" do it "has rabbit_host" do
@@ -173,7 +173,7 @@ describe 'openstack-network::server' do
describe "qpid" do describe "qpid" do
before do before do
@file = @chef_run.template "/etc/quantum/quantum.conf" @file = @chef_run.template "/etc/neutron/neutron.conf"
@chef_run.node.set['openstack']['network']['mq']['service_type'] = "qpid" @chef_run.node.set['openstack']['network']['mq']['service_type'] = "qpid"
end end
@@ -255,9 +255,9 @@ describe 'openstack-network::server' do
it "it has correct default scheduler classes" do it "it has correct default scheduler classes" do
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"network_scheduler_driver = quantum.scheduler.dhcp_agent_scheduler.ChanceScheduler" "network_scheduler_driver = neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler"
expect(@chef_run).to create_file_with_content @file.name, expect(@chef_run).to create_file_with_content @file.name,
"router_scheduler_driver = quantum.scheduler.l3_agent_scheduler.ChanceScheduler" "router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler"
end end
it "has the overridable default quota values" do it "has the overridable default quota values" do
@@ -282,13 +282,13 @@ describe 'openstack-network::server' do
"quota_driver = my.quota.Driver" "quota_driver = my.quota.Driver"
end end
describe "quantum.conf with rabbit ha" do describe "neutron.conf with rabbit ha" do
before do before do
@chef_run = ::ChefSpec::ChefRunner.new(::UBUNTU_OPTS) do |n| @chef_run = ::ChefSpec::ChefRunner.new(::UBUNTU_OPTS) do |n|
n.set["openstack"]["network"]["rabbit"]["ha"] = true n.set["openstack"]["network"]["rabbit"]["ha"] = true
n.set["chef_client"]["splay"] = 300 n.set["chef_client"]["splay"] = 300
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
@chef_run.converge "openstack-network::server" @chef_run.converge "openstack-network::server"
end end
@@ -314,10 +314,10 @@ describe 'openstack-network::server' do
end end
end end
describe "/etc/default/quantum-server" do describe "/etc/default/neutron-server" do
before do before do
@file = @chef_run.template( @file = @chef_run.template(
"/etc/default/quantum-server") "/etc/default/neutron-server")
end end
it "has proper owner" do it "has proper owner" do
@@ -330,18 +330,18 @@ describe 'openstack-network::server' do
it "has a correct plugin config path" do it "has a correct plugin config path" do
expect(@chef_run).to create_file_with_content( expect(@chef_run).to create_file_with_content(
@file.name, "/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini") @file.name, "/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini")
end end
end end
it "does not install sysconfig template" do it "does not install sysconfig template" do
chef_run = ::ChefSpec::ChefRunner.new( chef_run = ::ChefSpec::ChefRunner.new(
::UBUNTU_OPTS.merge(:evaluate_guards => true)) do |n| ::UBUNTU_OPTS.merge(:evaluate_guards => true)) do |n|
n.set["openstack"]["compute"]["network"]["service_type"] = "quantum" n.set["openstack"]["compute"]["network"]["service_type"] = "neutron"
end end
chef_run.stub_command(/python/, true) chef_run.stub_command(/python/, true)
chef_run.converge "openstack-network::server" chef_run.converge "openstack-network::server"
expect(chef_run).not_to create_file "/etc/sysconfig/quantum" expect(chef_run).not_to create_file "/etc/sysconfig/neutron"
end end
end end
end end

View File

@@ -43,7 +43,7 @@ MOCK_NODE_NETWORK_DATA =
} }
} }
def quantum_stubs def neutron_stubs
::Chef::Recipe.any_instance.stub(:rabbit_servers). ::Chef::Recipe.any_instance.stub(:rabbit_servers).
and_return "1.1.1.1:5672,2.2.2.2:5672" and_return "1.1.1.1:5672,2.2.2.2:5672"
@@ -56,14 +56,14 @@ def quantum_stubs
::Chef::Recipe.any_instance.stub(:secret). ::Chef::Recipe.any_instance.stub(:secret).
with("secrets", "openstack_identity_bootstrap_token"). with("secrets", "openstack_identity_bootstrap_token").
and_return "bootstrap-token" and_return "bootstrap-token"
::Chef::Recipe.any_instance.stub(:db_password).and_return "quantum-pass" ::Chef::Recipe.any_instance.stub(:db_password).and_return "neutron-pass"
::Chef::Recipe.any_instance.stub(:secret). ::Chef::Recipe.any_instance.stub(:secret).
with("secrets", "quantum_metadata_secret"). with("secrets", "neutron_metadata_secret").
and_return "metadata-secret" and_return "metadata-secret"
::Chef::Recipe.any_instance.stub(:user_password).and_return String.new ::Chef::Recipe.any_instance.stub(:user_password).and_return String.new
::Chef::Recipe.any_instance.stub(:service_password).and_return String.new ::Chef::Recipe.any_instance.stub(:service_password).and_return String.new
::Chef::Recipe.any_instance.stub(:service_password).with("openstack-network"). ::Chef::Recipe.any_instance.stub(:service_password).with("openstack-network").
and_return "quantum-pass" and_return "neutron-pass"
::Chef::Recipe.any_instance.stub(:user_password).with("guest"). ::Chef::Recipe.any_instance.stub(:user_password).with("guest").
and_return("rabbit-password") and_return("rabbit-password")
::Chef::Application.stub(:fatal!) ::Chef::Application.stub(:fatal!)

View File

@@ -1,26 +1,26 @@
<%= node["openstack"]["network"]["custom_template_banner"] %> <%= node["openstack"]["network"]["custom_template_banner"] %>
[composite:quantum] [composite:neutron]
use = egg:Paste#urlmap use = egg:Paste#urlmap
/: quantumversions /: neutronversions
/v2.0: quantumapi_v2_0 /v2.0: neutronapi_v2_0
[composite:quantumapi_v2_0] [composite:neutronapi_v2_0]
use = call:quantum.auth:pipeline_factory use = call:neutron.auth:pipeline_factory
noauth = extensions quantumapiapp_v2_0 noauth = extensions neutronapiapp_v2_0
keystone = authtoken keystonecontext extensions quantumapiapp_v2_0 keystone = authtoken keystonecontext extensions neutronapiapp_v2_0
[filter:keystonecontext] [filter:keystonecontext]
paste.filter_factory = quantum.auth:QuantumKeystoneContext.factory paste.filter_factory = neutron.auth:NeutronKeystoneContext.factory
[filter:extensions] [filter:extensions]
paste.filter_factory = quantum.api.extensions:plugin_aware_extension_middleware_factory paste.filter_factory = neutron.api.extensions:plugin_aware_extension_middleware_factory
[app:quantumversions] [app:neutronversions]
paste.app_factory = quantum.api.versions:Versions.factory paste.app_factory = neutron.api.versions:Versions.factory
[app:quantumapiapp_v2_0] [app:neutronapiapp_v2_0]
paste.app_factory = quantum.api.v2.router:APIRouter.factory paste.app_factory = neutron.api.v2.router:APIRouter.factory
[filter:authtoken] [filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory

View File

@@ -4,7 +4,7 @@
# Show debugging output in log (sets DEBUG log level output) # Show debugging output in log (sets DEBUG log level output)
debug = <%= node["openstack"]["network"]["debug"] %> debug = <%= node["openstack"]["network"]["debug"] %>
# The DHCP agent will resync its state with Quantum to recover from any # The DHCP agent will resync its state with Neutron to recover from any
# transient notification or rpc errors. The interval is number of # transient notification or rpc errors. The interval is number of
# seconds between attempts. # seconds between attempts.
resync_interval = <%= node["openstack"]["network"]["dhcp"]["resync_interval"] %> resync_interval = <%= node["openstack"]["network"]["dhcp"]["resync_interval"] %>
@@ -13,9 +13,9 @@ resync_interval = <%= node["openstack"]["network"]["dhcp"]["resync_interval"] %>
# matches your plugin. # matches your plugin.
# OVS based plugins (OVS, Ryu, NEC, NVP, BigSwitch/Floodlight) # OVS based plugins (OVS, Ryu, NEC, NVP, BigSwitch/Floodlight)
# interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver # interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
# LinuxBridge # LinuxBridge
#interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver #interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
interface_driver = <%= node["openstack"]["network"]["interface_driver"] %> interface_driver = <%= node["openstack"]["network"]["interface_driver"] %>
# OVS based plugins(Ryu, NEC, NVP, BigSwitch/Floodlight) that use OVS # OVS based plugins(Ryu, NEC, NVP, BigSwitch/Floodlight) that use OVS
@@ -39,7 +39,7 @@ enable_isolated_metadata = <%= node["openstack"]["network"]["dhcp"]["enable_isol
# Allows for serving metadata requests coming from a dedicated metadata # Allows for serving metadata requests coming from a dedicated metadata
# access network whose cidr is 169.254.169.254/16 (or larger prefix), and # access network whose cidr is 169.254.169.254/16 (or larger prefix), and
# is connected to a Quantum router from which the VMs send metadata # is connected to a Neutron router from which the VMs send metadata
# request. In this case DHCP Option 121 will not be injected in VMs, as # request. In this case DHCP Option 121 will not be injected in VMs, as
# they will be able to reach 169.254.169.254 through a router. # they will be able to reach 169.254.169.254 through a router.
# This option requires enable_isolated_metadata = True # This option requires enable_isolated_metadata = True
@@ -51,5 +51,5 @@ dhcp_domain = <%= node["openstack"]["network"]["dhcp"]["default_domain"] %>
# Pass a config file to dnsmasq so we can override settings # Pass a config file to dnsmasq so we can override settings
# like the mtu passed to the virtual machine # like the mtu passed to the virtual machine
dnsmasq_config_file = /etc/quantum/dnsmasq.conf dnsmasq_config_file = /etc/neutron/dnsmasq.conf

View File

@@ -8,9 +8,9 @@ debug = <%= node["openstack"]["network"]["debug"] %>
# matches your plugin. # matches your plugin.
# OVS based plugins (OVS, Ryu, NEC, NVP, BigSwitch/Floodlight) # OVS based plugins (OVS, Ryu, NEC, NVP, BigSwitch/Floodlight)
# interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver # interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
# LinuxBridge # LinuxBridge
# interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver # interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
interface_driver = <%= node["openstack"]["network"]["interface_driver"] %> interface_driver = <%= node["openstack"]["network"]["interface_driver"] %>
# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and # Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and
@@ -35,7 +35,7 @@ gateway_external_network_id = <%= node["openstack"]["network"]["l3"]["gateway_ex
# Indicates that this L3 agent should also handle routers that do not have # Indicates that this L3 agent should also handle routers that do not have
# an external network gateway configured. This option should be True only # an external network gateway configured. This option should be True only
# for a single agent in a Quantum deployment, and may be False for all agents # for a single agent in a Neutron deployment, and may be False for all agents
# if all routers must have an external network gateway # if all routers must have an external network gateway
handle_internal_only_routers = <%= node["openstack"]["network"]["l3"]["handle_internal_only_routers"] %> handle_internal_only_routers = <%= node["openstack"]["network"]["l3"]["handle_internal_only_routers"] %>
@@ -43,7 +43,7 @@ handle_internal_only_routers = <%= node["openstack"]["network"]["l3"]["handle_in
# empty value for the linux bridge # empty value for the linux bridge
external_network_bridge = <%= node["openstack"]["network"]["l3"]["external_network_bridge"] %> external_network_bridge = <%= node["openstack"]["network"]["l3"]["external_network_bridge"] %>
# TCP Port used by Quantum metadata server # TCP Port used by Neutron metadata server
metadata_port = <%= node["openstack"]["network"]["l3"]["metadata_port"] %> metadata_port = <%= node["openstack"]["network"]["l3"]["metadata_port"] %>
# Send this many gratuitous ARPs for HA setup. Set it below or equal to 0 # Send this many gratuitous ARPs for HA setup. Set it below or equal to 0

View File

@@ -4,7 +4,7 @@
# Show debugging output in log (sets DEBUG log level output) # Show debugging output in log (sets DEBUG log level output)
debug = <%= node["openstack"]["network"]["debug"] %> debug = <%= node["openstack"]["network"]["debug"] %>
# The LBaaS agent will resync its state with Quantum to recover from any # The LBaaS agent will resync its state with Neutron to recover from any
# transient notification or rpc errors. The interval is number of # transient notification or rpc errors. The interval is number of
# seconds between attempts. # seconds between attempts.
periodic_interval = <%= node["openstack"]["network"]["lbaas"]["periodic_interval"] %> periodic_interval = <%= node["openstack"]["network"]["lbaas"]["periodic_interval"] %>
@@ -12,13 +12,13 @@ periodic_interval = <%= node["openstack"]["network"]["lbaas"]["periodic_interval
<% case node["openstack"]["network"]["lbaas_plugin"] <% case node["openstack"]["network"]["lbaas_plugin"]
when "ovs" %> when "ovs" %>
# OVS based plugins(OVS, Ryu, NEC, NVP, BigSwitch/Floodlight) # OVS based plugins(OVS, Ryu, NEC, NVP, BigSwitch/Floodlight)
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
# OVS based plugins(Ryu, NEC, NVP, BigSwitch/Floodlight) that use OVS # OVS based plugins(Ryu, NEC, NVP, BigSwitch/Floodlight) that use OVS
# as OpenFlow switch and check port status # as OpenFlow switch and check port status
#ovs_use_veth = True #ovs_use_veth = True
<% when "linuxbridge" %> <% when "linuxbridge" %>
# LinuxBridge # LinuxBridge
interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
<% else %> <% else %>
# LBaaS currently supports openvswitch and linuxbridge drivers only. # LBaaS currently supports openvswitch and linuxbridge drivers only.
# Please use one of them. # Please use one of them.
@@ -27,7 +27,7 @@ interface_driver =
# The agent requires a driver to manage the loadbalancer. HAProxy is the # The agent requires a driver to manage the loadbalancer. HAProxy is the
# opensource version. # opensource version.
device_driver = quantum.plugins.services.agent_loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver device_driver = neutron.plugins.services.agent_loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and # Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and
# iproute2 package that supports namespaces). # iproute2 package that supports namespaces).

View File

@@ -4,7 +4,7 @@
# Show debugging output in log (sets DEBUG log level output) # Show debugging output in log (sets DEBUG log level output)
debug = <%= node["openstack"]["network"]["debug"] %> debug = <%= node["openstack"]["network"]["debug"] %>
# The Quantum user information for accessing the Quantum API. # The Neutron user information for accessing the Neutron API.
auth_url = <%= @identity_endpoint.to_s %> auth_url = <%= @identity_endpoint.to_s %>
auth_region = <%= node["openstack"]["network"]["region"] %> auth_region = <%= node["openstack"]["network"]["region"] %>
admin_tenant_name = <%= node["openstack"]["network"]["service_tenant_name"] %> admin_tenant_name = <%= node["openstack"]["network"]["service_tenant_name"] %>
@@ -23,8 +23,8 @@ nova_metadata_ip = <%= node["openstack"]["network"]["metadata"]["nova_metadata_i
nova_metadata_port = <%= node["openstack"]["network"]["metadata"]["nova_metadata_port"] %> nova_metadata_port = <%= node["openstack"]["network"]["metadata"]["nova_metadata_port"] %>
<% end -%> <% end -%>
# When proxying metadata requests, Quantum signs the Instance-ID header with a # When proxying metadata requests, Neutron signs the Instance-ID header with a
# shared secret to prevent spoofing. You may select any string for a secret, # shared secret to prevent spoofing. You may select any string for a secret,
# but it must match here and in the configuration used by the Nova Metadata # but it must match here and in the configuration used by the Nova Metadata
# Server. NOTE: Nova uses a different key: quantum_metadata_proxy_shared_secret # Server. NOTE: Nova uses a different key: neutron_metadata_proxy_shared_secret
metadata_proxy_shared_secret = <%= @metadata_secret %> metadata_proxy_shared_secret = <%= @metadata_secret %>

View File

@@ -1,6 +1,6 @@
<%= node["openstack"]["network"]["custom_template_banner"] %> <%= node["openstack"]["network"]["custom_template_banner"] %>
# defaults for quantum-server # defaults for neutron-server
# path to config file corresponding to the core_plugin specified in # path to config file corresponding to the core_plugin specified in
# quantum.conf # neutron.conf
QUANTUM_PLUGIN_CONFIG=<%= @plugin_config %> NEUTRON_PLUGIN_CONFIG=<%= @plugin_config %>

View File

@@ -6,9 +6,9 @@
debug = <%= node["openstack"]["network"]["debug"] %> debug = <%= node["openstack"]["network"]["debug"] %>
verbose = <%= node["openstack"]["network"]["verbose"] %> verbose = <%= node["openstack"]["network"]["verbose"] %>
# Where to store Quantum state files. This directory must be writable by the # Where to store Neutron state files. This directory must be writable by the
# user executing the agent. # user executing the agent.
# state_path = /var/lib/quantum # state_path = /var/lib/neutron
# Where to store lock files # Where to store lock files
lock_path = $state_path/lock lock_path = $state_path/lock
@@ -44,19 +44,19 @@ bind_port = <%= @bind_port %>
# Path to the extensions. Note that this can be a colon-separated list of # Path to the extensions. Note that this can be a colon-separated list of
# paths. For example: # paths. For example:
# api_extensions_path = extensions:/path/to/more/extensions:/even/more/extensions # api_extensions_path = extensions:/path/to/more/extensions:/even/more/extensions
# The __path__ of quantum.extensions is appended to this, so if your # The __path__ of neutron.extensions is appended to this, so if your
# extensions are in there you don't need to specify them here # extensions are in there you don't need to specify them here
# api_extensions_path = # api_extensions_path =
# Quantum plugin provider module # Neutron plugin provider module
# core_plugin = # core_plugin =
core_plugin = <%= @core_plugin %> core_plugin = <%= @core_plugin %>
# Advanced service modules # Advanced service modules
# service_plugins = # service_plugins =
<% if node["openstack"]["network"]["quantum_loadbalancer"] %> <% if node["openstack"]["network"]["neutron_loadbalancer"] %>
# LoadBalancer plugin # LoadBalancer plugin
service_plugins = quantum.plugins.services.agent_loadbalancer.plugin.LoadBalancerPlugin service_plugins = neutron.plugins.services.agent_loadbalancer.plugin.LoadBalancerPlugin
<% end %> <% end %>
# Paste configuration file # Paste configuration file
@@ -90,7 +90,7 @@ api_paste_config = api-paste.ini
# Enable or disable sorting # Enable or disable sorting
# allow_sorting = False # allow_sorting = False
# Enable or disable overlapping IPs for subnets # Enable or disable overlapping IPs for subnets
# Attention: the following parameter MUST be set to False if Quantum is # Attention: the following parameter MUST be set to False if Neutron is
# being used in conjunction with nova security groups and/or metadata service. # being used in conjunction with nova security groups and/or metadata service.
# allow_overlapping_ips = False # allow_overlapping_ips = False
# Ensure that configured gateway is on subnet # Ensure that configured gateway is on subnet
@@ -99,7 +99,7 @@ api_paste_config = api-paste.ini
# RPC configuration options. Defined in rpc __init__ # RPC configuration options. Defined in rpc __init__
# The messaging module to use, defaults to kombu. # The messaging module to use, defaults to kombu.
# rpc_backend = quantum.openstack.common.rpc.impl_kombu # rpc_backend = neutron.openstack.common.rpc.impl_kombu
# Size of RPC thread pool # Size of RPC thread pool
# rpc_thread_pool_size = 64, # rpc_thread_pool_size = 64,
# Size of RPC connection pool # Size of RPC connection pool
@@ -110,9 +110,9 @@ api_paste_config = api-paste.ini
# rpc_cast_timeout = 30 # rpc_cast_timeout = 30
# Modules of exceptions that are permitted to be recreated # Modules of exceptions that are permitted to be recreated
# upon receiving exception data from an rpc call. # upon receiving exception data from an rpc call.
# allowed_rpc_exception_modules = quantum.openstack.common.exception, nova.exception # allowed_rpc_exception_modules = neutron.openstack.common.exception, nova.exception
# AMQP exchange to connect to if using RabbitMQ or QPID # AMQP exchange to connect to if using RabbitMQ or QPID
control_exchange = quantum control_exchange = neutron
# Configuration options if sending notifications via kombu rpc (these are # Configuration options if sending notifications via kombu rpc (these are
# the defaults) # the defaults)
@@ -151,7 +151,7 @@ rabbit_port=<%= node["openstack"]["network"]["rabbit"]["port"] %>
<% if node["openstack"]["network"]["mq"]["service_type"] == "qpid" %> <% if node["openstack"]["network"]["mq"]["service_type"] == "qpid" %>
##### QPID ##### ##### QPID #####
rpc_backend=quantum.openstack.common.rpc.impl_qpid rpc_backend=neutron.openstack.common.rpc.impl_qpid
qpid_hostname=<%= node["openstack"]["network"]["mq"]["qpid"]["host"] %> qpid_hostname=<%= node["openstack"]["network"]["mq"]["qpid"]["host"] %>
qpid_port=<%= node["openstack"]["network"]["mq"]["qpid"]["port"] %> qpid_port=<%= node["openstack"]["network"]["mq"]["qpid"]["port"] %>
@@ -171,9 +171,8 @@ qpid_tcp_nodelay=<%= node["openstack"]["network"]["mq"]["qpid"]["tcp_nodelay"] %
<% end %> <% end %>
# ZMQ # ZMQ
# rpc_backend=quantum.openstack.common.rpc.impl_zmq # rpc_backend=neutron.openstack.common.rpc.impl_zmq
# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP. # ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
# The "host" option should point or resolve to this address. # The "host" option should point or resolve to this address.
# rpc_zmq_bind_address = * # rpc_zmq_bind_address = *
@@ -187,11 +186,11 @@ qpid_tcp_nodelay=<%= node["openstack"]["network"]["mq"]["qpid"]["tcp_nodelay"] %
# Notification_driver can be defined multiple times # Notification_driver can be defined multiple times
# Do nothing driver # Do nothing driver
# notification_driver = quantum.openstack.common.notifier.no_op_notifier # notification_driver = neutron.openstack.common.notifier.no_op_notifier
# Logging driver # Logging driver
# notification_driver = quantum.openstack.common.notifier.log_notifier # notification_driver = neutron.openstack.common.notifier.log_notifier
# RPC driver. DHCP agents needs it. # RPC driver. DHCP agents needs it.
notification_driver = quantum.openstack.common.notifier.rpc_notifier notification_driver = neutron.openstack.common.notifier.rpc_notifier
# default_notification_level is used to form actual topic name(s) or to set logging level # default_notification_level is used to form actual topic name(s) or to set logging level
default_notification_level = INFO default_notification_level = INFO
@@ -234,11 +233,11 @@ router_scheduler_driver = <%= node["openstack"]["network"]["l3"]["scheduler"] %>
# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted # Allow auto scheduling networks to DHCP agent. It will schedule non-hosted
# networks to first DHCP agent which sends get_active_networks message to # networks to first DHCP agent which sends get_active_networks message to
# quantum server # neutron server
# network_auto_schedule = True # network_auto_schedule = True
# Allow auto scheduling routers to L3 agent. It will schedule non-hosted # Allow auto scheduling routers to L3 agent. It will schedule non-hosted
# routers to first L3 agent which sends sync_routers message to quantum server # routers to first L3 agent which sends sync_routers message to neutron server
# router_auto_schedule = True # router_auto_schedule = True
# =========== end of items for agent scheduler extension ===== # =========== end of items for agent scheduler extension =====
@@ -303,12 +302,12 @@ quota_driver = <%= node["openstack"]["network"]["quota"]["driver"] %>
# <service>:<plugin>[:driver] # <service>:<plugin>[:driver]
[AGENT] [AGENT]
# Use "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" to use the real # Use "sudo neutron-rootwrap /etc/neutron/rootwrap.conf" to use the real
# root filter facility. # root filter facility.
# Change to "sudo" to skip the filtering and just run the comand directly # Change to "sudo" to skip the filtering and just run the comand directly
# root_helper = sudo # root_helper = sudo
<% if node["openstack"]["network"]["use_rootwrap"] %> <% if node["openstack"]["network"]["use_rootwrap"] %>
root_helper = "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" root_helper = "sudo neutron-rootwrap /etc/neutron/rootwrap.conf"
<% end -%> <% end -%>
# =========== items for agent management extension ============= # =========== items for agent management extension =============

View File

@@ -2,4 +2,4 @@
# #
# location of the plugin configuration file # location of the plugin configuration file
QUANTUM_PLUGIN_CONF="/etc/quantum/plugins/<%= @plugin_conf %>" NEUTRON_PLUGIN_CONF="/etc/neutron/plugins/<%= @plugin_conf %>"

View File

@@ -2,9 +2,9 @@
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://root:pass@127.0.0.1:3306/restproxy_quantum # sql_connection = mysql://root:pass@127.0.0.1:3306/restproxy_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
# set to -1 implies an infinite retry count # set to -1 implies an infinite retry count

View File

@@ -28,7 +28,7 @@ ostype = <%= node["openstack"]["network"]["brocade"]["switch_ostype"] %>
# sql_idle_timeout = 3600 # sql_idle_timeout = 3600
# #
# Example: # Example:
# sql_connection = mysql://root:pass@localhost/brcd_quantum?charset=utf8 # sql_connection = mysql://root:pass@localhost/brcd_neutron?charset=utf8
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
[PHYSICAL_INTERFACE] [PHYSICAL_INTERFACE]
@@ -47,7 +47,7 @@ network_vlan_ranges = <%= node["openstack"]["network"]["brocade"]["network_vlan_
[AGENT] [AGENT]
# Example: # Example:
# root_helper = sudo /usr/local/bin/quantum-rootwrap /etc/quantum/rootwrap.conf # root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[LINUX_BRIDGE] [LINUX_BRIDGE]
# physical_interface_mappings = <physical network name>:<local interface> # physical_interface_mappings = <physical network name>:<local interface>

View File

@@ -29,8 +29,8 @@ password = <%= @info["password"] %>
# #
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://quantum:password@127.0.0.1:3306/cisco_quantum # sql_connection = mysql://neutron:password@127.0.0.1:3306/cisco_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
# #
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>

View File

@@ -2,9 +2,9 @@
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://quantum:password@127.0.0.1:3306/hyperv_quantum # sql_connection = mysql://neutron:password@127.0.0.1:3306/hyperv_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
# set to -1 implies an infinite retry count # set to -1 implies an infinite retry count

View File

@@ -26,9 +26,9 @@ network_vlan_ranges = <%= node["openstack"]["network"]["linuxbridge"]["network_v
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://root:nova@127.0.0.1:3306/quantum_linux_bridge # sql_connection = mysql://root:nova@127.0.0.1:3306/neutron_linux_bridge
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
@@ -69,5 +69,5 @@ physical_interface_mappings = <%= node["openstack"]["network"]["linuxbridge"]["p
polling_interval = 2 polling_interval = 2
[SECURITYGROUP] [SECURITYGROUP]
# Firewall driver for realizing quantum security group function # Firewall driver for realizing neutron security group function
firewall_driver = quantum.agent.linux.iptables_firewall.IptablesFirewallDriver firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

View File

@@ -2,9 +2,9 @@
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
@@ -25,7 +25,7 @@ reconnect_interval = 2
# sql_idle_timeout = 3600 # sql_idle_timeout = 3600
[META] [META]
## This is list of flavor:quantum_plugins ## This is list of flavor:neutron_plugins
# extension method is used in the order of this list # extension method is used in the order of this list
plugin_list = <%= node["openstack"]["network"]["metaplugin"]["plugin_list"] %> plugin_list = <%= node["openstack"]["network"]["metaplugin"]["plugin_list"] %>
l3_plugin_list = <%= node["openstack"]["network"]["metaplugin"]["l3_plugin_list"] %> l3_plugin_list = <%= node["openstack"]["network"]["metaplugin"]["l3_plugin_list"] %>

View File

@@ -2,9 +2,9 @@
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://root:pass@127.0.0.1:3306/midonet_quantum # sql_connection = mysql://root:pass@127.0.0.1:3306/midonet_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
# set to -1 implies an infinite retry count # set to -1 implies an infinite retry count

View File

@@ -2,9 +2,9 @@
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
# set to -1 implies an infinite retry count # set to -1 implies an infinite retry count
@@ -34,13 +34,13 @@ integration_bridge = <%= node["openstack"]["network"]["nec"]["integration_bridge
# Agent's polling interval in seconds # Agent's polling interval in seconds
polling_interval = <%= node["openstack"]["network"]["nec"]["polling_interval"] %> polling_interval = <%= node["openstack"]["network"]["nec"]["polling_interval"] %>
# Use "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" to use the real # Use "sudo neutron-rootwrap /etc/neutron/rootwrap.conf" to use the real
# root filter facility. # root filter facility.
# Change to "sudo" to skip the filtering and just run the comand directly # Change to "sudo" to skip the filtering and just run the comand directly
root_helper = sudo root_helper = sudo
[SECURITYGROUP] [SECURITYGROUP]
# Firewall driver for realizing quantum security group function # Firewall driver for realizing neutron security group function
firewall_driver = <%= node["openstack"]["network"]["nec"]["firewall_driver"] %> firewall_driver = <%= node["openstack"]["network"]["nec"]["firewall_driver"] %>
[OFC] [OFC]
@@ -48,7 +48,7 @@ firewall_driver = <%= node["openstack"]["network"]["nec"]["firewall_driver"] %>
host = <%= node["openstack"]["network"]["nec"]["ofc_host"] %> host = <%= node["openstack"]["network"]["nec"]["ofc_host"] %>
port = <%= node["openstack"]["network"]["nec"]["ofc_port"] %> port = <%= node["openstack"]["network"]["nec"]["ofc_port"] %>
# Drivers are in quantum/plugins/nec/drivers/ . # Drivers are in neutron/plugins/nec/drivers/ .
driver = <%= node["openstack"]["network"]["nec"]["ofc_driver"] %> driver = <%= node["openstack"]["network"]["nec"]["ofc_driver"] %>
# PacketFilter is available when it's enabled in this configuration # PacketFilter is available when it's enabled in this configuration

View File

@@ -42,7 +42,7 @@ redirects = <%= node["openstack"]["network"]["nicira"]["redirects"] %>
nvp_controllers = <%= node["openstack"]["network"]["nicira"]["nvp_controllers"] %> nvp_controllers = <%= node["openstack"]["network"]["nicira"]["nvp_controllers"] %>
# UUID of the pre-existing default NVP Transport zone to be used for creating # UUID of the pre-existing default NVP Transport zone to be used for creating
# tunneled isolated "Quantum" networks. This option MUST be specified, e.g.: # tunneled isolated "Neutron" networks. This option MUST be specified, e.g.:
default_tz_uuid = <%= node["openstack"]["network"]["nicira"]["default_tz_uuid"] %> default_tz_uuid = <%= node["openstack"]["network"]["nicira"]["default_tz_uuid"] %>
# (Optional) UUID of the cluster in NVP. It can be retrieved from NVP management # (Optional) UUID of the cluster in NVP. It can be retrieved from NVP management
@@ -66,9 +66,9 @@ default_iface_name = <%= node["openstack"]["network"]["nicira"]["default_iface_n
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://root:quantum@127.0.0.1:3306/nvp_quantum # sql_connection = mysql://root:neutron@127.0.0.1:3306/nvp_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Number of reconnection attempts to the DB; Set to -1 to try indefinitely # Number of reconnection attempts to the DB; Set to -1 to try indefinitely
@@ -109,7 +109,7 @@ concurrent_connections = <%= node["openstack"]["network"]["nicira"]["concurrent_
# Acceptable values for 'metadata_mode' are: # Acceptable values for 'metadata_mode' are:
# - 'access_network': this enables a dedicated connection to the metadata # - 'access_network': this enables a dedicated connection to the metadata
# proxy for metadata server access via Quantum router. # proxy for metadata server access via Neutron router.
# - 'dhcp_host_route': this enables host route injection via the dhcp agent. # - 'dhcp_host_route': this enables host route injection via the dhcp agent.
# This option is only useful if running on a host that does not support # This option is only useful if running on a host that does not support
# namespaces otherwise access_network should be used. # namespaces otherwise access_network should be used.

View File

@@ -2,9 +2,9 @@
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron
# Replace 127.0.0.1 above with the IP address of the database used by the # Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.) # main neutron server. (Leave it as is if the database runs on this host.)
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
@@ -129,8 +129,8 @@ bridge_mappings = <%= node["openstack"]["network"]["openvswitch"]["bridge_mappin
polling_interval = 2 polling_interval = 2
[SECURITYGROUP] [SECURITYGROUP]
# Firewall driver for realizing quantum security group function # Firewall driver for realizing neutron security group function
# Default: firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver # Default: firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
<% if node["openstack"]["network"]["openvswitch"]["fw_driver"] -%> <% if node["openstack"]["network"]["openvswitch"]["fw_driver"] -%>
firewall_driver = <%= node["openstack"]["network"]["openvswitch"]["fw_driver"] %> firewall_driver = <%= node["openstack"]["network"]["openvswitch"]["fw_driver"] %>
<% end -%> <% end -%>
@@ -141,7 +141,7 @@ firewall_driver = <%= node["openstack"]["network"]["openvswitch"]["fw_driver"] %
# #
# 1. With VLANs on eth1. # 1. With VLANs on eth1.
# [DATABASE] # [DATABASE]
# sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron
# [OVS] # [OVS]
# network_vlan_ranges = default:2000:3999 # network_vlan_ranges = default:2000:3999
# tunnel_id_ranges = # tunnel_id_ranges =
@@ -152,7 +152,7 @@ firewall_driver = <%= node["openstack"]["network"]["openvswitch"]["fw_driver"] %
# #
# 2. With tunneling. # 2. With tunneling.
# [DATABASE] # [DATABASE]
# sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron
# [OVS] # [OVS]
# network_vlan_ranges = # network_vlan_ranges =
# tunnel_id_ranges = 1:1000 # tunnel_id_ranges = 1:1000

View File

@@ -2,9 +2,9 @@
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: # Example:
# sql_connection = mysql://<user>:<pass>@<host>:3306/plumgrid_quantum # sql_connection = mysql://<user>:<pass>@<host>:3306/plumgrid_neutron
# Replace <host> above with the IP address of the database used by the # Replace <host> above with the IP address of the database used by the
# main quantum server. # main neutron server.
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Database reconnection retry times - in event connectivity is lost # Database reconnection retry times - in event connectivity is lost
# set to -1 implies an infinite retry count # set to -1 implies an infinite retry count

View File

@@ -1,7 +1,7 @@
<%= node["openstack"]["network"]["custom_template_banner"] %> <%= node["openstack"]["network"]["custom_template_banner"] %>
[DATABASE] [DATABASE]
# This line MUST be changed to actually run the plugin. # This line MUST be changed to actually run the plugin.
# Example: sql_connection = mysql://root:nova@127.0.0.1:3306/ryu_quantum # Example: sql_connection = mysql://root:nova@127.0.0.1:3306/ryu_neutron
sql_connection = <%= @sql_connection %> sql_connection = <%= @sql_connection %>
# Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size, # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
# sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled. # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
@@ -50,7 +50,7 @@ ovsdb_ip = <%= node["openstack"]["network"]["ryu"]["ovsdb_ip"] %>
ovsdb_interface = <%= node["openstack"]["network"]["ryu"]["ovsdb_interface"] %> ovsdb_interface = <%= node["openstack"]["network"]["ryu"]["ovsdb_interface"] %>
[SECURITYGROUP] [SECURITYGROUP]
# Firewall driver for realizing quantum security group function # Firewall driver for realizing neutron security group function
firewall_driver = <%= node["openstack"]["network"]["ryu"]["firewall_driver"] %> firewall_driver = <%= node["openstack"]["network"]["ryu"]["firewall_driver"] %>
[AGENT] [AGENT]

View File

@@ -3,4 +3,4 @@
[DEFAULT] [DEFAULT]
# List of directories to load filter definitions from (separated by ','). # List of directories to load filter definitions from (separated by ',').
# These directories MUST all be only writeable by root ! # These directories MUST all be only writeable by root !
filters_path=/etc/quantum/rootwrap.d,/usr/share/quantum/rootwrap filters_path=/etc/neutron/rootwrap.d,/usr/share/neutron/rootwrap