Skip to content

Commit d7ea12e

Browse files
michaeltchapmanChris Hoge
authored andcommitted
Link from ovs config file to plugin.ini on RedHat
All init scripts for neutron-openvswitch-agent from RedHat packages use the non-ml2 config file path. When using ML2 this causes problems since all config is set under the ML2 plugin directory. Since this is only a bug when using ML2, but not when using the monolithic plugin, it may not be fixed in packages. https://bugzilla.redhat.com/show_bug.cgi?id=1087647 This patch creates a symlink from the old plugin config path to the new one to mitigate the issue. Change-Id: I5feb8fc39fa4d67aebb4209d7b44bea38d1a9d5f (cherry picked from commit a28f734)
1 parent 0ad1b62 commit d7ea12e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

manifests/agents/ml2/ovs.pp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,14 @@
204204
package { 'neutron-ovs-agent':
205205
ensure => $package_ensure,
206206
name => $::neutron::params::ovs_server_package,
207-
}
207+
} ->
208+
# https://bugzilla.redhat.com/show_bug.cgi?id=1087647
209+
# Causes init script for agent to load the old ovs file
210+
# instead of the ml2 config file.
211+
file { '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini':
212+
ensure => link,
213+
target => '/etc/neutron/plugin.ini'
214+
} ~> Service<| title == 'neutron-ovs-agent-service' |>
208215
}
209216
}
210217

spec/classes/neutron_agents_ml2_ovs_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
end
179179

180180
it_configures 'neutron plugin ovs agent with ml2 plugin'
181+
181182
it 'configures neutron ovs cleanup service' do
182183
should contain_service('ovs-cleanup-service').with(
183184
:name => platform_params[:ovs_cleanup_service],
@@ -187,5 +188,11 @@
187188
should contain_package('neutron-ovs-agent').with_before(/Service\[ovs-cleanup-service\]/)
188189
end
189190

191+
it 'links from ovs config to plugin config' do
192+
should contain_file('/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini').with(
193+
:ensure => 'link',
194+
:target => '/etc/neutron/plugin.ini'
195+
)
196+
end
190197
end
191198
end

0 commit comments

Comments
 (0)