{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cloudstack/issues/2721","repository_url":"https://api.github.com/repos/apache/cloudstack","labels_url":"https://api.github.com/repos/apache/cloudstack/issues/2721/labels{/name}","comments_url":"https://api.github.com/repos/apache/cloudstack/issues/2721/comments","events_url":"https://api.github.com/repos/apache/cloudstack/issues/2721/events","html_url":"https://github.com/apache/cloudstack/pull/2721","id":335446541,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3MTQzMTI3","number":2721,"title":"api: Introducing a new diagnostics API command for system VMs for CloudStack admins","user":{"login":"dhlaluku","id":19572501,"node_id":"MDQ6VXNlcjE5NTcyNTAx","avatar_url":"https://avatars1.githubusercontent.com/u/19572501?v=4","gravatar_id":"","url":"https://api.github.com/users/dhlaluku","html_url":"https://github.com/dhlaluku","followers_url":"https://api.github.com/users/dhlaluku/followers","following_url":"https://api.github.com/users/dhlaluku/following{/other_user}","gists_url":"https://api.github.com/users/dhlaluku/gists{/gist_id}","starred_url":"https://api.github.com/users/dhlaluku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhlaluku/subscriptions","organizations_url":"https://api.github.com/users/dhlaluku/orgs","repos_url":"https://api.github.com/users/dhlaluku/repos","events_url":"https://api.github.com/users/dhlaluku/events{/privacy}","received_events_url":"https://api.github.com/users/dhlaluku/received_events","type":"User","site_admin":false},"labels":[{"id":592315483,"node_id":"MDU6TGFiZWw1OTIzMTU0ODM=","url":"https://api.github.com/repos/apache/cloudstack/labels/waiting-for-author","name":"waiting-for-author","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/apache/cloudstack/milestones/4","html_url":"https://github.com/apache/cloudstack/milestone/4","labels_url":"https://api.github.com/repos/apache/cloudstack/milestones/4/labels","id":3009550,"node_id":"MDk6TWlsZXN0b25lMzAwOTU1MA==","number":4,"title":"4.12.0.0","description":"Milestone for PRs targetted for the next major 4.12.0.0 release. PRs should be sent for master branch.","creator":{"login":"rhtyd","id":95203,"node_id":"MDQ6VXNlcjk1MjAz","avatar_url":"https://avatars0.githubusercontent.com/u/95203?v=4","gravatar_id":"","url":"https://api.github.com/users/rhtyd","html_url":"https://github.com/rhtyd","followers_url":"https://api.github.com/users/rhtyd/followers","following_url":"https://api.github.com/users/rhtyd/following{/other_user}","gists_url":"https://api.github.com/users/rhtyd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhtyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhtyd/subscriptions","organizations_url":"https://api.github.com/users/rhtyd/orgs","repos_url":"https://api.github.com/users/rhtyd/repos","events_url":"https://api.github.com/users/rhtyd/events{/privacy}","received_events_url":"https://api.github.com/users/rhtyd/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":71,"state":"open","created_at":"2018-01-03T08:46:42Z","updated_at":"2018-07-11T16:13:00Z","due_on":null,"closed_at":null},"comments":26,"created_at":"2018-06-25T15:03:05Z","updated_at":"2018-07-11T20:16:58Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/cloudstack/pulls/2721","html_url":"https://github.com/apache/cloudstack/pull/2721","diff_url":"https://github.com/apache/cloudstack/pull/2721.diff","patch_url":"https://github.com/apache/cloudstack/pull/2721.patch"},"body":"This feature introduces a new API command that will improve troubleshooting of network issues on CloudStack hosted networks by executing network-utility commands (ping, traceroute, arping) remotely on system VMs. \r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\nFor troubleshooting purposes, CloudStack administrators may wish to execute network utility commands remotely on system VMs, or request system VMs to ping/traceroute/arping to specific addresses over specific interfaces. An API command to provide such functionalities is being developed without altering any existing APIs. The targeted system VMs for this feature are the Virtual Router (VR), Secondary Storage VM (SSVM) and the Console Proxy VM (CPVM).\r\n\r\n<!-- For new features, provide link to FS, dev ML discussion etc. -->\r\nFS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+Remote+Diagnostics+API\r\nML discussion: https://markmail.org/message/xt7owmb2c6iw7tva\r\n\r\n<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] Enhancement (improves an existing feature and functionality)\r\n- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)\r\n\r\n## GitHub Issue/PRs\r\n<!-- If this PR is to fix an issue or another PR on GH, uncomment the section and provide the id of issue/PR -->\r\n<!-- When \"Fixes: #<id>\" is specified, the issue/PR will automatically be closed when this PR gets merged -->\r\n<!-- For addressing multiple issues/PRs, use multiple \"Fixes: #<id>\" -->\r\n\r\n<!-- Fixes: # -->\r\n\r\n## Screenshots (if appropriate):\r\n![image](https://user-images.githubusercontent.com/19572501/41858197-8b419c36-7899-11e8-8315-cbd16e54d344.png)\r\n\r\n## How Has This Been Tested?\r\nLog on to the CloudStack management server as root admin and start cloudmonkey. Sync APIs and then execute the run diagnostics command as follows:\r\n**run diganostics ipaddress=www.shapeblue.com type=arping targetid=uuid params=\"-I eth0 -c 4\"**\r\n\r\nWhere;\r\n- **ipaddress** is the destination IP/Domain address to test connection to;\r\n- **type** is the diagnostics command type to execute from remote target\r\n- **targetid** is the uuid of the system VM from which to test\r\n- **params** are optional command line arguments that apply to each diagnostics command type\r\n\r\nDev environment components:\r\n- Platform: ACS-4.12\r\n- Management OS: Ubuntu 18.04 LTS\r\n- Hypervisor: 1 Host running KVM with CentOS 7\r\n\r\nThis command does not run with the CloudStack simulator and has only been tested on real hardware environments. \r\n<!-- Please describe in detail how you tested your changes. -->\r\n<!-- Include details of your testing environment, and the tests you ran to -->\r\n<!-- see how your change affects other areas of the code, etc. -->\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] I have read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md) document.\r\n- [x] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\nTesting\r\n- [x] I have added tests to cover my changes.\r\n- [x] All relevant new and existing integration tests have passed.\r\n- [x] A full integration testsuite with all test that can run on my environment has passed.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/cloudstack/issues/comments/404296457","html_url":"https://github.com/apache/cloudstack/pull/2721#issuecomment-404296457","issue_url":"https://api.github.com/repos/apache/cloudstack/issues/2721","id":404296457,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDI5NjQ1Nw==","user":{"login":"blueorangutan","id":16489489,"node_id":"MDQ6VXNlcjE2NDg5NDg5","avatar_url":"https://avatars2.githubusercontent.com/u/16489489?v=4","gravatar_id":"","url":"https://api.github.com/users/blueorangutan","html_url":"https://github.com/blueorangutan","followers_url":"https://api.github.com/users/blueorangutan/followers","following_url":"https://api.github.com/users/blueorangutan/following{/other_user}","gists_url":"https://api.github.com/users/blueorangutan/gists{/gist_id}","starred_url":"https://api.github.com/users/blueorangutan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueorangutan/subscriptions","organizations_url":"https://api.github.com/users/blueorangutan/orgs","repos_url":"https://api.github.com/users/blueorangutan/repos","events_url":"https://api.github.com/users/blueorangutan/events{/privacy}","received_events_url":"https://api.github.com/users/blueorangutan/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T20:16:58Z","updated_at":"2018-07-11T20:16:58Z","author_association":"NONE","body":"<b>Trillian test result (tid-2842)</b>\nEnvironment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7\nTotal time taken: 35370 seconds\nMarvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2721-t2842-kvm-centos7.zip\nIntermitten failure detected: /marvin/tests/smoke/test_certauthority_root.py\nIntermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py\nIntermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py\nIntermitten failure detected: /marvin/tests/smoke/test_public_ip_range.py\nIntermitten failure detected: /marvin/tests/smoke/test_templates.py\nIntermitten failure detected: /marvin/tests/smoke/test_usage.py\nIntermitten failure detected: /marvin/tests/smoke/test_vm_life_cycle.py\nIntermitten failure detected: /marvin/tests/smoke/test_volumes.py\nIntermitten failure detected: /marvin/tests/smoke/test_host_maintenance.py\nSmoke tests completed. 60 look OK, 8 have error(s)\nOnly failed tests results shown below:\n\n\nTest | Result | Time (s) | Test File\n--- | --- | --- | ---\ntest_provision_certificate | `Error` | 9.21 | test_certauthority_root.py\nContextSuite context=TestDeployVirtioSCSIVM>:setup | `Error` | 0.00 | test_deploy_virtio_scsi_vm.py\ntest_03_vpc_privategw_restart_vpc_cleanup | `Failure` | 1226.87 | test_privategw_acl.py\ntest_04_extract_template | `Failure` | 128.25 | test_templates.py\nContextSuite context=TestISOUsage>:setup | `Error` | 0.00 | test_usage.py\ntest_01_secure_vm_migration | `Error` | 5.14 | test_vm_life_cycle.py\ntest_02_unsecure_vm_migration | `Error` | 4.12 | test_vm_life_cycle.py\ntest_03_secured_to_nonsecured_vm_migration | `Error` | 1.09 | test_vm_life_cycle.py\ntest_04_nonsecured_to_secured_vm_migration | `Error` | 0.07 | test_vm_life_cycle.py\ntest_06_download_detached_volume | `Failure` | 137.56 | test_volumes.py\ntest_11_migrate_volume_and_change_offering | `Error` | 128.44 | test_volumes.py\ntest_02_cancel_host_maintenace_with_migration_jobs | `Error` | 2.24 | test_host_maintenance.py\n"}}
{"actor":{"display_login":"blueorangutan"}}