Restoring metadata only needs to be done once

Bug #1686334 reported by wanghongxu
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress
Sean McGinnis

Bug Description

metadata is full backup. Only the last backup need to restore metadata.
        while index >= 0:
            backup1 = backup_list[index]
            index = index - 1
            metadata = self._read_metadata(backup1)
            restore_func(backup1, volume_id, metadata, volume_file)

            volume_meta = metadata.get('volume_meta', None)
                if volume_meta:
                    self.put_metadata(volume_id, volume_meta)
                    LOG.debug("No volume metadata in this backup.")
            except exception.BackupMetadataUnsupportedVersion:
                msg = _("Metadata restore failed due to incompatible version.")
                raise exception.BackupOperationError(msg)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master

Changed in cinder:
assignee: nobody → wanghongxu (wang19930902)
status: New → In Progress
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Assignee Expired

Unassigning due to no activity for > 6 months.

Changed in cinder:
assignee: wanghongxu (wang19930902) → nobody
status: In Progress → Triaged
Changed in cinder:
assignee: nobody → Sean McGinnis (sean-mcginnis)
status: Triaged → In Progress
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.