]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixes inappropriate error message.
authorhuangtianhua <huangtianhua@huawei.com>
Mon, 18 Nov 2013 07:55:32 +0000 (15:55 +0800)
committerhuangtianhua <huangtianhua@huawei.com>
Mon, 18 Nov 2013 08:03:54 +0000 (16:03 +0800)
"Volume cannot be deleted while migrating" as error message in
create_snapshot is inappropriate while volume is migrating.

Change-Id: I6cfaf312f9b1edbf4e54f737664290d6ab3b6332
Closes-Bug: #1252175

cinder/volume/api.py

index a1398d4d8e6bfce0f812ef6d319c5a17c804f1f9..ccc81a0ce7d3b4c828363122f0b567ca1539565a 100644 (file)
@@ -464,7 +464,7 @@ class API(base.Base):
 
         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")):