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

Bug 1084461

Summary: packstack: cinder backup service is not installed on rhel7 AIO
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: high    
Version: 5.0 (RHEL 7)CC: acathrow, adahms, afazekas, aortega, derekh, dron, mmagr, yeylon, yrabl
Target Milestone: rc   
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: openstack-packstack-2014.1.1-0.14 Doc Type: Bug Fix
Doc Text:
Previously, the cinder-backup service would not be started correctly under certain conditions after the PackStack all-in-one installation process completed. This was caused by the logic used to set up the cinder-backup service, whereby there was no dependency in the puppet used to install the Cinder component, resulting in the puppet attempting to start the cinder-backup service prior to running the 'cinder-manage db_sync' operation. Now, this logic has been revised so that the cinder-backup service is always started after the 'cinder-manage db_sync' operation is executed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:37:55 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:
Attachments:
Description Flags
log none

Description Dafna Ron 2014-04-04 12:00:53 UTC
Description of problem:

AIO deployed with packstack on rhel7 host does not have backup service installed. 
(cannot use the cinder backup feature)

Version-Release number of selected component (if applicable):

root@orange-vdsf ~(keystone_admin)]# rpm -qa |grep packstack 
openstack-packstack-puppet-2014.1.1-0.7.dev1018.el7.noarch
openstack-packstack-2014.1.1-0.7.dev1018.el7.noarch

How reproducible:

100%

Steps to Reproduce:
1. install AIO on rhel7 
2. run: systemctl |grep cinder
3.

Actual results:

[root@orange-vdsf ~(keystone_admin)]# systemctl |grep cinder
openstack-cinder-api.service                                                                     loaded active running   OpenStack Cinder API Server
openstack-cinder-scheduler.service                                                               loaded active running   OpenStack Cinder Scheduler Server
openstack-cinder-volume.service                                                                  loaded active running   OpenStack Cinder Volume Server

Expected results:

we are missing the cinder-backup service 

Additional info:

Comment 1 Attila Fazekas 2014-04-14 14:36:33 UTC
See also: https://bugzilla.redhat.com/show_bug.cgi?id=1075609

On F20 'journalctl -u openstack-cinder-backup' indicates the cinder backup service was tried to start before the db sync.

Workaround:
$ systemctl  enable openstack-cinder-backup
$ systemctl  restart  openstack-cinder-backup

Comment 2 Dafna Ron 2014-05-09 14:57:29 UTC
one change for the workaround. 
after we enable the service is will not appear in the service list until we reload init. 

Workaround:
$ systemctl  enable openstack-cinder-backup
$ init 3
$ systemctl  restart  openstack-cinder-backup

Comment 4 Martin Magr 2014-05-19 14:54:13 UTC
Dafna, can I please get openstack-setup.log, your answer file and /var/tmp/packstack/<timestamp>-<hash>/manifests/<IP>_cinder.pp?

Comment 5 Dafna Ron 2014-05-19 15:06:15 UTC
Created attachment 897209 [details]
log

there you go.

Comment 6 Martin Magr 2014-05-27 11:57:15 UTC
Dafna, can you please try to reproduce this with most recent packstack / o-p-m, eg:

openstack-packstack-2014.1.1-0.14.dev1068.el7ost
openstack-puppet-modules-2014.1-12.el7ost

I just wasn't able to reproduce the issue. Note that cinder-backup support have been added in 2014.1.1-0.11.dev1055.el7ost. And fix for bug #1075609 was added in packstack-2014.1.1-0.12.dev1065.el7ost. Looking at the description, you are running ancient RDO version.

Comment 7 Dafna Ron 2014-05-27 12:12:09 UTC
I don't have an AIO but I don't think any difference between AIO and distributed should exist. 
I can verify that we install and activate backup service on latest packages: 
openstack-packstack-puppet-2014.1.1-0.14.dev1068.el7ost.noarch
openstack-packstack-2014.1.1-0.14.dev1068.el7ost.noarch

[root@puma32 ~]# systemctl |grep cinder
var-lib-cinder-mnt-7395c6c5745705b5c77187ca90f13207.mount                                 loaded active mounted   /var/lib/cinder/mnt/7395c6c5745705b5c77187ca90f13207
openstack-cinder-api.service                                                              loaded active running   OpenStack Cinder API Server
openstack-cinder-backup.service                                                           loaded active running   OpenStack Cinder Backup Server
openstack-cinder-scheduler.service                                                        loaded active running   OpenStack Cinder Scheduler Server
openstack-cinder-volume.service                                                           loaded active running   OpenStack Cinder Volume Server

I added fixed in version and moving to verified, if it's incorrect can you please fix it?

Comment 8 yeylon@redhat.com 2014-05-29 18:47:44 UTC
this has failed on OpenStack-5.0-RHEL-7 Puddle: 2014-05-27.2.

1. The openstack-status script expect to find an operational openstack-cinder-backup service, but it's indicated as inactive.

Comment 9 Martin Magr 2014-06-02 11:34:23 UTC
Yaniv, can you attach your answer file and /var/tmp/packstack/<timestamp>-<hash>/manifests/<ip>_cinder.pp.log to this bug? I cannot reproduce the situation where cinder backup is inactive:

...
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

 **** Installation completed successfully ******
...
[para@localhost packstack]$ sudo openstack-status
...
== Cinder services ==
openstack-cinder-api:                   active
openstack-cinder-scheduler:             active
openstack-cinder-volume:                active
openstack-cinder-backup:                active
...

Comment 11 Yogev Rabl 2014-06-18 08:35:54 UTC
tested this issue on Openstack Icehouse & RHEL 7 OS. 
The bug was resolved.

Installed AIO, both as:
1. packstack --allinone
2. packstack --answer-file <file> (without neutron).

# systemctl | grep cinder
openstack-cinder-api.service                                                              loaded active running   OpenStack Cinder API Server
openstack-cinder-backup.service                                                           loaded active running   OpenStack Cinder Backup Server
openstack-cinder-scheduler.service                                                        loaded active running   OpenStack Cinder Scheduler Server
openstack-cinder-volume.service

Comment 15 errata-xmlrpc 2014-07-08 15:37:55 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.

http://rhn.redhat.com/errata/RHEA-2014-0846.html