|
11 | 11 |
|
12 | 12 | # Requirements:
|
13 | 13 | # - 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) |
14 | 18 |
|
15 | 19 | @pytest.mark.dependency()
|
16 | 20 | class TestNested:
|
17 | 21 | @pytest.mark.parametrize("iso_version", (
|
18 | 22 | "83nightly",
|
19 | 23 | "83rc1", "83b2", "83b1",
|
20 | 24 | "821.1",
|
21 |
| - "81", "80", |
| 25 | + "81", "80", "76", "75", |
22 | 26 | "xs8", "ch821.1",
|
| 27 | + "xs70", |
23 | 28 | ))
|
24 | 29 | @pytest.mark.parametrize("firmware", ("uefi", "bios"))
|
25 | 30 | @pytest.mark.vm_definitions(
|
@@ -70,8 +75,11 @@ def _test_firstboot(self, create_vms, mode, is_restore=False):
|
70 | 75 | else:
|
71 | 76 | expected_rel_id = split_mode[-1]
|
72 | 77 | expected_rel = {
|
| 78 | + "xs70": "7.0.0-125380c", |
73 | 79 | "ch821.1": "8.2.1",
|
74 | 80 | "xs8": "8.4.0",
|
| 81 | + "75": "7.5.0", |
| 82 | + "76": "7.6.0", |
75 | 83 | "80": "8.0.0",
|
76 | 84 | "81": "8.1.0",
|
77 | 85 | "821.1": "8.2.1",
|
@@ -129,25 +137,35 @@ def _test_firstboot(self, create_vms, mode, is_restore=False):
|
129 | 137 | ]
|
130 | 138 | STAMPS_DIR = "/var/lib/misc"
|
131 | 139 | 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"]: |
133 | 141 | SERVICES = ["xs-firstboot"]
|
134 | 142 | STAMPS_DIR = "/etc/firstboot.d/state"
|
135 | 143 | STAMPS = [
|
136 |
| - "05-prepare-networking", |
137 | 144 | "10-prepare-storage",
|
138 | 145 | "15-set-default-storage",
|
139 | 146 | "20-udev-storage",
|
140 | 147 | "25-multipath",
|
141 | 148 | "40-generate-iscsi-iqn",
|
142 | 149 | "50-prepare-control-domain-params",
|
143 |
| - "60-import-keys", |
144 | 150 | "60-upgrade-likewise-to-pbis",
|
145 |
| - "62-create-guest-templates", |
146 |
| - "80-common-criteria", |
147 | 151 | "90-flush-pool-db",
|
148 | 152 | "95-legacy-logrotate",
|
149 | 153 | "99-remove-firstboot-flag",
|
150 | 154 | ]
|
| 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 | + ] |
151 | 169 | else:
|
152 | 170 | raise AssertionError(f"Unhandled LSB release {lsb_rel!r}")
|
153 | 171 | # check for firstboot issues
|
@@ -200,7 +218,9 @@ def _test_firstboot(self, create_vms, mode, is_restore=False):
|
200 | 218 | "83rc1", "83b2", "83b1",
|
201 | 219 | "821.1",
|
202 | 220 | "81", "80",
|
| 221 | + "76", "75", |
203 | 222 | "xs8", "ch821.1",
|
| 223 | + "xs70", |
204 | 224 | ))
|
205 | 225 | @pytest.mark.parametrize("firmware", ("uefi", "bios"))
|
206 | 226 | @pytest.mark.continuation_of(
|
|
0 commit comments