Manage missing Swift storage server services
Before this fix the following services where missing: root@swift-storage-01:~# swift-init status all|grep ^No No container-updater running No account-auditor running No object-auditor running No object-expirer running No container-auditor running No account-reaper running No container-sync running No object-updater running After this commit: root@swift-storage-01:/etc/init# swift-init status all|grep ^No No proxy-server running No object-expirer running It's OK for the proxy-server to be stopped since it's a storage . You only need to manage one object-expirer per cluster, so this not place to manage it either. See: http://docs.openstack.org/developer/swift/overview_expiring_objects.html
This commit is contained in:
parent
05d44d8e78
commit
403a88a05f
20
files/swift-container-sync.conf.upstart
Normal file
20
files/swift-container-sync.conf.upstart
Normal file
@ -0,0 +1,20 @@
|
||||
# swift-container-sync - SWIFT Container Sync
|
||||
#
|
||||
# The swift container sync.
|
||||
|
||||
description "SWIFT Container Sync"
|
||||
author "Sergio Rubio <rubiojr@bvox.net>"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [016]
|
||||
|
||||
pre-start script
|
||||
if [ -f "/etc/swift/container-server.conf" ]; then
|
||||
exec /usr/bin/swift-init container-sync start
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
end script
|
||||
|
||||
post-stop exec /usr/bin/swift-init container-sync stop
|
||||
|
@ -4,4 +4,19 @@ class swift::storage::account(
|
||||
swift::storage::generic { 'account':
|
||||
package_ensure => $package_ensure,
|
||||
}
|
||||
|
||||
# Not tested in other distros, safety measure
|
||||
if $operatingsystem == 'Ubuntu' {
|
||||
service { 'swift-account-reaper':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
provider => $::swift::params::service_provider,
|
||||
}
|
||||
|
||||
service { 'swift-account-auditor':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
provider => $::swift::params::service_provider,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,4 +4,28 @@ class swift::storage::container(
|
||||
swift::storage::generic { 'container':
|
||||
package_ensure => $package_ensure
|
||||
}
|
||||
|
||||
# Not tested in other distros, safety measure
|
||||
if $operatingsystem == 'Ubuntu' {
|
||||
service { 'swift-container-updater':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
provider => $::swift::params::service_provider,
|
||||
}
|
||||
service { 'swift-container-auditor':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
provider => $::swift::params::service_provider,
|
||||
}
|
||||
# The following service conf is missing in Ubunty 12.04
|
||||
file { '/etc/init/swift-container-sync.conf':
|
||||
source => 'puppet:///modules/swift/swift-container-sync.conf.upstart',
|
||||
}
|
||||
service { 'swift-container-sync':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
provider => $::swift::params::service_provider,
|
||||
require => File['/etc/init/swift-container-sync.conf']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,4 +4,18 @@ class swift::storage::object(
|
||||
swift::storage::generic { 'object':
|
||||
package_ensure => $package_ensure
|
||||
}
|
||||
|
||||
# Not tested in other distros, safety measure
|
||||
if $operatingsystem == 'Ubuntu' {
|
||||
service { 'swift-object-updater':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
provider => $::swift::params::service_provider,
|
||||
}
|
||||
service { 'swift-object-auditor':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
provider => $::swift::params::service_provider,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user