{"action":"created","issue":{"url":"https://api.github.com/repos/gluster/glusterd2/issues/1411","repository_url":"https://api.github.com/repos/gluster/glusterd2","labels_url":"https://api.github.com/repos/gluster/glusterd2/issues/1411/labels{/name}","comments_url":"https://api.github.com/repos/gluster/glusterd2/issues/1411/comments","events_url":"https://api.github.com/repos/gluster/glusterd2/issues/1411/events","html_url":"https://github.com/gluster/glusterd2/pull/1411","id":391452168,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4OTU2Njcz","number":1411,"title":"Add device list and device info CLI command","user":{"login":"Madhu-1","id":18114231,"node_id":"MDQ6VXNlcjE4MTE0MjMx","avatar_url":"https://avatars2.githubusercontent.com/u/18114231?v=4","gravatar_id":"","url":"https://api.github.com/users/Madhu-1","html_url":"https://github.com/Madhu-1","followers_url":"https://api.github.com/users/Madhu-1/followers","following_url":"https://api.github.com/users/Madhu-1/following{/other_user}","gists_url":"https://api.github.com/users/Madhu-1/gists{/gist_id}","starred_url":"https://api.github.com/users/Madhu-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Madhu-1/subscriptions","organizations_url":"https://api.github.com/users/Madhu-1/orgs","repos_url":"https://api.github.com/users/Madhu-1/repos","events_url":"https://api.github.com/users/Madhu-1/events{/privacy}","received_events_url":"https://api.github.com/users/Madhu-1/received_events","type":"User","site_admin":false},"labels":[{"id":254949910,"node_id":"MDU6TGFiZWwyNTQ5NDk5MTA=","url":"https://api.github.com/repos/gluster/glusterd2/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"Madhu-1","id":18114231,"node_id":"MDQ6VXNlcjE4MTE0MjMx","avatar_url":"https://avatars2.githubusercontent.com/u/18114231?v=4","gravatar_id":"","url":"https://api.github.com/users/Madhu-1","html_url":"https://github.com/Madhu-1","followers_url":"https://api.github.com/users/Madhu-1/followers","following_url":"https://api.github.com/users/Madhu-1/following{/other_user}","gists_url":"https://api.github.com/users/Madhu-1/gists{/gist_id}","starred_url":"https://api.github.com/users/Madhu-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Madhu-1/subscriptions","organizations_url":"https://api.github.com/users/Madhu-1/orgs","repos_url":"https://api.github.com/users/Madhu-1/repos","events_url":"https://api.github.com/users/Madhu-1/events{/privacy}","received_events_url":"https://api.github.com/users/Madhu-1/received_events","type":"User","site_admin":false},"assignees":[{"login":"Madhu-1","id":18114231,"node_id":"MDQ6VXNlcjE4MTE0MjMx","avatar_url":"https://avatars2.githubusercontent.com/u/18114231?v=4","gravatar_id":"","url":"https://api.github.com/users/Madhu-1","html_url":"https://github.com/Madhu-1","followers_url":"https://api.github.com/users/Madhu-1/followers","following_url":"https://api.github.com/users/Madhu-1/following{/other_user}","gists_url":"https://api.github.com/users/Madhu-1/gists{/gist_id}","starred_url":"https://api.github.com/users/Madhu-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Madhu-1/subscriptions","organizations_url":"https://api.github.com/users/Madhu-1/orgs","repos_url":"https://api.github.com/users/Madhu-1/repos","events_url":"https://api.github.com/users/Madhu-1/events{/privacy}","received_events_url":"https://api.github.com/users/Madhu-1/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-12-16T10:04:53Z","updated_at":"2018-12-16T17:30:55Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/gluster/glusterd2/pulls/1411","html_url":"https://github.com/gluster/glusterd2/pull/1411","diff_url":"https://github.com/gluster/glusterd2/pull/1411.diff","patch_url":"https://github.com/gluster/glusterd2/pull/1411.patch"},"body":"* Added device list CLI command, which will list the devices if the Peer ID is\r\npassed or else it will list all devices in the cluster.\r\n\r\n* Added device info CLI command, which accepts peer ID and device Name as input\r\nand prints the device information.\r\n\r\n```\r\n[root@gluster-kube1-0 /]# glustercli device list\r\n\r\nPeer ID: 017f7a16-922d-4ea0-9dc4-2b388e19ffb8\r\n+----------+---------+\r\n|  DEVICE  |  STATE  |\r\n+----------+---------+\r\n| /dev/vdc | enabled |\r\n| /dev/vdd | enabled |\r\n| /dev/vde | enabled |\r\n+----------+---------+\r\n\r\n[root@gluster-kube1-0 /]# glustercli device info 017f7a16-922d-4ea0-9dc4-2b388e19ffb8 /dev/vdc\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n|  DEVICE  |  STATE  | AVAILABLE SIZE | EXTENT SIZE | USED |               PEER ID                |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n| /dev/vdc | enabled | 1023.9 GiB     | 4.0 MiB     | no   | 017f7a16-922d-4ea0-9dc4-2b388e19ffb8 |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n```\r\n\r\nSigned-off-by: Madhu Rajanna <mrajanna@redhat.com>"},"comment":{"url":"https://api.github.com/repos/gluster/glusterd2/issues/comments/447661049","html_url":"https://github.com/gluster/glusterd2/pull/1411#issuecomment-447661049","issue_url":"https://api.github.com/repos/gluster/glusterd2/issues/1411","id":447661049,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzY2MTA0OQ==","user":{"login":"Madhu-1","id":18114231,"node_id":"MDQ6VXNlcjE4MTE0MjMx","avatar_url":"https://avatars2.githubusercontent.com/u/18114231?v=4","gravatar_id":"","url":"https://api.github.com/users/Madhu-1","html_url":"https://github.com/Madhu-1","followers_url":"https://api.github.com/users/Madhu-1/followers","following_url":"https://api.github.com/users/Madhu-1/following{/other_user}","gists_url":"https://api.github.com/users/Madhu-1/gists{/gist_id}","starred_url":"https://api.github.com/users/Madhu-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Madhu-1/subscriptions","organizations_url":"https://api.github.com/users/Madhu-1/orgs","repos_url":"https://api.github.com/users/Madhu-1/repos","events_url":"https://api.github.com/users/Madhu-1/events{/privacy}","received_events_url":"https://api.github.com/users/Madhu-1/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T17:30:55Z","updated_at":"2018-12-16T17:30:55Z","author_association":"MEMBER","body":">@Madhu-1 Question : Isn't this feature similar to volume info ? Shouldn't we make it flexible enough to allow users to get all devices info without giving the device name by using its peer-id ?\r\n\r\nwe can do that one. i have a question, do we need 2 CLI commands one for device list and one for device info?\r\nor 1 CLI command which does both list of devices and show the complete device info?\r\nsomething like\r\n\r\n```\r\n$glustercli device list \r\nPeer ID: 017f7a16-922d-4ea0-9dc4-2b388e19ffb8\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n|  DEVICE  |  STATE  | AVAILABLE SIZE | EXTENT SIZE | USED |               PEER ID                |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n| /dev/vdc | enabled | 1023.9 GiB     | 4.0 MiB     | no   | 017f7a16-922d-4ea0-9dc4-2b388e19ffb8 |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n| /dev/vdd | enabled | 1023.9 GiB     | 4.0 MiB     | no   | 017f7a16-922d-4ea0-9dc4-2b388e19ffb8 |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n\r\nPeer ID: 2b388e19-922d-4ea0-9dc4-2b388e19ffb8\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n|  DEVICE  |  STATE  | AVAILABLE SIZE | EXTENT SIZE | USED |               PEER ID                |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n| /dev/vdc | enabled | 1023.9 GiB     | 4.0 MiB     | no   | 2b388e19-922d-4ea0-9dc4-2b388e19ffb8 |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n| /dev/vdd | enabled | 1023.9 GiB     | 4.0 MiB     | no   | 2b388e19-922d-4ea0-9dc4-2b388e19ffb8 |\r\n+----------+---------+----------------+-------------+------+--------------------------------------+\r\n```\r\n\r\n@atinmu @aravindavk let me know your thoughts on this."}}
{"actor":{"display_login":"Madhu-1"}}