You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-about-upgrading-virt.adoc
+1-28Lines changed: 1 addition & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,6 @@
5
5
[id="virt-about-upgrading-virt_{context}"]
6
6
= About upgrading {VirtProductName}
7
7
8
-
[id="how-upgrades-work_{context}"]
9
-
== How {VirtProductName} upgrades work
10
-
11
8
* Operator Lifecycle Manager (OLM) manages the lifecycle of the {VirtProductName} Operator. The Marketplace Operator, which is deployed during {product-title} installation, makes external Operators available to your cluster.
12
9
13
10
* OLM provides z-stream and minor version updates for {VirtProductName}. Minor version updates become available when you upgrade {product-title} to the next minor version. You cannot upgrade {VirtProductName} to the next minor version without first upgrading {product-title}.
@@ -21,34 +18,10 @@
21
18
* The amount of time an update takes to complete depends on your network
22
19
connection. Most automatic updates complete within fifteen minutes.
23
20
24
-
[id="how-upgrades-affect-cluster_{context}"]
25
-
== How {VirtProductName} upgrades affect your cluster
26
-
27
-
* When you upgrade {VirtProductName}, virtual machine workloads including `libvirt`, `virt-launcher`, and `qemu` update automatically if they support live migration.
28
-
+
29
-
[NOTE]
30
-
====
31
-
Each virtual machine has a `virt-launcher` pod that runs the virtual machine
32
-
instance. The `virt-launcher` pod runs an instance of `libvirt`, which is
33
-
used to manage the virtual machine process.
34
-
====
35
-
36
-
** There are two supported workload update methods: `LiveMigrate` and `Evict`. By default, only `LiveMigrate` is enabled, which means that:
37
-
38
-
*** Virtual machine instances (VMIs) that support live migration are migrated during the upgrade process.
39
-
40
-
*** VMIs are not updated at all if the following conditions are both true:
41
-
42
-
**** The VMI does not support live migration.
43
-
44
-
**** The VMI is configured to use the `LiveMigrate` eviction strategy.
45
-
46
-
** You can configure how workloads are updated by editing the `spec.workloadUpdateStrategy` stanza of the `HyperConverged` custom resource (CR).
47
-
48
21
* Upgrading does not interrupt network connections.
49
22
50
23
* Data volumes and their associated persistent volume claims are preserved during upgrade.
51
-
+
24
+
52
25
[IMPORTANT]
53
26
====
54
27
If you have virtual machines running that cannot be live migrated, they might block an {product-title} cluster upgrade.
* When you upgrade {VirtProductName}, virtual machine workloads including `libvirt`, `virt-launcher`, and `qemu` update automatically if they support live migration.
9
+
+
10
+
[NOTE]
11
+
====
12
+
Each virtual machine has a `virt-launcher` pod that runs the virtual machine
13
+
instance. The `virt-launcher` pod runs an instance of `libvirt`, which is
14
+
used to manage the virtual machine process.
15
+
====
16
+
17
+
** There are two available workload update methods: `LiveMigrate` and `Evict`. By default, only `LiveMigrate` is enabled, which means that:
18
+
19
+
*** Virtual machine instances (VMIs) that support live migration are migrated during the upgrade process.
20
+
21
+
*** VMIs are not updated at all if the following conditions are both true:
22
+
23
+
**** The VMI does not support live migration.
24
+
25
+
**** The VMI is configured to use the `LiveMigrate` eviction strategy.
26
+
27
+
** You can configure how workloads are updated by editing the `spec.workloadUpdateStrategy` stanza of the `HyperConverged` custom resource (CR).
When you upgrade {VirtProductName}, virtual machine instance (VMI) workloads, such as `virt-launcher` pods, update automatically if they support live migration. You can configure workload update strategies or opt out of workload updates by editing the `HyperConverged` custom resource (CR).
8
+
You can configure workload update methods by editing the `HyperConverged` custom resource (CR).
9
9
10
10
.Prerequisites
11
11
12
12
* To use live migration as an update method, you must first enable live migration in the cluster.
13
13
+
14
14
[NOTE]
15
15
====
16
-
If a `VirtualMachineInstance` CR contains `evictionStrategy: LiveMigrate` and the VMI does not support live migration, the VMI will not update.
16
+
If a `VirtualMachineInstance` CR contains `evictionStrategy: LiveMigrate` and the virtual machine instance (VMI) does not support live migration, the VMI will not update.
17
17
====
18
18
19
19
.Procedure
@@ -40,11 +40,18 @@ spec:
40
40
- Evict <3>
41
41
batchEvictionSize: 10 <4>
42
42
batchEvictionInterval: "1m0s" <5>
43
+
...
43
44
----
44
-
<1> The methods that can be used to perform automated workload updates. The supported values are `LiveMigrate` and `Evict`. By default, only `LiveMigrate` is enabled. If you enable both options as shown in this example, updates use `LiveMigrate` for VMIs that support live migration and `Evict` for any VMIs that do not support live migration. To disable automatic workload updates, set `workloadUpdateMethods: []` to leave the array empty.
45
-
<2> The least disruptive update method. VMIs that support live migration are updated by migrating the virtual machine (VM) guest into a new pod with the updated components enabled. If `LiveMigrate` is the only workload update method listed, VMIs that do not support live migration are not disrupted or updated. `LiveMigrate` is enabled by default.
46
-
<3> A disruptive method that shuts down VMI pods during upgrade. `Evict` is the only update method available if live migration is not enabled in the cluster. If a VMI is controlled by a `VirtualMachine` object that has `runStrategy: always` configured, a new VMI is created in a new pod with updated components. `Evict` is not enabled by default.
47
-
<4> The number of VMIs that can be forced to be updated at a time. The default value is `10`.
48
-
<5> The interval to wait before evicting the next batch of workloads. The default value is `"1m0s"`.
45
+
<1> The methods that can be used to perform automated workload updates. The available values are `LiveMigrate` and `Evict`. If you enable both options as shown in this example, updates use `LiveMigrate` for VMIs that support live migration and `Evict` for any VMIs that do not support live migration. To disable automatic workload updates, you can either remove the `workloadUpdateStrategy` stanza or set `workloadUpdateMethods: []` to leave the array empty.
46
+
//NOTE: in 4.10, removing the stanza will not disable the feature.
47
+
<2> The least disruptive update method. VMIs that support live migration are updated by migrating the virtual machine (VM) guest into a new pod with the updated components enabled. If `LiveMigrate` is the only workload update method listed, VMIs that do not support live migration are not disrupted or updated.
48
+
<3> A disruptive method that shuts down VMI pods during upgrade. `Evict` is the only update method available if live migration is not enabled in the cluster. If a VMI is controlled by a `VirtualMachine` object that has `runStrategy: always` configured, a new VMI is created in a new pod with updated components.
49
+
<4> The number of VMIs that can be forced to be updated at a time by using the `Evict` method. This does not apply to the `LiveMigrate` method.
50
+
<5> The interval to wait before evicting the next batch of workloads. This does not apply to the `LiveMigrate` method.
51
+
+
52
+
[NOTE]
53
+
====
54
+
You can configure live migration limits and timeouts by editing the `spec.liveMigrationConfig` stanza of the `HyperConverged` CR.
55
+
====
49
56
50
57
. To apply your changes, save and exit the editor.
Automatic workload updates are enabled by default in {VirtProductName} {VirtVersion}. You can opt out by following a xref:../virt/upgrading-virt.adoc#virt-opting-out-workload-updates_upgrading-virt[workaround to disable this feature] before you upgrade to {VirtVersion}.
19
-
====
16
+
// Uncomment this in 4.10
17
+
//[NOTE]
18
+
//====
19
+
//Automatic workload updates are enabled by default in {VirtProductName} {VirtVersion}. You can opt out by following a xref:../virt/upgrading-virt.adoc#virt-opting-out-workload-updates_upgrading-virt[workaround to disable this feature] before you upgrade to {VirtVersion}.
* xref:../virt/live_migration/virt-live-migration-limits.adoc#virt-configuring-live-migration-limits_virt-live-migration-limits[Configuring live migration limits and timeouts]
0 commit comments