Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Fix to recnt_test.sh to select line for recovery tests. #791

Merged
merged 1 commit into from
Dec 6, 2016

Conversation

govint
Copy link
Contributor

@govint govint commented Dec 2, 2016

Search for specific line in plugin log for recovery test.

@kerneltime
Copy link
Contributor

This does not fix the issue https://ci.vmware.run/vmware/docker-volume-vsphere/588

@govint
Copy link
Contributor Author

govint commented Dec 2, 2016 via email

@kerneltime
Copy link
Contributor

kerneltime commented Dec 2, 2016

@kerneltime
Copy link
Contributor

kerneltime commented Dec 2, 2016

Relevant bit from https://ci.vmware.run/vmware/docker-volume-vsphere/590 post plugin restart.
Note count is 4 and not the expected value of 5

2016-12-02 18:26:02.31535609 +0000 UTC [INFO] No config file found. Using defaults.
2016-12-02 18:26:02.315397129 +0000 UTC [INFO] Docker VMDK plugin started config="/etc/docker-volume-vsphere.conf" version="VMDK Volume Driver v0.3" port=1019 mock_esx=false log_level=info 
2016-12-02 18:26:02.318377301 +0000 UTC [INFO] Getting volume data from unix:///var/run/docker.sock
2016-12-02 18:28:29.082017235 +0000 UTC [INFO] Discovered 1 volumes in use.
2016-12-02 18:28:29.082073709 +0000 UTC [INFO] Volume name=refCountTestVol count=4 mounted=true device='/dev/disk/by-path/pci-0000:0b:00.0-scsi-0:0:0:0'

@govint
Copy link
Contributor Author

govint commented Dec 5, 2016

Refcount isn't guaranteed to be at 5, each of the five containers are doing a sleep of one minute after which they exit. Its possible that the first one may have exited by the time the plugin is killed and comes back up.

Overall, this test is very sensitive to how fast the plugin restarts after its killed and there isn't any guarantee that the exact same number of containers are still there when it starts.

@govint
Copy link
Contributor Author

govint commented Dec 5, 2016

  1. The test itself runs a container to check number of files on the refcount volume, which logs "Unmount...." logs - fixed by searching explicitly for "mounted=true"

  2. Changed container command to sleep for a timeout of 3 minutes (earlier 1) so we should have all five containers running still when the plugin restarts.

@msterin
Copy link
Contributor

msterin commented Dec 5, 2016

It is hard to believe that it take more than a minute for the test to complete - I think the issue is different from simple timing. However, this was a quick-and-dirty test (my bad) and it gives us a lot of grief. bandaid does not seem to be working properly. IMO the right way would be to interrogate the plugin for the value (e.g.over a listening unix socket) - screen scraping will keep giving us grief. It is a larger fix, but it will really fix the test.

@govint
Copy link
Contributor Author

govint commented Dec 5, 2016 via email

@kerneltime
Copy link
Contributor

Were you able to reproduce the issue with docker 1.12.x and did this fix help?

@govint
Copy link
Contributor Author

govint commented Dec 6, 2016

This issue will happen irrespective of the docker version. Its just looking at the plugin logs to figure if the test works ok.

@kerneltime kerneltime merged commit a0ca62c into master Dec 6, 2016
@kerneltime
Copy link
Contributor

kerneltime commented Dec 6, 2016

Merged but this does not close #790

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants