{"action":"opened","issue":{"url":"https://api.github.com/repos/vmware/vsphere-automation-sdk-python/issues/76","repository_url":"https://api.github.com/repos/vmware/vsphere-automation-sdk-python","labels_url":"https://api.github.com/repos/vmware/vsphere-automation-sdk-python/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/vmware/vsphere-automation-sdk-python/issues/76/comments","events_url":"https://api.github.com/repos/vmware/vsphere-automation-sdk-python/issues/76/events","html_url":"https://github.com/vmware/vsphere-automation-sdk-python/issues/76","id":332651656,"node_id":"MDU6SXNzdWUzMzI2NTE2NTY=","number":76,"title":"sddc_crud.py samples throws exception when waiting for task to complete.","user":{"login":"tianhao64","id":5871885,"node_id":"MDQ6VXNlcjU4NzE4ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/5871885?v=4","gravatar_id":"","url":"https://api.github.com/users/tianhao64","html_url":"https://github.com/tianhao64","followers_url":"https://api.github.com/users/tianhao64/followers","following_url":"https://api.github.com/users/tianhao64/following{/other_user}","gists_url":"https://api.github.com/users/tianhao64/gists{/gist_id}","starred_url":"https://api.github.com/users/tianhao64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianhao64/subscriptions","organizations_url":"https://api.github.com/users/tianhao64/orgs","repos_url":"https://api.github.com/users/tianhao64/repos","events_url":"https://api.github.com/users/tianhao64/events{/privacy}","received_events_url":"https://api.github.com/users/tianhao64/received_events","type":"User","site_admin":false},"labels":[{"id":376140659,"node_id":"MDU6TGFiZWwzNzYxNDA2NTk=","url":"https://api.github.com/repos/vmware/vsphere-automation-sdk-python/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"tianhao64","id":5871885,"node_id":"MDQ6VXNlcjU4NzE4ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/5871885?v=4","gravatar_id":"","url":"https://api.github.com/users/tianhao64","html_url":"https://github.com/tianhao64","followers_url":"https://api.github.com/users/tianhao64/followers","following_url":"https://api.github.com/users/tianhao64/following{/other_user}","gists_url":"https://api.github.com/users/tianhao64/gists{/gist_id}","starred_url":"https://api.github.com/users/tianhao64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianhao64/subscriptions","organizations_url":"https://api.github.com/users/tianhao64/orgs","repos_url":"https://api.github.com/users/tianhao64/repos","events_url":"https://api.github.com/users/tianhao64/events{/privacy}","received_events_url":"https://api.github.com/users/tianhao64/received_events","type":"User","site_admin":false},"assignees":[{"login":"tianhao64","id":5871885,"node_id":"MDQ6VXNlcjU4NzE4ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/5871885?v=4","gravatar_id":"","url":"https://api.github.com/users/tianhao64","html_url":"https://github.com/tianhao64","followers_url":"https://api.github.com/users/tianhao64/followers","following_url":"https://api.github.com/users/tianhao64/following{/other_user}","gists_url":"https://api.github.com/users/tianhao64/gists{/gist_id}","starred_url":"https://api.github.com/users/tianhao64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianhao64/subscriptions","organizations_url":"https://api.github.com/users/tianhao64/orgs","repos_url":"https://api.github.com/users/tianhao64/repos","events_url":"https://api.github.com/users/tianhao64/events{/privacy}","received_events_url":"https://api.github.com/users/tianhao64/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-15T05:36:27Z","updated_at":"2018-06-15T05:36:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--\r\n  We use GitHub Issues to track bugs or feature requests for vSphere Automation Python SDK\r\n  For questions and discussions, Please visit forum: https://code.vmware.com/forums/7508/vsphere-automation-sdk-for-python\r\n-->\r\n\r\n<!-- Provide the following information so we can help you better -->\r\n\r\n- [X] I am using the [latest SDK version](https://github.com/vmware/vsphere-automation-sdk-python/releases)\r\n- [X] This API is compatible with my vCenter version (You can get the info from '__vcenter_version__' in each sample)\r\n- [X] I have searched [existing issues](https://github.com/vmware/vsphere-automation-sdk-python/issues?utf8=%E2%9C%93&q=is%3Aissue)\r\n\r\n## Environment\r\n- sdk package version: \r\n<!-- Required. Run `pip list | grep v` in your python environment and paste its result here. -->\r\npyvmomi (6.7.0)\r\nservice-identity (17.0.0)\r\nvapi-client-bindings (1.3.0)\r\nvapi-common-client (2.9.0)\r\nvapi-runtime (2.9.0)\r\nvapi-vmc-client (2.9.0)\r\nvmc-app-python-sdk (2.2.0.0.0.15184434)\r\nvmc-client-bindings (1.2.0)\r\n- python version:\r\n<!-- Required. Run `python --version` in your python environment and paste its result here. -->\r\nPython 3.6.3\r\n- vSphere version:\r\nVMware cloud on AWS\r\n## Steps or code snippet to reproduce\r\n(py3) het-m03:vsphere-automation-sdk-python het$ python samples/vmc/sddc/sddc_crud.py -r $TOKEN -o $ORG -cs\r\n\r\n# Example: Create a SDDC (Sample SDDC 31) in org 058f47c4-92aa-417f-8747-87f3ed61cb45:\r\nWait for task 5f10f0e2-fa6e-49a1-a98d-0dd15ade56ad to finish\r\nChecking task status every 60 seconds\r\nEstimated time remaining: 108 minutes\r\nTraceback (most recent call last):\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 600, in urlopen\r\n    chunked=chunked)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 384, in _make_request\r\n    six.raise_from(e, None)\r\n  File \"<string>\", line 2, in raise_from\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 380, in _make_request\r\n    httplib_response = conn.getresponse()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py\", line 1331, in getresponse\r\n    response.begin()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py\", line 297, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py\", line 266, in _read_status\r\n    raise RemoteDisconnected(\"Remote end closed connection without\"\r\nhttp.client.RemoteDisconnected: Remote end closed connection without response\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/requests/adapters.py\", line 445, in send\r\n    timeout=timeout\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 638, in urlopen\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/util/retry.py\", line 367, in increment\r\n    raise six.reraise(type(error), error, _stacktrace)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/packages/six.py\", line 685, in reraise\r\n    raise value.with_traceback(tb)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 600, in urlopen\r\n    chunked=chunked)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 384, in _make_request\r\n    six.raise_from(e, None)\r\n  File \"<string>\", line 2, in raise_from\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 380, in _make_request\r\n    httplib_response = conn.getresponse()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py\", line 1331, in getresponse\r\n    response.begin()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py\", line 297, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py\", line 266, in _read_status\r\n    raise RemoteDisconnected(\"Remote end closed connection without\"\r\nurllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"samples/vmc/sddc/sddc_crud.py\", line 200, in <module>\r\n    main()\r\n  File \"samples/vmc/sddc/sddc_crud.py\", line 192, in main\r\n    sddc_operations.create_sddc()\r\n  File \"samples/vmc/sddc/sddc_crud.py\", line 137, in create_sddc\r\n    interval_sec=self.interval_sec)\r\n  File \"/Users/het/github/vsphere-automation-sdk-python/samples/vmc/helpers/vmc_task_helper.py\", line 35, in wait_for_task\r\n    task = task_client.get(org_id, task_id)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/com/vmware/vmc/orgs_client.py\", line 521, in get\r\n    'task': task,\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py\", line 317, in _invoke\r\n    return self._api_interface.native_invoke(ctx, _method_name, kwargs)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py\", line 243, in native_invoke\r\n    method_result = self.invoke(ctx, method_id, data_val)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py\", line 179, in invoke\r\n    ctx)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/security/client/security_context_filter.py\", line 99, in invoke\r\n    self, service_id, operation_id, input_value, new_ctx)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/provider/filter.py\", line 76, in invoke\r\n    service_id, operation_id, input_value, ctx)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/rest_connector.py\", line 95, in invoke\r\n    operation_rest_metadata, self._is_vapi_rest)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/rest_connector.py\", line 146, in _invoke\r\n    http_response = self._http_provider.do_request(http_request)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/vmware/vapi/protocol/client/rpc/requests_provider.py\", line 98, in do_request\r\n    cookies=http_request.cookies, timeout=timeout)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/requests/sessions.py\", line 512, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/requests/sessions.py\", line 622, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/Users/het/envs/py3/lib/python3.6/site-packages/requests/adapters.py\", line 495, in send\r\n    raise ConnectionError(err, request=request)\r\nrequests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))\r\n\r\n## Expected behavior\r\nPull task every 1min until the task is finished."}}
{"actor":{"display_login":"tianhao64"}}