Conversation
| import contextlib | ||
| import re | ||
|
|
||
| import XenAPI |
There was a problem hiding this comment.
This is not in our current dependency. Could it be added in pyproject.toml?
There was a problem hiding this comment.
Added XenAPI to dev dependencies
Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
c57dde6 to
c39b44f
Compare
Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
19ebb0b to
3d2c763
Compare
|
I didn't realize that scan_cache.py was meant to be used on an xcp-ng host, not on the dev computer. The XenAPI dependency doesn't make sense in that case: I don't think we plan on cloning xcp-ng-tests on each host. Apparently, it also requires copying I think I would prefer a script that runs locally, on the dev host, and connects to the host. |
It's better to run it locally on the dev machine rather than on the hosts. I'll make it do that. |
Stale cached VMs will fill up the SR and cause test failures when importing new images.
This script helps detect those. It's non-destructive; deleting the VMs is left to the user.