Skip to content

Commit

Permalink
Merge "Link from ovs config file to plugin.ini on RedHat"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 27, 2014
2 parents cfd0abb + a28f734 commit 87d3812
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manifests/agents/ml2/ovs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,14 @@
package { 'neutron-ovs-agent':
ensure => $package_ensure,
name => $::neutron::params::ovs_server_package,
}
} ->
# https://bugzilla.redhat.com/show_bug.cgi?id=1087647
# Causes init script for agent to load the old ovs file
# instead of the ml2 config file.
file { '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini':
ensure => link,
target => '/etc/neutron/plugin.ini'
} ~> Service<| title == 'neutron-ovs-agent-service' |>
}
}

Expand Down
7 changes: 7 additions & 0 deletions spec/classes/neutron_agents_ml2_ovs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
end

it_configures 'neutron plugin ovs agent with ml2 plugin'

it 'configures neutron ovs cleanup service' do
should contain_service('ovs-cleanup-service').with(
:name => platform_params[:ovs_cleanup_service],
Expand All @@ -187,5 +188,11 @@
should contain_package('neutron-ovs-agent').with_before(/Service\[ovs-cleanup-service\]/)
end

it 'links from ovs config to plugin config' do
should contain_file('/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini').with(
:ensure => 'link',
:target => '/etc/neutron/plugin.ini'
)
end
end
end

0 comments on commit 87d3812

Please sign in to comment.