Skip to content

Commit d381d8f

Browse files
Merge pull request #31204 from aburdenthehand/cnv-9053-kubemacpool-by-default
CNV-9053 KubeMacPool enabled by default
2 parents cc4e5c2 + b255b3e commit d381d8f

11 files changed

+39
-50
lines changed

modules/virt-about-kubemacpool.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[id="virt-about-kubemacpool_{context}"]
66
= About KubeMacPool
77

8-
If you enable the KubeMacPool component for a namespace, virtual machine NICs in that namespace are allocated MAC addresses from a MAC address pool.
8+
KubeMacPool provides a MAC address pool per namespace and allocates MAC addresses for virtual machine NICs from the pool.
99
This ensures that the NIC is assigned a unique MAC address that does not conflict with the MAC address of another virtual machine.
1010

1111
Virtual machine instances created from that virtual machine retain the assigned MAC address across reboots.
@@ -15,6 +15,5 @@ Virtual machine instances created from that virtual machine retain the assigned
1515
KubeMacPool does not handle virtual machine instances created independently from a virtual machine.
1616
====
1717

18-
KubeMacPool is disabled by default.
19-
Enable a MAC address pool for a namespace by applying the KubeMacPool label to the namespace.
20-
18+
KubeMacPool is enabled by default when you install {VirtProductName}.
19+
You can disable a MAC address pool for a namespace by adding the `mutatevirtualmachines.kubemacpool.io=ignore` label to the namespace. Re-enable KubeMacPool for the namespace by removing the label.

modules/virt-disabling-mac-address-pool-for-namespace-cli.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
[id="virt-disabling-mac-address-pool-for-namespace-cli_{context}"]
66
= Disabling a MAC address pool for a namespace in the CLI
77

8-
Disable a MAC address pool for virtual machines in a namespace by removing the `mutatevirtualmachines.kubemacpool.io` label.
8+
Disable a MAC address pool for virtual machines in a namespace by adding the `mutatevirtualmachines.kubemacpool.io=ignore` label to the namespace.
99

1010
.Procedure
1111

12-
* Remove the KubeMacPool label from the namespace.
13-
The following example removes the KubeMacPool label from two namespaces, `<namespace1>` and `<namespace2>`:
12+
* Add the `mutatevirtualmachines.kubemacpool.io=ignore` label to the namespace.
13+
The following example disables KubeMacPool for two namespaces, `<namespace1>` and `<namespace2>`:
1414
+
1515
[source,terminal]
1616
----
17-
$ oc label namespace <namespace1> <namespace2> mutatevirtualmachines.kubemacpool.io-
17+
$ oc label namespace <namespace1> <namespace2> mutatevirtualmachines.kubemacpool.io=ignore
1818
----
1919

modules/virt-enabling-mac-address-pool-for-namespace-cli.adoc

Lines changed: 0 additions & 19 deletions
This file was deleted.

modules/virt-networking-wizard-fields-web.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
|List of available binding methods. For the default pod network, `masquerade` is the only recommended binding method. For secondary networks, use the `bridge` binding method. The `masquerade` method is not supported for non-default networks. Select `SR-IOV` if you configured an SR-IOV network device and defined that network in the namespace.
2626

2727
|MAC Address
28-
|MAC address for the network interface card. If a MAC address is not specified, an ephemeral address is generated for the session.
28+
|MAC address for the network interface card. If a MAC address is not specified, one is assigned automatically.
2929
|===

modules/virt-pxe-booting-with-mac-address.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ $ oc create -f pxe-net-conf.yaml
6161

6262
.. Specify the network and MAC address, if required by the PXE server.
6363
If the MAC address is not specified, a value is assigned automatically.
64-
However, note that at this time, MAC addresses assigned automatically are not persistent.
6564
+
6665
Ensure that `bootOrder` is set to `1` so that the interface boots first.
6766
In this example, the interface is connected to a network called
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/vm_networking/virt-using-mac-address-pool-for-vms.adoc
4+
5+
[id="virt-reenabling-mac-address-pool-for-namespace-cli_{context}"]
6+
= Re-enabling a MAC address pool for a namespace in the CLI
7+
8+
If you disabled KubeMacPool for a namespace and want to re-enable it, remove the `mutatevirtualmachines.kubemacpool.io=ignore` label from the namespace.
9+
10+
[NOTE]
11+
====
12+
Earlier versions of {VirtProductName} used the label `mutatevirtualmachines.kubemacpool.io=allocate` to enable KubeMacPool for a namespace. This is still supported but redundant as KubeMacPool is now enabled by default.
13+
====
14+
15+
.Procedure
16+
17+
* Remove the KubeMacPool label from the namespace.
18+
The following example re-enables KubeMacPool for two namespaces, `<namespace1>` and `<namespace2>`:
19+
+
20+
[source,terminal]
21+
----
22+
$ oc label namespace <namespace1> <namespace2> mutatevirtualmachines.kubemacpool.io-
23+
----
24+

virt/install/installing-virt-cli.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,5 @@ include::modules/virt-deploying-operator-cli.adoc[leveloffset=+1]
2828

2929
You might want to additionally configure the following components:
3030

31-
* The _KubeMacPool_ component provides a MAC address pool service for virtual machine NICs in designated namespaces. xref:../../virt/virtual_machines/vm_networking/virt-using-mac-address-pool-for-vms.adoc#virt-about-kubemacpool_virt-using-mac-address-pool-for-vms[Enable a MAC address pool in a namespace] by applying the KubeMacPool label to that namespace.
32-
3331
* The xref:../../virt/virtual_machines/virtual_disks/virt-configuring-local-storage-for-vms.adoc#virt-about-hostpath-provisioner_virt-configuring-local-storage-for-vms[hostpath provisioner] is a local storage provisioner designed for {VirtProductName}. If you want to configure local storage for virtual machines, you must enable the hostpath provisioner first.
3432

virt/install/installing-virt-web.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ include::modules/virt-installing-virt-operator.adoc[leveloffset=+1]
1717

1818
You might want to additionally configure the following components:
1919

20-
* The _KubeMacPool_ component provides a MAC address pool service for virtual machine NICs in designated namespaces. xref:../../virt/virtual_machines/vm_networking/virt-using-mac-address-pool-for-vms.adoc#virt-about-kubemacpool_virt-using-mac-address-pool-for-vms[Enable a MAC address pool in a namespace] by applying the KubeMacPool label to that namespace.
21-
2220
* The xref:../../virt/virtual_machines/virtual_disks/virt-configuring-local-storage-for-vms.adoc#virt-about-hostpath-provisioner_virt-configuring-local-storage-for-vms[hostpath provisioner] is a local storage provisioner designed for {VirtProductName}. If you want to configure local storage for virtual machines, you must enable the hostpath provisioner first.

virt/virtual_machines/vm_networking/virt-attaching-vm-multiple-networks.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ To attach a virtual machine to an additional network:
1515
** In the web console, create a NIC for a new or existing virtual machine.
1616
** In the CLI, include the network information in the virtual machine configuration.
1717

18-
[NOTE]
19-
====
20-
The _KubeMacPool_ component provides a MAC address pool service for virtual machine NICs in designated namespaces. It is not enabled by default. xref:../../../virt/virtual_machines/vm_networking/virt-using-mac-address-pool-for-vms.adoc#virt-about-kubemacpool_virt-using-mac-address-pool-for-vms[Enable a MAC address pool in a namespace] by applying the KubeMacPool label to that namespace.
21-
====
22-
2318
include::modules/virt-networking-glossary.adoc[leveloffset=+1]
2419

2520
[id="virt-creating-network-attachment-definition"]

virt/virtual_machines/vm_networking/virt-using-mac-address-pool-for-vms.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ include::modules/virt-document-attributes.adoc[]
55

66
toc::[]
77

8-
The _KubeMacPool_ component provides a MAC address pool service for virtual machine NICs in designated namespaces. Enable a MAC address pool in a namespace by applying the KubeMacPool label to that namespace.
8+
The _KubeMacPool_ component provides a MAC address pool service for virtual machine NICs in a namespace.
99

1010
include::modules/virt-about-kubemacpool.adoc[leveloffset=+1]
1111

12-
include::modules/virt-enabling-mac-address-pool-for-namespace-cli.adoc[leveloffset=+1]
13-
1412
include::modules/virt-disabling-mac-address-pool-for-namespace-cli.adoc[leveloffset=+1]
13+
14+
include::modules/virt-reenabling-mac-address-pool-for-namespace-cli.adoc[leveloffset=+1]
15+

0 commit comments

Comments
 (0)