{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17087","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17087/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17087/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17087/events","html_url":"https://github.com/ManageIQ/manageiq/pull/17087","id":302537260,"number":17087,"title":"[WIP]Introduce evm:appliance overview","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars2.githubusercontent.com/u/1930?v=4","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"labels":[{"id":126571210,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/tools","name":"tools","color":"BCF5DB","default":false},{"id":495693084,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/unmergeable","name":"unmergeable","color":"eeeeee","default":false},{"id":176168677,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/wip","name":"wip","color":"eeeeee","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-06T02:13:38Z","updated_at":"2018-03-13T22:02:25Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/17087","html_url":"https://github.com/ManageIQ/manageiq/pull/17087","diff_url":"https://github.com/ManageIQ/manageiq/pull/17087.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/17087.patch"},"body":"Currently, it is difficult to get a quick overview of a customer's appliance setup.\r\nThis introduces a way to quickly describe a customer's appliance setup.\r\n\r\nIt is grouped by region/zone, and similar to `evm:server_status`.\r\n\r\nThe 2 tables display versions and worker counts to quickly understand the layout more than the actual health.\r\n\r\n1. Start and heartbeat have been shortened. It shows the time if it is less than 24 hours ago. If it started longer, then it displays the date. The premise is if it has been running for a few days, the exact time it started is not significant. Knowing if it recently started may be indicative of a memory threshold issue.\r\n2. If all rows have the same value in a column, the column is summarized below. This helps reduce the number of columns on the screen and hopefully avoid the wrap around.\r\n3. Version has been added to know of of outstanding upgrades.\r\n4. Number of workers\r\n5. Status has been simplified to up/down and ? (unresponsive).\r\n5. For this example, they all have the same Region, Version=5.9.0.17, and Started On\r\ntable 1:\r\n\r\n```\r\n Zone           | Status | Server             | Mstr | Workers | Heartbeat  | Ram(mb) | Roles\r\n----------------+--------+--------------------+------+---------+------------+---------+---------------------------------------\r\n Amazon Zone    | Up     | cfme-5.9.0.17-TE6  |      |      19 | 2018-01-21 | 259     | user_interface:web_services:websocket\r\n Azure Zone     | Up     | cfme-5.9.0.17-TE9  |      |      17 | 2018-01-21 | 298     | user_interface:web_services:websocket\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 |      |      18 | 2018-01-21 | 277     | user_interface:web_services:websocket\r\n Google Zone    | Up     | cfme-5.9.0.17-TE8  |      |      17 | 2018-01-21 | 573     | user_interface:web_services:websocket\r\n HyperV Zone    | Up     | cfme-5.9.0.17-TE7  |      |      15 | 2018-01-21 | 516     | user_interface:web_services:websocket\r\n Nuage Zone     | Up     | cfme-5.9.0.17-TE13 |      |       9 | 2018-01-21 | 498     | user_interface:web_services:websocket\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  |      |      18 | 2018-01-21 | 265     | user_interface:web_services:websocket\r\n OpenStack Zone | Up     | cfme-5.9.0.17-TE2  |      |      17 | 2018-01-21 | 515     | user_interface:web_services:websocket\r\n RHV Zone       | ?      | cfme-5.9.0.17-TE4  |      |      17 | 2018-01-19 | 237     |\r\n VMware Zone    | Up     | cfme-5.9.0.17-TE5  |      |      20 | 2018-01-21 | 513     | user_interface:web_services:websocket\r\n default        | Up     | cfme-5.9.0.17-TE1  | *    |      17 | 2018-01-21 | 251     | user_interface:web_services:websocket\r\n default        | Up     | cfme-5.9.0.17-TE11 |      |      16 | 2018-01-21 | 605     | user_interface:web_services:websocket\r\n default        | Up     | cfme-5.9.0.17-TE12 |      |      15 | 2018-01-21 | 532     | user_interface:web_services:websocket\r\n\r\nFor all rows: Rgn=0, Version=5.9.0.17, Started On=2018-01-18\r\n```\r\n\r\n\r\n\r\nThe second table is longer and displays all the workers.\r\n\r\n1. the worker name removes some phrases that were common 'ManageIQ', 'Manager', 'Miq', and a number of phrases were trimmed to get the worker name shorter. I could not find a common method for this simplification\r\n2. the port is displayed for workers, but instead of a full url (which all seemed to be of the form `http://127.0.0.1:3000/`) just the protocol and port number have been preserved.\r\n3. We may want to remove pid, spid, and some others, and displaying multiple workers all on a single line.\r\n4. In this environment, it is 217 lines. It has been truncated in this PR.\r\n\r\n```\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | AnsibleTower::Automation::EventCatcher    | 13375 | 14028 | ems_19                  | 2018-01-18 | 2018-01-21 | 295/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | AnsibleTower::Automation::Refresh         | 24365 | 20795 | ems_19                  | 2018-01-20 | 2018-01-21 | 710/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | EmbeddedAnsible                           |       | 14040 |                         | 2018-01-18 | 2018-01-21 |\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | EmbeddedAnsible::Automation::EventCatcher | 14539 | 14135 | ems_2                   | 2018-01-18 | 2018-01-21 | 294/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | EmbeddedAnsible::Automation::Refresh      | 24807 | 20825 | ems_2                   | 2018-01-20 | 2018-01-21 | 379/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | EventHandler                              | 13489 | 14046 | ems                     | 2018-01-18 | 2018-01-21 | 202/500\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Foreman::Configuration::Refresh           | 24373 | 20797 | ems_27                  | 2018-01-20 | 2018-01-21 | 319/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Foreman::Provisioning::Refresh            | 24381 | 20799 | ems_28                  | 2018-01-20 | 2018-01-21 | 255/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Generic                                   | 13269 | 13866 | generic                 | 2018-01-18 | 2018-01-21 | 364/500\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Generic                                   | 13277 | 13879 | generic                 | 2018-01-18 | 2018-01-21 | 352/500\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Lenovo::PhysicalInfra::EventCatcher       | 13454 | 14041 | ems_25                  | 2018-01-18 | 2018-01-21 | 261/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Lenovo::PhysicalInfra::Refresh            | 24399 | 20798 | ems_25                  | 2018-01-20 | 2018-01-21 | 269/2048\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Priority                                  | 13285 | 13881 | generic                 | 2018-01-18 | 2018-01-21 | 278/600\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Priority                                  | 13293 | 13880 | generic                 | 2018-01-18 | 2018-01-21 | 278/600\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Schedule                                  | 13301 | 13883 |                         | 2018-01-18 | 2018-01-21 | 255/500\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Ui                                        | 13503 |       | http:3000               | 2018-01-18 | 2018-01-21 | 192/1024\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | WebService                                | 13515 |       | http:4000               | 2018-01-18 | 2018-01-21 | 187/1024\r\n Config Zone    | Up     | cfme-5.9.0.17-TE10 | Websocket                                 | 13523 |       | http:5000               | 2018-01-18 | 2018-01-21 | 186/1024\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | EmsMetricsProcessor                       | 15615 | 13810 | ems_metrics_processor   | 2018-01-18 | 2018-01-21 | 543/600\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | EmsMetricsProcessor                       | 15624 | 13811 | ems_metrics_processor   | 2018-01-18 | 2018-01-21 | 520/600\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | EventHandler                              | 15632 | 13813 | ems                     | 2018-01-18 | 2018-01-21 | 243/500\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Generic                                   | 15464 | 13668 | generic                 | 2018-01-18 | 2018-01-21 | 418/500\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Generic                                   | 15472 | 13669 | generic                 | 2018-01-18 | 2018-01-21 | 436/500\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Openshift::Container::EventCatcher        | 15565 | 13796 | ems_51                  | 2018-01-18 | 2018-01-21 | 262/2048\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Openshift::Container::MetricsCollector    | 15573 | 13799 | openshift               | 2018-01-18 | 2018-01-21 | 415/700\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Openshift::Container::MetricsCollector    | 15581 | 13800 | openshift               | 2018-01-18 | 2018-01-21 | 415/700\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Openshift::Container::Refresh             |  1613 | 20746 | ems_51                  | 2018-01-20 | 2018-01-21 | 563/2560\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Openshift::Monitoring::EventCatcher       | 15598 | 13804 | ems_52                  | 2018-01-18 | 2018-01-21 | 266/2048\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Priority                                  | 15480 | 13670 | generic                 | 2018-01-18 | 2018-01-21 | 417/600\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Priority                                  | 15488 | 13671 | generic                 | 2018-01-18 | 2018-01-21 | 430/600\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Schedule                                  | 15496 | 13672 |                         | 2018-01-18 | 2018-01-21 | 261/500\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | SmartProxy                                | 32671 | 20413 | smartproxy              | 2018-01-20 | 2018-01-21 | 198/2048\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | SmartProxy                                | 32679 | 20416 | smartproxy              | 2018-01-20 | 2018-01-21 | 198/2048\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Ui                                        | 15659 |       | http:3000               | 2018-01-18 | 2018-01-21 | 185/1024\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | WebService                                | 15668 |       | http:4000               | 2018-01-18 | 2018-01-21 | 213/1024\r\n OpenShift Zone | Up     | cfme-5.9.0.17-TE3  | Websocket                                 | 15678 |       | http:5000               | 2018-01-18 | 2018-01-21 | 184/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | Generic                                   | 12936 | 12981 | generic                 | 2018-01-18 | 2018-01-21 | 500/700\r\n default        | Up     | cfme-5.9.0.17-TE1  | Generic                                   | 12944 | 12985 | generic                 | 2018-01-18 | 2018-01-21 | 528/700\r\n default        | Up     | cfme-5.9.0.17-TE1  | Priority                                  | 12954 | 12987 | generic                 | 2018-01-18 | 2018-01-21 | 237/600\r\n default        | Up     | cfme-5.9.0.17-TE1  | Priority                                  | 12962 | 12989 | generic                 | 2018-01-18 | 2018-01-21 | 228/600\r\n default        | Up     | cfme-5.9.0.17-TE1  | Reporting                                 | 12994 | 13089 | reporting               | 2018-01-18 | 2018-01-21 | 414/500\r\n default        | Up     | cfme-5.9.0.17-TE1  | Reporting                                 | 13000 | 13095 | reporting               | 2018-01-18 | 2018-01-21 | 426/500\r\n default        | Up     | cfme-5.9.0.17-TE1  | Schedule                                  | 12972 | 12991 |                         | 2018-01-18 | 2018-01-21 | 296/500\r\n default        | Up     | cfme-5.9.0.17-TE1  | SmartProxy                                | 19683 | 19701 | smartproxy              | 2018-01-20 | 2018-01-21 | 201/600\r\n default        | Up     | cfme-5.9.0.17-TE1  | SmartProxy                                | 19692 | 19705 | smartproxy              | 2018-01-20 | 2018-01-21 | 196/600\r\n default        | Up     | cfme-5.9.0.17-TE1  | Ui                                        | 13030 |       | http:3000               | 2018-01-18 | 2018-01-21 | 481/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | Ui                                        | 13039 |       | http:3001               | 2018-01-18 | 2018-01-21 | 478/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | Ui                                        | 13047 |       | http:3002               | 2018-01-18 | 2018-01-21 | 432/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | Ui                                        | 13056 |       | http:3003               | 2018-01-18 | 2018-01-21 | 465/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | Ui                                        | 13062 |       | http:3004               | 2018-01-18 | 2018-01-21 | 460/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | Ui                                        | 13074 |       | http:3005               | 2018-01-18 | 2018-01-21 | 436/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | WebService                                | 13084 |       | http:4000               | 2018-01-18 | 2018-01-21 | 427/1024\r\n default        | Up     | cfme-5.9.0.17-TE1  | Websocket                                 | 13096 |       | http:5000               | 2018-01-18 | 2018-01-21 | 226/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | EventHandler                              | 13745 | 13982 | ems                     | 2018-01-18 | 2018-01-21 | 207/500\r\n default        | Up     | cfme-5.9.0.17-TE11 | Generic                                   | 13670 | 13952 | generic                 | 2018-01-18 | 2018-01-21 | 394/500\r\n default        | Up     | cfme-5.9.0.17-TE11 | Generic                                   | 13678 | 13953 | generic                 | 2018-01-18 | 2018-01-21 | 428/500\r\n default        | Up     | cfme-5.9.0.17-TE11 | Priority                                  | 13686 | 13955 | generic                 | 2018-01-18 | 2018-01-21 | 250/600\r\n default        | Up     | cfme-5.9.0.17-TE11 | Priority                                  | 13691 | 13954 | generic                 | 2018-01-18 | 2018-01-21 | 284/600\r\n default        | Up     | cfme-5.9.0.17-TE11 | Reporting                                 | 13753 | 13984 | reporting               | 2018-01-18 | 2018-01-21 | 407/500\r\n default        | Up     | cfme-5.9.0.17-TE11 | Reporting                                 | 13761 | 13985 | reporting               | 2018-01-18 | 2018-01-21 | 435/500\r\n default        | Up     | cfme-5.9.0.17-TE11 | Schedule                                  | 13702 | 13956 |                         | 2018-01-18 | 2018-01-21 | 230/500\r\n default        | Up     | cfme-5.9.0.17-TE11 | Ui                                        | 13769 |       | http:3000               | 2018-01-18 | 2018-01-21 | 543/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | Ui                                        | 13777 |       | http:3001               | 2018-01-18 | 2018-01-21 | 516/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | Ui                                        | 13785 |       | http:3002               | 2018-01-18 | 2018-01-21 | 510/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | Ui                                        | 13793 |       | http:3003               | 2018-01-18 | 2018-01-21 | 494/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | Ui                                        | 13801 |       | http:3004               | 2018-01-18 | 2018-01-21 | 505/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | Ui                                        | 13809 |       | http:3005               | 2018-01-18 | 2018-01-21 | 495/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | WebService                                | 13817 |       | http:4000               | 2018-01-18 | 2018-01-21 | 430/1024\r\n default        | Up     | cfme-5.9.0.17-TE11 | Websocket                                 | 13825 |       | http:5000               | 2018-01-18 | 2018-01-21 | 210/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | Generic                                   |  2807 | 14101 | generic                 | 2018-01-18 | 2018-01-21 | 449/500\r\n default        | Up     | cfme-5.9.0.17-TE12 | Generic                                   |  2814 | 14103 | generic                 | 2018-01-18 | 2018-01-21 | 466/500\r\n default        | Up     | cfme-5.9.0.17-TE12 | Priority                                  |  2823 | 14104 | generic                 | 2018-01-18 | 2018-01-21 | 266/600\r\n default        | Up     | cfme-5.9.0.17-TE12 | Priority                                  |  2831 | 14105 | generic                 | 2018-01-18 | 2018-01-21 | 233/600\r\n default        | Up     | cfme-5.9.0.17-TE12 | Reporting                                 |  2878 | 14178 | reporting               | 2018-01-18 | 2018-01-21 | 420/500\r\n default        | Up     | cfme-5.9.0.17-TE12 | Reporting                                 |  2886 | 14181 | reporting               | 2018-01-18 | 2018-01-21 | 425/500\r\n default        | Up     | cfme-5.9.0.17-TE12 | Schedule                                  |  2839 | 14107 |                         | 2018-01-18 | 2018-01-21 | 217/500\r\n default        | Up     | cfme-5.9.0.17-TE12 | Ui                                        |  2894 |       | http:3000               | 2018-01-18 | 2018-01-21 | 525/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | Ui                                        |  2902 |       | http:3001               | 2018-01-18 | 2018-01-21 | 507/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | Ui                                        |  2910 |       | http:3002               | 2018-01-18 | 2018-01-21 | 391/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | Ui                                        |  2918 |       | http:3003               | 2018-01-18 | 2018-01-21 | 360/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | Ui                                        |  2926 |       | http:3004               | 2018-01-18 | 2018-01-21 | 486/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | Ui                                        |  2935 |       | http:3005               | 2018-01-18 | 2018-01-21 | 490/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | WebService                                |  2944 |       | http:4000               | 2018-01-18 | 2018-01-21 | 419/1024\r\n default        | Up     | cfme-5.9.0.17-TE12 | Websocket                                 |  2954 |       | http:5000               | 2018-01-18 | 2018-01-21 | 223/1024\r\n\r\nFor all rows: Rgn=0\r\n```"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/372834001","html_url":"https://github.com/ManageIQ/manageiq/pull/17087#issuecomment-372834001","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/17087","id":372834001,"user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars0.githubusercontent.com/u/19339?v=4","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T22:02:25Z","updated_at":"2018-03-13T22:02:25Z","author_association":"MEMBER","body":"> pid\t✔️\r\n> spid\t✔️\r\n\r\nI can see dropping spid but pid is important for both servers and workers\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"jrafanie"}}