From 2f39c8523091c9a2e55254fb32900305524a6fff Mon Sep 17 00:00:00 2001 From: ling-yun Date: Fri, 17 Jan 2014 10:49:58 +0800 Subject: [PATCH] Fix exception log msg in attach volume method Attach volume happened when volume's status is attaching or available, but the exception msg only contain info about "available". So fix it. Change-Id: I1caf83b94b3e4158eff88871a4187041a25e5d1c Closes-Bug: #1270020 --- cinder/volume/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index 3026576be..1da9d01f0 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -577,7 +577,7 @@ class VolumeManager(manager.SchedulerDependentManager): msg = _("being attached by different mode") raise exception.InvalidVolume(reason=msg) elif volume['status'] != "available": - msg = _("status must be available") + msg = _("status must be available or attaching") raise exception.InvalidVolume(reason=msg) # TODO(jdg): attach_time column is currently varchar -- 2.45.2