Hide Forgot
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:
Please link upstream LP bug if filing upstream too.
You need to configure at least these settings in /etc/cinder/cinder.conf: backup_swift_user=admin backup_swift_password=asdfasdf backup_swift_url=http://192.168.122.xxx:8080/v1/AUTH_
CCing mmagr since this is probably something we could have packstack do.
Looks like this bug should be fixed within the Cinder puppet module. ichavero is currently working on a fix for it.
Created attachment 828049 [details] Add swift backup options to config file Added swift backup options to cinder module.
The cinder puppet module lacks the backup options for swift i added the options to the module. Martin, could you check it out and give me some advice. Thanks!
The best thing to is to submit your patch to upstream in case you need to modify puppet module. Patch looks OK to me, but it's better to have more eyes to check it.
Martin, is it ok to submit the patch to our repos while is approved upstream so we can close this bug?
The code on 1021627 is already merged and the cinder plugin uses cinder::backup::swift in it's manifests. Doing some tests, Martin, Francesco can you helo me confirm that it works??
*** This bug has been marked as a duplicate of bug 1021627 ***