From: huangtianhua Date: Mon, 18 Nov 2013 07:55:32 +0000 (+0800) Subject: Fixes inappropriate error message. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9f138a1efdab9dd0f7b4bbfc9835bd53dfed762b;p=openstack-build%2Fcinder-build.git Fixes inappropriate error message. "Volume cannot be deleted while migrating" as error message in create_snapshot is inappropriate while volume is migrating. Change-Id: I6cfaf312f9b1edbf4e54f737664290d6ab3b6332 Closes-Bug: #1252175 --- diff --git a/cinder/volume/api.py b/cinder/volume/api.py index a1398d4d8..ccc81a0ce 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -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")):