cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [31/50] git commit: updated refs/heads/saml2 to 09da909
Date Sat, 16 Aug 2014 10:56:02 GMT
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 <girish@clogeny.com>
Authored: Wed Aug 13 20:19:26 2014 +0530
Committer: Girish Shilamkar <girish@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


Mime
View raw message