Change this DEBUG log message from:
Updating volume:
7fd9a82d-0f11-4d1b-921d-
97186a4e2df4 with
{'status': 'error'} due to: ???
to:
Updating volume:
7fd9a82d-0f11-4d1b-921d-
97186a4e2df4 with
{'status': 'error'} due to: Volume create failed while
extracting volume ref.
When a volume manage operation fails here.
The subsequent ERROR log message remains as:
"Volume <id>: create failed"
Change-Id: I70c343a974926348f5e3b7e0fffbd0b976bc96a2
if isinstance(result, ft.Failure) or not self.set_error:
return
- common.error_out_volume(context, self.db, volume_id)
+ reason = _('Volume create failed while extracting volume ref.')
+ common.error_out_volume(context, self.db, volume_id, reason=reason)
LOG.error(_LE("Volume %s: create failed"), volume_id)