Simone Tiraboschi has uploaded a new change for review.

Change subject: packaging: setup: raising if no LUN is available
......................................................................

packaging: setup: raising if no LUN is available

Raising if no LUN is available on the selected target
to nicely abort.

Change-Id: I12c6c8f8dffa1bdf395269ac0d7b7a7f0ce91503
Bug-Url: https://bugzilla.redhat.com/1220137
Signed-off-by: Simone Tiraboschi <[email protected]>
---
M src/plugins/ovirt-hosted-engine-setup/storage/blockd.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/16/40816/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/storage/blockd.py 
b/src/plugins/ovirt-hosted-engine-setup/storage/blockd.py
index 6e36d45..7a8e162 100644
--- a/src/plugins/ovirt-hosted-engine-setup/storage/blockd.py
+++ b/src/plugins/ovirt-hosted-engine-setup/storage/blockd.py
@@ -574,6 +574,10 @@
                     self.logger.error(e)
                     if not self._interactive:
                         raise RuntimeError(_('Cannot access LUN'))
+            else:
+                raise RuntimeError(
+                    _('No valid LUN on the selected target')
+                )
         if self.domainType == ohostedcons.DomainTypes.ISCSI:
             self.environment[ohostedcons.StorageEnv.ISCSI_TARGET] = target
         self.environment[ohostedcons.StorageEnv.LUN_ID] = lunGUID


-- 
To view, visit https://gerrit.ovirt.org/40816
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I12c6c8f8dffa1bdf395269ac0d7b7a7f0ce91503
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: master
Gerrit-Owner: Simone Tiraboschi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to