-
Notifications
You must be signed in to change notification settings - Fork 95
ESX Admin CLI vmdkops_admin.py 'ls' and 'status' TypeError #633
Comments
May I suggest adding regression tests that invoke these commands from the CLI to whomever fixes this bug. I actually thought they already existed... |
I tried this and confirmed same outcome with the current download VIB at https://github.com/vmware/docker-volume-vsphere/releases/download/0.7/vmware-esx-vmdkops-0.7.vib |
@govint Can you please take a look? |
This is what I'm getting, with the current code. @marksoper can you give access to your host so I can debug this. [root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls VmdkAttachDetachTestVol1 datastore1 test-vm Thu Oct 20 06:48:58 2016 detached N/A 100.00MB 0B N/A read-write independent_persistent [root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py status |
With the vib on the repo status fails like @marksoper described. ls still works ok esxcli software vib list|grep vmdk /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls VmdkAttachDetachTestVol1 datastore1 test-vm Thu Oct 20 06:48:58 2016 detached N/A 100.00MB 0B N/A read-write independent_persistent /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py status |
PR #641 fixes the error for the status command,. |
This is what I'm getting, with the current code. @markspoer can you give [root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls VmdkAttachDetachTestVol1 datastore1 test-vm Thu Oct 20 [root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py status On Fri, Oct 21, 2016 at 6:32 AM, Prashant Dhamdhere <
|
Fixed with #641 |
VIB details
Version: b'0.7.93a0739-0.0.1' - a docker-volume-vsphere vib I built myself (includes the UI plugin)
ESX details
Version:
1.8.0
Build number:
4382553
ESXi version:
6.5.0
ESXi build number:
4496391
vmdkops_admin.py ls
[root@localhost:/tmp/docker-volume-vsphere] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls
Traceback (most recent call last):
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 643, in
main()
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 40, in main
args.func(args)
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 355, in ls
print(cli_table.create(header, rows))
File "/usr/lib/vmware/vmdkops/Python/cli_table.py", line 37, in create
header = truncate([header], sizes)[0]
File "/usr/lib/vmware/vmdkops/Python/cli_table.py", line 177, in truncate
truncated_row.append(column[:size - 2] + '..')
TypeError: slice indices must be integers or None or have an index method
[root@localhost:/tmp/docker-volume-vsphere]
vmdkops_admin.py status
[root@localhost:/tmp/docker-volume-vsphere] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py status
Version: b'0.7.93a0739-0.0.1'
Traceback (most recent call last):
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 643, in
main()
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 40, in main
args.func(args)
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 555, in status
(status, pid) = get_service_status()
File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 594, in get_service_status
pid = output[3].split("=")[1]
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered: