Correct db sync for backwards compatibility

In the previous patch https://review.openstack.org/#/c/241003/4
the default value for the config file when running glance-manage
db sync was changed. This patch restores the old default value
for backwards compatibility.

Change-Id: I1c17461bf7f4922ece41673f3f726ec00b0cd4c7
This commit is contained in:
Nate Potter
2015-11-19 16:31:13 +00:00
parent 5b7b2b3c83
commit 166af71b1f
3 changed files with 3 additions and 5 deletions

View File

@@ -7,10 +7,10 @@
# (optional) String of extra command line parameters to append
# to the glance-manage db sync command. These will be inserted
# in the command line between 'glance-manage' and 'db sync'.
# Defaults to undef
# Defaults to '--config-file /etc/glance/glance-registry.conf'
#
class glance::db::sync(
$extra_params = undef,
$extra_params = '--config-file /etc/glance/glance-registry.conf',
) {
include ::glance::params

View File

@@ -13,7 +13,6 @@ class glance::params {
$registry_package_name = 'openstack-glance'
$api_service_name = 'openstack-glance-api'
$registry_service_name = 'openstack-glance-registry'
$db_sync_command = 'glance-manage --config-file=/etc/glance/glance-registry.conf db_sync'
if ($::operatingsystem != 'fedora' and versioncmp($::operatingsystemrelease, '7') < 0) {
$pyceph_package_name = 'python-ceph'
} else {
@@ -25,7 +24,6 @@ class glance::params {
$registry_package_name = 'glance-registry'
$api_service_name = 'glance-api'
$registry_service_name = 'glance-registry'
$db_sync_command = 'glance-manage --config-file=/etc/glance/glance-registry.conf db_sync'
$pyceph_package_name = 'python-ceph'
}
default: {

View File

@@ -6,7 +6,7 @@ describe 'glance::db::sync' do
it 'runs glance-manage db_sync' do
is_expected.to contain_exec('glance-manage db_sync').with(
:command => 'glance-manage db_sync',
:command => 'glance-manage --config-file /etc/glance/glance-registry.conf db_sync',
:path => '/usr/bin',
:user => 'glance',
:refreshonly => 'true',