Skip to content

Commit fcb68dd

Browse files
Emilien Macchimgagne
authored andcommitted
ml2: fix neutron-server restart
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 (cherry picked from commit cfd0abb)
1 parent cf68d42 commit fcb68dd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

manifests/plugins/ml2.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
include neutron::params
107107

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

110110
# test mechanism drivers
111111
validate_array($mechanism_drivers)

spec/classes/neutron_plugins_ml2_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
let :pre_condition do
2626
"class { 'neutron':
2727
rabbit_password => 'passw0rd',
28-
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }
29-
30-
class { 'neutron::server':
31-
auth_password => 'test'}"
28+
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }"
3229
end
3330

3431
let :default_params do

0 commit comments

Comments
 (0)