You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
govc vm.Info -vm.ip is the command used to fetch VM meta-data and it needs the calling test functions to have a sleep-wait for a few seconds before issuing the govc command. Instead use the waitip option to govc and it does the wait instead.
The time delay isn't removed completely but it may make it more precise than to wait for a fixed number of seconds in the test code.
The text was updated successfully, but these errors were encountered:
Tried this out but still hitting the "no such VM" error with govc,
2017/07/13 12:18:27 Fetching full name for volume [vmlistener_test_volume_823192] from VM [10.161.248.164]
2017/07/13 12:18:28 Full volume name: [vmlistener_test_volume_823192@sharedVmfs-0]
2017/07/13 12:18:32 govc vm.info --waitip=true -vm.ip=10.161.248.164 -json | jq -r .VirtualMachines[].Name
2017/07/13 12:18:32 Expected Attached VM name is [govc: no such VM]
2017/07/13 12:18:32 Attached VM name from Docker CLI is [worker1-VM1.0]
2017/07/13 12:18:32 Attached VM name from Admin CLI is [worker1-VM1.0]
govint
changed the title
Use -waitip=true when fetching VM metadata via govc.
Add a uuid based verification of attached state for a volume
Jul 17, 2017
Add a VerifyAttachedStatusByUuid() to allow fetching VM name by UUid and using that to verify attached state.
(1) saves the 15s timeout after a VM suspend where govc returns error trying to get VM name with the IP.
Move the sleep in esxcli.go:WaitForExpectedState() and vdvs.go:IsVDVSRunning() to after the check on the required state vs. sleeping fist and then checking.
(4) save at least 8s whenever IsVDVSRunningAfterVMRestart() is called.
govc vm.Info -vm.ip is the command used to fetch VM meta-data and it needs the calling test functions to have a sleep-wait for a few seconds before issuing the govc command. Instead use the waitip option to govc and it does the wait instead.
The time delay isn't removed completely but it may make it more precise than to wait for a fixed number of seconds in the test code.
The text was updated successfully, but these errors were encountered: