-
Notifications
You must be signed in to change notification settings - Fork 5
Scripts to help batch-running automated install/upgrade/restore and post-install tests #261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ydirson
wants to merge
59
commits into
master
Choose a base branch
from
install-runtests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19ef189
to
c44763e
Compare
c44763e
to
92e1266
Compare
Signed-off-by: Samuel Verschelde <[email protected]>
Signed-off-by: Samuel Verschelde <[email protected]>
92e1266
to
2414c53
Compare
d8bfaa7
to
d42cdea
Compare
687d513
to
a7a6b7c
Compare
This is not meant to be a fixture anyway. Signed-off-by: Yann Dirson <[email protected]>
This suppresses hostkey checking, making the script more suitable for non-interactive use, and makes it easier to understand when something goes wrong. FIXME locate "lib" more properly Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Tests for generation of the reference files, and for checking against them. Signed-off-by: Yann Dirson <[email protected]>
This in INFO level makes user think the test is blocked on xapi-wait-init-complete while the problem is with reaching pool members: Sep 06 12:50:28.791 INFO Wait for XAPI init to be complete on 172.16.210.12 Sep 06 12:50:28.792 DEBUG [172.16.210.12] xapi-wait-init-complete 60 Sep 06 12:50:29.221 DEBUG [172.16.210.12] xe host-list --minimal ... Sep 06 12:50:30.503 DEBUG [172.16.210.12] xe host-param-get uuid=0aea61f4-c9d1-4060-94e8-4eb2024d082c param-name=address Sep 06 12:50:30.926 DEBUG > 172.16.210.11 Sep 06 12:50:30.929 DEBUG [172.16.210.11] cat /etc/xensource-inventory Sep 06 12:52:47.216 DEBUG > ssh: connect to host 172.16.210.11 port 22: Connection timed out Signed-off-by: Yann Dirson <[email protected]>
byte-compiled version of /etc/xapi.d/plugins/vmss Signed-off-by: Yann Dirson <[email protected]>
This is notably required for the `requests` module. Signed-off-by: Yann Dirson <[email protected]>
The original exception should be enough to understand and more precise, and even "raise from" does not give that precision back. Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
No direct upgrade to 8.3 for those versions. Signed-off-by: Yann Dirson <[email protected]>
This is just base infra, different machines have not differences yet. Signed-off-by: Yann Dirson <[email protected]>
Uses a helper VM to modify firstboot data in installed disk Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
clone+start:// will be used to implement--hosts=cache://... clone:// itself is not yet used directly, but as the "base" protocol upon which clone+start build, it seems logical (and basically free) to implement. Signed-off-by: Yann Dirson <[email protected]>
Will allow it to access host_list through closure. Signed-off-by: Yann Dirson <[email protected]>
Special care taken for making sure a created VM is destroyed if setup_host fails further down the line. Signed-off-by: Yann Dirson <[email protected]>
Add a new parameter to allow booting using netinstall. If an ISO only supports netinstall, it is specified it in the data.py by setting the `net-only`option to True. This option is set to False by default. Signed-off-by: Guillaume <[email protected]> Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
…store Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
In some network we might not even have a PXE server, or no ssh access to it. Signed-off-by: Yann Dirson <[email protected]>
The former code relies on output from the net-tools implementation of the arp tool. At least the busybox implementation, found in Alpine Linux, has a different output. The `ip neigh` OTOH is designed as machine-readable and works both with iproute2 and busybox. Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
FIXME: config.py seems a bad idea after all FIXME: duplicated logic should be factored out
FIXME: should be in job instead
When using --hosts=cache://... it is much too early for such a check, so we have to give the info manually, and the script would not allow this. And honor it not just for "collect".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is based on top of #226, and includes merges of #260 and https://github.com/xcp-ng/xcp-ng-tests/commits/stormi/post-install-test-job/
To exclude the #226 contents, use https://github.com/xcp-ng/xcp-ng-tests/compare/install..install-runtests