{"action":"created","issue":{"url":"https://api.github.com/repos/QualiSystems/vCenterShell/issues/310","repository_url":"https://api.github.com/repos/QualiSystems/vCenterShell","labels_url":"https://api.github.com/repos/QualiSystems/vCenterShell/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/QualiSystems/vCenterShell/issues/310/comments","events_url":"https://api.github.com/repos/QualiSystems/vCenterShell/issues/310/events","html_url":"https://github.com/QualiSystems/vCenterShell/issues/310","id":137795366,"number":310,"title":"The deployed vms are not powered off by the teardown script","user":{"login":"Yairzeri","id":17525950,"avatar_url":"https://avatars.githubusercontent.com/u/17525950?v=3","gravatar_id":"","url":"https://api.github.com/users/Yairzeri","html_url":"https://github.com/Yairzeri","followers_url":"https://api.github.com/users/Yairzeri/followers","following_url":"https://api.github.com/users/Yairzeri/following{/other_user}","gists_url":"https://api.github.com/users/Yairzeri/gists{/gist_id}","starred_url":"https://api.github.com/users/Yairzeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yairzeri/subscriptions","organizations_url":"https://api.github.com/users/Yairzeri/orgs","repos_url":"https://api.github.com/users/Yairzeri/repos","events_url":"https://api.github.com/users/Yairzeri/events{/privacy}","received_events_url":"https://api.github.com/users/Yairzeri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QualiSystems/vCenterShell/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/QualiSystems/vCenterShell/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T07:21:25Z","updated_at":"2016-03-02T10:44:17Z","closed_at":null,"body":"These errors appears:\nError: Script runner exited with exit code: 1\nDescription: 02/Mar/2016 09:18:13 INFO Executing disconnect routes for reservation a115722f-43ae-42f2-a759-8adf06fd64ab\nTraceback (most recent call last):\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\runpy.py\", line 162, in _run_module_as_main\n    \"__main__\", fname, loader, pkg_name)\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\runpy.py\", line 72, in _run_code\n    exec code in run_globals\n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\__main__.py\", line 8, in \n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\__main__.py\", line 5, in main\n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\environment_scripts\\env_teardown\\teardown_script.py\", line 19, in execute\n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\environment_scripts\\env_teardown\\teardown_script.py\", line 37, in _disconnect_all_routes_in_reservation\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\site-packages\\cloudshell\\api\\cloudshell_api.py\", line 2020, in DisconnectRoutesInReservation\n    return self.generateAPIRequest(OrderedDict([('method_name', 'DisconnectRoutesInReservation'), ('reservationId', reservationId), ('endpoints', CommonAPIRequest.toContainer(endpoints))]))\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\site-packages\\cloudshell\\api\\common_cloudshell_api.py\", line 340, in generateAPIRequest\n    raise CloudShellAPIError(api_result.error_code, api_result.error, response_str)\ncloudshell.api.common_cloudshell_api.CloudShellAPIError: CloudShell API error 102: ConnectivityFaultException [Error Code: General] [Original Time: 2016-03-02 09:18:13,589]: No visual connectors found with connected status True\n\n   at QS.TestShell.Server.Connectivity.ConnectivityService.GetVisualConnectorsByConnectivityStatus(Guid[] visualConnectorIds, Boolean connect)\n\n   at QS.TestShell.Server.Connectivity.ConnectivityService.Disconnect(DisconnectRequest disconnectRequest)\n\n   at QS.TestShell.Server.Connectivity.AppsConnectivityHandler.DisconnectAppsByVisualConnectors(Reservation reservation, String[] endpoints)\n\n   at QualiSystems.ResourceManagement.Service.Api.Plugin.Interfaces.ReservationAPIApplicationService.DisconnectRoutesInReservation(Guid reservationId, String[] endpoints)\n\nParameters:\n\nError: General\nDescription: Failed to wait for the command execution to end:\nCommand execution failed with 'Script runner exited with exit code: 1' error.\n02/Mar/2016 09:18:13 INFO Executing disconnect routes for reservation a115722f-43ae-42f2-a759-8adf06fd64ab\nTraceback (most recent call last):\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\runpy.py\", line 162, in _run_module_as_main\n    \"__main__\", fname, loader, pkg_name)\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\runpy.py\", line 72, in _run_code\n    exec code in run_globals\n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\__main__.py\", line 8, in \n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\__main__.py\", line 5, in main\n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\environment_scripts\\env_teardown\\teardown_script.py\", line 19, in execute\n  File \"C:\\Users\\yair.z\\AppData\\Local\\Temp\\07d6ca5b-5f59-41a1-a051-a7f2793b5776\\Default Sandbox Teardown.zip\\environment_scripts\\env_teardown\\teardown_script.py\", line 37, in _disconnect_all_routes_in_reservation\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\site-packages\\cloudshell\\api\\cloudshell_api.py\", line 2020, in DisconnectRoutesInReservation\n    return self.generateAPIRequest(OrderedDict([('method_name', 'DisconnectRoutesInReservation'), ('reservationId', reservationId), ('endpoints', CommonAPIRequest.toContainer(endpoints))]))\n  File \"C:\\work\\TFS\\Trunk\\Drop\\TestShell\\ExecutionServer\\python\\2.7.10\\lib\\site-packages\\cloudshell\\api\\common_cloudshell_api.py\", line 340, in generateAPIRequest\n    raise CloudShellAPIError(api_result.error_code, api_result.error, response_str)\ncloudshell.api.common_cloudshell_api.CloudShellAPIError: CloudShell API error 102: ConnectivityFaultException [Error Code: General] [Original Time: 2016-03-02 09:18:13,589]: No visual connectors found with connected status True\n\n   at QS.TestShell.Server.Connectivity.ConnectivityService.GetVisualConnectorsByConnectivityStatus(Guid[] visualConnectorIds, Boolean connect)\n\n   at QS.TestShell.Server.Connectivity.ConnectivityService.Disconnect(DisconnectRequest disconnectRequest)\n\n   at QS.TestShell.Server.Connectivity.AppsConnectivityHandler.DisconnectAppsByVisualConnectors(Reservation reservation, String[] endpoints)\n\n   at QualiSystems.ResourceManagement.Service.Api.Plugin.Interfaces.ReservationAPIApplicationService.DisconnectRoutesInReservation(Guid reservationId, String[] endpoints)\n\nParameters:"},"comment":{"url":"https://api.github.com/repos/QualiSystems/vCenterShell/issues/comments/191181851","html_url":"https://github.com/QualiSystems/vCenterShell/issues/310#issuecomment-191181851","issue_url":"https://api.github.com/repos/QualiSystems/vCenterShell/issues/310","id":191181851,"user":{"login":"alexazarh","id":6730546,"avatar_url":"https://avatars.githubusercontent.com/u/6730546?v=3","gravatar_id":"","url":"https://api.github.com/users/alexazarh","html_url":"https://github.com/alexazarh","followers_url":"https://api.github.com/users/alexazarh/followers","following_url":"https://api.github.com/users/alexazarh/following{/other_user}","gists_url":"https://api.github.com/users/alexazarh/gists{/gist_id}","starred_url":"https://api.github.com/users/alexazarh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexazarh/subscriptions","organizations_url":"https://api.github.com/users/alexazarh/orgs","repos_url":"https://api.github.com/users/alexazarh/repos","events_url":"https://api.github.com/users/alexazarh/events{/privacy}","received_events_url":"https://api.github.com/users/alexazarh/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T10:44:17Z","updated_at":"2016-03-02T10:44:17Z","body":"@borismod OR @razaba \nThe bug happens because the return result contains duplicate action ids. Something gets mixed in \"connect_bulk\" in the python driver. Reproduce using environment like this:\nhttp://prntscr.com/aa72s5"}}