{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/633","repository_url":"https://api.github.com/repos/vmware/docker-volume-vsphere","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/633/comments","events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/633/events","html_url":"https://github.com/vmware/docker-volume-vsphere/issues/633","id":184040151,"number":633,"title":"ESX Admin CLI vmdkops_admin.py 'ls' and 'status' TypeError","user":{"login":"marksoper","id":193360,"avatar_url":"https://avatars.githubusercontent.com/u/193360?v=3","gravatar_id":"","url":"https://api.github.com/users/marksoper","html_url":"https://github.com/marksoper","followers_url":"https://api.github.com/users/marksoper/followers","following_url":"https://api.github.com/users/marksoper/following{/other_user}","gists_url":"https://api.github.com/users/marksoper/gists{/gist_id}","starred_url":"https://api.github.com/users/marksoper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marksoper/subscriptions","organizations_url":"https://api.github.com/users/marksoper/orgs","repos_url":"https://api.github.com/users/marksoper/repos","events_url":"https://api.github.com/users/marksoper/events{/privacy}","received_events_url":"https://api.github.com/users/marksoper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/component/adminCli","name":"component/adminCli","color":"0e8a16"},{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/kind/bug","name":"kind/bug","color":"fbca04"},{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/P0","name":"P0","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"govint","id":15854712,"avatar_url":"https://avatars.githubusercontent.com/u/15854712?v=3","gravatar_id":"","url":"https://api.github.com/users/govint","html_url":"https://github.com/govint","followers_url":"https://api.github.com/users/govint/followers","following_url":"https://api.github.com/users/govint/following{/other_user}","gists_url":"https://api.github.com/users/govint/gists{/gist_id}","starred_url":"https://api.github.com/users/govint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govint/subscriptions","organizations_url":"https://api.github.com/users/govint/orgs","repos_url":"https://api.github.com/users/govint/repos","events_url":"https://api.github.com/users/govint/events{/privacy}","received_events_url":"https://api.github.com/users/govint/received_events","type":"User","site_admin":false},"assignees":[{"login":"govint","id":15854712,"avatar_url":"https://avatars.githubusercontent.com/u/15854712?v=3","gravatar_id":"","url":"https://api.github.com/users/govint","html_url":"https://github.com/govint","followers_url":"https://api.github.com/users/govint/followers","following_url":"https://api.github.com/users/govint/following{/other_user}","gists_url":"https://api.github.com/users/govint/gists{/gist_id}","starred_url":"https://api.github.com/users/govint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govint/subscriptions","organizations_url":"https://api.github.com/users/govint/orgs","repos_url":"https://api.github.com/users/govint/repos","events_url":"https://api.github.com/users/govint/events{/privacy}","received_events_url":"https://api.github.com/users/govint/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-10-19T18:33:59Z","updated_at":"2016-10-25T18:21:29Z","closed_at":null,"body":"\r\n**VIB details**\r\n\r\nVersion: b'0.7.93a0739-0.0.1' - a docker-volume-vsphere vib I built myself (includes the UI plugin)\r\n\r\n**ESX details**\r\nVersion:\r\n1.8.0\r\nBuild number:\r\n4382553\r\nESXi version:\r\n6.5.0\r\nESXi build number:\r\n4496391\r\n\r\n**vmdkops_admin.py ls**\r\n\r\n[root@localhost:/tmp/docker-volume-vsphere] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py\", line 643, in <module>\r\n    main()\r\n  File \"/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py\", line 40, in main\r\n    args.func(args)\r\n  File \"/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py\", line 355, in ls\r\n    print(cli_table.create(header, rows))\r\n  File \"/usr/lib/vmware/vmdkops/Python/cli_table.py\", line 37, in create\r\n    header = truncate([header], sizes)[0]\r\n  File \"/usr/lib/vmware/vmdkops/Python/cli_table.py\", line 177, in truncate\r\n    truncated_row.append(column[:size - 2] + '..')\r\nTypeError: slice indices must be integers or None or have an __index__ method\r\n[root@localhost:/tmp/docker-volume-vsphere]\r\n\r\n**vmdkops_admin.py status**\r\n\r\n[root@localhost:/tmp/docker-volume-vsphere] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py status\r\nVersion: b'0.7.93a0739-0.0.1'\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py\", line 643, in <module>\r\n    main()\r\n  File \"/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py\", line 40, in main\r\n    args.func(args)\r\n  File \"/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py\", line 555, in status\r\n    (status, pid) = get_service_status()\r\n  File \"/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py\", line 594, in get_service_status\r\n    pid = output[3].split(\"=\")[1]\r\nTypeError: a bytes-like object is required, not 'str'\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/comments/256122045","html_url":"https://github.com/vmware/docker-volume-vsphere/issues/633#issuecomment-256122045","issue_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/633","id":256122045,"user":{"login":"govint","id":15854712,"avatar_url":"https://avatars.githubusercontent.com/u/15854712?v=3","gravatar_id":"","url":"https://api.github.com/users/govint","html_url":"https://github.com/govint","followers_url":"https://api.github.com/users/govint/followers","following_url":"https://api.github.com/users/govint/following{/other_user}","gists_url":"https://api.github.com/users/govint/gists{/gist_id}","starred_url":"https://api.github.com/users/govint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govint/subscriptions","organizations_url":"https://api.github.com/users/govint/orgs","repos_url":"https://api.github.com/users/govint/repos","events_url":"https://api.github.com/users/govint/events{/privacy}","received_events_url":"https://api.github.com/users/govint/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:21:29Z","updated_at":"2016-10-25T18:21:29Z","body":"This is what I'm getting, with the current code. @markspoer can you give\naccess to your host so I can debug this.\n  ---\n[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls\nVolume                     Datastore   Created By VM        Created\n          Attached To VM   Policy  Capacity  Used      Filesystem Type\n Access      Attach As\n-------------------------  ----------  -------------------\n ------------------------  ---------------  ------  --------  --------\n ---------------  ----------  ----------------------\nVmdkAttachDetachTestVol1   datastore1  test-vm              Thu Oct 20\n06:48:58 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol2   datastore1  test-vm              Thu Oct 20\n06:48:58 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol3   datastore1  test-vm              Thu Oct 20\n06:48:59 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol4   datastore1  test-vm              Thu Oct 20\n06:49:00 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol5   datastore1  test-vm              Thu Oct 20\n06:49:01 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol6   datastore1  test-vm              Thu Oct 20\n06:49:02 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol7   datastore1  test-vm              Thu Oct 20\n06:49:02 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol8   datastore1  test-vm              Thu Oct 20\n06:49:03 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol9   datastore1  test-vm              Thu Oct 20\n06:49:04 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol10  datastore1  test-vm              Thu Oct 20\n06:49:05 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol11  datastore1  test-vm              Thu Oct 20\n06:49:05 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol12  datastore1  test-vm              Thu Oct 20\n06:49:06 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol13  datastore1  test-vm              Thu Oct 20\n06:49:07 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol14  datastore1  test-vm              Thu Oct 20\n06:49:08 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol15  datastore1  test-vm              Thu Oct 20\n06:49:09 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol16  datastore1  test-vm              Thu Oct 20\n06:49:09 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol17  datastore1  test-vm              Thu Oct 20\n06:49:10 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol18  datastore1  test-vm              Thu Oct 20\n06:49:11 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol19  datastore1  test-vm              Thu Oct 20\n06:49:12 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol20  datastore1  test-vm              Thu Oct 20\n06:49:13 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol21  datastore1  test-vm              Thu Oct 20\n06:49:13 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol22  datastore1  test-vm              Thu Oct 20\n06:49:14 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol23  datastore1  test-vm              Thu Oct 20\n06:49:15 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol24  datastore1  test-vm              Thu Oct 20\n06:49:16 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol25  datastore1  test-vm              Thu Oct 20\n06:49:17 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol26  datastore1  test-vm              Thu Oct 20\n06:49:17 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\nVmdkAttachDetachTestVol27  datastore1  test-vm              Thu Oct 20\n06:49:18 2016  detached         N/A     100.00MB  0B        N/A\n read-write  independent_persistent\ndvol_2                     bigone      2                    Tue Aug  2\n04:49:32 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-only   independent_persistent\ndvol_3                     bigone      2                    Wed Aug  3\n05:14:12 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\ndvol_4                     bigone      2                    Wed Aug  3\n05:14:15 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\ndvol_5                     bigone      2                    Thu Aug  4\n04:24:38 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\nhvol_s1                    bigone      Ubuntu-14.04-64 (2)  Thu Aug  4\n06:44:55 2016  Ubuntu-14.04-64  N/A     10.00GB   4.52GB    N/A\n read-write  independent_persistent\ndvol_6                     bigone      2                    Thu Aug  4\n07:28:35 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\nhvol_s2                    bigone      Ubuntu-14.04-64 (2)  Thu Aug  4\n09:11:35 2016  Ubuntu-14.04-64  N/A     10.00GB   9.72GB    N/A\n read-write  independent_persistent\nhvol_s3                    bigone      Ubuntu-14.04-64 (2)  Thu Aug  4\n09:11:59 2016  Ubuntu-14.04-64  N/A     10.00GB   6.66GB    N/A\n read-write  independent_persistent\nhvol_m                     bigone      Ubuntu-14.04-64 (2)  Thu Aug  4\n11:34:33 2016  Ubuntu-14.04-64  N/A     10.00GB   4.67GB    N/A\n read-write  independent_persistent\nnewvol157                  bigone      2                    Tue Aug 16\n06:21:57 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\nnewvol155                  bigone      1                    Tue Aug 16\n06:19:20 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\nv14                        bigone      2                    Thu Oct 13\n05:58:58 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\ntest-vol-label-2           bigone      2                    Fri Sep 23\n11:50:06 2016  detached         N/A     100.00MB  14.00MB   N/A\n read-write  independent_persistent\nsvc-vol                    bigone      2                    Fri Sep 16\n08:49:38 2016  detached         N/A     10.00GB   251.00MB  N/A\n read-write  independent_persistent\nvSlave1                    bigone      volumestats          Wed Sep  7\n11:51:29 2016  detached         N/A     10.00GB   3.35GB    N/A\n read-write  independent_persistent\nvSlave2                    bigone      volumestats          Wed Sep  7\n11:51:44 2016  detached         N/A     10.00GB   3.37GB    N/A\n read-write  independent_persistent\nvol_master                 bigone      New Virtual Machine  Tue Sep  6\n10:14:25 2016  detached         N/A     10.00GB   270.00MB  N/A\n read-write  independent_persistent\nvol_slave2                 bigone      New Virtual Machine  Tue Sep  6\n10:19:49 2016  detached         N/A     10.00GB   274.00MB  N/A\n read-write  independent_persistent\nvol_slave1                 bigone      New Virtual Machine  Tue Sep  6\n10:45:58 2016  detached         N/A     10.00GB   273.00MB  N/A\n read-write  independent_persistent\nvMaster                    bigone      volumestats          Wed Sep  7\n11:51:14 2016  detached         N/A     10.00GB   497.00MB  N/A\n read-write  independent_persistent\nnew-vol-100                bigone      2                    Thu Oct 20\n16:05:48 2016  detached         N/A     100.00MB  13.00MB   ext4\n  read-write  independent_persistent\n  ---\n\n[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py status\nVersion: b'0.7.ef3ff0f-0.0.1'\nStatus: Stopped\nLogConfigFile: /etc/vmware/vmdkops/log_config.json\nLogFile: /var/log/vmware/vmdk_ops.log\nLogLevel: INFO\n  ---\n\n\nOn Fri, Oct 21, 2016 at 6:32 AM, Prashant Dhamdhere <\nnotifications@github.com> wrote:\n\n> Assigned #633 <https://github.com/vmware/docker-volume-vsphere/issues/633>\n> to @govint <https://github.com/govint>.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/vmware/docker-volume-vsphere/issues/633#event-831439642>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/APHseNyjGpDetbvd8fl3SF-IRoy1KMeIks5q2A8LgaJpZM4KbTwC>\n> .\n>\n"}}
{"actor":{"display_login":"govint"}}