From 902558215ed3fdd8cdfcedd3244189ec75eea25b Mon Sep 17 00:00:00 2001 From: scottda Date: Mon, 8 Feb 2016 16:59:34 -0700 Subject: [PATCH] Volume create fails with FakeISCSIDriver Volume create fails when the FakeISCSIDriver is used, because the scheduler capacity filter detects that capacity on the fake backend is zero. Change the total_capacity and free_capacity_gb for the FakeISCSIDriver from 0 to infinite. Change-Id: Ifedd483a660aefef89a85e6a55b2c0a5ca50c7d5 Closes-Bug: #1543171 --- cinder/volume/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/volume/driver.py b/cinder/volume/driver.py index 378b2a5e4..178910fe6 100644 --- a/cinder/volume/driver.py +++ b/cinder/volume/driver.py @@ -2634,8 +2634,8 @@ class FakeISCSIDriver(ISCSIDriver): fake_pool = {} fake_pool.update(dict( pool_name=data["volume_backend_name"], - total_capacity_gb=0, - free_capacity_gb=0, + total_capacity_gb='infinite', + free_capacity_gb='infinite', provisioned_capacity_gb=0, reserved_percentage=100, QoS_support=False, -- 2.45.2