Ask Your Question
0

heat volume restore from volume backup (Icehouse)

asked 2014-08-23 17:15:38 -0500

dubi gravatar image

updated 2015-09-24 17:05:48 -0500

Steve Baker gravatar image

A target openstack has a volume restored from a backup copy denoted by a backup_id

The volume (only) is created by Heat from the backup using the template below:

description: Generated template
heat_template_version: 2014-08-23
parameters: {}
resources:
  volume_3:
    properties:
      backup_id: 223192c3-b125-417e-b6d5-838b95fbfe28
      metadata: {readonly: 'False'}
      name: my_vol8
      size: 1
    type: OS::Cinder::Volume

The Heat command to create the volume is :

heat stack-create -f vol-file stack11 where vol_file contains the above template

Without the backup_id clause the volume is created ok ( i.e not using a backup)

With the backup_id the create fails and the heat engine log file shows :

2014-08-24 00:45:17.996 10123 ERROR heat.engine.resource [-] CREATE : CinderVolume "volume_3" 
[229c96d1-7884-4672-9ea8-9ef38f52ca2e] Stack "stack11" [56d73d22-e8cc-4f0a-bfca-9ed82ad4588d]
2014-08-24 00:45:17.996 10123 TRACE heat.engine.resource Traceback (most recent call last):
2014-08-24 00:45:17.996 10123 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/heat/engine
/resource.py", line 423, in _do_action
2014-08-24 00:45:17.996 10123 TRACE heat.engine.resource     while not check(handle_data):
2014-08-24 00:45:17.996 10123 TRACE heat.engine.resource   File "/usr/lib/python2.6/site-packages/heat/engine
/resources/volume.py", line 133, in check_create_complete
2014-08-24 00:45:17.996 10123 TRACE heat.engine.resource     raise exception.Error(vol.status)
2014-08-24 00:45:17.996 10123 TRACE heat.engine.resource **Error: error_restoring**
edit retag flag offensive close merge delete

Comments

The backup volume exists at the target Openstack . verfied by : cinder backup-list
as follows: +--------------------------------------+---------------------+-----------+--------+------+--------------+--------------------------------+ | ID | Volume ID | Status | Name | Size | Object Count | container| +--------------------------------------+---------------------+-----------+--------+------+--------------+--------------------------------+ | | 223192c3-b125-417e-b6d5-838b95fbfe28 | 0000-0000-0000-0000 | available | my_vol | 1 | 22 | admin/vol_only/20140823155023# |

dubi gravatar imagedubi ( 2014-08-24 00:59:23 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-24 17:07:13 -0500

Steve Baker gravatar image

You should confirm that this is not in fact a cinder issue by using the cinder command to create a volume from the backup. If this fails then that confirms Heat is merely the messenger for an underlying operation which failed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-23 17:15:38 -0500

Seen: 309 times

Last updated: Sep 24 '15