Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1704412

Summary: cinder-backup service not configured per THT parameter values
Product: Red Hat OpenStack Reporter: Alan Bishop <abishop>
Component: openstack-tripleo-heat-templatesAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: Tzach Shefi <tshefi>
Severity: high Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: mburns
Target Milestone: betaKeywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-10.5.1-0.20190509160423.4dac4dc.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:21:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alan Bishop 2019-04-29 16:40:07 UTC
When the cinder-backup service is deployed, the service is not being configured with any of the THT parameters. Instead, it ends up running with an entirely default configuration (which happens to use the swift backend driver).

The problem can be observed by deploying cinder-backup, and checking the backup_driver setting in the DEFAULT section of cinder.conf. TripleO should always configure the backup_driver, even when using swift (the default swift). In other words, when the backup service is deployed, the backup_driver should never be left commented out.

Comment 1 Alan Bishop 2019-05-14 19:55:22 UTC
No doc text required. This was a regression introduced and fixed in stein prior to the release of OSP-15.

Comment 5 Tzach Shefi 2019-05-22 09:26:00 UTC
Verified on:
openstack-tripleo-heat-templates-10.5.1-0.20190509160423.4dac4dc.el8ost.noarch


Deployed Cinder backup service via adding on overcloud_deploy.sh -> 
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/cinder-backup.yaml \


Review cinder.conf

    255 # Driver to use for backups. (string value)
    256 #backup_driver = cinder.backup.drivers.swift.SwiftBackupDriver
    257 backup_driver=cinder.backup.drivers.swift.SwiftBackupDriver

As seen above this happens to be an LVM deployment defaults to swift as Cinder backup any way. 
But line 257 the backup_driver is present not commented out. 


On another deployment this time with a later THT, deployed with ceph
openstack-tripleo-heat-templates-10.5.1-0.20190520170359.0c31f04.el8ost.noarch
    260 # Driver to use for backups. (string value)
    261 #backup_driver = cinder.backup.drivers.swift.SwiftBackupDriver
    262 backup_driver=cinder.backup.drivers.ceph.CephBackupDriver

backup_driver was never commented out, looks OK to verify.

Comment 7 errata-xmlrpc 2019-09-21 11:21:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:2811