Restart Neutron agents if packages are updated

Creates 'notify' relationships between the relevant Neutron
package(s) and agent services.  This will cause the agents
to be restarted if the package(s) is/are updated.

Change-Id: I4e2049f94636c3ca171fc1ba0d4b1c3cc67610cd
Closes-bug: 1472425
This commit is contained in:
Mike Dorman
2015-07-07 16:57:14 -06:00
parent 424ea9a34d
commit 9a60cbd1e4
19 changed files with 55 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ describe 'neutron::agents::dhcp' do
:require => 'Class[Neutron]',
:tag => 'neutron-service',
)
is_expected.to contain_service('neutron-dhcp-service').that_subscribes_to('Package[neutron]')
end
context 'with manage_service as false' do
@@ -172,6 +173,9 @@ describe 'neutron::agents::dhcp' do
it_configures 'neutron dhcp agent'
it_configures 'neutron dhcp agent with dnsmasq_config_file specified'
it 'configures subscription to neutron-dhcp-agent package' do
is_expected.to contain_service('neutron-dhcp-service').that_subscribes_to('Package[neutron-dhcp-agent]')
end
end
context 'on RedHat platforms' do