Bug 966124 - Images become stuck in backing-up status after "cinder backup-create"
Summary: Images become stuck in backing-up status after "cinder backup-create"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 4.0
Assignee: Eric Harney
QA Contact: Haim
URL:
Whiteboard:
Depends On:
Blocks: 987305
TreeView+ depends on / blocked
 
Reported: 2013-05-22 14:25 UTC by Daniel Paikov
Modified: 2018-12-03 18:54 UTC (History)
10 users (show)

Fixed In Version: openstack-cinder-2013.2-0.11.rc1.el6ost
Doc Type: Bug Fix
Doc Text:
Previously, a volume backup would hang in a 'backing-up' state if the cinder-backup service was inaccessible. With this update, Block Storage queries the state of the 'cinder-backup' service prior to attempting the backup process. If 'cinder-backup' service is inaccessible, the backup moves into the 'error' state.
Clone Of:
Environment:
Last Closed: 2013-12-20 00:02:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
api.log (2.73 KB, application/x-gzip)
2013-05-22 14:25 UTC, Daniel Paikov
no flags Details
volume.log (2.02 KB, application/x-gzip)
2013-05-22 14:26 UTC, Daniel Paikov
no flags Details
api.log - gold-vdsd (1.31 KB, application/x-gunzip)
2013-06-02 08:18 UTC, Daniel Paikov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 36612 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Daniel Paikov 2013-05-22 14:25:26 UTC
Created attachment 751736 [details]
api.log

"cinder backup-create" never exits, images stuck in backing-up status. 

[root@orange-vdsf ~(keystone_admin)]# cinder list
+--------------------------------------+------------+--------------+------+-------------+----------+-------------+
|                  ID                  |   Status   | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+------------+--------------+------+-------------+----------+-------------+
| 62f94e4f-059a-43de-ae7e-1ce657623056 | backing-up |     None     |  1   |     None    |  false   |             |
| d5b0c68f-9594-4bd2-be22-b96c608cfe3c | backing-up |     None     |  1   |     None    |  false   |             |
+--------------------------------------+------------+--------------+------+-------------+----------+-------------+

[root@orange-vdsf ~(keystone_admin)]# cinder backup-list
+--------------------------------------+--------------------------------------+----------+------+------+--------------+-----------+
|                  ID                  |              Volume ID               |  Status  | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------+----------+------+------+--------------+-----------+
| cf7bdeef-55c5-4024-9470-36f1b33ae3d6 | 62f94e4f-059a-43de-ae7e-1ce657623056 | creating | None |  1   |     None     |    None   |
| e71ecc5b-1496-4c6f-ad8b-37fb9f44e00b | d5b0c68f-9594-4bd2-be22-b96c608cfe3c | creating | None |  1   |     None     |    None   |
+--------------------------------------+--------------------------------------+----------+------+------+--------------+-----------+

Comment 1 Daniel Paikov 2013-05-22 14:26:18 UTC
Created attachment 751737 [details]
volume.log

Comment 3 Eric Harney 2013-05-22 16:45:44 UTC
Something has gone really wrong here with the database:

ProgrammingError: (ProgrammingError) (1146, "Table 'cinder.volumes' doesn't exist")

What install/upgrade steps were performed to get the server to this state?  Install RHOS 3 builds, upgrade from RHOS 2.1?  Packstack/no packstack?

Comment 4 Daniel Paikov 2013-05-27 06:54:12 UTC
(In reply to Eric Harney from comment #3)
> Something has gone really wrong here with the database:
> 
> ProgrammingError: (ProgrammingError) (1146, "Table 'cinder.volumes' doesn't
> exist")
> 
> What install/upgrade steps were performed to get the server to this state? 
> Install RHOS 3 builds, upgrade from RHOS 2.1?  Packstack/no packstack?

This was a clean installing using packstack --allinone.

Comment 5 Daniel Paikov 2013-06-02 08:18:51 UTC
Created attachment 755755 [details]
api.log - gold-vdsd

Attaching api.log from another host with the same issue. This host had an empty volume.log, so not attaching volume.log. This host however has many errors of: "Maximum number of volumes allowed (10) exceeded". I tried using "cinder backup-create" both before and after raising the max number of volumes, but it became stuck both times.

Comment 7 Steve Baker 2013-07-11 01:26:40 UTC
Chances are that swift (and cinder-backup) are not running.

I've raised this upstream so that this scenario results in a less time-consuming failure mode:
https://bugs.launchpad.net/cinder/+bug/1200040

Comment 14 Haim 2013-10-17 15:17:13 UTC
verified on:

openstack-cinder-2013.2-0.11.rc1.el6ost.noarch
python-cinder-2013.2-0.11.rc1.el6ost.noarch
python-cinderclient-1.0.6-1.el6ost.noarch

cinder backup-create fails with error, however, it doesn't stuck!


~(keystone_admin)]# cinder backup-list
/usr/lib/python2.6/site-packages/babel/__init__.py:33: UserWarning: Module backports was already imported from /usr/lib64/python2.6/site-packages/backports/__init__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import get_distribution, ResolutionError
+--------------------------------------+--------------------------------------+--------+---------+------+--------------+---------------+
|                  ID                  |              Volume ID               | Status |   Name  | Size | Object Count |   Container   |
+--------------------------------------+--------------------------------------+--------+---------+------+--------------+---------------+
| 756ef62a-1fe2-4f1a-823a-07a9029ceae9 | f12a2575-1c48-40f4-8580-c06930af553e | error  | backup_ |  6   |     None     | volumebackups |
| ac238322-9ccd-4e52-a081-e76caa2bc323 | fc45046e-b278-4df3-a29f-242f883a8d01 | error  |  kaka1  |  1   |     None     | volumebackups |
+--------------------------------------+--------------------------------------+--------+---------+------+--------------+---------------+

Comment 19 errata-xmlrpc 2013-12-20 00:02:56 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-2013-1859.html


Note You need to log in before you can comment on or make changes to this bug.