Skip to content

Commit 8b686f7

Browse files
committed
install: 7.5, 7.6, and XS 7.0
No direct upgrade to 8.3 for those versions. Signed-off-by: Yann Dirson <[email protected]>
1 parent f721995 commit 8b686f7

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

data.py-dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ ISO_IMAGES: Dict[str, "IsoImageDef"] = {
134134
'820': {'path': "8.2/xcp-ng-8.2.0.iso"},
135135
'81': {'path': "8.1/xcp-ng-8.1.0-2.iso"},
136136
'80': {'path': "8.0/xcp-ng-8.0.0.iso"},
137+
'76': {'path': "7.6/xcp-ng-7.6.0.iso"},
138+
'75': {'path': "7.5/xcp-ng-7.5.0-2.iso"},
137139
'xs8': {'path': "XenServer8_2024-03-18.iso"},
138140
'ch821.1': {'path': "CitrixHypervisor-8.2.1-2306-install-cd.iso"},
139141
'ch821': {'path': "CitrixHypervisor-8.2.1-install-cd.iso"},

tests/install/test.py

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@
1111

1212
# Requirements:
1313
# - one XCP-ng host capable of nested virt, with an ISO SR, and a default SR
14+
# - the "small_vm" ISO must have in authorized_keys a SSH key accepted by the
15+
# ssh server in the installed host version (7.x and earlier reject current
16+
# ssh-rsa keys, a public ssh-ed25519 key listed in TEST_SSH_PUBKEY should be
17+
# there)
1418

1519
@pytest.mark.dependency()
1620
class TestNested:
1721
@pytest.mark.parametrize("iso_version", (
1822
"83nightly",
1923
"83rc1", "83b2", "83b1",
2024
"821.1",
21-
"81", "80",
25+
"81", "80", "76", "75",
2226
"xs8", "ch821.1",
27+
"xs70",
2328
))
2429
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
2530
@pytest.mark.vm_definitions(
@@ -70,8 +75,11 @@ def _test_firstboot(self, create_vms, mode, is_restore=False):
7075
else:
7176
expected_rel_id = split_mode[-1]
7277
expected_rel = {
78+
"xs70": "7.0.0-125380c",
7379
"ch821.1": "8.2.1",
7480
"xs8": "8.4.0",
81+
"75": "7.5.0",
82+
"76": "7.6.0",
7583
"80": "8.0.0",
7684
"81": "8.1.0",
7785
"821.1": "8.2.1",
@@ -129,25 +137,35 @@ def _test_firstboot(self, create_vms, mode, is_restore=False):
129137
]
130138
STAMPS_DIR = "/var/lib/misc"
131139
STAMPS = [f"ran-{service}" for service in SERVICES]
132-
elif lsb_rel in ["8.0.0", "8.1.0"]:
140+
elif lsb_rel in ["7.0.0-125380c", "7.5.0", "7.6.0", "8.0.0", "8.1.0"]:
133141
SERVICES = ["xs-firstboot"]
134142
STAMPS_DIR = "/etc/firstboot.d/state"
135143
STAMPS = [
136-
"05-prepare-networking",
137144
"10-prepare-storage",
138145
"15-set-default-storage",
139146
"20-udev-storage",
140147
"25-multipath",
141148
"40-generate-iscsi-iqn",
142149
"50-prepare-control-domain-params",
143-
"60-import-keys",
144150
"60-upgrade-likewise-to-pbis",
145-
"62-create-guest-templates",
146-
"80-common-criteria",
147151
"90-flush-pool-db",
148152
"95-legacy-logrotate",
149153
"99-remove-firstboot-flag",
150154
]
155+
if lsb_rel in ["7.0.0-125380c"]:
156+
STAMPS += [
157+
"61-regenerate-old-templates",
158+
]
159+
if lsb_rel in ["7.5.0", "7.6.0", "8.0.0", "8.1.0"]:
160+
STAMPS += [
161+
"05-prepare-networking",
162+
"60-import-keys",
163+
"62-create-guest-templates",
164+
]
165+
if lsb_rel in ["8.0.0", "8.1.0"]:
166+
STAMPS += [
167+
"80-common-criteria",
168+
]
151169
else:
152170
raise AssertionError(f"Unhandled LSB release {lsb_rel!r}")
153171
# check for firstboot issues
@@ -200,7 +218,9 @@ def _test_firstboot(self, create_vms, mode, is_restore=False):
200218
"83rc1", "83b2", "83b1",
201219
"821.1",
202220
"81", "80",
221+
"76", "75",
203222
"xs8", "ch821.1",
223+
"xs70",
204224
))
205225
@pytest.mark.parametrize("firmware", ("uefi", "bios"))
206226
@pytest.mark.continuation_of(

0 commit comments

Comments
 (0)