Disable unneeded swift services
This patch totally disable swift-object-reconstructor and swift-container-reconciler as they are not used, but are enabled by default. After reboot they are trying to start in a loop, consuming resources, but fail due to missing config-files. Change-Id: I7eaddec8d8e5e10dabbf3f44c042517f70a4cee3 Closes-Bug: 1587047
This commit is contained in:
parent
50eb9b76ec
commit
cd059f1cc2
|
@ -175,6 +175,17 @@ class openstack_tasks::swift::proxy_storage {
|
|||
verbose => $verbose,
|
||||
log_facility => 'LOG_SYSLOG',
|
||||
}
|
||||
|
||||
service { 'swift-container-reconciler':
|
||||
ensure => stopped,
|
||||
enable => false,
|
||||
require => Package['swift-container'],
|
||||
}
|
||||
service { 'swift-object-reconstructor':
|
||||
ensure => stopped,
|
||||
enable => false,
|
||||
require => Package['swift-object'],
|
||||
}
|
||||
}
|
||||
|
||||
# swift_container_sync_realms file specifying
|
||||
|
|
|
@ -214,6 +214,22 @@ describe manifest do
|
|||
end
|
||||
end
|
||||
|
||||
if deploy_swift_storage
|
||||
it 'should disable swift-container-reconciler service' do
|
||||
should contain_service('swift-container-reconciler').with(
|
||||
'ensure' => 'stopped',
|
||||
'enable' => 'false',
|
||||
).that_requires('Package[swift-container]')
|
||||
end
|
||||
|
||||
it 'should disable swift-object-reconstructor service' do
|
||||
should contain_service('swift-object-reconstructor').with(
|
||||
'ensure' => 'stopped',
|
||||
'enable' => 'false',
|
||||
).that_requires('Package[swift-object]')
|
||||
end
|
||||
end
|
||||
|
||||
if deploy_swift_proxy or deploy_swift_storage
|
||||
realm1_key = Noop.hiera('swift_realm1_key', 'realm1key')
|
||||
it 'should contain swift_container-sync-realms config' do
|
||||
|
|
Loading…
Reference in New Issue