Skip to content

Commit 2abc66a

Browse files
committed
Added support for lbaas and firewall service. Fix for merge conflict on horizon.
1 parent 861a303 commit 2abc66a

6 files changed

Lines changed: 31 additions & 27 deletions

File tree

recipes/dashboard.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
action :purge
2626
end
2727

28-
template '/etc/openstack-dashboard/local_settings.py' do
29-
source 'horizon/local_settings.py.erb'
28+
template '/etc/apache2/conf-available/openstack-dashboard.conf' do
29+
source 'horizon/openstack-dashboard.conf.erb'
3030
owner 'root'
3131
group 'root'
32-
mode 00644
32+
mode 00755
3333
notifies :restart, resources(:service => 'apache2')
3434
notifies :restart, resources(:service => 'memcached')
3535
end

recipes/neutron-common.rb

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
prereq_packages = %w[openvswitch-datapath-dkms]
22
common_packages = %w[openvswitch-switch
3-
neutron-plugin-openvswitch-agent]
4-
3+
neutron-plugin-openvswitch-agent
4+
neutron-lbaas-agent
5+
haproxy]
6+
network_services = %w[openvswitch-switch
7+
neutron-plugin-openvswitch-agent
8+
neutron-lbaas-agent]
59

610
prereq_packages.each do |pkg|
711
package prereq_packages.join(' ') do
@@ -15,17 +19,13 @@
1519
end
1620
end
1721

18-
service 'openvswitch-switch' do
19-
supports :status => true, :restart => true, :reload => true
20-
action :nothing
21-
end
22-
23-
service 'neutron-plugin-openvswitch-agent' do
24-
provider Chef::Provider::Service::Upstart
25-
action :nothing
22+
network_services.each do |srv|
23+
service srv do
24+
provider Chef::Provider::Service::Upstart
25+
action :nothing
26+
end
2627
end
2728

28-
2929
template 'neutron network node OVS config' do
3030
path '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'
3131
owner 'root'
@@ -40,6 +40,14 @@
4040
:immediately
4141
end
4242

43+
template '/etc/neutron/lbaas_agent.ini' do
44+
source 'neutron/lbaas_agent.ini.erb'
45+
owner 'root'
46+
group 'root'
47+
mode '0644'
48+
notifies :restart, resources(:service => 'neutron-lbaas-agent')
49+
end
50+
4351
bash 'create external bridge' do
4452
not_if('ovs-vsctl list-br | grep br-ex')
4553
code <<-CODE

recipes/neutron-controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%w[neutron-server].each do |pkg|
1+
%w[neutron-server python-neutronclient].each do |pkg|
22
package pkg do
33
action :install
44
end

recipes/neutron-network.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
packages = %w[neutron-l3-agent
22
neutron-dhcp-agent
3-
neutron-metadata-agent
4-
neutron-plugin-openvswitch-agent
5-
neutron-lbaas-agent]
3+
neutron-metadata-agent]
64

7-
network_services = %w[openvswitch-switch
8-
neutron-plugin-openvswitch-agent
9-
neutron-dhcp-agent
5+
network_services = %w[neutron-dhcp-agent
106
neutron-l3-agent
11-
neutron-metadata-agent
12-
neutron-lbaas-agent]
7+
neutron-metadata-agent]
138

149
packages.each do |pkg|
1510
package pkg do

templates/default/neutron/lbaas_agent.ini.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
1818
# Use veth for an OVS interface or not.
1919
# Support kernels with limited namespace support
2020
# (e.g. RHEL 6.5) so long as ovs_use_veth is set to True.
21-
# ovs_use_veth = False
21+
ovs_use_veth = True
2222

2323
# Example of interface_driver option for LinuxBridge
2424
# interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
2525

2626
# The agent requires a driver to manage the loadbalancer. HAProxy is the
2727
# opensource version.
28-
device_driver = neutron.plugins.services.agent_loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
28+
#device_driver = neutron.plugins.services.agent_loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
29+
device_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
2930
# The user group
3031
# user_group = nogroup

templates/default/neutron/neutron.conf.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bind_port = <%= node['neutron']['config']['bind_port'] %>
5151
core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
5252

5353
# Advanced service modules
54-
#service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin #, neutron.services.firewall.fwaas_plugin.FirewallPlugin
54+
service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPlugin, neutron.services.firewall.fwaas_plugin.FirewallPlugin
5555
# Paste configuration file
5656
#api_paste_config = api-paste.ini
5757

@@ -383,5 +383,5 @@ connection = mysql://<%= node['neutron']['db']['name'] %>:<%= node['neutron']['d
383383
# example of non-default provider:
384384
# service_provider=FIREWALL:name2:firewall_driver_path
385385
# --- Reference implementations ---
386-
#service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
386+
service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
387387
#service_provider=FIREWALL:Iptables:neutron.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver:default

0 commit comments

Comments
 (0)