Skip to content

Commit

Permalink
Fixes inappropriate error message.
Browse files Browse the repository at this point in the history
"Volume cannot be deleted while migrating" as error message in
create_snapshot is inappropriate while volume is migrating.

Change-Id: I6cfaf312f9b1edbf4e54f737664290d6ab3b6332
Closes-Bug: #1252175
  • Loading branch information
huangtianhua committed Nov 18, 2013
1 parent 1099f09 commit 9f138a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinder/volume/api.py
Expand Up @@ -464,7 +464,7 @@ def _create_snapshot(self, context,

if volume['migration_status'] != None:
# Volume is migrating, wait until done
msg = _("Volume cannot be deleted while migrating")
msg = _("Snapshot cannot be created while volume is migrating")
raise exception.InvalidVolume(reason=msg)

if ((not force) and (volume['status'] != "available")):
Expand Down

0 comments on commit 9f138a1

Please sign in to comment.