Repository navigation
Commit 27442bd
authored
fix(kubevirt-instancetypes): drop persistent EFI/TPM to unblock live-migration (#3006)
## What this PR does
Temporary revert. v1.5.0 restored persistent EFI/TPM state for the
`windows.11` / `windows.2k22` / `windows.2k25` profiles. With
persistence on, KubeVirt creates a backend-storage PVC
(`persistent-state-for-<vm>`) which, on the default `replicated`
StorageClass, is **ReadWriteOnce** — it pins the VM to its node and
**blocks live-migration and node drains**. With `evictionStrategy:
LiveMigrate` this can stall cluster upgrades. See #3005.
This strips persistent EFI/TPM from the preferences again — but via `yq
del` instead of the original `sed -d`, so an emptied `preferredTPM`
stays `{}` (the v1.8 CRD rejects `null`, which is the bug the original
strip caused). **Secure Boot and the vTPM remain present, just
non-persistent** — Windows VMs still boot; they just don't persist
EFI/TPM across reboots.
2 files changed
Lines changed: 12 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
1355 | | - | |
1356 | | - | |
| 1355 | + | |
1357 | 1356 | | |
1358 | 1357 | | |
1359 | 1358 | | |
| |||
1375 | 1374 | | |
1376 | 1375 | | |
1377 | 1376 | | |
1378 | | - | |
1379 | 1377 | | |
1380 | 1378 | | |
1381 | 1379 | | |
| |||
1424 | 1422 | | |
1425 | 1423 | | |
1426 | 1424 | | |
1427 | | - | |
1428 | | - | |
| 1425 | + | |
1429 | 1426 | | |
1430 | 1427 | | |
1431 | 1428 | | |
| |||
1447 | 1444 | | |
1448 | 1445 | | |
1449 | 1446 | | |
1450 | | - | |
1451 | 1447 | | |
1452 | 1448 | | |
1453 | 1449 | | |
| |||
1894 | 1890 | | |
1895 | 1891 | | |
1896 | 1892 | | |
1897 | | - | |
1898 | | - | |
| 1893 | + | |
1899 | 1894 | | |
1900 | 1895 | | |
1901 | 1896 | | |
| |||
1917 | 1912 | | |
1918 | 1913 | | |
1919 | 1914 | | |
1920 | | - | |
1921 | 1915 | | |
1922 | 1916 | | |
1923 | 1917 | | |
| |||
1966 | 1960 | | |
1967 | 1961 | | |
1968 | 1962 | | |
1969 | | - | |
1970 | | - | |
| 1963 | + | |
1971 | 1964 | | |
1972 | 1965 | | |
1973 | 1966 | | |
| |||
1989 | 1982 | | |
1990 | 1983 | | |
1991 | 1984 | | |
1992 | | - | |
1993 | 1985 | | |
1994 | 1986 | | |
1995 | 1987 | | |
| |||
2036 | 2028 | | |
2037 | 2029 | | |
2038 | 2030 | | |
2039 | | - | |
2040 | | - | |
| 2031 | + | |
2041 | 2032 | | |
2042 | 2033 | | |
2043 | 2034 | | |
| |||
2059 | 2050 | | |
2060 | 2051 | | |
2061 | 2052 | | |
2062 | | - | |
2063 | 2053 | | |
2064 | 2054 | | |
2065 | 2055 | | |
| |||
2108 | 2098 | | |
2109 | 2099 | | |
2110 | 2100 | | |
2111 | | - | |
2112 | | - | |
| 2101 | + | |
2113 | 2102 | | |
2114 | 2103 | | |
2115 | 2104 | | |
| |||
2131 | 2120 | | |
2132 | 2121 | | |
2133 | 2122 | | |
2134 | | - | |
2135 | 2123 | | |
2136 | 2124 | | |
2137 | 2125 | | |
| |||
0 commit comments