Fix raise UnableToFailover call in SolidFire

The SolidFire driver isn't raising the UnableToFailover
exception properly.  This fixes the call and adds the
reason string.

Change-Id: I2d018a29015f7db3dd51c90e262e70f4cceaac59
Closes-Bug: #1597483
This commit is contained in:
John Griffith 2016-06-29 13:15:40 -06:00
parent 6b337fd387
commit d70ed62041
1 changed files with 3 additions and 1 deletions

View File

@ -1893,7 +1893,9 @@ class SolidFireDriver(san.SanISCSIDriver):
"request, however replication is NOT "
"enabled, or there are no available "
"targets to fail-over to."))
raise exception.UnableToFailOver
raise exception.UnableToFailOver(reason=_("Failover requested "
"on non replicated "
"backend."))
remote_vols = self._map_sf_volumes(volumes,
endpoint=remote['endpoint'])