{"action":"created","issue":{"url":"https://api.github.com/repos/aweiteka/UATFramework/issues/68","labels_url":"https://api.github.com/repos/aweiteka/UATFramework/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/aweiteka/UATFramework/issues/68/comments","events_url":"https://api.github.com/repos/aweiteka/UATFramework/issues/68/events","html_url":"https://github.com/aweiteka/UATFramework/pull/68","id":103347376,"number":68,"title":"Add more scenarios to the cluster feature test","user":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars.githubusercontent.com/u/11934099?v=3","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-26T19:32:02Z","updated_at":"2015-09-01T16:27:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aweiteka/UATFramework/pulls/68","html_url":"https://github.com/aweiteka/UATFramework/pull/68","diff_url":"https://github.com/aweiteka/UATFramework/pull/68.diff","patch_url":"https://github.com/aweiteka/UATFramework/pull/68.patch"},"body":"This PR adds more sanity checking of the kubernetes cluster. The goal is that we not only check basic things such as whether the nodes are in the \"Ready\" state, but also more complex things such as whether pods can talk to each other, whether DNS is working, and whether services work.\r\n\r\nTo do these sort of tests, I've had to add a new directory, kube_resources, in the steps directory, which contains YAML resource definitions. Some of these YAML files are templated by Jinja2. If there is a more appropriate place for them (e.g. a \"resources\" folder in the root of the repo?), please let me know."},"comment":{"url":"https://api.github.com/repos/aweiteka/UATFramework/issues/comments/136782013","html_url":"https://github.com/aweiteka/UATFramework/pull/68#issuecomment-136782013","issue_url":"https://api.github.com/repos/aweiteka/UATFramework/issues/68","id":136782013,"user":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars.githubusercontent.com/u/11934099?v=3","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T16:27:57Z","updated_at":"2015-09-01T16:27:57Z","body":"Apologies for another push. Should've been more careful when manually changing the polling interval from 1 second to 10 seconds. As a result it would wait for 50 minutes instead of 5 minutes... :disappointed:\r\n\r\n```diff\r\ndiff --git a/steps/kubernetes.py b/steps/kubernetes.py\r\nindex f65160b..5ee175e 100644\r\n--- a/steps/kubernetes.py\r\n+++ b/steps/kubernetes.py\r\n@@ -150,9 +150,10 @@ def step_impl(context, pod_name, node_idx):\r\n         # give up to 5 minutes for it to start running (the image needs time to\r\n         # get downloaded)\r\n         i = 5*60\r\n+        polling_interval = 10\r\n         while not pod_is_running(context, name) and i > 0:\r\n-            time.sleep(10)\r\n-            i -= 1\r\n+            time.sleep(polling_interval)\r\n+            i -= polling_interval\r\n \r\n     assert pod_is_running(context, name)\r\n```"}}