Skip to content

Commit

Permalink
ml2: fix neutron-server restart
Browse files Browse the repository at this point in the history
Only restart neutron-server on nodes hosting this service.
The plugin class is not linked to neutron-server so it should not depend
on it in the catalog.

Closes-bug #1334906

Change-Id: I6781a8f60c04d7ef18202d378aa096c794e3fa44
  • Loading branch information
Emilien Macchi committed Jun 27, 2014
1 parent d59bf66 commit cfd0abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/plugins/ml2.pp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

include neutron::params

Neutron_plugin_ml2<||> ~> Service['neutron-server']
Neutron_plugin_ml2<||> ~> Service <| title == 'neutron-server' |>

# test mechanism drivers
validate_array($mechanism_drivers)
Expand Down
5 changes: 1 addition & 4 deletions spec/classes/neutron_plugins_ml2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
let :pre_condition do
"class { 'neutron':
rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }
class { 'neutron::server':
auth_password => 'test'}"
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }"
end

let :default_params do
Expand Down

0 comments on commit cfd0abb

Please sign in to comment.