Skip to content

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
wants to merge 59 commits into
base: master
Choose a base branch
from

Conversation

ydirson
Copy link
Contributor

@ydirson ydirson commented Oct 4, 2024

@ydirson ydirson requested review from stormi and gduperrey October 4, 2024 12:35
@ydirson ydirson force-pushed the install-runtests branch 9 times, most recently from 19ef189 to c44763e Compare October 10, 2024 08:54
@ydirson ydirson force-pushed the install-runtests branch 2 times, most recently from d8bfaa7 to d42cdea Compare March 26, 2025 12:30
@ydirson ydirson force-pushed the install-runtests branch 4 times, most recently from 687d513 to a7a6b7c Compare May 6, 2025 09:33
ydirson added 9 commits May 7, 2025 14:55
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]>
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]>
ydirson and others added 18 commits May 7, 2025 15:06
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]>
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]>
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]>
@ydirson ydirson force-pushed the install-runtests branch from a7a6b7c to 2534b89 Compare May 7, 2025 13:08
@ydirson ydirson force-pushed the install-runtests branch from 2534b89 to 204818e Compare May 7, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants