cinder - fail to create a backup with local tgt

Bug #1239285 reported by Yogev Rabl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

Description of problem:
The Cinder backup fail to backup a volume. The configuration is the default local TGT.
The size of the volume is 1 GB, the size of the storage is 20 GB.
The setup doesn't have Swift in it.
The error from the backup log is:

2013-10-13 10:08:58.481 27251 ERROR cinder.openstack.common.rpc.amqp [req-52c5fd2f-3a6d-4321-ae62-5e7c0aa308cb ab622325036c40d6b2f8d4ba830f37b4 7ba6991d8f804b4a876f43335a876872] Exception during message handling
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp Traceback (most recent call last):
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/amqp.py", line 441, in _process_data
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp **args)
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/dispatcher.py", line 148, in dispatch
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/backup/manager.py", line 180, in create_backup
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp 'fail_reason': unicode(err)})
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp self.gen.next()
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/backup/manager.py", line 173, in create_backup
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp self.driver.backup_volume(context, backup, backup_service)
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 309, in backup_volume
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp backup_service.backup(backup, volume_file)
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/backup/drivers/swift.py", line 331, in backup
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp object_meta, container = self._prepare_backup(backup)
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/backup/drivers/swift.py", line 239, in _prepare_backup
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp raise exception.SwiftConnectionFailed(reason=str(err))
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp SwiftConnectionFailed: Connection to swift failed: [Errno 111] ECONNREFUSED
2013-10-13 10:08:58.481 27251 TRACE cinder.openstack.common.rpc.amqp

Version-Release number of selected component (if applicable):
openstack-cinder-2013.2-0.9.b3.el6ost.noarch

How reproducible:
everytime

Steps to Reproduce:
1. Create a volume.
2. Backup the volume
3.

Actual results:
The backup status is error

Expected results:
The backup status is available.

Additional info:

Tags: cinder
Revision history for this message
Zhenshi Zhou (joker-zhou) wrote :

Hi Yogev,

Cinder backup backends include only Swift, Ceph and IBM TSM at present, and its default value should be Swift.

You cannot backup volumes without configuring this setting correctly.

Revision history for this message
Avishay Traeger (avishay-il) wrote :

Zhenshi,
I was confused by this as well, but see the "actual results" vs. "expected results". It seems that the backup is reported as successful (status==available) rather than failure (status==error).

Revision history for this message
Zhenshi Zhou (joker-zhou) wrote :

Avishay,

The log indicates that it tries to communicate with Swift to backup volumes. It encounters a connection error since there is no Swift exists. I think Yogev get an error status actually.

I'm new to Openstack, and looking into cinder's code. Let me know if I mistake anything.

Thanks.

Revision history for this message
John Griffith (john-griffith) wrote :

Yogev, Avishay,

According to the original post Yogev, you stated:

"Swift is not installed", and that you "expect backup to be available" but that you see it in "error state". This would actually be expected, but it seems there's some confusion regarding exactly what you're seeing, could you please clarify?

Changed in cinder:
status: New → Invalid
Revision history for this message
Avishay Traeger (avishay-il) wrote :

Oops - I mixed up the actual and expected. Yes, the behavior seen here makes sense - it should obviously be an error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.