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
This commit is contained in:
scottda 2016-02-08 16:59:34 -07:00
parent f2f241a440
commit 902558215e
1 changed files with 2 additions and 2 deletions

View File

@ -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,