You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2014/08/16 12:56:02 UTC
[31/50] git commit: updated refs/heads/saml2 to 09da909
Adding explicit error message in verifyNetworkState function in case network is not in desired state
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6115a90c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6115a90c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6115a90c
Branch: refs/heads/saml2
Commit: 6115a90c7083ff9b8c4d1801f409d7d8b1c67d22
Parents: 5f893da
Author: Girish Shilamkar <gi...@clogeny.com>
Authored: Wed Aug 13 20:19:26 2014 +0530
Committer: Girish Shilamkar <gi...@clogeny.com>
Committed: Wed Aug 13 20:19:26 2014 +0530
----------------------------------------------------------------------
tools/marvin/marvin/lib/common.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6115a90c/tools/marvin/marvin/lib/common.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/common.py b/tools/marvin/marvin/lib/common.py
index 46291a9..3706456 100644
--- a/tools/marvin/marvin/lib/common.py
+++ b/tools/marvin/marvin/lib/common.py
@@ -1167,6 +1167,9 @@ def verifyNetworkState(apiclient, networkid, state, listall=True):
break
retriesCount -= 1
time.sleep(60)
+ if not isNetworkInDesiredState:
+ exceptionMessage = "Network state should be %s, it is %s" %\
+ (state, networks[0].state)
except Exception as e:
exceptionOccured = True
exceptionMessage = e