From 9f138a1efdab9dd0f7b4bbfc9835bd53dfed762b Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Mon, 18 Nov 2013 15:55:32 +0800 Subject: [PATCH] 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 --- cinder/volume/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/api.py b/cinder/volume/api.py index a1398d4d8e..ccc81a0ce7 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -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")):