'Save volume Glance metadata to container.
This will fetch all fields from the db VolumeGlanceMetadata object for
volume_id and save them in the provided container dictionary.'

def _save_vol_glance_meta(self, container, volume_id):

    type_tag = self.TYPE_TAG_VOL_GLANCE_META
    LOG.debug("Getting    metadata    type    '%s'", type_tag)
    try:
        meta = self.db.volume_glance_metadata_get(self.context, volume_id)
        if meta:
            container[type_tag] = {}
            for entry in meta:
                if (not self._is_serializable(entry.value)):
                    LOG.info("Unable    to    serialize    field    '%s'    -    excluding    from    backup", entry)
                    continue
                container[type_tag][entry.key] = entry.value
        LOG.debug("Completed    fetching    metadata    type    '%s'", type_tag)
    except exception.GlanceMetadataNotFound:
        LOG.debug("No    metadata    type    '%s'    available", type_tag)
